/* =========================================================
   /assets/site.css — 风云体育入口 共享样式
   0. Reset  1. Tokens  2. Base  3. Utilities  4. Header
   5. Search  6. Footer  7. Components  8. Motion  9. Responsive
   ========================================================= */

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

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

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

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

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

a { color: inherit; }

[hidden] { display: none !important; }

/* ---------- 1. Tokens ---------- */
:root {
  /* 色板 */
  --storm: #1B3A6B;
  --deep:  #0E2244;
  --cloud: #F4F7FB;
  --linen: #FBF7F0;
  --mist:  #E3E9F1;
  --slate: #5C7C99;
  --bolt:  #FF6B2C;
  --clay:  #FFB48A;
  --moss:  #5E8B6A;
  --ink:   #10151C;

  /* 字族 */
  --f-display: "PingFang SC", "Source Han Sans SC", "Noto Sans SC", "Microsoft YaHei", system-ui, sans-serif;
  --f-serif: "Source Han Serif SC", "Noto Serif SC", "Songti SC", Georgia, "Times New Roman", serif;
  --f-body: system-ui, -apple-system, "Segoe UI", "PingFang SC", "Source Han Sans SC", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  --f-mono: "JetBrains Mono", "IBM Plex Mono", ui-monospace, SFMono-Regular, Consolas, "Courier New", monospace;

  /* 尺度 */
  --header-h: 88px;
  --rail-w: 220px;
  --maxw: 1440px;
  --gutter: clamp(20px, 4vw, 56px);
  --cut: 16px;

  /* 运动 */
  --ease: cubic-bezier(.2, .7, .3, 1);
  --dur: .24s;
}

/* ---------- 2. Base ---------- */
body {
  padding-top: var(--header-h);
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.85;
  color: var(--ink);
  background: var(--cloud);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 {
  font-family: var(--f-display);
  font-weight: 800;
  letter-spacing: -.015em;
  line-height: 1.15;
}

::selection {
  background: var(--storm);
  color: var(--cloud);
}

[id] { scroll-margin-top: calc(var(--header-h) + 24px); }

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

/* ---------- 3. Utilities ---------- */
.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;
}

.u-mono {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: .08em;
  font-variant-numeric: tabular-nums;
}

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.section { padding: clamp(56px, 7vw, 112px) 0; }
.section--linen { background: var(--linen); }
.section--cloud { background: var(--cloud); }

.grid-12 {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 24px;
}

.span-3  { grid-column: span 3; }
.span-4  { grid-column: span 4; }
.span-5  { grid-column: span 5; }
.span-6  { grid-column: span 6; }
.span-7  { grid-column: span 7; }
.span-8  { grid-column: span 8; }
.span-9  { grid-column: span 9; }
.span-12 { grid-column: span 12; }

.rule-diagonal {
  height: 8px;
  background-image: repeating-linear-gradient(45deg, var(--mist) 0 1.5px, transparent 1.5px 10px);
}

/* ---------- 4. Header ---------- */
.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 999;
  padding: 12px 22px;
  background: var(--storm);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .04em;
  text-decoration: none;
  border-left: 4px solid var(--bolt);
  transform: translateY(-220%);
  transition: transform var(--dur) var(--ease);
}
.skip-link:focus-visible { transform: translateY(0); }

.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  display: flex;
  align-items: stretch;
  background: var(--cloud);
  border-bottom: 1px solid var(--mist);
  z-index: 100;
}

/* 品牌轨道 */
.site-brand {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  flex: 0 0 var(--rail-w);
  width: var(--rail-w);
  padding: 0 22px;
  background: var(--storm);
  color: #fff;
  text-decoration: none;
  overflow: hidden;
}
.site-brand::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(135deg, rgba(255,255,255,.075) 0 1px, transparent 1px 9px);
  pointer-events: none;
}
.site-brand::after {
  content: "";
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--bolt), rgba(255,107,44,0));
}
.site-brand__name {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  font-family: var(--f-display);
  font-weight: 900;
  font-size: 20px;
  line-height: 1.1;
  letter-spacing: .01em;
}
.site-brand__meta {
  position: relative;
  z-index: 1;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .18em;
  color: var(--clay);
}
.site-brand:hover .site-brand__meta { color: var(--clay); }

/* 栏目导航 */
.site-nav {
  display: flex;
  align-items: stretch;
  margin-left: auto;
  padding: 0 clamp(8px, 2vw, 24px);
}

.site-nav__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 0 clamp(8px, 1.1vw, 16px);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: .01em;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
  transition: color var(--dur) var(--ease);
}
.site-nav__link::after {
  content: "";
  position: absolute;
  left: clamp(8px, 1.1vw, 16px);
  right: clamp(8px, 1.1vw, 16px);
  bottom: 22px;
  height: 3px;
  background: transparent;
  transition: background var(--dur) var(--ease);
}
.site-nav__link:hover { color: var(--storm); }
.site-nav__link:hover::after { background: var(--clay); }
.site-nav__link[aria-current="page"] { color: var(--storm); font-weight: 700; }
.site-nav__link[aria-current="page"]::after { background: var(--bolt); }

