:root {
  --ink: #142d2b;
  --ink-soft: #47605b;
  --cream: #f4f2ec;
  --paper: #faf9f5;
  --line: #c9d1c8;
  --accent: #bf7049;
  --accent-soft: #f2ddca;
  --display: "Noto Serif CJK SC", "Source Han Serif SC", "Songti SC", "SimSun", serif;
  --body: "Noto Sans CJK SC", "Source Han Sans SC", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--body);
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  opacity: .34;
  background-image: radial-gradient(#7b8c80 0.55px, transparent 0.55px);
  background-size: 10px 10px;
}

a { color: inherit; }
button, input, select { font: inherit; }
[hidden] { display: none !important; }
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.page-shell { width: min(100% - 96px, 1250px); margin-inline: auto; }
.site-header {
  height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  text-decoration: none;
  font: 700 12px/1 var(--body);
  letter-spacing: .19em;
}
.brand-mark { position: relative; display: block; width: 28px; height: 28px; }
.brand-mark span { position: absolute; border: 1.4px solid var(--ink); border-radius: 50%; }
.brand-mark span:nth-child(1) { inset: 1px; }
.brand-mark span:nth-child(2) { inset: 8px; }
.brand-mark span:nth-child(3) { width: 6px; height: 6px; left: 22px; top: 11px; border: 0; background: var(--accent); }
.header-note { font-size: 12px; letter-spacing: .12em; color: var(--ink-soft); }

