/* ============================================================
   BEIBO ARCHIVE — Shared Site Kit  ·  /assets/site.css
   档案资料室视觉：深海蓝柜体 + 米白纸页 + 珊瑚橙索引章
   ============================================================ */

/* ---------- 1. Design Tokens ---------- */
:root {
  --ink: #151B22;
  --deep: #0B2239;
  --deep-2: #12314E;
  --steel: #1B4D73;
  --silver: #C8D0D8;
  --stone: #5F6B76;
  --coral: #FF6B4A;
  --coral-deep: #D9492A;
  --jade: #1FA98C;
  --jade-deep: #0C7A63;
  --paper: #F3EFE6;
  --paper-2: #EAE4D8;
  --mist: #DDEDE8;
  --clay: #B85C38;

  --line-soft: rgba(21, 27, 34, 0.14);
  --line-mid: rgba(21, 27, 34, 0.30);
  --line-strong: rgba(21, 27, 34, 0.78);
  --line-light: rgba(200, 208, 216, 0.22);
  --line-light-strong: rgba(200, 208, 216, 0.48);

  --font-display: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",
    "Source Han Sans SC", "Noto Sans CJK SC", system-ui, sans-serif;
  --font-body: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",
    "Source Han Sans SC", "Noto Sans CJK SC", system-ui, -apple-system,
    "Segoe UI", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "Cascadia Mono", "Roboto Mono",
    Menlo, Consolas, "Courier New", monospace;

  --shell: 1320px;
  --gutter: clamp(1rem, 4vw, 3.5rem);
  --header-h: 76px;

  --shadow-hard: 6px 6px 0 rgba(11, 34, 57, 0.92);
  --shadow-hard-sm: 4px 4px 0 rgba(11, 34, 57, 0.92);
  --shadow-hard-coral: 6px 6px 0 var(--coral);
  --border-brut: 2px solid var(--ink);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- 2. Reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: clamp(0.95rem, 0.93rem + 0.18vw, 1.0625rem);
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, p, figure, blockquote, dl, dd { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
img, svg, video { display: block; max-width: 100%; }
table { border-collapse: collapse; width: 100%; }

:focus-visible {
  outline: 3px solid var(--coral);
  outline-offset: 3px;
}

::selection { background: var(--coral); color: #fff; }

#main-content { scroll-margin-top: calc(var(--header-h) + 16px); }

/* ---------- 3. Utilities ---------- */
.shell {
  width: min(var(--shell), calc(100% - var(--gutter) * 2));
  margin-inline: auto;
}

.mono { font-family: var(--font-mono); letter-spacing: 0.06em; }

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

.divider {
  height: 2px;
  border: 0;
  margin-block: clamp(1.5rem, 3vw, 2.5rem);
  background: var(--line-soft);
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--coral-deep);
}
.kicker::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--coral);
}

.headline {
  font-family: var(--font-display);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.lead {
  font-size: clamp(1rem, 0.96rem + 0.3vw, 1.1875rem);
  line-height: 1.7;
  color: var(--stone);
  max-width: 40em;
}

/* ---------- 4. Skip Link ---------- */
.skip-link {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 300;
  transform: translateY(-130%);
  padding: 0.75rem 1.15rem;
  background: var(--coral);
  color: #fff;
  font-weight: 700;
  font-size: 0.875rem;
  border: 2px solid var(--ink);
  box-shadow: var(--shadow-hard-sm);
  transition: transform 0.18s var(--ease);
}
.skip-link:focus { transform: translateY(0); }

/* ---------- 5. Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  background: transparent;
  color: var(--paper);
  border-bottom: 1px solid var(--line-light);
  transition:
    background-color 0.28s var(--ease),
    border-color 0.28s var(--ease),
    box-shadow 0.28s var(--ease);
}
.site-header.is-solid {
  background: var(--deep);
  border-bottom: 2px solid var(--coral);
  box-shadow: 0 8px 0 rgba(11, 34, 57, 0.12);
}

.header-ruler {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 5px;
  pointer-events: none;
  opacity: 0.72;
  background-image: repeating-linear-gradient(
    90deg,
    var(--line-light-strong) 0 1px,
    transparent 1px 10px
  );
}
.site-header.is-solid .header-ruler { opacity: 0.34; }

.scroll-progress {
  position: absolute;
  left: 0; bottom: 0;
  width: 100%;
  height: 3px;
  z-index: 1;
  background: var(--coral);
  transform: scaleX(0);
  transform-origin: 0 50%;
  pointer-events: none;
  will-change: transform;
}

.header-shell {
  width: min(var(--shell), calc(100% - var(--gutter) * 2));
  margin-inline: auto;
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

/* Brand */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  flex: 0 0 auto;
  min-width: 0;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  line-height: 1;
  background: var(--coral);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.15rem;
  border: 2px solid var(--paper);
  box-shadow: 3px 3px 0 rgba(4, 12, 22, 0.55);
}
.brand-text { display: block; min-width: 0; }
.brand-name {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.0625rem;
  letter-spacing: 0.06em;
  line-height: 1.25;
}
.brand-meta {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.5625rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--coral);
  line-height: 1.6;
}