.site-nav__num { display: none; }

/* 右端工具区 */
.site-util {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 22px 0 8px;
}

.search-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  height: 38px;
  padding: 0 14px;
  background: #fff;
  border: 1px solid var(--mist);
  border-radius: 2px;
  color: var(--storm);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .06em;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.search-btn:hover,
.search-btn[aria-expanded="true"] {
  background: var(--storm);
  border-color: var(--storm);
  color: #fff;
}
.search-btn__icon {
  position: relative;
  display: block;
  flex: 0 0 auto;
  width: 13px;
  height: 13px;
  border: 2px solid currentColor;
  border-radius: 50%;
}
.search-btn__icon::after {
  content: "";
  position: absolute;
  right: -5px;
  bottom: -3px;
  width: 7px;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
  transform: rotate(45deg);
  transform-origin: left center;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: #fff;
  border: 1px solid var(--mist);
  border-radius: 2px;
}
.nav-toggle__bar {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--storm);
  transition: transform var(--dur) var(--ease);
}
.site-header[data-open="true"] .nav-toggle__bar:nth-child(1) { transform: translateY(3.5px) rotate(45deg); }
.site-header[data-open="true"] .nav-toggle__bar:nth-child(2) { transform: translateY(-3.5px) rotate(-45deg); }

/* 阅读进度 */
.reading-progress {
  position: fixed;
  left: 0; right: 0;
  top: calc(var(--header-h) - 3px);
  height: 3px;
  z-index: 110;
  pointer-events: none;
  background: transparent;
}
.reading-progress__bar {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--slate), var(--bolt));
}

/* ---------- 5. Search panel ---------- */
.search-panel {
  position: fixed;
  top: var(--header-h);
  right: 0;
  width: min(400px, 100vw);
  max-height: calc(100vh - var(--header-h));
  overflow-y: auto;
  padding: 20px 22px 24px;
  background: #fff;
  border-top: 3px solid var(--bolt);
  border-left: 1px solid var(--mist);
  box-shadow: -18px 26px 64px rgba(14, 34, 68, .16);
  transform: translateX(102%);
  visibility: hidden;
  transition: transform .3s var(--ease), visibility .3s;
  z-index: 120;
}
.search-panel[data-open="true"] {
  transform: translateX(0);
  visibility: visible;
}
.search-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.search-panel__title {
  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .2em;
  color: var(--slate);
}
.search-panel__close {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  font-size: 20px;
  line-height: 1;
  color: var(--slate);
  border: 1px solid var(--mist);
  border-radius: 2px;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.search-panel__close:hover {
  background: var(--storm);
  border-color: var(--storm);
  color: #fff;
}
.search-panel__input {
  width: 100%;
  height: 46px;
  padding: 0 12px;
  background: var(--cloud);
  border: 1px solid var(--mist);
  border-radius: 2px;
  font-size: 15px;
  color: var(--ink);
}
.search-panel__input:focus {
  outline: none;
  border-color: var(--storm);
  box-shadow: inset 0 -3px 0 var(--bolt);
}
.search-panel__list {
  margin-top: 16px;
  border-top: 1px solid var(--mist);
}
.search-panel__list li { border-bottom: 1px solid var(--mist); }
.search-panel__list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 2px;
  font-size: 15px;
  color: var(--ink);
  text-decoration: none;
  transition: color var(--dur) var(--ease), padding-left var(--dur) var(--ease);
}
.search-panel__list a:hover,
.search-panel__list a:focus-visible {
  color: var(--bolt);
  padding-left: 8px;
}
.search-panel__num {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .1em;
  color: var(--slate);
}
.search-panel__status {
  margin-top: 14px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .08em;
  color: var(--slate);
}

/* ---------- 6. Footer ---------- */
.site-footer {
  background: var(--storm);
  color: #fff;
}

.site-footer__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(48px, 6vw, 88px) var(--gutter) clamp(36px, 4vw, 56px);
}

.site-footer__tagline {
  max-width: 24ch;
  padding-bottom: clamp(24px, 3vw, 32px);
  margin-bottom: clamp(32px, 4vw, 56px);
  border-bottom: 1px solid rgba(255, 255, 255, .16);
  font-family: var(--f-serif);
  font-weight: 600;
  font-size: clamp(22px, 2.6vw, 32px);
  line-height: 1.35;
  color: #fff;
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.2fr 1.3fr;
  gap: clamp(24px, 4vw, 56px);
  align-items: start;
}

