/* ============================================================
   财神到游戏 · 共享站点样式 /assets/site.css
   新中式数字财库 · 纵向叙事长卷
   ============================================================ */

/* ---------- 1. RESET ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

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

body,
h1, h2, h3, h4, h5, h6,
p, figure, blockquote, dl, dd,
ul, ol { margin: 0; }

ul[class],
ol[class] { list-style: none; padding: 0; }

img, svg, video, picture { display: block; max-width: 100%; }

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

button {
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

a { color: inherit; }

table { border-collapse: collapse; }

[hidden] { display: none !important; }

/* ---------- 2. TOKENS ---------- */
:root {
  /* 色彩 */
  --cinnabar: #B32B24;
  --cinnabar-deep: #7E1B16;
  --gold: #C89A3D;
  --gold-bright: #E8C368;
  --gold-deep: #8A6520;
  --ink: #17130F;
  --paper: #F4EDDF;
  --paper-warm: #E9DCC4;
  --jade: #2F7C6B;
  --jade-deep: #256557;
  --mist: #6B6157;
  --glass: rgba(255, 255, 255, 0.55);

  --ink-80: rgba(23, 19, 15, 0.8);
  --ink-60: rgba(23, 19, 15, 0.6);
  --line: rgba(23, 19, 15, 0.14);
  --line-gold: rgba(200, 154, 61, 0.42);
  --paper-16: rgba(244, 237, 223, 0.16);

  /* 字体 */
  --font-display: "Noto Serif SC", "Source Han Serif SC", "Songti SC", serif;
  --font-body: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", "SFMono-Regular", ui-monospace, monospace;
  --font-label: "Kaiti SC", "STKaiti", "Noto Serif SC", serif;

  /* 度量 */
  --wrap: 1200px;
  --wrap-narrow: 720px;
  --gutter: clamp(18px, 4vw, 48px);
  --dur: 320ms;
  --ease: cubic-bezier(0.2, 0.7, 0.3, 1);
  --radius: 2px;
}

/* ---------- 3. BASE ---------- */
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink);
  background-color: var(--paper);
  background-image:
    radial-gradient(circle at 50% 50%, rgba(200, 154, 61, 0.14) 0 1.2px, transparent 1.3px);
  background-size: 52px 52px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.28;
  letter-spacing: -0.02em;
}

strong { font-weight: 700; }

::selection {
  background: var(--cinnabar);
  color: var(--paper);
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
  box-shadow: 0 0 0 1px var(--ink);
}

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

/* ---------- 4. LAYOUT ---------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.wrap--narrow { max-width: var(--wrap-narrow); }

.stack {
  display: grid;
  gap: clamp(12px, 2vw, 20px);
}

.grid { display: grid; gap: clamp(18px, 3vw, 40px); }
.grid--5-7 { grid-template-columns: 5fr 7fr; }
.grid--4-8 { grid-template-columns: 4fr 8fr; }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* ---------- 5. HEADER ---------- */
.scroll-progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 3px;
  z-index: 90;
  background: rgba(179, 43, 36, 0.12);
  pointer-events: none;
}

.scroll-progress__bar {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--cinnabar) 0%, var(--gold-bright) 100%);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 120ms linear;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  color: var(--ink);
  background: rgba(244, 237, 223, 0.94);
  -webkit-backdrop-filter: blur(12px) saturate(1.1);
  backdrop-filter: blur(12px) saturate(1.1);
  border-bottom: 1px solid var(--line-gold);
}

.site-header::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg,
    var(--cinnabar-deep) 0%,
    var(--cinnabar) 28%,
    var(--gold) 50%,
    var(--cinnabar) 72%,
    var(--cinnabar-deep) 100%);
  pointer-events: none;
}

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -90px;
  z-index: 120;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 20px;
  background: var(--ink);
  color: var(--paper);
  font-size: 14px;
  letter-spacing: 0.08em;
  text-decoration: none;
  border: 1px solid var(--gold);
  border-radius: var(--radius);
  transition: top 200ms var(--ease);
}

.skip-link:focus,
.skip-link:focus-visible { top: 10px; }

.header-inner {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.masthead {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: clamp(12px, 3vw, 32px);
  padding-block: clamp(10px, 1.6vw, 16px);
  transition: padding-block 300ms var(--ease);
}

.site-header[data-compact] .masthead { padding-block: 6px; }

/* 品牌印章 */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  text-decoration: none;
}