/* Nav — mobile first: right drawer */
[data-nav],
.primary-nav {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 95;
  width: min(360px, 88vw);
  display: flex;
  flex-direction: column;
  padding: calc(var(--header-h) + 1.4rem) 1.4rem 2rem;
  background: var(--deep);
  border-left: 2px solid var(--silver);
  box-shadow: -30px 0 70px rgba(4, 12, 22, 0.55);
  overflow-y: auto;
  transform: translateX(103%);
  visibility: hidden;
  transition: transform 0.3s var(--ease), visibility 0.3s var(--ease);
}
[data-nav][data-open="true"] {
  transform: translateX(0);
  visibility: visible;
}

.nav-caption {
  display: block;
  margin-bottom: 1rem;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--stone);
}

.nav-list {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
}

.nav-item { min-width: 0; }

.nav-link {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1.05rem 0.2rem;
  font-weight: 600;
  font-size: 1.0625rem;
  color: rgba(243, 239, 230, 0.86);
  border-bottom: 1px solid var(--line-light);
  transition: color 0.18s var(--ease), border-color 0.18s var(--ease), background-color 0.18s var(--ease);
}
.nav-link:hover { color: #fff; }
.nav-link[aria-current="page"] {
  color: #fff;
  border-bottom-color: var(--coral);
  background: rgba(255, 107, 74, 0.09);
}

.nav-index {
  order: 2;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  color: var(--coral);
}
.nav-label { order: 1; }

.nav-foot {
  display: block;
  margin-top: auto;
  padding-top: 1.75rem;
  border-top: 1px solid var(--line-light);
}
.nav-foot-label {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--stone);
}
.nav-foot-value {
  margin: 0.25rem 0 1rem;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  letter-spacing: 0.08em;
  color: var(--mist);
}

/* Header tools */
.header-tools {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  flex: 0 0 auto;
}

.header-status {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.06em;
  color: rgba(243, 239, 230, 0.74);
  white-space: nowrap;
}
.status-dot {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--jade);
  box-shadow: 0 0 0 3px rgba(31, 169, 140, 0.22);
}
.status-prefix { display: inline; }
.status-time { display: inline; }
.status-index {
  margin-left: 0.3rem;
  padding: 0.05rem 0.4rem;
  border: 1px solid var(--line-light-strong);
  color: var(--coral);
  font-weight: 700;
  letter-spacing: 0.12em;
}

