/* ==========================================================================
   皇冠赛场 · /assets/site.css
   共享层：设计令牌 / 重置 / 中文排版 / 页头 / 页脚 / 通用组件 / 响应式
   母题：边线刻度、8° 斜切、等宽数据层、金色章节带
   ========================================================================== */

:root {
  --ink-950: #071512;
  --ink-900: #0B211C;
  --ink-800: #0E2A24;
  --ink-700: #143A31;
  --ink-600: #1B4A3F;
  --gold: #C9A227;
  --gold-soft: #E8CE7A;
  --orange: #E8622C;
  --cyan: #2FBFA6;
  --bone: #F4F1E8;
  --mist: #8FA69E;
  --line: rgba(201, 162, 39, 0.28);
  --line-hard: rgba(244, 241, 232, 0.12);
  --font-display: "Oswald", "Bebas Neue", "Arial Narrow", "PingFang SC", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  --font-body: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --font-serif: "Noto Serif SC", "Songti SC", "Source Han Serif SC", Georgia, "Times New Roman", serif;
  --font-mono: ui-monospace, "JetBrains Mono", "Roboto Mono", "SFMono-Regular", Menlo, Consolas, monospace;
  --header-h: 72px;
  --wrap: 1200px;
  --gutter: clamp(18px, 4vw, 48px);
  --radius: 2px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --shadow-soft: 0 1px 0 rgba(7, 21, 18, 0.45), 0 18px 40px -32px rgba(7, 21, 18, 0.9);
}

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

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

body {
  margin: 0;
  background: var(--ink-800);
  color: var(--bone);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

main { display: block; }

h1, h2, h3, h4, h5, p, figure, ul, ol, dl, dd { margin: 0; padding: 0; }
ul, ol { list-style: none; }

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

a { color: inherit; }

button { font: inherit; color: inherit; }

::selection { background: var(--gold); color: var(--ink-900); }

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

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

.skip-link {
  position: fixed;
  top: -70px;
  left: 14px;
  z-index: 300;
  padding: 10px 18px;
  background: var(--gold);
  color: var(--ink-950);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
  border-radius: var(--radius);
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 14px; }

@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;
  }
}

/* ------------------------------------------------------------ 排版层 */
h1, .h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(34px, 5.4vw, 60px);
  line-height: 1.04;
  letter-spacing: -0.02em;
}
h2, .h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(25px, 3.4vw, 38px);
  line-height: 1.12;
  letter-spacing: -0.015em;
}
h3, .h3 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.35;
  letter-spacing: 0.005em;
}
.display {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.05;
}
.serif { font-family: var(--font-serif); }
.mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
}
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold-soft);
}
.kicker::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--gold);
}
.lede {
  font-size: clamp(16px, 1.55vw, 18px);
  line-height: 1.8;
  color: rgba(244, 241, 232, 0.82);
  max-width: 62ch;
}
.muted { color: var(--mist); }
.fineprint {
  font-size: 13px;
  line-height: 1.7;
  color: var(--mist);
}

/* ------------------------------------------------------------ 布局层 */
.container {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--narrow { max-width: 880px; }

.section {
  position: relative;
  padding-block: clamp(48px, 7vw, 96px);
}
.section--band { background: var(--ink-700); }
.section--bone {
  background: var(--bone);
  color: var(--ink-900);
}
.section--bone .lede,
.section--bone .fineprint { color: #3B5850; }
.section--bone .kicker { color: #8A6E12; }
.section__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 28px;
  margin-bottom: clamp(24px, 3vw, 40px);
}

.grid { display: grid; gap: clamp(16px, 2vw, 28px); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--split { grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); }

.slice-divider {
  height: clamp(26px, 4vw, 56px);
  background: var(--ink-700);
  clip-path: polygon(0 0, 100% 0, 100% 62%, 0 100%);
}

/* ------------------------------------------------------------ 面板层 */
.panel {
  position: relative;
  background: var(--ink-700);
  border: 1px solid var(--line-hard);
  border-radius: var(--radius);
  padding: clamp(18px, 2.2vw, 28px);
  box-shadow: var(--shadow-soft);
}
.panel--flat { background: transparent; box-shadow: none; }
.panel--gold {
  border-color: var(--line);
  box-shadow: inset 0 0 0 1px rgba(201, 162, 39, 0.06), var(--shadow-soft);
}
.panel__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 12px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--line-hard);
}
.rule {
  height: 0;
  border: 0;
  border-top: 1px solid var(--line-hard);
  margin-block: 24px;
}
.rule--gold {
  border: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--gold), rgba(201, 162, 39, 0));
  margin-block: 24px;
}

