/* ============================================================
   邮票 · 票品档案 — 首页与全站共享样式
   设计基线：03-ui/home-ui-desktop.png（1024×1536 → 1440×2160）
   配色：深海军蓝纸面 + 香槟金 + 米色档案卡
   ============================================================ */

:root {
  /* 纸面与墨色 */
  --bg: #0e1e31;
  --bg-deep: #0a1727;
  --bg-soft: #16283f;
  --panel: #e8d3aa;
  --panel-2: #dfc69a;
  --panel-3: #f0e0bd;
  --ink: #241b10;
  --ink-soft: #5b4830;

  /* 强调色 */
  --gold: #d9b877;
  --gold-bright: #efdcae;
  --gold-deep: #a8813c;
  --red: #a83226;

  /* 深色底上的文字 */
  --cream: #f0e3c8;
  --muted: #b6a88c;
  --line: rgba(217, 184, 119, 0.26);
  --line-strong: rgba(217, 184, 119, 0.55);

  /* 版式 */
  --wrap: 1286px;
  --serif: 'Songti SC',SimSun,'Noto Serif SC',Georgia,serif;
  --sans: 'PingFang SC','Microsoft YaHei','Noto Sans SC',-apple-system,BlinkMacSystemFont,'Segoe UI',Arial,sans-serif;

  /* 字号阶（1440 基准） */
  --fs-hero: 56px;
  --fs-lede: 19px;
  --fs-ribbon: 17px;
  --fs-h2: 20px;
  --fs-h3: 16px;
  --fs-body: 13px;
  --fs-small: 11.5px;
  --fs-tiny: 10.5px;

  --shadow-panel: 0 14px 30px rgba(0, 0, 0, 0.28);
}

*,
*::before,
*::after { box-sizing: border-box; }

[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--cream);
  font-family:'PingFang SC','Microsoft YaHei','Noto Sans SC',-apple-system,BlinkMacSystemFont,'Segoe UI',Arial,sans-serif;
  font-size: var(--fs-body);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; height: auto; }

a { color: inherit; text-decoration: none; }

h1, h2, h3 { font-family: var(--serif); font-weight: 600; margin: 0; }

p { margin: 0; }

ul, ol, dl, dd { margin: 0; padding: 0; }

li { list-style: none; }

button, input, select { font: inherit; color: inherit; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 8px 16px;
  background: var(--gold);
  color: var(--ink);
  border-radius: 3px;
  transition: top 0.18s ease;
}
.skip-link:focus { top: 12px; }

:focus-visible {
  outline: 2px solid var(--gold-bright);
  outline-offset: 3px;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------------------------------------------------------- 页头 */
.site-header {
  position: relative;
  z-index: 40;
  height: 79px;
  background: var(--bg-deep);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: none;
}

.brand-mark {
  display: block;
  width: 40px;
  height: 40px;
  color: var(--gold);
}
.brand-mark svg { width: 100%; height: 100%; display: block; }

.brand-text { display: flex; flex-direction: column; line-height: 1.25; }

.brand-name {
  font-family: var(--serif);
  font-size: 21px;
  letter-spacing: 0.16em;
  color: var(--gold-bright);
}

.brand-sub {
  font-size: 10.5px;
  letter-spacing: 0.28em;
  color: var(--muted);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0;
}

.site-nav a {
  position: relative;
  padding: 6px 18px;
  font-size: 14.5px;
  color: #e5d7ba;
  letter-spacing: 0.02em;
  transition: color 0.16s ease;
}
.site-nav a + a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 1px;
  height: 14px;
  transform: translateY(-50%);
  background: var(--line);
}
.site-nav a:hover,
.site-nav a:focus-visible { color: var(--gold-bright); }
.site-nav a[aria-current="page"] { color: var(--gold-bright); }
.site-nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 0;
  height: 2px;
  background: var(--gold);
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  color: var(--cream);
  cursor: pointer;
}
.nav-toggle:hover { border-color: var(--gold); }
.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 16px;
  height: 1.5px;
  background: currentColor;
  content: "";
  position: relative;
}
.nav-toggle-bars::before { position: absolute; top: -5px; }
.nav-toggle-bars::after { position: absolute; top: 5px; }
.nav-toggle-text { font-size: 12px; letter-spacing: 0.12em; }