/* Toggle */
.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 40px;
  padding: 0.45rem 0.7rem;
  border: 2px solid var(--line-light-strong);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  transition: border-color 0.16s var(--ease), color 0.16s var(--ease);
}
.nav-toggle:hover { border-color: var(--coral); color: #fff; }
.nav-toggle-bars { display: grid; gap: 4px; width: 16px; }
.nav-toggle-bars i {
  display: block;
  height: 2px;
  background: currentColor;
  transition: transform 0.2s var(--ease);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bars i:first-child {
  transform: translateY(3px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bars i:last-child {
  transform: translateY(-3px) rotate(-45deg);
}
.nav-toggle-text { line-height: 1; }

body.nav-open { overflow: hidden; }

/* ---------- 6. Buttons ---------- */
.btn {
  --btn-bg: var(--coral);
  --btn-fg: #fff;
  --btn-bd: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  padding: 0.72rem 1.25rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9375rem;
  line-height: 1.3;
  letter-spacing: 0.04em;
  background: var(--btn-bg);
  color: var(--btn-fg);
  border: 2px solid var(--btn-bd);
  box-shadow: var(--shadow-hard-sm);
  transition: transform 0.16s var(--ease), box-shadow 0.16s var(--ease), background-color 0.16s var(--ease);
}
.btn:hover {
  transform: translate(-1px, -1px);
  box-shadow: 6px 6px 0 rgba(11, 34, 57, 0.9);
}
.btn:active {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 rgba(11, 34, 57, 0.9);
}

.btn-primary { --btn-bg: var(--coral); --btn-fg: #fff; --btn-bd: var(--ink); }

.btn-ghost {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  --btn-bd: var(--ink);
}

.btn-sm { padding: 0.48rem 0.85rem; font-size: 0.8125rem; }

.btn-block { width: 100%; }

.btn-header { box-shadow: 3px 3px 0 rgba(243, 239, 230, 0.26); }
.btn-header:hover { box-shadow: 5px 5px 0 rgba(243, 239, 230, 0.34); }

/* ---------- 7. Breadcrumb ---------- */
.breadcrumb { margin-block: 1.25rem; }
.breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  color: var(--stone);
}
.breadcrumb-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.breadcrumb-item + .breadcrumb-item::before {
  content: "/";
  color: var(--line-mid);
}
.breadcrumb-link {
  color: var(--stone);
  border-bottom: 1px solid var(--line-mid);
  transition: color 0.16s var(--ease), border-color 0.16s var(--ease);
}
.breadcrumb-link:hover { color: var(--coral-deep); border-bottom-color: var(--coral); }
.breadcrumb-current { color: var(--ink); font-weight: 700; }

/* ---------- 8. Grids ---------- */
.grid {
  display: grid;
  gap: clamp(1rem, 2.2vw, 1.75rem);
}
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

/* ---------- 9. Panels ---------- */
.panel {
  position: relative;
  padding: clamp(1.15rem, 2.4vw, 1.9rem);
  background: var(--paper);
  border: var(--border-brut);
  box-shadow: var(--shadow-hard);
}
.panel--deep {
  background: var(--deep);
  color: var(--paper);
  border-color: var(--deep);
  box-shadow: var(--shadow-hard-coral);
}
.panel-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.6rem 1rem;
  padding-bottom: 0.85rem;
  margin-bottom: 1rem;
  border-bottom: 2px solid var(--line-soft);
}
.panel--deep .panel-head { border-bottom-color: var(--line-light); }
.panel-index {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.22em;
  color: var(--coral);
}
.panel-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.1rem, 1rem + 0.5vw, 1.4rem);
  line-height: 1.35;
  letter-spacing: 0.01em;
}
.panel-note {
  font-size: 0.8125rem;
  line-height: 1.7;
  color: var(--stone);
}
.panel--deep .panel-note { color: rgba(243, 239, 230, 0.72); }

/* ---------- 10. Tags / Stamps / Vertical labels ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.22rem 0.55rem;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  border: 1px solid var(--line-mid);
  color: var(--stone);
  background: transparent;
}
.tag--coral {
  border-color: var(--coral);
  color: var(--coral-deep);
  background: rgba(255, 107, 74, 0.1);
}
.tag--jade {
  border-color: var(--jade);
  color: var(--jade-deep);
  background: rgba(31, 169, 140, 0.1);
}
.tag--deep {
  border-color: var(--deep);
  color: var(--paper);
  background: var(--deep);
}

.stamp {
  display: inline-grid;
  place-items: center;
  min-width: 46px;
  min-height: 46px;
  padding: 0.3rem;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.8125rem;
  letter-spacing: 0.06em;
  color: var(--clay);
  border: 2px solid var(--clay);
  transform: rotate(-4deg);
}

.v-label {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--stone);
}

/* ---------- 11. Stats ---------- */
.stat { display: grid; gap: 0.28rem; }
.stat-value {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.25rem);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.stat-label {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.16em;
  color: var(--stone);
}

/* ---------- 12. Media Frame (image slots) ---------- */
.media-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: var(--mist);
  border: 2px solid var(--ink);
  box-shadow: var(--shadow-hard);
}
.media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.media-frame--wide { aspect-ratio: 21 / 9; }
.media-frame--square { aspect-ratio: 1 / 1; }
.media-frame--tall { aspect-ratio: 4 / 5; }

.media-caption {
  margin-top: 0.65rem;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  color: var(--stone);
}

/* ---------- 13. Prose ---------- */
.prose {
  max-width: 44em;
  font-size: 1rem;
  line-height: 1.78;
}
.prose > * + * { margin-top: 1.15em; }
.prose h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.25rem, 1.1rem + 0.5vw, 1.5rem);
  line-height: 1.35;
}
.prose h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.0625rem;
  line-height: 1.45;
}
.prose ul { display: grid; gap: 0.45em; }
.prose ul li {
  position: relative;
  padding-left: 1.25em;
}
.prose ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.78em;
  width: 8px;
  height: 2px;
  background: var(--coral);
}
.prose a {
  color: var(--coral-deep);
  border-bottom: 1px solid currentColor;
}
.prose strong { font-weight: 800; }

/* ---------- 14. Footer ---------- */
.site-footer {
  position: relative;
  margin-top: clamp(3rem, 7vw, 6rem);
  padding: clamp(2.5rem, 5vw, 4rem) 0 0;
  background: var(--deep);
  color: rgba(243, 239, 230, 0.76);
  border-top: 3px solid var(--coral);
}
.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(200, 208, 216, 0.07) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(200, 208, 216, 0.07) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.9), transparent 72%);
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.9), transparent 72%);
}
.footer-shell {
  position: relative;
  z-index: 1;
  width: min(var(--shell), calc(100% - var(--gutter) * 2));
  margin-inline: auto;
}

