/* ============================================================
   开元棋盘会馆 · /assets/site.css
   共享外壳：reset / 变量 / 中文排版 / 头部 / 页脚 / 基础组件
   ============================================================ */

/* ---------- 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, pre { margin: 0; }

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

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

button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
table { border-collapse: collapse; width: 100%; }
hr { border: 0; }
address { font-style: normal; }

/* ---------- 2. 变量 ---------- */
:root {
  --ink: #14110F;
  --paper: #F7F1E3;
  --paper-deep: #EFE4CC;
  --grid-line: #DED3BE;
  --cinnabar: #B93A2B;
  --gold: #B08A2E;
  --blue-slate: #35617D;
  --bamboo: #4E7350;
  --wood: #6B4A2F;
  --ash: #4A4642;

  --glass: rgba(255, 255, 255, 0.28);
  --glass-line: rgba(255, 255, 255, 0.5);
  --hairline-dark: rgba(247, 241, 227, 0.14);
  --hairline-light: rgba(20, 17, 15, 0.12);

  --shell: 1200px;
  --gutter: clamp(18px, 4vw, 48px);

  --font-display: "Source Han Serif SC", "Noto Serif SC", "Songti SC", "SimSun", serif;
  --font-body: "Source Han Sans SC", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --ease-out: cubic-bezier(0.2, 0.7, 0.3, 1);
}

/* ---------- 3. 基础与中文排版 ---------- */
body {
  min-height: 100vh;
  background-color: var(--paper);
  background-image:
    linear-gradient(to right, rgba(20, 17, 15, 0.055) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(20, 17, 15, 0.055) 1px, transparent 1px);
  background-size: 64px 64px;
  background-position: center top;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.85;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.32;
  letter-spacing: 0.02em;
}

h1 { font-size: clamp(34px, 4.6vw, 52px); line-height: 1.18; }
h2 { font-size: clamp(26px, 3vw, 32px); }
h3 { font-size: clamp(19px, 2vw, 22px); }
h4 { font-size: 17px; }

p { max-width: 68ch; }

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

:focus-visible {
  outline: 2px solid var(--cinnabar);
  outline-offset: 3px;
  border-radius: 2px;
}

.site-header :focus-visible,
.site-footer :focus-visible { outline-color: var(--gold); }

/* ---------- 4. 工具类 ---------- */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.mono {
  font-family: var(--font-mono);
  font-feature-settings: "tnum" 1;
  letter-spacing: 0.02em;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--wood);
  text-transform: uppercase;
}

.kicker::before {
  content: "";
  display: block;
  width: 24px;
  height: 2px;
  background: var(--cinnabar);
}

.lead {
  font-size: clamp(17px, 1.6vw, 19px);
  line-height: 1.9;
  color: var(--ash);
  max-width: 62ch;
}

.divider {
  height: 1px;
  background: var(--grid-line);
  border: 0;
  margin-block: clamp(24px, 4vw, 40px);
}

.divider--gold { background: linear-gradient(90deg, var(--gold), transparent); }

.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;
  border: 0;
}

/* ---------- 5. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 0.04em;
  border: 1px solid transparent;
  border-radius: 2px;
  transition:
    background-color 0.18s var(--ease-out),
    color 0.18s var(--ease-out),
    border-color 0.18s var(--ease-out),
    transform 0.18s var(--ease-out);
}

.btn--seal { background: var(--cinnabar); color: #fff; }
.btn--seal:hover { background: #a2301f; }
.btn--seal:active { transform: translateY(1px); }

.btn--ghost {
  background: transparent;
  border-color: var(--grid-line);
  color: var(--ink);
}
.btn--ghost:hover { border-color: var(--gold); color: var(--wood); }

.btn--ink { background: var(--ink); color: var(--paper); }
.btn--ink:hover { background: #2a2521; }

.btn--sm { font-size: 13px; padding: 7px 12px; }

/* ---------- 6. 状态标签 ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 8px;
  font-size: 11.5px;
  line-height: 1.7;
  letter-spacing: 0.06em;
  border-radius: 2px;
  border: 1px solid var(--grid-line);
  background: var(--paper-deep);
  color: var(--ink);
  white-space: nowrap;
}

.tag--blue {
  background: rgba(53, 97, 125, 0.12);
  border-color: rgba(53, 97, 125, 0.32);
  color: var(--blue-slate);
}

.tag--green {
  background: rgba(78, 115, 80, 0.12);
  border-color: rgba(78, 115, 80, 0.32);
  color: var(--bamboo);
}

.tag--gold {
  background: rgba(176, 138, 46, 0.14);
  border-color: rgba(176, 138, 46, 0.42);
  color: #8a6a1e;
}

.tag__code {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0;
  padding-right: 2px;
}

/* ---------- 7. 朱印角标 ---------- */
.seal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  writing-mode: vertical-rl;
  text-orientation: upright;
  background: var(--cinnabar);
  color: #fff;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.2em;
  line-height: 1.2;
  padding: 8px 6px;
  border-radius: 2px;
  box-shadow: 0 2px 0 rgba(20, 17, 15, 0.18);
}