.site-footer__col { min-width: 0; }
.site-footer__col--offset { padding-top: 22px; }
.site-footer__col--offset2 { padding-top: 40px; }

.footer-heading {
  margin-bottom: 14px;
  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .2em;
  color: var(--clay);
}

.footer-brand__name {
  font-family: var(--f-display);
  font-weight: 900;
  font-size: 22px;
  line-height: 1.15;
  letter-spacing: .01em;
  color: #fff;
  margin-bottom: 8px;
}
.footer-brand__meta {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: .1em;
  color: #9FB6CC;
  line-height: 1.9;
}

.footer-nav { display: flex; flex-direction: column; }

.footer-link {
  display: inline-block;
  padding: 2px 0;
  font-size: 15px;
  line-height: 1.9;
  color: #DCE6F1;
  text-decoration: none;
  transition: color var(--dur) var(--ease);
}
.footer-link:hover { color: var(--clay); }

.footer-link--arrow {
  margin-top: 10px;
  padding-bottom: 2px;
  border-bottom: 1px solid rgba(255, 180, 138, .45);
  color: #fff;
}
.footer-link--arrow::after {
  content: " →";
  color: var(--clay);
}
.footer-link--arrow:hover { border-bottom-color: var(--clay); }

.footer-scope {
  font-size: 14px;
  line-height: 1.8;
  color: #C7D6E6;
  margin-bottom: 6px;
}

.footer-contact { display: flex; flex-direction: column; gap: 3px; }
.footer-contact li {
  font-size: 14px;
  line-height: 1.85;
  color: #C7D6E6;
  word-break: break-word;
}
.footer-contact a {
  color: #fff;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 180, 138, .4);
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.footer-contact a:hover {
  color: var(--clay);
  border-bottom-color: var(--clay);
}

.site-footer__base { background: var(--deep); }
.site-footer__baseinner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 18px var(--gutter);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 28px;
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: .06em;
  color: #8FA9C2;
}
.footer-copy { color: #8FA9C2; }
.site-footer__legal { display: flex; flex-wrap: wrap; gap: 22px; }
.site-footer__legal a {
  color: #8FA9C2;
  text-decoration: none;
  transition: color var(--dur) var(--ease);
}
.site-footer__legal a:hover { color: var(--clay); }

/* ---------- 7. Components ---------- */
/* 按钮 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 26px;
  font-family: var(--f-body);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .04em;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: 2px;
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 0 100%);
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn:focus-visible {
  outline: none;
  box-shadow: inset 0 0 0 2px var(--cloud), inset 0 0 0 4px var(--bolt);
}
.btn--primary { background: var(--bolt); color: var(--deep); }
.btn--primary:hover { background: var(--clay); }
.btn--solid { background: var(--storm); color: #fff; }
.btn--solid:hover { background: var(--deep); }
.btn--ghost {
  background: transparent;
  border-color: var(--mist);
  color: var(--storm);
}
.btn--ghost:hover {
  background: var(--storm);
  border-color: var(--storm);
  color: #fff;
}

/* 面包屑 */
.breadcrumb {
  margin-bottom: 24px;
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: .06em;
  color: var(--slate);
}
.breadcrumb ol { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.breadcrumb li { display: flex; align-items: center; gap: 8px; }
.breadcrumb li:not(:last-child)::after {
  content: "/";
  color: var(--slate);
  opacity: .55;
}
.breadcrumb a {
  color: var(--slate);
  text-decoration: none;
  transition: color var(--dur) var(--ease);
}
.breadcrumb a:hover { color: var(--bolt); }
.breadcrumb [aria-current="page"] { color: var(--ink); }

/* 长文 */
.prose {
  max-width: 68ch;
  font-size: 17px;
  line-height: 1.85;
  color: var(--ink);
}
.prose > * + * { margin-top: 1.1em; }
.prose h2 {
  margin-top: 2em;
  font-family: var(--f-serif);
  font-weight: 600;
  font-size: clamp(22px, 2.4vw, 30px);
  line-height: 1.4;
  letter-spacing: 0;
}
.prose h3 {
  margin-top: 1.7em;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.5;
}
.prose ul,
.prose ol { margin: 1em 0; }
.prose li {
  position: relative;
  padding-left: 22px;
  margin-bottom: .5em;
}
.prose li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .78em;
  width: 8px;
  height: 2px;
  background: var(--bolt);
}
.prose a {
  color: var(--storm);
  text-decoration: underline;
  text-decoration-color: var(--clay);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}
.prose a:hover { color: var(--bolt); }

/* 章节大编号 */
.chapter-no {
  display: block;
  font-family: var(--f-mono);
  font-weight: 700;
  font-size: clamp(72px, 9vw, 180px);
  line-height: .8;
  letter-spacing: -.04em;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--slate);
}
@supports not ((-webkit-text-stroke: 1px #000) or (text-stroke: 1px #000)) {
  .chapter-no { color: var(--mist); }
}

/* 切角面板 */
.panel {
  position: relative;
  padding: clamp(20px, 3vw, 32px);
  background: #fff;
  border: 1px solid var(--mist);
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 0 100%);
}
.panel--alt {
  clip-path: polygon(18px 0, 100% 0, 100% 100%, 0 100%, 0 18px);
}
.panel--dark {
  background: var(--storm);
  border-color: transparent;
  color: #fff;
}
.panel--linen { background: var(--linen); }