.brand-seal {
  display: grid;
  place-items: center;
  flex: none;
  width: 40px;
  height: 40px;
  background: var(--cinnabar);
  color: var(--paper);
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 900;
  line-height: 1;
  border-radius: 3px;
  box-shadow: inset 0 0 0 2px rgba(232, 195, 104, 0.55);
  transition: transform 160ms var(--ease), background-color 200ms var(--ease);
}

.brand:hover .brand-seal,
.brand:focus-visible .brand-seal {
  transform: scale(0.95) rotate(-3deg);
  background: var(--cinnabar-deep);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  min-width: 0;
}

.brand-name {
  font-family: var(--font-display);
  font-size: clamp(20px, 2.2vw, 26px);
  font-weight: 900;
  letter-spacing: 0.06em;
  color: var(--ink);
}

.brand-line {
  font-family: var(--font-label);
  font-size: 11px;
  letter-spacing: 0.24em;
  color: var(--mist);
  max-height: 1.7em;
  overflow: hidden;
  transition: max-height 300ms var(--ease), opacity 300ms var(--ease);
}

.site-header[data-compact] .brand-line {
  max-height: 0;
  opacity: 0;
}

/* 刊头中间小注 */
.masthead-meta {
  display: flex;
  justify-content: center;
  min-width: 0;
}

.masthead-label {
  position: relative;
  padding-inline: 12px;
  font-family: var(--font-label);
  font-size: 12px;
  letter-spacing: 0.3em;
  color: var(--mist);
  white-space: nowrap;
}

.masthead-label::before,
.masthead-label::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 24px;
  height: 1px;
  background: var(--line-gold);
}

.masthead-label::before { right: 100%; }
.masthead-label::after { left: 100%; }

.masthead-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-self: end;
}

/* 移动导航按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  color: var(--cinnabar);
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid var(--line-gold);
  border-radius: 3px;
  transition: background-color 180ms var(--ease), border-color 180ms var(--ease);
}

.nav-toggle:hover { border-color: var(--cinnabar); }

.nav-toggle-bars {
  position: relative;
  display: block;
  width: 20px;
  height: 2px;
  background: currentColor;
  transition: transform 200ms var(--ease);
}

.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 20px;
  height: 2px;
  background: currentColor;
  transition: transform 200ms var(--ease), opacity 160ms var(--ease);
}

.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }

.nav-toggle[aria-expanded="true"] .nav-toggle-bars { transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(6px) rotate(-90deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { opacity: 0; }

/* 导航 */
.site-nav {
  display: block;
  border-top: 1px solid var(--line);
}

.nav-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: clamp(2px, 1.6vw, 26px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-list a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 6px;
  font-family: var(--font-label);
  font-size: 15px;
  letter-spacing: 0.16em;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
  transition: color 180ms var(--ease);
}

.nav-list a::after {
  content: "";
  position: absolute;
  left: 6px;
  right: 6px;
  bottom: 8px;
  height: 1px;
  background: var(--cinnabar);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 200ms var(--ease);
}

.nav-list a:hover { color: var(--cinnabar); }
.nav-list a:hover::after { transform: scaleX(1); }

.nav-list a[aria-current="page"] {
  color: var(--cinnabar);
  font-weight: 700;
}

.nav-list a[aria-current="page"]::after {
  transform: scaleX(1);
  height: 2px;
  background: var(--gold);
}

/* ---------- 6. FOOTER ---------- */
.site-footer {
  position: relative;
  overflow: hidden;
  margin-top: clamp(56px, 8vw, 110px);
  padding-top: clamp(44px, 6vw, 72px);
  color: var(--paper);
  background:
    radial-gradient(circle at 86% 8%, rgba(200, 154, 61, 0.16), transparent 48%),
    var(--ink);
  border-top: 4px solid var(--cinnabar);
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: var(--gold);
}

.footer-seal {
  position: absolute;
  right: -2vw;
  bottom: -6%;
  display: grid;
  place-items: center;
  width: clamp(160px, 22vw, 260px);
  height: clamp(160px, 22vw, 260px);
  border: 2px solid rgba(200, 154, 61, 0.2);
  border-radius: 8px;
  font-family: var(--font-display);
  font-size: clamp(80px, 12vw, 140px);
  font-weight: 900;
  line-height: 1;
  color: rgba(200, 154, 61, 0.12);
  pointer-events: none;
  user-select: none;
}

.footer-top {
  display: grid;
  grid-template-columns: minmax(240px, 1.1fr) minmax(0, 1.7fr);
  gap: clamp(28px, 5vw, 64px);
  padding-bottom: clamp(28px, 4vw, 44px);
  border-bottom: 1px solid var(--paper-16);
}

.footer-brand-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  text-decoration: none;
}