.seal--gold { background: var(--gold); }

.seal--ghost {
  background: transparent;
  color: var(--cinnabar);
  border: 1.5px solid var(--cinnabar);
  box-shadow: none;
}

/* ---------- 8. 卡片 ---------- */
.card {
  position: relative;
  padding: clamp(18px, 2.4vw, 26px);
  background: var(--paper);
  border: 1px solid var(--grid-line);
  border-radius: 2px;
  transition:
    border-color 0.2s var(--ease-out),
    box-shadow 0.2s var(--ease-out),
    transform 0.2s var(--ease-out);
}

.card--glass {
  background: var(--glass);
  border-color: var(--glass-line);
  backdrop-filter: blur(8px) saturate(1.05);
  -webkit-backdrop-filter: blur(8px) saturate(1.05);
}

.card--link:hover {
  border-color: var(--gold);
  box-shadow: 0 12px 26px -18px rgba(20, 17, 15, 0.6);
  transform: translateY(-2px);
}

.card__index {
  display: block;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.12em;
  color: var(--gold);
  margin-bottom: 8px;
}

.card__title {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 8px;
}

.card__text {
  font-size: 14.5px;
  line-height: 1.85;
  color: var(--ash);
  max-width: 46ch;
}

.card__more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--cinnabar);
  transition: gap 0.18s var(--ease-out);
}

.card--link:hover .card__more { gap: 12px; }

/* ---------- 9. 网格 ---------- */
.lattice {
  display: grid;
  gap: clamp(14px, 2vw, 22px);
}

.lattice--2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.lattice--3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.lattice--4 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }

/* ---------- 10. 章节色带 ---------- */
.band {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(12px, 2vw, 28px);
  padding: 18px clamp(16px, 3vw, 28px);
  background: var(--paper-deep);
  border-left: 4px solid var(--cinnabar);
  border-radius: 2px;
}

.band--wood {
  background: linear-gradient(90deg, rgba(107, 74, 47, 0.16), rgba(107, 74, 47, 0.04));
  border-left-color: var(--wood);
}

.band__num {
  font-family: var(--font-mono);
  font-size: clamp(20px, 2.4vw, 28px);
  line-height: 1;
  color: var(--cinnabar);
}

.band__title {
  font-family: var(--font-display);
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 700;
}

.band__note {
  margin-left: auto;
  font-size: 13.5px;
  color: var(--ash);
}

/* ---------- 11. 章节与长文 ---------- */
.section {
  position: relative;
  padding-block: clamp(40px, 6vw, 72px);
}

.section__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
}

[data-chapter] { scroll-margin-top: 120px; }
[data-chapter].is-current .band { border-left-color: var(--gold); }

.prose { max-width: 68ch; }
.prose > * + * { margin-top: 1em; }

.prose h2 {
  margin-top: 2em;
  padding-left: 14px;
  border-left: 4px solid var(--cinnabar);
  font-size: clamp(22px, 2.6vw, 27px);
}

.prose h3 { margin-top: 1.6em; }

.prose a {
  color: var(--cinnabar);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

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

.prose ul > li {
  position: relative;
  padding-left: 1.1em;
}

.prose ul > li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 6px;
  height: 6px;
  background: var(--cinnabar);
  border-radius: 1px;
  transform: rotate(45deg);
}

.prose ol { list-style: decimal; }

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

.prose blockquote {
  border-left: 3px solid var(--gold);
  background: var(--paper-deep);
  padding: 14px 18px;
  color: var(--ash);
  font-family: var(--font-display);
}

.prose code {
  font-family: var(--font-mono);
  font-size: 0.92em;
  background: var(--paper-deep);
  padding: 1px 5px;
  border-radius: 2px;
}

.prose table { font-size: 14.5px; }

.prose th, .prose td {
  border: 1px solid var(--grid-line);
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
}

.prose thead th {
  background: var(--paper-deep);
  font-family: var(--font-display);
}