.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.5fr) minmax(0, 1fr);
  gap: clamp(1.75rem, 4vw, 3rem);
  padding-bottom: clamp(2rem, 4vw, 3rem);
}

.footer-brand { min-width: 0; }
.brand--footer .brand-mark {
  background: transparent;
  border-color: var(--coral);
  color: var(--coral);
  box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.42);
}
.footer-summary {
  margin-top: 1.15rem;
  max-width: 32ch;
  font-size: 0.9375rem;
  line-height: 1.75;
  color: rgba(243, 239, 230, 0.72);
}
.footer-version {
  display: inline-block;
  margin-top: 1.1rem;
  padding: 0.32rem 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.16em;
  color: var(--mist);
  border: 1px solid var(--line-light-strong);
  border-left: 3px solid var(--jade);
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  min-width: 0;
}
.footer-col { min-width: 0; }
.footer-col-title {
  margin-bottom: 1rem;
  padding-bottom: 0.55rem;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--coral);
  border-bottom: 1px solid var(--line-light);
}
.footer-link-list { display: grid; gap: 0.55rem; }
.footer-link-list a {
  display: inline-block;
  font-size: 0.9375rem;
  color: rgba(243, 239, 230, 0.78);
  border-bottom: 1px solid transparent;
  transition: color 0.16s var(--ease), border-color 0.16s var(--ease);
}
.footer-link-list a:hover { color: #fff; border-bottom-color: var(--coral); }

.footer-contact { min-width: 0; }
.footer-contact-list { display: grid; gap: 0.9rem; }
.footer-contact-list li { display: grid; gap: 0.15rem; }
.footer-label {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--stone);
}
.footer-value {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: rgba(243, 239, 230, 0.88);
  overflow-wrap: anywhere;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 0 1.5rem;
  border-top: 1px solid var(--line-light);
}
.footer-legal {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  color: rgba(200, 208, 216, 0.66);
}
.footer-legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.25rem;
}
.footer-legal-links a {
  font-size: 0.8125rem;
  color: rgba(243, 239, 230, 0.7);
  border-bottom: 1px solid transparent;
  transition: color 0.16s var(--ease), border-color 0.16s var(--ease);
}
.footer-legal-links a:hover { color: #fff; border-bottom-color: var(--coral); }

.to-top {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.48rem 0.85rem;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  color: var(--mist);
  border: 2px solid var(--line-light-strong);
  transition: background-color 0.16s var(--ease), border-color 0.16s var(--ease), color 0.16s var(--ease);
}
.to-top:hover {
  background: var(--coral);
  border-color: var(--coral);
  color: #fff;
}

/* ---------- 15. Breakpoints ---------- */
@media (max-width: 1080px) {
  :root { --header-h: 64px; }

  .brand-mark { width: 34px; height: 34px; font-size: 1rem; }
  .brand-name { font-size: 1rem; }

  .btn-header { display: none; }
  .header-status { font-size: 0.625rem; }
  .status-index { padding: 0.02rem 0.32rem; }
}

@media (max-width: 640px) {
  .status-prefix { display: none; }
  .brand-meta { letter-spacing: 0.18em; }
  .nav-toggle { padding: 0.42rem 0.55rem; }
  .nav-toggle-text { display: none; }
}

@media (min-width: 1081px) {
  .header-shell {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: clamp(1rem, 2.4vw, 2.4rem);
  }

  [data-nav] {
    position: static;
    width: auto;
    height: auto;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 0;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
    overflow: visible;
    transform: none;
    visibility: visible;
  }

  [data-nav] .nav-caption { display: none; }
  [data-nav] .nav-foot { display: none; }

  [data-nav] .nav-list {
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: clamp(0.35rem, 1.3vw, 1.3rem);
  }

  [data-nav] .nav-link {
    display: inline-flex;
    width: auto;
    align-items: baseline;
    justify-content: center;
    gap: 0.45em;
    padding: 0.9rem 0.28rem;
    font-size: 0.9375rem;
    color: rgba(243, 239, 230, 0.78);
    border-bottom: 2px solid transparent;
    background: transparent;
  }
  [data-nav] .nav-link:hover {
    color: #fff;
    border-bottom-color: rgba(255, 107, 74, 0.55);
    background: transparent;
  }
  [data-nav] .nav-link[aria-current="page"] {
    color: #fff;
    border-bottom-color: var(--coral);
    background: transparent;
  }
  [data-nav] .nav-index { order: 0; font-size: 0.625rem; }
  [data-nav] .nav-label { order: 0; }

  .nav-toggle { display: none; }
}

@media (max-width: 980px) {
  .footer-top { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  .footer-top { grid-template-columns: minmax(0, 1fr); }
  .footer-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .footer-summary { max-width: none; }
}

/* ---------- 16. Reduced Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }

  .btn:hover,
  .btn:active { transform: none; }
}