.footer-brand-seal {
  display: grid;
  place-items: center;
  flex: none;
  width: 38px;
  height: 38px;
  background: var(--cinnabar);
  color: var(--paper);
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 900;
  line-height: 1;
  border-radius: 3px;
  box-shadow: inset 0 0 0 2px rgba(232, 195, 104, 0.6);
  transition: transform 160ms var(--ease);
}

.footer-brand-link:hover .footer-brand-seal { transform: scale(0.95) rotate(-3deg); }

.footer-brand-name {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 0.08em;
  color: var(--paper);
}

.footer-tagline {
  margin-top: 14px;
  font-family: var(--font-label);
  font-size: 13px;
  letter-spacing: 0.2em;
  color: rgba(244, 237, 223, 0.62);
}

.footer-contact {
  display: grid;
  gap: 8px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
  font-size: 14px;
  line-height: 1.7;
  color: rgba(244, 237, 223, 0.82);
}

.footer-contact li { overflow-wrap: anywhere; }

.footer-contact-key {
  display: inline-block;
  min-width: 5.6em;
  font-family: var(--font-label);
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--gold);
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 3vw, 36px);
  align-content: start;
}

.footer-col-title {
  padding-bottom: 10px;
  margin-bottom: 12px;
  font-family: var(--font-label);
  font-size: 12px;
  letter-spacing: 0.24em;
  color: var(--gold);
  border-bottom: 1px solid rgba(200, 154, 61, 0.3);
}

.footer-links {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  font-size: 14px;
  color: rgba(244, 237, 223, 0.78);
  text-decoration: none;
  transition: color 180ms var(--ease);
}

.footer-links a::before {
  content: "";
  width: 0;
  height: 1px;
  margin-right: 0;
  background: var(--gold-bright);
  transition: width 200ms var(--ease), margin-right 200ms var(--ease);
}

.footer-links a:hover { color: var(--gold-bright); }
.footer-links a:hover::before { width: 14px; margin-right: 8px; }

.footer-note {
  max-width: 70ch;
  margin-top: clamp(20px, 3vw, 32px);
  font-size: 13px;
  line-height: 1.7;
  color: rgba(244, 237, 223, 0.6);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 22px;
  margin-top: clamp(16px, 3vw, 28px);
  padding-block: 18px 22px;
  border-top: 1px solid rgba(244, 237, 223, 0.14);
  font-size: 13px;
  color: rgba(244, 237, 223, 0.62);
}

.footer-bottom a {
  color: rgba(244, 237, 223, 0.78);
  text-decoration: none;
  padding-bottom: 1px;
  border-bottom: 1px solid rgba(244, 237, 223, 0.25);
  transition: color 180ms var(--ease), border-color 180ms var(--ease);
}

.footer-bottom a:hover {
  color: var(--gold-bright);
  border-bottom-color: var(--gold-bright);
}

.footer-icp {
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
}

.footer-top-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  margin-left: auto;
  padding: 8px 16px;
  font-family: var(--font-label);
  font-size: 13px;
  letter-spacing: 0.18em;
  color: var(--paper);
  background: transparent;
  border: 1px solid rgba(200, 154, 61, 0.5);
  border-radius: var(--radius);
  transition: color 200ms var(--ease), border-color 200ms var(--ease), background-color 200ms var(--ease);
}

.footer-top-btn:hover {
  color: var(--gold-bright);
  border-color: var(--gold-bright);
  background: rgba(200, 154, 61, 0.1);
}