/* ---------- 12. 图片容器（页面阶段放置 <img>） ---------- */
.img-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--paper-deep);
  border: 1px solid var(--grid-line);
  border-radius: 2px;
}

.img-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.img-frame--wide { aspect-ratio: 16 / 9; }
.img-frame--tall { aspect-ratio: 3 / 4; }

.img-frame--board::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(20, 17, 15, 0.18) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(20, 17, 15, 0.18) 1px, transparent 1px);
  background-size: calc(100% / 8) calc(100% / 8);
  mix-blend-mode: multiply;
}

.img-frame__caption {
  position: absolute;
  left: 0;
  bottom: 0;
  padding: 6px 10px;
  background: rgba(20, 17, 15, 0.72);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
}

/* ---------- 13. 面包屑 ---------- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.04em;
  color: var(--ash);
}

.breadcrumb__item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

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

.breadcrumb__sep {
  color: var(--gold);
  opacity: 0.7;
}

/* ---------- 14. 显现动效 ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(12px);
  transition:
    opacity 0.5s var(--ease-out),
    transform 0.5s var(--ease-out);
}

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

/* ============================================================
   头部
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--ink);
  color: var(--paper);
  border-bottom: 1px solid var(--hairline-dark);
}

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: 8px;
  z-index: 120;
  transform: translateY(-180%);
  padding: 10px 18px;
  background: var(--paper);
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  border: 2px solid var(--cinnabar);
  border-radius: 2px;
  transition: transform 0.18s var(--ease-out);
}

.skip-link:focus { transform: translateY(0); }

.commandbar { border-bottom: 1px solid rgba(247, 241, 227, 0.08); }

.commandbar__inner {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 32px);
  min-height: 64px;
  padding-block: 10px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  margin-right: auto;
}

.brand__mark {
  flex: none;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  background: var(--cinnabar);
  color: var(--paper);
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
  border-radius: 2px;
  box-shadow: inset 0 0 0 1px rgba(247, 241, 227, 0.35);
}

.brand__text {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.brand__name {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.1em;
  line-height: 1.3;
  white-space: nowrap;
}

.brand__sub {
  font-size: 11px;
  letter-spacing: 0.14em;
  line-height: 1.3;
  color: rgba(247, 241, 227, 0.55);
  white-space: nowrap;
}

.brand__coord {
  flex: none;
  padding: 2px 7px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--gold);
  border: 1px solid rgba(176, 138, 46, 0.55);
  border-radius: 2px;
}

.nav-toggle {
  display: none;
  position: relative;
  z-index: 80;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  color: var(--paper);
  font-size: 12px;
  letter-spacing: 0.14em;
  line-height: 1;
  border: 1px solid rgba(247, 241, 227, 0.3);
  border-radius: 2px;
  transition: border-color 0.18s var(--ease-out);
}

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

.nav-toggle__bars {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  width: 16px;
  height: 12px;
}

.nav-toggle__bars span {
  display: block;
  height: 2px;
  background: currentColor;
  transition:
    transform 0.2s var(--ease-out),
    opacity 0.2s var(--ease-out);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

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

.site-nav__list {
  display: flex;
  align-items: center;
  gap: 2px;
}

.site-nav__item { display: flex; }

.site-nav__link {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 8px 10px;
  font-size: 14px;
  line-height: 1.5;
  color: rgba(247, 241, 227, 0.76);
  border-radius: 2px;
  transition:
    color 0.18s var(--ease-out),
    background-color 0.18s var(--ease-out);
}

.site-nav__link:hover {
  color: var(--paper);
  background: rgba(247, 241, 227, 0.07);
}

.site-nav__index {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.04em;
  color: var(--gold);
  opacity: 0.85;
}

.site-nav__link[aria-current="page"] {
  color: var(--paper);
  background: rgba(185, 58, 43, 0.18);
}

.site-nav__link[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 1px;
  height: 2px;
  background: var(--cinnabar);
}

.site-nav__link[aria-current="page"] .site-nav__index {
  color: #E8C77A;
  opacity: 1;
}

.site-nav__cta { margin-left: 6px; }

.statusstrip {
  background: var(--paper-deep);
  color: var(--ink);
  border-bottom: 1px solid var(--grid-line);
  font-size: 12.5px;
}

.statusstrip__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 38px;
  padding-block: 6px;
}

.statusstrip__chapter {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  max-width: none;
}

.statusstrip__key {
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--ash);
  flex: none;
}

.statusstrip__num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--cinnabar);
  flex: none;
}

.statusstrip__title {
  font-weight: 500;
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.statusstrip__badge {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: none;
  max-width: none;
}

.scroll-meter {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: rgba(247, 241, 227, 0.1);
  pointer-events: none;
}

.scroll-meter__fill {
  display: block;
  width: 100%;
  height: 100%;
  transform: scaleX(0);
  transform-origin: left center;
  background: linear-gradient(90deg, var(--gold), var(--cinnabar));
  transition: transform 0.12s linear;
}

/* ============================================================
   页脚
   ============================================================ */