/* ------------------------------------------------------------ 标签层 */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(201, 162, 39, 0.07);
  color: var(--gold-soft);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  line-height: 1.6;
}
.tag--orange {
  color: #FFD8C6;
  border-color: rgba(232, 98, 44, 0.5);
  background: rgba(232, 98, 44, 0.14);
}
.tag--cyan {
  color: #BFF3EA;
  border-color: rgba(47, 191, 166, 0.45);
  background: rgba(47, 191, 166, 0.12);
}
.tag--ghost {
  color: var(--mist);
  border-color: var(--line-hard);
  background: transparent;
}

/* ------------------------------------------------------------ 数据层 */
.stat { display: flex; flex-direction: column; gap: 5px; }
.stat__value {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.02em;
  color: var(--gold-soft);
}
.stat__label {
  font-size: 12.5px;
  letter-spacing: 0.06em;
  color: var(--mist);
}

/* ---------------------------------------------------------- 图片容器 */
.figure {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
}
.figure__media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line-hard);
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, var(--ink-600), var(--ink-950));
}
.figure__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.78) saturate(0.9) contrast(1.03);
}
.figure__media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(120% 90% at 12% 0%, rgba(201, 162, 39, 0.16), transparent 58%),
    linear-gradient(180deg, rgba(7, 21, 18, 0.08), rgba(7, 21, 18, 0.62));
}
.figure--wide .figure__media { aspect-ratio: 21 / 9; }
.figure--tall .figure__media { aspect-ratio: 4 / 5; }
.figure--square .figure__media { aspect-ratio: 1 / 1; }
.figure__stamp {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  padding: 3px 8px;
  background: rgba(7, 21, 18, 0.66);
  border: 1px solid var(--line);
  color: var(--gold-soft);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
}
.figure__cap {
  display: flex;
  gap: 8px;
  font-size: 13px;
  line-height: 1.65;
  color: var(--mist);
}
.figure__cap::before {
  content: "";
  flex: 0 0 auto;
  width: 14px;
  height: 1px;
  margin-top: 0.72em;
  background: var(--gold);
}

/* ------------------------------------------------------------ 按钮层 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: var(--gold);
  color: var(--ink-900);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.4;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.btn--gold {
  background: var(--gold);
  color: var(--ink-950);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
}
.btn--gold:hover { background: var(--gold-soft); }
.btn--ghost {
  background: transparent;
  color: var(--bone);
  border-color: var(--line);
}
.btn--ghost:hover { border-color: var(--gold); color: var(--gold-soft); }
.btn--sm { padding: 8px 14px; font-size: 13px; }

/* ------------------------------------------------------------ 面包屑 */
.breadcrumbs {
  background: var(--ink-900);
  border-bottom: 1px solid var(--line-hard);
  padding-block: 13px;
}
.breadcrumbs__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  color: var(--mist);
}
.breadcrumbs__item { display: inline-flex; align-items: center; gap: 8px; }
.breadcrumbs__item[aria-current="page"] { color: var(--gold-soft); }
.breadcrumbs__link {
  text-decoration: none;
  color: rgba(244, 241, 232, 0.76);
  transition: color 0.2s var(--ease);
}
.breadcrumbs__link:hover { color: var(--gold-soft); }
.breadcrumbs__sep { color: var(--gold); opacity: 0.66; }

/* ------------------------------------------------------------ 章节层 */
.chapter {
  position: relative;
  scroll-margin-top: calc(var(--header-h) + 26px);
}
.chapter__mark {
  position: absolute;
  left: 0;
  top: 0;
  width: 2px;
  height: 58px;
  background: linear-gradient(180deg, var(--gold), rgba(201, 162, 39, 0));
  opacity: 0;
  transform: scaleY(0.4);
  transform-origin: top center;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
  pointer-events: none;
}
.chapter.is-current > .chapter__mark {
  opacity: 1;
  transform: scaleY(1);
}
.chapter__num {
  font-family: var(--font-serif);
  font-size: 13px;
  letter-spacing: 0.22em;
  color: var(--gold);
  transition: color 0.25s var(--ease);
}
.chapter.is-current .chapter__num { color: var(--gold-soft); }