/* ---------- 7. BUTTONS ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  min-height: 44px;
  padding: 10px 20px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.06em;
  line-height: 1.2;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  overflow: hidden;
  transition:
    transform 160ms var(--ease),
    background-color 200ms var(--ease),
    border-color 200ms var(--ease),
    color 200ms var(--ease),
    box-shadow 200ms var(--ease);
}

.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 0 rgba(232, 195, 104, 0.85);
  opacity: 0;
  pointer-events: none;
  transition: opacity 300ms var(--ease), box-shadow 300ms var(--ease);
}

.btn:active { transform: scale(0.97); }

.btn:active::after {
  opacity: 1;
  box-shadow: inset 0 0 0 3px rgba(232, 195, 104, 0.55);
}

.btn--seal {
  background: var(--cinnabar);
  color: var(--paper);
  box-shadow: 0 2px 0 var(--cinnabar-deep);
}

.btn--seal:hover {
  background: var(--cinnabar-deep);
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.35);
}

.btn--ghost {
  background: transparent;
  color: var(--cinnabar);
  border-color: rgba(179, 43, 36, 0.4);
}

.btn--ghost:hover {
  background: rgba(179, 43, 36, 0.08);
  border-color: var(--cinnabar);
  color: var(--cinnabar-deep);
}

.btn--jade {
  background: var(--jade);
  color: #FFFFFF;
}

.btn--jade:hover { background: var(--jade-deep); }

/* ---------- 8. TAGS & CHIPS ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 10px;
  font-family: var(--font-label);
  font-size: 12px;
  letter-spacing: 0.14em;
  line-height: 1.6;
  white-space: nowrap;
  border: 1px solid currentColor;
  border-radius: 999px;
}

.tag--jade {
  color: var(--jade);
  background: rgba(47, 124, 107, 0.09);
  border-color: rgba(47, 124, 107, 0.45);
}

.tag--gold {
  color: var(--gold-deep);
  background: rgba(200, 154, 61, 0.14);
  border-color: rgba(200, 154, 61, 0.5);
}

.tag--cinnabar {
  color: var(--cinnabar);
  background: rgba(179, 43, 36, 0.08);
  border-color: rgba(179, 43, 36, 0.35);
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 18px;
  font-family: var(--font-label);
  font-size: 14px;
  letter-spacing: 0.14em;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid var(--line-gold);
  border-radius: 999px;
  cursor: pointer;
  transition:
    background-color 180ms var(--ease),
    color 180ms var(--ease),
    border-color 180ms var(--ease);
}

.chip:hover {
  border-color: var(--cinnabar);
  color: var(--cinnabar);
}

.chip[aria-pressed="true"] {
  background: var(--cinnabar);
  border-color: var(--cinnabar);
  color: var(--paper);
}

.chip[aria-pressed="true"]:hover { color: var(--paper); }

/* ---------- 9. SECTION SYSTEM ---------- */
.section {
  position: relative;
  padding-block: clamp(40px, 6vw, 86px);
}

.section--paper { background: var(--paper-warm); }

.section--ink {
  background: var(--ink);
  color: var(--paper);
}

.section--ink .section-title { color: var(--paper); }
.section--ink .section-lede { color: rgba(244, 237, 223, 0.76); }
.section--ink .section-num { color: var(--gold-bright); }
.section--ink .section-vert {
  color: rgba(244, 237, 223, 0.6);
  border-left-color: rgba(200, 154, 61, 0.45);
}

.section--rule::before {
  content: "";
  position: absolute;
  top: 0;
  left: var(--gutter);
  right: var(--gutter);
  height: 1px;
  background: var(--line-gold);
}

.section-head {
  display: flex;
  align-items: flex-start;
  gap: clamp(12px, 2vw, 20px);
  margin-bottom: clamp(22px, 3.4vw, 40px);
}

.section-num {
  flex: none;
  padding-top: 0.7em;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--gold);
}

.section-vert {
  flex: none;
  align-self: stretch;
  max-height: 9em;
  padding-left: 8px;
  font-family: var(--font-label);
  font-size: 12px;
  letter-spacing: 0.34em;
  color: var(--mist);
  border-left: 1px solid var(--line-gold);
  writing-mode: vertical-rl;
}

.section-heading { min-width: 0; }

.section-title {
  font-family: var(--font-display);
  font-size: clamp(24px, 3.6vw, 42px);
  font-weight: 800;
  line-height: 1.24;
  letter-spacing: -0.02em;
}

.section-lede {
  max-width: 60ch;
  margin-top: 12px;
  font-size: 16px;
  color: var(--ink-80);
}

/* ---------- 10. PANELS / TABLE / PROSE ---------- */
.panel {
  padding: clamp(18px, 2.4vw, 28px);
  background: var(--paper-warm);
  border: 1px solid var(--line);
  border-top: 2px solid var(--cinnabar);
  border-radius: var(--radius);
}

.panel--glass {
  background: var(--glass);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-top: 2px solid var(--gold);
  box-shadow: 0 8px 30px rgba(23, 19, 15, 0.08);
}

.data-table {
  width: 100%;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}

.data-table th {
  padding: 10px 14px;
  font-family: var(--font-label);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-align: left;
  white-space: nowrap;
  color: var(--mist);
  border-bottom: 1px solid var(--line-gold);
}

.data-table td {
  padding: 12px 14px;
  vertical-align: middle;
  border-bottom: 1px solid var(--line);
}

.data-table tbody tr {
  transition: background-color 160ms var(--ease);
}

.data-table tbody tr:nth-child(even) { background: rgba(233, 220, 196, 0.45); }

.data-table tbody tr:hover { background: rgba(200, 154, 61, 0.14); }