.site-footer {
  margin-top: clamp(48px, 7vw, 96px);
  background-color: var(--ink);
  background-image: linear-gradient(180deg, rgba(185, 58, 43, 0.14), transparent 42%);
  color: rgba(247, 241, 227, 0.78);
  border-top: 3px solid var(--cinnabar);
}

.footer-band {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.3fr;
  gap: clamp(24px, 3vw, 44px);
  padding-block: clamp(40px, 5vw, 60px) clamp(28px, 4vw, 44px);
}

.footer-col { min-width: 0; }

.footer-brand__name {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--paper);
  max-width: none;
}

.footer-brand__tagline {
  margin-top: 10px;
  font-size: 13.5px;
  line-height: 1.8;
  color: rgba(247, 241, 227, 0.6);
  max-width: 30ch;
}

.footer-brand__coord {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  padding: 3px 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--gold);
  border: 1px solid rgba(176, 138, 46, 0.45);
  border-radius: 2px;
  max-width: none;
}

.footer-heading {
  margin-bottom: 16px;
  font-family: var(--font-body);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.22em;
  color: var(--gold);
}

.footer-list li + li { margin-top: 10px; }

.footer-link {
  font-size: 14px;
  color: rgba(247, 241, 227, 0.7);
  border-bottom: 1px solid transparent;
  transition:
    color 0.18s var(--ease-out),
    border-color 0.18s var(--ease-out);
}

.footer-link:hover {
  color: var(--paper);
  border-bottom-color: var(--cinnabar);
}

.footer-meta {
  display: grid;
  gap: 10px;
  font-size: 13.5px;
  line-height: 1.9;
}

.footer-meta__item {
  display: block;
  overflow-wrap: anywhere;
  max-width: none;
}

.footer-meta__label {
  display: block;
  margin-bottom: 2px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  color: rgba(176, 138, 46, 0.9);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px 32px;
  padding-block: 18px 30px;
  border-top: 1px solid var(--hairline-dark);
}

.footer-legal {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.05em;
  color: rgba(247, 241, 227, 0.55);
  max-width: none;
}

.footer-note {
  font-size: 11.5px;
  line-height: 1.8;
  color: rgba(247, 241, 227, 0.45);
  max-width: 56ch;
}

/* ============================================================
   响应式
   ============================================================ */
@media (max-width: 960px) {
  .nav-toggle { display: inline-flex; }

  .site-nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 70;
    width: min(84vw, 340px);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 96px 22px 32px;
    background: var(--ink);
    border-left: 1px solid var(--hairline-dark);
    box-shadow: -30px 0 70px rgba(20, 17, 15, 0.45);
    overflow-y: auto;
    visibility: hidden;
    transform: translateX(102%);
    transition:
      transform 0.28s var(--ease-out),
      visibility 0.28s var(--ease-out);
  }

  .site-nav[data-open="true"] {
    transform: translateX(0);
    visibility: visible;
  }

  .site-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .site-nav__item { display: block; }

  .site-nav__link {
    display: flex;
    justify-content: flex-start;
    padding: 15px 6px;
    font-size: 16px;
    border-bottom: 1px solid rgba(247, 241, 227, 0.12);
    border-radius: 0;
  }

  .site-nav__link[aria-current="page"] { background: rgba(185, 58, 43, 0.14); }

  .site-nav__link[aria-current="page"]::after {
    left: 6px;
    right: auto;
    bottom: 10px;
    width: 18px;
  }

  .site-nav__cta {
    margin: 22px 0 0;
    padding-block: 12px;
    justify-content: center;
  }

  .brand__sub { display: none; }

  html.nav-open { overflow: hidden; }

  .footer-band { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  .brand__coord { display: none; }

  .statusstrip__key { display: none; }

  .statusstrip__badge .tag { font-size: 11px; }

  .footer-band { grid-template-columns: 1fr; }

  .footer-bottom { flex-direction: column; }

  .card__text { max-width: none; }
}

/* ============================================================
   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;
  }

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