/* ------------------------------------------------------------ 复制/提示 */
.copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: 4px;
  padding: 2px 8px;
  background: rgba(201, 162, 39, 0.1);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--gold-soft);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  line-height: 1.7;
  cursor: pointer;
  vertical-align: baseline;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease);
}
.copy-btn:hover {
  background: rgba(201, 162, 39, 0.22);
  border-color: var(--gold);
  color: var(--bone);
}
.toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  z-index: 220;
  max-width: calc(100vw - 32px);
  padding: 10px 18px;
  background: var(--ink-700);
  color: var(--bone);
  border: 1px solid var(--gold);
  border-radius: var(--radius);
  box-shadow: 0 18px 40px -20px rgba(7, 21, 18, 0.9);
  font-size: 13px;
  letter-spacing: 0.03em;
  opacity: 0;
  transform: translate(-50%, 16px);
  pointer-events: none;
  transition: opacity 0.22s var(--ease), transform 0.22s var(--ease);
}
.toast[data-visible] {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ================================================================
   页头
   ================================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(14, 42, 36, 0.96);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  color: var(--bone);
}
.site-header__rail {
  height: 5px;
  background-color: rgba(201, 162, 39, 0.06);
  background-image: repeating-linear-gradient(
    90deg,
    rgba(201, 162, 39, 0.62) 0 1px,
    transparent 1px 16px
  );
}
.read-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  overflow: hidden;
  background: rgba(244, 241, 232, 0.07);
  pointer-events: none;
}
.read-progress__bar {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--gold), var(--gold-soft) 62%, var(--orange));
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 0.12s linear;
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding: 10px var(--gutter);
  min-height: var(--header-h);
}
.brand-cluster {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: inherit;
}
.brand__mark {
  position: relative;
  display: block;
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  border: 1px solid var(--gold);
  background: rgba(201, 162, 39, 0.06);
}
.brand__mark::before {
  content: "";
  position: absolute;
  left: 4px;
  right: 4px;
  top: 4px;
  height: 10px;
  background: var(--gold);
  clip-path: polygon(0 100%, 0 20%, 22% 62%, 50% 0, 78% 62%, 100% 20%, 100% 100%);
}
.brand__mark::after {
  content: "";
  position: absolute;
  left: 4px;
  right: 4px;
  bottom: 4px;
  height: 2px;
  background: var(--gold-soft);
}
.brand__text { display: block; min-width: 0; }
.brand__name {
  display: block;
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 1.1;
  color: var(--bone);
  white-space: nowrap;
}
.brand__latin {
  display: block;
  margin-top: 3px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold-soft);
  white-space: nowrap;
}
.brand__status {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--mist);
  white-space: nowrap;
}
.status-dot {
  display: block;
  width: 6px;
  height: 6px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 3px rgba(47, 191, 166, 0.18);
}

/* 导航 */
.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}
.site-nav__list {
  display: flex;
  align-items: center;
  gap: 0;
}
.site-nav__item { display: block; }
.site-nav__link {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  padding: 10px 12px;
  color: rgba(244, 241, 232, 0.82);
  font-size: 14.5px;
  letter-spacing: 0.03em;
  text-decoration: none;
  transition: color 0.2s var(--ease);
}
.site-nav__idx {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.08em;
  color: var(--gold);
  opacity: 0.62;
}
.site-nav__link::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 4px;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.26s var(--ease);
}
.site-nav__link:hover,
.site-nav__link:focus-visible { color: var(--bone); }
.site-nav__link:hover::after,
.site-nav__link:focus-visible::after { transform: scaleX(1); }
.site-nav__link[aria-current="page"] { color: var(--gold-soft); }
.site-nav__link[aria-current="page"]::after {
  transform: scaleX(1);
  background: var(--gold-soft);
}
.site-nav__foot {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: 14px;
  padding-left: 16px;
  border-left: 1px solid var(--line-hard);
}
.site-nav__hint {
  display: none;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--mist);
}

/* 移动端按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  padding: 8px 13px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--bone);
  font-size: 13px;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease), background 0.2s var(--ease);
}
.nav-toggle:hover { border-color: var(--gold); color: var(--gold-soft); }
.nav-toggle__bars { display: grid; gap: 3px; width: 16px; }
.nav-toggle__bars span {
  display: block;
  height: 1.5px;
  background: var(--gold);
  transition: transform 0.24s var(--ease), opacity 0.2s var(--ease);
}
.site-header[data-open] .nav-toggle {
  border-color: var(--gold);
  color: var(--gold-soft);
  background: rgba(201, 162, 39, 0.1);
}
.site-header[data-open] .nav-toggle__bars span:nth-child(1) { transform: translateY(4.5px) rotate(45deg); }
.site-header[data-open] .nav-toggle__bars span:nth-child(2) { opacity: 0; }
.site-header[data-open] .nav-toggle__bars span:nth-child(3) { transform: translateY(-4.5px) rotate(-45deg); }

/* ================================================================
   页脚
   ================================================================ */