/* 标签与状态 */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 26px;
  padding: 0 10px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .1em;
  color: var(--storm);
  background: var(--mist);
  border-radius: 1px;
  text-decoration: none;
}
.tag--bolt { background: var(--bolt); color: var(--deep); }
.tag--moss { background: rgba(94, 139, 106, .16); color: #3E6B4B; }

.dot {
  display: inline-block;
  flex: 0 0 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--moss);
}

/* 图片容器基础规则 */
.media-frame {
  position: relative;
  overflow: hidden;
  background: var(--storm);
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 0 100%);
}
.media-frame > img,
.media-frame > svg,
.media-frame > video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.media-frame--wide   { aspect-ratio: 16 / 9; }
.media-frame--tall   { aspect-ratio: 3 / 4; }
.media-frame--square { aspect-ratio: 1 / 1; }
.media-frame--band   { aspect-ratio: 21 / 9; }
.media-frame__fallback {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  padding: 16px;
  background-image:
    linear-gradient(135deg, var(--storm), var(--deep)),
    repeating-linear-gradient(45deg, rgba(255,255,255,.06) 0 1px, transparent 1px 12px);
  background-blend-mode: normal;
  color: var(--clay);
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: .2em;
  text-align: center;
}

/* ---------- 8. Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- 9. Responsive ---------- */
@media (max-width: 1180px) {
  .site-nav__link { font-size: 14px; }
  .search-btn__label { display: none; }
  .search-btn { padding: 0 12px; }
}

@media (max-width: 1100px) {
  :root { --rail-w: 96px; }
  .site-brand { padding: 0 12px; }
  .site-brand__name { font-size: 15px; }
  .site-brand__meta { font-size: 10px; letter-spacing: .12em; }
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
  .site-footer__col--offset,
  .site-footer__col--offset2 { padding-top: 0; }
  .grid-12 { gap: 20px; }
  .span-4, .span-5, .span-7, .span-8 { grid-column: span 6; }
}

@media (max-width: 900px) {
  :root { --header-h: 56px; }

  .site-brand {
    flex: 0 0 auto;
    width: auto;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    padding: 0 18px;
  }
  .site-brand__name { flex-direction: row; font-size: 17px; }
  .site-brand__meta { display: none; }
  .site-brand::after { width: 2px; }

  .site-util { margin-left: auto; padding: 0 12px 0 0; gap: 8px; }
  .nav-toggle { display: flex; }

  .site-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    bottom: 0;
    margin: 0;
    padding: 20px 24px 56px;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--storm);
    background-image: repeating-linear-gradient(135deg, rgba(255,255,255,.05) 0 1px, transparent 1px 12px);
    overflow-y: auto;
    transform: translateX(-102%);
    visibility: hidden;
    transition: transform .3s var(--ease), visibility .3s;
    z-index: 99;
  }
  .site-header[data-open="true"] .site-nav {
    transform: translateX(0);
    visibility: visible;
  }
  .site-nav__link {
    height: auto;
    padding: 18px 0;
    font-size: 26px;
    font-weight: 800;
    letter-spacing: .01em;
    color: #fff;
    border-bottom: 1px solid rgba(255, 255, 255, .15);
  }
  .site-nav__link::after { display: none; }
  .site-nav__link:hover { color: var(--clay); }
  .site-nav__link[aria-current="page"] { color: var(--clay); }
  .site-nav__link[aria-current="page"]::before {
    content: "";
    position: absolute;
    left: -14px;
    top: 50%;
    width: 4px;
    height: 26px;
    background: var(--bolt);
    transform: translateY(-50%);
  }
  .site-nav__num {
    display: inline-block;
    width: 48px;
    font-family: var(--f-mono);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: .12em;
    color: var(--clay);
    vertical-align: middle;
  }

  .search-panel { width: 100%; max-width: 100%; }

  .span-3, .span-4, .span-5, .span-6, .span-7, .span-8, .span-9 {
    grid-column: span 12;
  }
  .grid-12 { gap: 16px; }
}

@media (max-width: 640px) {
  body { font-size: 16px; line-height: 1.8; }
  .site-footer__grid { grid-template-columns: 1fr; gap: 32px; }
  .site-footer__legal { gap: 16px; }
  .site-footer__baseinner { justify-content: flex-start; }
  .prose { font-size: 16px; }
}