.data-table tbody tr:hover td:first-child {
  box-shadow: inset 2px 0 0 var(--gold);
}

.prose {
  max-width: 68ch;
  font-size: 16px;
  line-height: 1.8;
}

.prose > * + * { margin-top: 1em; }

.prose h2 {
  margin-top: 1.8em;
  font-family: var(--font-display);
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.prose h3 {
  margin-top: 1.5em;
  font-family: var(--font-display);
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 800;
  line-height: 1.35;
}

.prose ul,
.prose ol { padding-left: 1.3em; }

.prose li + li { margin-top: 0.4em; }

.prose strong { color: var(--cinnabar-deep); }

.prose blockquote {
  margin: 1.6em 0;
  padding: 14px 20px;
  font-family: var(--font-label);
  color: var(--ink-80);
  background: rgba(200, 154, 61, 0.09);
  border-left: 3px solid var(--gold);
}

/* ---------- 11. BREADCRUMB ---------- */
.breadcrumb {
  padding-block: 14px;
  font-family: var(--font-label);
  font-size: 13px;
  color: var(--mist);
}

.breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.breadcrumb-list a {
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 180ms var(--ease), border-color 180ms var(--ease);
}

.breadcrumb-list a:hover {
  color: var(--cinnabar);
  border-bottom-color: var(--cinnabar);
}

.breadcrumb-list li + li::before {
  content: "›";
  margin-right: 6px;
  color: var(--gold);
}

/* ---------- 12. MEDIA FRAME ---------- */
.media-frame {
  position: relative;
  display: block;
  width: 100%;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background:
    repeating-linear-gradient(135deg, rgba(200, 154, 61, 0.16) 0 1px, transparent 1px 10px),
    var(--paper-warm);
  border: 1px solid var(--line-gold);
  border-radius: var(--radius);
}

.media-frame--tall { aspect-ratio: 3 / 4; }
.media-frame--square { aspect-ratio: 1 / 1; }
.media-frame--wide { aspect-ratio: 21 / 9; }

.media-frame > img,
.media-frame > picture > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-frame__caption {
  display: block;
  margin-top: 8px;
  font-family: var(--font-label);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--mist);
}

/* ---------- 13. UTILITIES ---------- */
.num {
  font-family: var(--font-mono);
  letter-spacing: 0.05em;
  font-variant-numeric: tabular-nums;
}

/* ---------- 14. REVEAL ---------- */
.js-ready [data-reveal] {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 320ms var(--ease), transform 320ms var(--ease);
}

.js-ready [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- 15. RESPONSIVE ---------- */
@media (max-width: 1040px) {
  .masthead-label { display: none; }
}

@media (max-width: 900px) {
  .masthead { grid-template-columns: minmax(0, 1fr) auto; }
  .masthead-meta { display: none; }
  .nav-toggle { display: inline-flex; }

  .site-nav { display: none; }

  .site-nav[data-open] {
    display: block;
    padding-block: 8px 14px;
    border-top: 1px solid var(--line-gold);
    animation: nav-drop 240ms var(--ease);
  }

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

  .nav-list li { border-bottom: 1px dashed var(--line); }
  .nav-list li:last-child { border-bottom: 0; }

  .nav-list a {
    width: 100%;
    padding: 12px 4px;
    font-size: 16px;
    justify-content: flex-start;
  }

  .nav-list a::after { display: none; }

  .nav-list a[aria-current="page"] {
    padding-inline: 10px;
    margin-inline: -6px;
    background: rgba(200, 154, 61, 0.14);
    border-radius: 2px;
  }

  .footer-top { grid-template-columns: 1fr; }
  .footer-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .grid--5-7,
  .grid--4-8,
  .grid--3 { grid-template-columns: 1fr; }

  .section-vert { display: none; }
}

@media (max-width: 640px) {
  body { font-size: 15px; }
  .masthead-actions .btn--seal { font-size: 13px; padding: 9px 12px; letter-spacing: 0.02em; }
  .brand-seal { width: 36px; height: 36px; font-size: 18px; }
  .footer-bottom { gap: 8px 16px; }
  .footer-top-btn { margin-left: 0; }
  .data-table { font-size: 13px; }
  .data-table th,
  .data-table td { padding: 10px 10px; }
}

@media (max-width: 460px) {
  .brand-line { display: none; }
  .brand-name { font-size: 19px; }
  .footer-nav { grid-template-columns: 1fr; }
}

@keyframes nav-drop {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: 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;
  }

  .js-ready [data-reveal] {
    opacity: 1;
    transform: none;
  }

  .btn:active { transform: none; }
  .scroll-progress__bar { transition: none; }
}
