:root {
  --ink: #18211e;
  --muted: #69736d;
  --paper: #f2eee6;
  --paper-deep: #e8e0d3;
  --forest: #173e35;
  --forest-bright: #275d4f;
  --lime: #c7e25a;
  --rust: #be593a;
  --line: rgba(24, 33, 30, .18);
  --serif: Iowan Old Style, Songti SC, STSong, 'Noto Serif CJK SC', serif;
  --sans: Avenir Next, PingFang SC, Hiragino Sans GB, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
}

.paper-noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .3;
  background-image: radial-gradient(rgba(18, 29, 25, .13) .55px, transparent .7px);
  background-size: 5px 5px;
  mix-blend-mode: multiply;
  z-index: 20;
}

.masthead, main, footer { width: min(1220px, calc(100% - 48px)); margin-inline: auto; }
.masthead {
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; gap: 12px; align-items: center; color: inherit; text-decoration: none; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 44px;
  color: var(--paper);
  background: var(--forest);
  font: 700 13px/1.1 var(--serif);
  letter-spacing: .1em;
}
.brand b { display: block; font: 700 19px/1.1 var(--serif); letter-spacing: .04em; }
.brand small { display: block; margin-top: 3px; color: var(--muted); font: 700 9px/1 var(--sans); letter-spacing: .16em; }
.preview-stamp { display: flex; gap: 8px; align-items: center; color: var(--rust); font-size: 12px; }
.preview-stamp span { padding: 3px 5px; border: 1px solid currentColor; font-size: 9px; font-weight: 800; letter-spacing: .11em; }
.preview-stamp b { font-weight: 650; }

.hero { padding: clamp(70px, 9vw, 124px) 0 56px; }
.eyebrow, .section-index, .track-bar > p { margin: 0; color: var(--forest-bright); font-size: 10px; font-weight: 800; letter-spacing: .15em; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(270px, .7fr); gap: clamp(30px, 8vw, 120px); align-items: end; }
h1, h2, h3, p { margin-top: 0; }
h1 { max-width: 830px; margin: 18px 0 0; font: 500 clamp(45px, 6.6vw, 92px)/.99 var(--serif); letter-spacing: -.055em; }
h1 strong { color: var(--forest-bright); font-weight: 500; }
.hero-copy { max-width: 650px; margin: 34px 0 0; color: #47534d; font: 400 18px/1.8 var(--serif); }
.editor-note { position: relative; padding: 25px 0 0 24px; border-top: 3px solid var(--forest); }
.editor-note::before { content: ''; position: absolute; left: 0; top: 25px; bottom: 0; width: 1px; background: var(--line); }
.editor-note span { display: block; color: var(--rust); font-size: 10px; font-weight: 800; letter-spacing: .16em; }
.editor-note p { margin: 14px 0 0; font: 400 15px/1.75 var(--serif); }
.metrics { display: grid; grid-template-columns: repeat(3, 1fr); max-width: 660px; margin: 72px 0 0; border-top: 1px solid var(--ink); }
.metrics div { padding: 14px 18px 0 0; }
.metrics div + div { padding-left: 20px; border-left: 1px solid var(--line); }
.metrics dt { font: 500 38px/1 var(--serif); color: var(--forest); }
.metrics dd { margin: 8px 0 0; color: var(--muted); font-size: 12px; }

.track-bar { display: flex; align-items: center; gap: 34px; padding: 18px 22px; color: var(--paper); background: var(--forest); }
.track-bar > p { flex: 0 0 auto; color: var(--lime); }
.track-buttons { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); width: 100%; }
.track-button { min-height: 66px; padding: 0 16px; text-align: left; color: rgba(242, 238, 230, .72); border: 0; border-left: 1px solid rgba(242, 238, 230, .2); background: transparent; cursor: pointer; font: inherit; transition: background .2s, color .2s; }
.track-button:first-child { border-left: 0; }
.track-button span { display: block; font: 700 10px/1 var(--sans); letter-spacing: .11em; }
.track-button b { display: block; margin-top: 8px; font: 500 20px/1 var(--serif); }
.track-button:hover, .track-button[aria-selected='true'] { color: var(--ink); background: var(--lime); }