.site-footer {
  position: relative;
  background: var(--ink-950);
  color: var(--bone);
  border-top: 2px solid var(--gold);
}
.site-footer__edge {
  height: 6px;
  background-color: rgba(201, 162, 39, 0.05);
  background-image: repeating-linear-gradient(
    90deg,
    rgba(201, 162, 39, 0.5) 0 1px,
    transparent 1px 18px
  );
}
.site-footer__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.6fr) minmax(0, 1.05fr);
  gap: clamp(24px, 4vw, 56px);
  padding-block: clamp(38px, 5vw, 64px);
}
.site-footer__lead { min-width: 0; }
.brand--footer .brand__mark { width: 34px; height: 34px; }
.brand--footer .brand__mark::before { height: 11px; }
.brand--footer .brand__name { font-size: 21px; }
.site-footer__tagline {
  margin-top: 16px;
  font-family: var(--font-serif);
  font-size: 15px;
  line-height: 1.8;
  letter-spacing: 0.02em;
  color: rgba(244, 241, 232, 0.86);
}
.site-footer__meta {
  margin-top: 10px;
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mist);
}
.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 32px);
}
.footer-col { min-width: 0; }
.footer-col__title {
  margin: 0 0 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line-hard);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}
.footer-col__list { display: grid; gap: 9px; }
.footer-col__link {
  display: inline-block;
  font-size: 14px;
  color: rgba(244, 241, 232, 0.76);
  text-decoration: none;
  transition: color 0.2s var(--ease), transform 0.2s var(--ease);
}
.footer-col__link:hover,
.footer-col__link:focus-visible {
  color: var(--gold-soft);
  transform: translateX(3px);
}
.footer-contact {
  display: grid;
  gap: 12px;
  align-content: start;
  min-width: 0;
}
.footer-contact__row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.footer-contact__key {
  flex: 0 0 auto;
  min-width: 34px;
  padding-top: 3px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  color: var(--mist);
}
.footer-contact__val {
  font-size: 13.5px;
  line-height: 1.7;
  color: rgba(244, 241, 232, 0.88);
  word-break: break-word;
}
.site-footer__legal {
  border-top: 1px solid var(--line-hard);
  background: #050F0D;
}
.site-footer__legal .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  padding-block: 16px;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--mist);
}
.site-footer__legal a {
  text-decoration: none;
  color: rgba(244, 241, 232, 0.7);
  transition: color 0.2s var(--ease);
}
.site-footer__legal a:hover,
.site-footer__legal a:focus-visible { color: var(--gold-soft); }
.site-footer__legal-sep { color: var(--gold); opacity: 0.5; }

/* ================================================================
   响应式
   ================================================================ */
@media (max-width: 1023px) {
  :root { --header-h: 62px; }

  .nav-toggle { display: inline-flex; }

  .site-nav {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    max-height: calc(100dvh - var(--header-h) - 40px);
    overflow-y: auto;
    padding: 8px var(--gutter) 24px;
    border-top: 1px solid var(--line);
    background: var(--ink-800);
    box-shadow: 0 26px 44px -28px rgba(7, 21, 18, 0.95);
  }
  .site-header[data-open] .site-nav { display: flex; }

  .site-nav__list {
    flex-direction: column;
    align-items: stretch;
  }
  .site-nav__item + .site-nav__item { border-top: 1px solid var(--line-hard); }
  .site-nav__link {
    display: flex;
    align-items: baseline;
    padding: 14px 2px;
    font-size: 16px;
    color: rgba(244, 241, 232, 0.88);
  }
  .site-nav__idx { font-size: 10px; }
  .site-nav__link::after {
    left: 2px;
    right: auto;
    bottom: 10px;
    width: 26px;
  }
  .site-nav__link[aria-current="page"]::after { width: 26px; transform: scaleX(1); }

  .site-nav__foot {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    margin: 12px 0 0;
    padding: 16px 0 0;
    border-left: 0;
    border-top: 1px solid var(--line-hard);
  }
  .site-nav__foot .btn { width: 100%; }
  .site-nav__hint { display: block; }

  .brand__status {
    border-left: 1px solid var(--line-hard);
    padding-left: 14px;
  }

  .site-footer__inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .footer-contact { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  .grid--2,
  .grid--3,
  .grid--split { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 720px) {
  .site-header__inner { gap: 12px; }
  .brand__name { font-size: 17px; }
  .brand__status { display: none; }
  .site-footer__inner { grid-template-columns: minmax(0, 1fr); }
  .footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
  .site-footer__tagline { font-size: 14px; }
}

@media (max-width: 460px) {
  .footer-cols { grid-template-columns: minmax(0, 1fr); }
  .nav-toggle__label { display: none; }
  .nav-toggle { padding: 9px 11px; }
  .site-nav__link { font-size: 15.5px; }
  .footer-contact__row { flex-direction: column; gap: 2px; }
  .footer-contact__key { padding-top: 0; }
}