/* ---------------------------------------------------------- 首屏 */
.hero {
  position: relative;
  max-width: 1440px;
  margin: 0 auto;
  height: 509px;
  overflow: hidden;
  background:
    radial-gradient(120% 90% at 75% 30%, rgba(50, 88, 126, 0.5), transparent 62%),
    linear-gradient(180deg, #0f2036 0%, #0e1e31 100%);
}

.hero-inner {
  position: relative;
  height: 100%;
  padding: 40px 0 0 77px;
  max-width: var(--wrap);
  margin: 0 auto;
}

.hero-copy {
  position: relative;
  z-index: 2;
  width: 54%;
  max-width: 640px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  font-size: 11px;
  letter-spacing: 0.34em;
  color: var(--gold);
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--gold);
}

.hero h1 {
  font-size: var(--fs-hero);
  line-height: 1.22;
  letter-spacing: 0.03em;
  color: #f4e7ca;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
}

.hero-lede {
  margin-top: 18px;
  max-width: 520px;
  font-size: var(--fs-lede);
  line-height: 1.72;
  color: #cfc3a9;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 26px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 46px;
  padding: 0 26px;
  border-radius: 4px;
  font-size: 14px;
  letter-spacing: 0.06em;
  border: 1px solid transparent;
  transition: transform 0.16s ease, background 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-gold {
  background: linear-gradient(180deg, #f2ddaa, #d5b071);
  color: #3a2a14;
  border-color: #e6cd97;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.28);
}
.btn-gold:hover { background: linear-gradient(180deg, #f7e6b9, #ddba7d); }

.btn-ghost {
  color: var(--gold-bright);
  border-color: var(--line-strong);
  background: rgba(20, 40, 64, 0.35);
}
.btn-ghost:hover { border-color: var(--gold); background: rgba(28, 52, 80, 0.6); }

.btn-arrow { width: 15px; height: 15px; }

.hero-stats {
  display: flex;
  gap: 46px;
  margin-top: 24px;
}
.hero-stats li { display: flex; align-items: baseline; gap: 8px; }
.hero-stats strong {
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 600;
  color: var(--gold-bright);
  letter-spacing: 0.02em;
}
.hero-stats span { font-size: 12px; color: var(--muted); letter-spacing: 0.08em; }

.hero-media {
  position: absolute;
  top: 0;
  right: 0;
  width: 52%;
  height: 100%;
  margin: 0;
  overflow: hidden;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 58% 50%;
}
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #0f2036 0%, rgba(15, 32, 54, 0.55) 22%, rgba(15, 32, 54, 0) 48%);
}

/* ---------------------------------------------------------- 通用区块与金色横幅 */
.section { position: relative; }

.ribbon {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  gap: 12px;
  width: fit-content;
  max-width: 100%;
  margin: 0 auto;
  padding: 7px 34px;
  color: #3a2a15;
  background: linear-gradient(180deg, #f3dfae 0%, #e2c58b 55%, #d4b271 100%);
  border: 1px solid #f7e9c4;
  box-shadow: inset 0 0 0 2px rgba(120, 86, 30, 0.22), 0 6px 18px rgba(0, 0, 0, 0.22);
  clip-path: polygon(14px 0, calc(100% - 14px) 0, 100% 50%, calc(100% - 14px) 100%, 14px 100%, 0 50%);
}
.ribbon h2 {
  font-size: var(--fs-ribbon);
  letter-spacing: 0.06em;
  white-space: nowrap;
}
.ribbon p { font-size: 13.5px; color: #5b4623; }

/* ---------------------------------------------------------- 分类索引 */
.categories { padding: 14px 0 20px; }

.cat-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
  margin-top: 12px;
}

.cat-card {
  position: relative;
  background: linear-gradient(180deg, #f6e8c8 0%, #e6d0a6 60%, #dcc394 100%);
  border: 1px solid rgba(122, 90, 38, 0.6);
  border-radius: 3px;
  box-shadow: var(--shadow-panel), inset 0 0 0 1px rgba(255, 247, 224, 0.5);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.cat-card::before,
.cat-card::after {
  content: "";
  position: absolute;
  width: 10px;
  height: 10px;
  border: 1px solid rgba(122, 90, 38, 0.55);
  pointer-events: none;
}
.cat-card::before { top: 5px; left: 5px; border-right: 0; border-bottom: 0; }
.cat-card::after { bottom: 5px; right: 5px; border-left: 0; border-top: 0; }

.cat-card:hover { transform: translateY(-3px); box-shadow: 0 20px 36px rgba(0, 0, 0, 0.34), inset 0 0 0 1px rgba(255, 247, 224, 0.6); }

.cat-card a {
  display: block;
  height: 100%;
  padding: 14px 12px 10px;
  color: var(--ink);
  text-align: center;
}

.cat-num {
  position: absolute;
  top: -9px;
  left: 50%;
  transform: translateX(-50%);
  padding: 1px 12px;
  font-family: var(--serif);
  font-size: 13px;
  letter-spacing: 0.14em;
  color: #4a3418;
  background: linear-gradient(180deg, #f7e6ba, #dcc088);
  border: 1px solid rgba(122, 90, 38, 0.55);
  border-radius: 2px;
}

.cat-card img {
  width: 100%;
  height: 90px;
  object-fit: cover;
  border: 1px solid rgba(82, 60, 24, 0.45);
}

.cat-card h3 {
  margin-top: 6px;
  font-size: 15px;
  letter-spacing: 0.02em;
  color: #2c2011;
}

.cat-card p {
  margin-top: 4px;
  min-height: 30px;
  font-size: 11px;
  line-height: 1.45;
  color: #55401f;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cat-kw {
  display: block;
  margin-top: 5px;
  padding-top: 4px;
  border-top: 1px solid rgba(122, 90, 38, 0.28);
  font-size: var(--fs-tiny);
  letter-spacing: 0.04em;
  color: #7a6134;
}

/* ---------------------------------------------------------- 精选 */
.featured { padding: 14px 0 18px; }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 12px;
}

.feature-card {
  background: linear-gradient(180deg, #f4e5c4 0%, #e3cba1 100%);
  border: 1px solid rgba(122, 90, 38, 0.6);
  border-radius: 3px;
  box-shadow: var(--shadow-panel);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.feature-card:hover { transform: translateY(-3px); box-shadow: 0 20px 36px rgba(0, 0, 0, 0.34); }

.feature-card a {
  display: grid;
  grid-template-columns: 100px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 10px;
  height: 100%;
  color: var(--ink);
}

.feature-card img {
  width: 100px;
  height: 124px;
  object-fit: cover;
  border: 1px solid rgba(82, 60, 24, 0.45);
}

.year-pill {
  display: inline-block;
  padding: 1px 10px;
  font-family: var(--serif);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: #f0e0bd;
  background: linear-gradient(180deg, #8e6b2c, #6d4f1d);
  border: 1px solid #b89352;
  border-radius: 2px;
}

.feature-body h3 {
  margin-top: 6px;
  font-size: 18px;
  letter-spacing: 0.02em;
  color: #2c2011;
}

.feature-body p {
  margin-top: 4px;
  font-size: 11.5px;
  line-height: 1.5;
  color: #55401f;
}

/* ---------------------------------------------------------- 时间轴 */
.timeline { padding: 18px 0 27px; }

.timeline-track {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 58px;
  padding-top: 34px;
}
.timeline-track::before {
  content: "";
  position: absolute;
  top: 0;
  left: 4%;
  right: 4%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold) 12%, var(--gold) 88%, transparent);
  opacity: 0.65;
}

.timeline-track li { position: relative; text-align: center; padding: 0 8px; }

.tl-dot {
  position: absolute;
  top: -37px;
  left: 50%;
  width: 11px;
  height: 11px;
  transform: translateX(-50%) rotate(45deg);
  background: linear-gradient(180deg, #f7e6ba, #cda964);
  border: 1px solid #f7e9c4;
  box-shadow: 0 0 0 4px rgba(217, 184, 119, 0.16);
}

.tl-year {
  display: block;
  font-family: var(--serif);
  font-size: 27px;
  letter-spacing: 0.04em;
  color: var(--gold-bright);
}

.timeline-track h3 {
  margin-top: 6px;
  font-size: 15.5px;
  color: #f0e3c8;
}

.timeline-track p {
  margin-top: 6px;
  font-size: 12px;
  line-height: 1.6;
  color: var(--muted);
}

/* ---------------------------------------------------------- 五处细节 */
.anatomy { padding: 8px 0 10px; }

.anatomy-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin-top: 8px;
}

.anatomy-grid figure {
  position: relative;
  margin: 0;
  background: rgba(233, 212, 171, 0.06);
  border: 1px solid var(--line);
  border-radius: 3px;
  overflow: hidden;
}
.an-card { outline-offset: -2px; cursor: pointer; }

.anatomy-grid img {
  width: 100%;
  height: 100px;
  object-fit: cover;
  border-bottom: 1px solid var(--line);
  transition: transform 0.3s ease;
}
.an-card:hover img,
.an-card:focus-visible img { transform: scale(1.04); }

.an-num {
  position: absolute;
  top: 6px;
  left: 6px;
  z-index: 2;
  padding: 0 7px;
  font-family: var(--serif);
  font-size: 10.5px;
  letter-spacing: 0.04em;
  color: #3a2a15;
  background: linear-gradient(180deg, #f3dfae, #d7b776);
  border-radius: 2px;
}

.anatomy-grid figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 18px 10px 8px;
  background: linear-gradient(180deg, rgba(10, 23, 39, 0), rgba(10, 23, 39, 0.94) 42%);
  transform: translateY(102%);
  transition: transform 0.22s ease;
}
.an-card:hover figcaption,
.an-card:focus-visible figcaption,
.an-card:focus-within figcaption { transform: translateY(0); }

.anatomy-grid h3 {
  font-size: 13px;
  color: var(--gold-bright);
  letter-spacing: 0.04em;
}

.anatomy-grid p {
  margin-top: 2px;
  font-size: 10.5px;
  line-height: 1.45;
  color: #d8cbaf;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ---------------------------------------------------------- 品相与术语 */
.grades { padding: 10px 0 12px; }

.grades-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) 148px minmax(0, 0.98fr);
  gap: 16px;
  align-items: stretch;
}

.panel {
  padding: 10px 15px 9px;
  color: var(--ink);
  background: linear-gradient(160deg, #f3e3c1 0%, #e6d1a8 55%, #dcc394 100%);
  border: 1px solid rgba(122, 90, 38, 0.6);
  border-radius: 3px;
  box-shadow: var(--shadow-panel);
}

.panel h2 {
  font-size: var(--fs-h2);
  letter-spacing: 0.04em;
  color: #2c2011;
}

.panel-lede {
  margin-top: 3px;
  font-size: 11.5px;
  line-height: 1.55;
  color: #5d4726;
}

.grade-table {
  width: 100%;
  margin-top: 7px;
  border-collapse: collapse;
  font-size: 11.5px;
  line-height: 1.5;
}
.grade-table th,
.grade-table td {
  padding: 3px 8px;
  text-align: left;
  border-bottom: 1px solid rgba(122, 90, 38, 0.3);
  vertical-align: top;
}
.grade-table thead th {
  font-family: var(--serif);
  font-weight: 600;
  color: #4a3418;
  background: rgba(122, 90, 38, 0.14);
  border-bottom: 1px solid rgba(122, 90, 38, 0.45);
}
.grade-table tbody th {
  width: 62px;
  font-weight: 600;
  color: #3a2a15;
  white-space: nowrap;
}
.grade-table td { color: #4f3c1f; }

.grade-media {
  margin: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  text-align: center;
}
.grade-media img {
  width: 100%;
  height: 148px;
  object-fit: cover;
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-panel);
}
.grade-media figcaption { font-size: var(--fs-tiny); line-height: 1.5; color: var(--muted); }

.glossary-panel {
  color: var(--cream);
  background: rgba(10, 23, 39, 0.55);
  border-color: var(--line-strong);
  box-shadow: none;
}
.glossary-panel h2 { color: var(--gold-bright); }
.glossary-panel .panel-lede { color: var(--muted); }

.glossary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(5, auto);
  grid-auto-flow: column;
  gap: 0 20px;
  margin-top: 8px;
  counter-reset: term;
}
.glossary > div {
  display: flex;
  gap: 7px;
  align-items: baseline;
  padding: 3px 0;
  border-bottom: 1px solid rgba(217, 184, 119, 0.22);
}
.glossary > div::before {
  counter-increment: term;
  content: counter(term, decimal-leading-zero);
  flex: none;
  font-family: var(--serif);
  font-size: 10px;
  color: var(--gold);
}
.glossary dt {
  flex: none;
  font-family: var(--serif);
  font-size: 12px;
  font-weight: 600;
  color: var(--gold-bright);
}
.glossary dd { font-size: 10.5px; color: #d5c8ab; line-height: 1.45; }

/* ---------------------------------------------------------- 收录说明 */
.archive-note {
  padding: 8px 0;
  background:
    radial-gradient(90% 160% at 78% 40%, rgba(70, 110, 150, 0.28), transparent 65%),
    linear-gradient(180deg, #0e1e31, #0c1a2c);
}
.note-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 46%;
  gap: 28px;
  align-items: center;
  padding-top: 12px;
  padding-bottom: 12px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.note-copy h2 { font-size: 20px; color: var(--gold-bright); letter-spacing: 0.04em; }
.note-copy p {
  margin-top: 7px;
  font-size: 13px;
  line-height: 1.65;
  color: #ded1b6;
}
.note-copy p + p { margin-top: 6px; }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--gold);
  border-bottom: 1px solid transparent;
  transition: color 0.16s ease, border-color 0.16s ease;
}
.text-link:hover { color: var(--gold-bright); border-bottom-color: var(--gold); }
.text-link svg { width: 15px; height: 15px; }

.note-media { margin: 0; }
.note-media img {
  width: 100%;
  height: 130px;
  object-fit: cover;
  border: 1px solid var(--line-strong);
}
.note-media figcaption { margin-top: 5px; font-size: var(--fs-tiny); color: var(--muted); }

/* ---------------------------------------------------------- 页脚 */
.site-footer {
  background: var(--bg-deep);
  border-top: 1px solid var(--line);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 26px;
  padding-top: 22px;
  padding-bottom: 22px;
  position: relative;
}
.footer-brand { flex: 1 1 300px; min-width: 260px; }
.footer-col { flex: 1 1 170px; min-width: 150px; }

.brand-footer .brand-name { font-size: 17px; }
.brand-footer .brand-mark { width: 30px; height: 30px; }

.footer-brand p {
  margin-top: 6px;
  max-width: 560px;
  font-size: 10.5px;
  line-height: 1.6;
  color: var(--muted);
}

.footer-col h2 {
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--gold);
  font-family:'PingFang SC','Microsoft YaHei','Noto Sans SC',-apple-system,BlinkMacSystemFont,'Segoe UI',Arial,sans-serif;
  font-weight: 500;
}
.footer-col ul { margin-top: 6px; display: grid; grid-template-columns: 1fr 1fr; gap: 1px 12px; }
.footer-col a {
  font-size: 10.5px;
  line-height: 1.6;
  color: #cbbda1;
  transition: color 0.16s ease;
}
.footer-col a:hover { color: var(--gold-bright); }

.footer-legal {
  flex: 1 1 100%;
  margin-top: 4px;
  padding-top: 10px;
  border-top: 1px solid var(--line-alt);
  font-size: var(--fs-tiny);
  color: #8f836c;
}

/* ---------------------------------------------------------- 响应式 */
@media (max-width: 1280px) {
  .hero-inner { padding-left: 40px; }
  .hero-copy { width: 58%; }
  .hero-stats { gap: 32px; }
}

@media (max-width: 1100px) {
  .site-nav a { padding: 6px 11px; font-size: 13.5px; }
  .hero { height: auto; min-height: 470px; }
  .hero-inner { padding: 38px 24px 44px; }
  .hero-media { width: 46%; opacity: 0.85; }
  .cat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cat-card img { height: 132px; }
  .anatomy-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grades-grid { grid-template-columns: minmax(0, 1fr) 140px; }
  .glossary-panel { grid-column: 1 / -1; }
  .glossary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .site-header { height: auto; }
  .header-inner { flex-wrap: wrap; padding: 10px 0 0; }
  .site-nav {
    position: static;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    flex: 1 1 100%;
    width: 100%;
    gap: 0;
    padding: 4px 0 8px;
    background: none;
    border-bottom: none;
    box-shadow: none;
  }
  .site-nav a { padding: 7px 9px; font-size: 13px; border-top: none; white-space: nowrap; }
  .site-nav a + a::before { display: none; }
  .site-nav a[aria-current="page"]::after { left: 9px; right: 9px; bottom: 2px; }

  .hero { min-height: 0; }
  .hero-inner { display: flex; flex-direction: column; padding: 32px 24px 38px; }
  .hero-copy { width: 100%; }
  .hero-media { position: relative; width: 100%; height: 240px; margin-top: 26px; order: 2; }
  .hero-media::after { background: linear-gradient(180deg, rgba(15, 32, 54, 0.6), rgba(15, 32, 54, 0)); }
  .hero h1 { font-size: 42px; }
  .hero-lede { font-size: 17px; }

  .feature-grid { grid-template-columns: 1fr; }
  .feature-card a { grid-template-columns: 96px minmax(0, 1fr); }
  .feature-card img { width: 96px; height: 118px; }

  .timeline-track { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 42px; }
  .timeline-track::before { display: none; }
  .tl-dot { display: none; }

  .anatomy-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .anatomy-grid img { height: 118px; }
  .anatomy-grid figcaption {
    position: static;
    transform: none;
    padding: 6px 9px 8px;
    background: none;
  }

  .grades-grid { grid-template-columns: 1fr; }
  .grade-media { flex-direction: row; align-items: center; text-align: left; gap: 12px; }
  .grade-media img { width: 96px; height: 140px; }
  .note-inner { grid-template-columns: 1fr; }
  .note-media img { height: 180px; }

  .footer-inner { flex-direction: column; }
  .footer-brand, .footer-col { flex: 1 1 auto; width: 100%; min-width: 0; }
}

@media (max-width: 620px) {
  .wrap { padding: 0 18px; }
  .brand-name { font-size: 18px; }
  .brand-sub { font-size: 9.5px; }
  .hero h1 { font-size: 36px; }
  .hero-lede { font-size: 15.5px; }
  .hero-stats { gap: 22px; flex-wrap: wrap; }
  .hero-stats strong { font-size: 24px; }
  .hero-media { height: 200px; }

  .ribbon { padding: 7px 22px; clip-path: none; border-radius: 3px; }
  .ribbon h2 { font-size: 15.5px; }
  .ribbon p { font-size: 12px; }

  .cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .cat-card img { height: 108px; }
  .cat-card p { min-height: 0; }

  .anatomy-grid { grid-template-columns: 1fr; }
  .anatomy-grid img { height: 150px; }

  .glossary { grid-template-columns: 1fr; grid-template-rows: none; grid-auto-flow: row; }
  .note-copy h2 { font-size: 20px; }
  .note-copy p { font-size: 13.5px; }

  .footer-inner { flex-direction: column; gap: 18px; }
}

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