.radar-section, .workflow-section { padding: clamp(70px, 8vw, 110px) 0; }
.section-heading { display: grid; grid-template-columns: 1fr 2fr; gap: 24px; align-items: start; }
.section-heading h2 { max-width: 780px; margin: -8px 0 0; font: 500 clamp(37px, 4.5vw, 63px)/1.04 var(--serif); letter-spacing: -.045em; }
.track-brief { display: flex; gap: 12px; align-items: center; margin: 52px 0 20px; padding: 17px 19px; border-block: 1px solid var(--line); }
.track-brief .track-code { color: var(--forest); font: 700 11px/1 var(--sans); letter-spacing: .1em; }
.track-brief p { margin: 0; flex: 1; color: #435149; font: 400 16px/1.5 var(--serif); }
.product-pills { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.product-pills span { padding: 5px 8px; color: var(--forest); border: 1px solid rgba(23, 62, 53, .32); font-size: 11px; }
.study-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin: 18px 0 8px; }
.study-toolbar > p { margin: 0; color: var(--muted); font-size: 13px; }
.filter-control { display: flex; gap: 10px; align-items: center; color: var(--muted); font-size: 12px; }
select { min-width: 140px; padding: 8px 26px 8px 9px; color: var(--ink); border: 1px solid var(--line); border-radius: 0; outline: 0; background: rgba(255,255,255,.45); font: inherit; }
.study-list { border-top: 1px solid var(--ink); }
.study-card { display: grid; grid-template-columns: 72px minmax(0, 1fr) 160px; gap: 20px; padding: 25px 0; border-bottom: 1px solid var(--line); animation: reveal .35s ease both; }
.study-index { padding-top: 4px; color: var(--forest); font: 500 25px/1 var(--serif); }
.study-card h3 { margin: 7px 0 9px; font: 500 clamp(20px, 2.3vw, 28px)/1.25 var(--serif); letter-spacing: -.02em; }
.study-card h3 a { color: inherit; text-decoration: none; background: linear-gradient(var(--lime), var(--lime)) left bottom / 0 2px no-repeat; transition: background-size .25s; }
.study-card h3 a:hover { background-size: 100% 2px; }
.study-meta { display: flex; flex-wrap: wrap; gap: 7px; color: var(--muted); font-size: 11px; }
.study-meta span { padding-right: 7px; border-right: 1px solid var(--line); }
.study-meta span:last-child { padding-right: 0; border-right: 0; }
.study-summary { margin: 11px 0 0; color: #526058; font-size: 13px; }
.original-title { margin: 0; color: var(--muted); font: 400 12px/1.55 var(--serif); }
.study-side { display: flex; flex-direction: column; align-items: flex-end; gap: 25px; text-align: right; }
.status { padding: 4px 7px; color: var(--rust); border: 1px solid rgba(190,89,58,.45); font-size: 10px; white-space: nowrap; }
.source-link { color: var(--forest); font-size: 12px; font-weight: 700; text-decoration: none; }
.source-link::after { content: ' ↗'; }
.empty-state { padding: 48px 0; color: var(--muted); font: 400 18px/1.6 var(--serif); }

.guide-section { margin-inline: calc((100vw - min(1220px, calc(100vw - 48px))) / -2); padding: clamp(70px, 9vw, 118px) max(24px, calc((100vw - 1220px) / 2)); color: var(--paper); background: var(--forest); }
.section-heading.inverted .section-index { color: var(--lime); }
.guide-layout { display: grid; grid-template-columns: 1fr 2fr; gap: 24px; margin-top: 52px; }
.guide-layout > p { max-width: 325px; margin: 0; color: rgba(242,238,230,.8); font: 400 17px/1.75 var(--serif); }
.guide-plan { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; margin: 0; padding: 0; list-style: none; background: rgba(242,238,230,.2); counter-reset: guide; }
.guide-plan li { min-height: 98px; padding: 18px 18px 18px 55px; position: relative; color: rgba(242,238,230,.9); background: var(--forest); font: 400 15px/1.55 var(--serif); }
.guide-plan li::before { counter-increment: guide; content: '0' counter(guide); position: absolute; left: 17px; top: 18px; color: var(--lime); font: 700 10px/1 var(--sans); }

.workflow-grid { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 56px; border-top: 1px solid var(--ink); }
.workflow-grid article { min-height: 220px; padding: 22px 24px 0 0; border-right: 1px solid var(--line); }
.workflow-grid article + article { padding-left: 24px; }
.workflow-grid article:last-child { border-right: 0; }
.workflow-grid span { color: var(--rust); font-size: 11px; font-weight: 800; letter-spacing: .1em; }
.workflow-grid h3 { margin: 35px 0 10px; font: 500 27px/1 var(--serif); }
.workflow-grid p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.7; }
footer { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; padding: 26px 0 34px; color: var(--muted); border-top: 1px solid var(--line); font-size: 11px; }
.footer-meta { display: flex; flex-direction: column; gap: 7px; }
.icp-record { color: inherit; text-decoration: none; border-bottom: 1px solid transparent; transition: color .2s ease, border-color .2s ease; }
.icp-record:hover, .icp-record:focus-visible { color: var(--ink); border-color: currentColor; }

@keyframes reveal { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 760px) {
  .masthead, main, footer { width: min(100% - 32px, 1220px); }
  .masthead { min-height: 74px; }
  .brand small, .preview-stamp span { display: none; }
  .hero { padding-top: 65px; }
  .hero-grid, .section-heading, .guide-layout { grid-template-columns: 1fr; }
  .hero-copy { font-size: 16px; }
  .editor-note { margin-top: 10px; }
  .metrics { margin-top: 48px; }
  .metrics dt { font-size: 28px; }
  .track-bar { display: block; padding: 18px 0; }
  .track-bar > p { margin: 0 16px 12px; }
  .track-buttons { grid-template-columns: repeat(2, 1fr); }
  .track-button { border-top: 1px solid rgba(242,238,230,.2); }
  .track-button:nth-child(odd) { border-left: 0; }
  .track-brief { align-items: flex-start; flex-wrap: wrap; }
  .product-pills { justify-content: flex-start; }
  .study-toolbar { align-items: flex-start; flex-direction: column; }
  .study-card { grid-template-columns: 38px minmax(0, 1fr); gap: 12px; }
  .study-side { grid-column: 2; flex-direction: row; justify-content: space-between; align-items: center; text-align: left; }
  .guide-section { margin-inline: -16px; padding-inline: 16px; }
  .guide-plan, .workflow-grid { grid-template-columns: 1fr; }
  .workflow-grid article, .workflow-grid article + article { min-height: 0; padding: 22px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .workflow-grid h3 { margin-top: 16px; }
  footer { align-items: flex-start; flex-direction: column; }
}