.hero {
  min-height: 474px;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, .75fr);
  gap: 56px;
  align-items: center;
  padding-block: 56px 64px;
  border-bottom: 1px solid var(--line);
}
.eyebrow {
  display: flex;
  gap: 13px;
  align-items: center;
  margin: 0 0 37px;
  font: 700 12px/1.2 var(--body);
  letter-spacing: .18em;
  color: var(--ink-soft);
}
.eyebrow-line { width: 32px; height: 1px; background: var(--accent); }
.year { color: var(--accent); }
h1 {
  margin: 0;
  font: 600 clamp(58px, 7vw, 104px)/1.19 var(--display);
  letter-spacing: -.075em;
  white-space: nowrap;
}
.title-accent { color: var(--accent); }
.title-period { margin-left: .015em; color: var(--accent); font-family: Georgia, serif; font-weight: 400; }
.hero-description {
  margin: 27px 0 0;
  color: var(--ink-soft);
  font: 400 clamp(15px, 1.45vw, 18px)/1.95 var(--body);
  letter-spacing: .03em;
}
.hero-graphic {
  width: min(100%, 325px);
  aspect-ratio: 1;
  justify-self: end;
  position: relative;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: radial-gradient(circle at center, #e7eee5 0, #e7eee5 12%, transparent 12.2%);
}
.hero-graphic::before, .hero-graphic::after { content: ""; position: absolute; background: var(--line); }
.hero-graphic::before { top: 50%; left: -15%; width: 130%; height: 1px; }
.hero-graphic::after { left: 50%; top: -15%; width: 1px; height: 130%; }
.orbit { position: absolute; border: 1px solid #8ea29a; border-radius: 50%; z-index: 1; }
.orbit-outer { inset: 16%; }
.orbit-inner { inset: 34%; }
.orbit-core { position: absolute; z-index: 3; width: 34px; height: 34px; top: 50%; left: 50%; transform: translate(-50%, -50%); border-radius: 50%; background: var(--ink); box-shadow: 0 0 0 9px var(--cream); }
.orbit-point { position: absolute; z-index: 4; width: 12px; height: 12px; background: var(--accent); border: 3px solid var(--cream); border-radius: 50%; box-sizing: content-box; }
.point-one { top: 47%; right: -8px; }
.point-two { top: 9%; left: 55%; }
.point-three { bottom: 21%; left: 17%; }
.graphic-label { position: absolute; z-index: 5; background: var(--cream); padding-inline: 5px; font: 700 10px/1.3 Georgia, serif; letter-spacing: .12em; color: var(--ink-soft); white-space: nowrap; }
.label-top { top: 18%; left: -10%; }
.label-bottom { bottom: 10%; right: -17%; }

.directory { padding-block: 66px 100px; min-height: 390px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.section-kicker { color: var(--accent); margin: 0 0 10px; font: 700 11px/1.3 var(--body); letter-spacing: .18em; }
h2 { margin: 0; font: 600 clamp(31px, 3.5vw, 44px)/1.3 var(--display); letter-spacing: -.04em; }
.study-count { margin: 0 0 4px; color: var(--ink-soft); font: 600 13px/1.5 var(--body); white-space: nowrap; }

.filters { display: flex; gap: 12px; margin-bottom: 20px; }
.search-field, .category-field { display: block; position: relative; }
.search-field { flex: 1; }
.search-field input, .category-field select {
  width: 100%;
  min-height: 49px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--paper);
  color: var(--ink);
  outline: none;
}
.search-field input { padding: 10px 16px 10px 44px; }
.category-field select { padding: 10px 35px 10px 15px; min-width: 160px; }
.search-field input:focus-visible, .category-field select:focus-visible { border-color: var(--ink); box-shadow: 0 0 0 3px #9eb7a855; }
.search-icon { position: absolute; left: 18px; top: 16px; width: 14px; height: 14px; border: 1.8px solid var(--ink-soft); border-radius: 50%; pointer-events: none; }
.search-icon::after { content: ""; position: absolute; width: 6px; height: 1.8px; background: var(--ink-soft); transform: rotate(45deg); top: 12px; left: 10px; }

.experiment-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 17px; }
.experiment-card {
  min-height: 286px;
  display: grid;
  grid-template-columns: 39px minmax(0, 1fr);
  grid-template-rows: 1fr auto;
  gap: 0 14px;
  padding: 29px 29px 25px;
  border: 1px solid var(--ink);
  background: var(--paper);
  box-shadow: 5px 5px 0 #d4d8cf;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.experiment-card:first-child:last-child { grid-column: 1 / -1; min-height: 290px; grid-template-columns: 51px minmax(0, 1fr) auto; grid-template-rows: 1fr; align-items: start; padding: 37px 39px 33px; }
.experiment-card:hover { transform: translate(-3px, -3px); box-shadow: 8px 8px 0 #bdcac1; background: #fffefa; }
.experiment-card:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
.card-number { color: var(--accent); font: 600 16px/1.4 Georgia, serif; }
.card-body { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; }
.card-category { font-size: 11px; font-weight: 700; color: var(--ink-soft); letter-spacing: .1em; }
.card-title { display: block; margin-top: 17px; font: 600 clamp(29px, 3vw, 39px)/1.35 var(--display); letter-spacing: -.045em; }
.card-description { display: block; margin-top: 12px; color: var(--ink-soft); font-size: 14px; line-height: 1.75; }
.card-device { display: inline-flex; align-items: center; gap: 12px; margin-top: 28px; color: var(--ink-soft); font-size: 12px; line-height: 1.6; }
.device-label { display: inline-block; padding: 3px 8px; border: 1px solid var(--line); color: var(--ink); font-size: 11px; letter-spacing: .1em; flex: none; }
.card-action { grid-column: 2; display: flex; justify-content: space-between; gap: 20px; align-items: center; align-self: end; padding-top: 19px; margin-top: 25px; border-top: 1px solid var(--line); font-size: 13px; font-weight: 700; letter-spacing: .06em; }
.experiment-card:first-child:last-child .card-action { grid-column: 3; align-self: end; min-width: 122px; margin: 0 0 0 30px; padding: 0; border: 0; }
.arrow { display: inline-flex; width: 30px; height: 30px; align-items: center; justify-content: center; border: 1px solid var(--ink); border-radius: 50%; font-size: 18px; font-weight: 400; line-height: 1; transition: color .2s ease, background .2s ease, transform .2s ease; }
.experiment-card:hover .arrow, .experiment-card:focus-visible .arrow { color: white; background: var(--ink); transform: translate(2px, -2px); }
.empty-state, .load-error { border: 1px dashed var(--line); padding: 38px; margin: 0; background: var(--paper); color: var(--ink-soft); text-align: center; }
.load-error { color: #8c3f2e; }

.site-footer { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding-block: 25px 36px; border-top: 1px solid var(--line); color: var(--ink-soft); font-size: 12px; line-height: 1.6; }
.site-footer p { margin: 0; }
.site-footer span { color: var(--accent); padding-inline: 10px; }
.noscript-note { margin: 20px auto; padding: 20px; max-width: 600px; background: var(--paper); }

@media (max-width: 900px) {
  .page-shell { width: min(100% - 56px, 1250px); }
  .hero { gap: 25px; grid-template-columns: 1.4fr .6fr; min-height: 400px; }
  .hero-graphic { width: 225px; }
  .label-bottom { right: -2%; }
  .experiment-card:first-child:last-child { grid-template-columns: 44px minmax(0, 1fr); grid-template-rows: 1fr auto; }
  .experiment-card:first-child:last-child .card-action { grid-column: 2; align-self: end; margin: 30px 0 0; padding-top: 19px; border-top: 1px solid var(--line); }
}

@media (max-width: 700px) {
  .page-shell { width: min(100% - 36px, 1250px); }
  .site-header { height: 68px; }
  .header-note { display: none; }
  .hero { display: block; min-height: auto; padding-block: 62px 60px; }
  .eyebrow { margin-bottom: 29px; font-size: 10px; }
  h1 { font-size: clamp(49px, 11vw, 72px); }
  .hero-description { margin-top: 24px; font-size: 15px; }
  .hero-graphic { display: none; }
  .directory { padding-block: 51px 70px; }
  .experiment-list { grid-template-columns: 1fr; }
  .experiment-card, .experiment-card:first-child:last-child { grid-column: auto; min-height: 277px; padding: 28px 23px 24px; grid-template-columns: 35px minmax(0, 1fr); grid-template-rows: 1fr auto; }
  .experiment-card:first-child:last-child .card-action { grid-column: 2; }
  .site-footer { display: block; }
  .site-footer p + p { margin-top: 9px; }
}

@media (max-width: 430px) {
  .page-shell { width: min(100% - 30px, 1250px); }
  .brand { letter-spacing: .11em; font-size: 11px; }
  h1 { font-size: clamp(41px, 10.8vw, 49px); }
  .desktop-break { display: none; }
  .section-heading { align-items: end; }
  h2 { font-size: 30px; }
  .filters { flex-direction: column; }
  .category-field select { width: 100%; }
  .card-title { font-size: 27px; }
  .card-device { align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
