/* =========================================================
   必发赛场 · 共享站点样式 /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, p,
ul, ol, li, dl, dd,
figure, blockquote, address { margin: 0; }

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

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

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

a { color: inherit; text-decoration: none; }

address { font-style: normal; }

/* ---------- 2. Tokens ---------- */
:root {
  --ink-900: #0C1712;
  --pitch-900: #10281C;
  --pitch-700: #1B4D33;
  --pitch-500: #2E7D4F;
  --cement-050: #F7F4EC;
  --cement-200: #E2DCCD;
  --cement-600: #5F5A4E;
  --signal-500: #F26419;
  --signal-700: #A93B0C;
  --score-400: #D8FF4A;
  --paper-000: #FFFFFF;
  --alert-600: #B3261E;

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

  --rail-w: 96px;
  --topbar-h: 58px;
  --gutter: clamp(18px, 4vw, 56px);
  --maxw: 1200px;
  --cut: 18px;
  --ease: cubic-bezier(.4, 0, .2, 1);
  --shadow-1: 0 18px 40px -26px rgba(12, 23, 18, .65);
}

/* ---------- 3. Base ---------- */
body {
  position: relative;
  min-height: 100vh;
  overflow-x: hidden;
  padding-top: var(--topbar-h);
  background-color: var(--cement-050);
  background-image: repeating-linear-gradient(0deg, rgba(12, 23, 18, .022) 0 1px, transparent 1px 5px);
  background-attachment: fixed;
  color: var(--ink-900);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

body.is-nav-open { overflow: hidden; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.02em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.4rem, 6vw, 6.5rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.8rem); line-height: 1.14; }
h3 { font-size: clamp(1.15rem, 1.6vw, 1.5rem); line-height: 1.24; letter-spacing: -.01em; }
h4 { font-size: 1rem; line-height: 1.35; letter-spacing: 0; }

p { max-width: 68ch; }

strong { font-weight: 700; }

::selection {
  background: var(--score-400);
  color: var(--pitch-900);
}

/* ---------- 4. Focus & utilities ---------- */
:focus-visible {
  outline: 2px solid var(--signal-500);
  outline-offset: 3px;
  border-radius: 1px;
}

.site-header :focus-visible,
.site-footer :focus-visible {
  outline-color: var(--score-400);
  outline-offset: 4px;
}

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

.skip-link {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 200;
  padding: 11px 20px;
  background: var(--score-400);
  color: var(--ink-900);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .06em;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 12px 100%);
  transform: translateY(-130%);
  transition: transform .18s var(--ease);
}

.skip-link:focus,
.skip-link:focus-visible {
  transform: translateY(0);
  outline-offset: -4px;
}

/* ---------- 5. Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  padding: .72em 1.15em;
  font-family: var(--font-body);
  font-size: .86rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: .02em;
  color: var(--cement-050);
  background: var(--ink-900);
  border: 0;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 0 100%);
  transition: background-color .18s var(--ease), color .18s var(--ease), transform .18s var(--ease);
}

.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: none; box-shadow: inset 0 0 0 2px var(--score-400); }

.btn--signal { background: var(--signal-500); color: #14100C; }
.btn--signal:hover { background: #FF7C36; }

.btn--ghost { background: rgba(247, 244, 236, .1); color: var(--cement-050); }
.btn--ghost:hover { background: rgba(247, 244, 236, .2); }

.btn--score { background: var(--score-400); color: var(--pitch-900); }
.btn--score:hover { background: #E4FF7A; }

.btn--block { width: 100%; }

/* ---------- 6. Header shell ---------- */
.site-header {
  position: relative;
  z-index: 60;
}

/* ---------- 7. Mobile top bar ---------- */
.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 70;
  display: flex;
  align-items: center;
  gap: 12px;
  height: var(--topbar-h);
  padding: 0 14px 0 14px;
  background: var(--pitch-900);
  color: var(--cement-050);
  border-bottom: 1px solid rgba(216, 255, 74, .18);
  box-shadow: 0 12px 26px -22px rgba(12, 23, 18, .95);
}

.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  flex: 1 1 auto;
}

.brand__mark {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  background: var(--score-400);
  color: var(--pitch-900);
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 900;
  clip-path: polygon(0 0, 100% 0, 100% 70%, 70% 100%, 0 100%);
}

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

.brand__name {
  font-family: var(--font-display);
  font-size: 14.5px;
  font-weight: 800;
  letter-spacing: .1em;
  white-space: nowrap;
}

.brand__sub {
  font-size: 10px;
  letter-spacing: .06em;
  color: rgba(247, 244, 236, .55);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.topbar__coord {
  padding-left: 12px;
  border-left: 1px solid rgba(216, 255, 74, .28);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .12em;
  color: var(--score-400);
  white-space: nowrap;
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: rgba(216, 255, 74, .1);
  color: var(--score-400);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .16em;
  clip-path: polygon(0 0, calc(100% - 9px) 0, 100% 9px, 100% 100%, 0 100%);
  transition: background-color .18s var(--ease);
}

.nav-toggle:hover { background: rgba(216, 255, 74, .22); }

.nav-toggle__bars {
  display: grid;
  gap: 3px;
  width: 15px;
}

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

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

/* ---------- 8. Rail nav (mobile drawer) ---------- */
.rail {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 90;
  width: min(330px, 86vw);
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 16px 16px 22px;
  background: var(--pitch-900);
  background-image: linear-gradient(180deg, rgba(216, 255, 74, .08), transparent 40%);
  color: var(--cement-050);
  border-left: 1px solid rgba(216, 255, 74, .2);
  box-shadow: -30px 0 60px -30px rgba(0, 0, 0, .85);
  overflow-y: auto;
  overscroll-behavior: contain;
  transform: translateX(103%);
  visibility: hidden;
  transition: transform .3s var(--ease), visibility .3s var(--ease);
}

.rail[data-open="true"] {
  transform: none;
  visibility: visible;
}

.rail__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(247, 244, 236, .14);
}

.rail__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.rail__mark {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  background: var(--score-400);
  color: var(--pitch-900);
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 900;
  clip-path: polygon(0 0, 100% 0, 100% 70%, 70% 100%, 0 100%);
}

.rail__name {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .16em;
  white-space: nowrap;
}

.rail__close {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  background: rgba(247, 244, 236, .08);
  color: rgba(247, 244, 236, .78);
  font-size: 11px;
  letter-spacing: .12em;
  transition: color .18s var(--ease), background-color .18s var(--ease);
}

.rail__close:hover {
  color: var(--score-400);
  background: rgba(247, 244, 236, .16);
}

.rail__list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 4px;
}

.rail__link {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 12px;
  padding: 11px 12px 11px 14px;
  color: rgba(247, 244, 236, .74);
  font-size: 14px;
  font-weight: 600;
  transition: color .18s var(--ease), background-color .18s var(--ease);
}

.rail__link::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: transparent;
  transition: background-color .18s var(--ease);
}

.rail__link:hover {
  color: var(--cement-050);
  background: rgba(247, 244, 236, .07);
}

.rail__link[aria-current="page"] {
  color: var(--score-400);
  background: var(--pitch-700);
}

.rail__link[aria-current="page"]::before { background: var(--signal-500); }

.rail__num {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .08em;
  color: var(--signal-500);
}

.rail__link[aria-current="page"] .rail__num { color: var(--score-400); }

.rail__txt { letter-spacing: .02em; }

.rail__foot {
  margin-top: auto;
  display: grid;
  gap: 8px;
  padding-top: 14px;
  border-top: 1px solid rgba(247, 244, 236, .14);
}

.rail__season {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 9px 11px;
  background: rgba(216, 255, 74, .08);
  border-left: 2px solid var(--score-400);
}

.rail__season-k {
  font-size: 10px;
  letter-spacing: .16em;
  color: rgba(247, 244, 236, .6);
}

.rail__season-v {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .04em;
  color: var(--score-400);
}

.rail__coord {
  padding-top: 4px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: .18em;
  color: rgba(247, 244, 236, .38);
  text-align: center;
}

/* ---------- 9. Scrim ---------- */
.rail-scrim {
  position: fixed;
  inset: 0;
  z-index: 85;
  background: rgba(8, 18, 13, .66);
  opacity: 0;
  visibility: hidden;
  transition: opacity .28s var(--ease), visibility .28s var(--ease);
}

.rail[data-open="true"] + .rail-scrim {
  opacity: 1;
  visibility: visible;
}

/* ---------- 10. Season chip ---------- */
.season-chip {
  display: none;
  position: fixed;
  top: 16px;
  right: 22px;
  z-index: 50;
  align-items: center;
  gap: 12px;
  padding: 9px 15px;
  background: var(--ink-900);
  color: var(--cement-050);
  font-size: 11px;
  letter-spacing: .1em;
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 0 100%);
  box-shadow: var(--shadow-1);
  transition: background-color .18s var(--ease);
}

.season-chip:hover { background: var(--pitch-700); }

.season-chip__label {
  font-size: 9.5px;
  letter-spacing: .18em;
  color: rgba(247, 244, 236, .58);
}

.season-chip__value {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--score-400);
}

.season-chip__round {
  padding-left: 12px;
  border-left: 1px solid rgba(247, 244, 236, .2);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .06em;
  color: var(--signal-500);
}

/* ---------- 11. Reading progress ---------- */
.read-progress {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 100;
  height: 3px;
  background: rgba(12, 23, 18, .14);
  pointer-events: none;
}

.read-progress__bar {
  display: block;
  width: 100%;
  height: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--signal-500) 0 62%, var(--score-400) 62% 100%);
  transition: transform .12s linear;
}

/* ---------- 12. Footer ---------- */
.site-footer {
  position: relative;
  margin-top: clamp(56px, 9vw, 120px);
  padding: clamp(46px, 7vw, 84px) var(--gutter) 22px;
  background: var(--pitch-900);
  color: rgba(247, 244, 236, .78);
  clip-path: polygon(0 26px, 100% 0, 100% 100%, 0 100%);
  overflow: hidden;
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: repeating-linear-gradient(90deg, rgba(216, 255, 74, .055) 0 1px, transparent 1px 76px);
}

.site-footer > * { position: relative; }

.footer__scan {
  width: 100%;
  max-width: var(--maxw);
  height: 6px;
  margin: 0 auto clamp(24px, 4vw, 40px);
  background: repeating-linear-gradient(90deg, var(--score-400) 0 16px, transparent 16px 30px);
  opacity: .45;
}

.footer__inner {
  display: grid;
  gap: clamp(26px, 4vw, 44px);
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer__mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  background: var(--score-400);
  color: var(--pitch-900);
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 900;
  clip-path: polygon(0 0, 100% 0, 100% 70%, 70% 100%, 0 100%);
}

.footer__brandtext {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.footer__brandtext strong {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: .14em;
  color: var(--cement-050);
}

.footer__brandtext em {
  margin-top: 3px;
  font-style: normal;
  font-size: 10.5px;
  letter-spacing: .14em;
  color: rgba(247, 244, 236, .5);
}

.footer__summary {
  margin-top: 18px;
  max-width: 44ch;
  font-size: 13.5px;
  line-height: 1.8;
  color: rgba(247, 244, 236, .7);
}

.footer__nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.footer__title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .22em;
  color: var(--score-400);
}

.footer__title::before {
  content: "";
  width: 10px;
  height: 2px;
  background: var(--signal-500);
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.footer__links a {
  display: inline-block;
  font-size: 13.5px;
  color: rgba(247, 244, 236, .72);
  transition: color .18s var(--ease), padding-left .18s var(--ease);
}

.footer__links a:hover {
  color: var(--score-400);
  padding-left: 5px;
}

.footer__address {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
  line-height: 1.6;
  color: rgba(247, 244, 236, .74);
}

.footer__line {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 8px;
  align-items: baseline;
  word-break: break-word;
}

.footer__k {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: .16em;
  color: rgba(216, 255, 74, .72);
}

.footer__note {
  margin-top: 14px;
  max-width: 34ch;
  font-size: 11.5px;
  line-height: 1.65;
  color: rgba(247, 244, 236, .45);
}

.footer__bottom {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
  margin-top: clamp(10px, 2vw, 20px);
  padding-top: 16px;
  border-top: 1px solid rgba(247, 244, 236, .14);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .08em;
  color: rgba(247, 244, 236, .45);
}

.footer__legal { color: rgba(247, 244, 236, .58); }

/* ---------- 13. Back to top ---------- */
.to-top {
  position: fixed;
  right: 16px;
  bottom: 18px;
  z-index: 95;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  background: var(--signal-500);
  color: #14100C;
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 700;
  clip-path: polygon(0 0, 100% 0, 100% 68%, 68% 100%, 0 100%);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity .22s var(--ease), transform .22s var(--ease), visibility .22s var(--ease), background-color .18s var(--ease);
}

.to-top[data-visible="true"] {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.to-top:hover { background: #FF7C36; }
.to-top:focus-visible { outline: none; box-shadow: inset 0 0 0 2px var(--pitch-900); }

/* ---------- 14. Shared layout components ---------- */
#main-content { display: block; }

.page {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding: clamp(28px, 4vw, 48px) var(--gutter);
}

.section { margin-top: clamp(40px, 6vw, 80px); }

.section__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px 18px;
  margin-bottom: clamp(18px, 2.5vw, 30px);
  padding-bottom: 12px;
  border-bottom: 1px solid var(--cement-200);
}

.section__title { font-size: clamp(1.35rem, 2.6vw, 2.1rem); }

.section__lede {
  max-width: 54ch;
  font-size: 14px;
  line-height: 1.7;
  color: var(--cement-600);
}

.section__more {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .12em;
  color: var(--signal-700);
  transition: color .18s var(--ease);
}

.section__more:hover { color: var(--signal-500); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .22em;
  color: var(--signal-700);
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--signal-500);
}

.crumb { margin-bottom: clamp(16px, 2vw, 28px); }

.crumb__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .1em;
  color: var(--cement-600);
}

.crumb__list li + li::before {
  content: "/";
  margin-right: 8px;
  color: var(--cement-200);
}

.crumb__list a {
  color: var(--cement-600);
  transition: color .18s var(--ease);
}

.crumb__list a:hover { color: var(--signal-700); }
.crumb__list [aria-current="page"] { color: var(--ink-900); }

.panel {
  padding: clamp(18px, 2.4vw, 28px);
  background: var(--paper-000);
  border: 1px solid var(--cement-200);
}

.panel--cut {
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%);
}

.panel--dark {
  background: var(--pitch-900);
  border-color: rgba(216, 255, 74, .2);
  color: rgba(247, 244, 236, .8);
}

.panel--dark h2,
.panel--dark h3,
.panel--dark h4 { color: var(--cement-050); }

.panel--signal {
  background: var(--signal-500);
  border-color: transparent;
  color: #14100C;
}

.media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: var(--pitch-700);
  border: 1px solid var(--cement-200);
}

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

.media--cut {
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 22px), calc(100% - 22px) 100%, 0 100%);
}

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

.media--placeholder {
  display: grid;
  place-items: center;
  padding: 18px;
  background-image: repeating-linear-gradient(135deg, rgba(216, 255, 74, .14) 0 12px, transparent 12px 24px);
  color: rgba(247, 244, 236, .6);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .16em;
  text-align: center;
}

.media__caption {
  margin-top: 8px;
  font-size: 11.5px;
  letter-spacing: .02em;
  color: var(--cement-600);
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.stat__value {
  font-family: var(--font-mono);
  font-size: clamp(1.7rem, 3.4vw, 2.6rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.02em;
  color: var(--pitch-700);
}

.stat__label {
  font-size: 11px;
  letter-spacing: .16em;
  color: var(--cement-600);
}

.stat--onDark .stat__value { color: var(--score-400); }
.stat--onDark .stat__label { color: rgba(247, 244, 236, .6); }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 13px;
  background: var(--paper-000);
  border: 1px solid var(--cement-200);
  color: var(--ink-900);
  font-size: 12.5px;
  letter-spacing: .02em;
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 0 100%);
  transition: background-color .18s var(--ease), color .18s var(--ease), border-color .18s var(--ease);
}

.chip:hover {
  border-color: var(--pitch-500);
  color: var(--pitch-700);
}

.chip.is-active,
.chip[aria-current="true"],
.chip[aria-pressed="true"] {
  background: var(--signal-500);
  border-color: var(--signal-500);
  color: #14100C;
  font-weight: 700;
}

.bento {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(12px, 1.6vw, 20px);
}

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

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

.prose h2 {
  margin-top: 2.2em;
  font-size: clamp(1.35rem, 2vw, 1.9rem);
}

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

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

.prose ol { list-style: decimal; }
.prose li + li { margin-top: .4em; }

.prose a {
  color: var(--signal-700);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.prose a:hover { color: var(--signal-500); }

/* ---------- 15. Reveal ---------- */
[data-reveal] {
  transition: opacity .55s var(--ease), transform .55s var(--ease);
}

html.has-js [data-reveal] {
  opacity: 0;
  transform: translateY(12px);
}

html.has-js [data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- 16. Tablet ---------- */
@media (min-width: 640px) {
  .footer__inner { gap: 32px; }
}

@media (min-width: 760px) {
  .bento { grid-template-columns: repeat(12, 1fr); }
  .span-3 { grid-column: span 3; }
  .span-4 { grid-column: span 4; }
  .span-6 { grid-column: span 6; }
  .span-8 { grid-column: span 8; }
  .span-9 { grid-column: span 9; }
  .span-12 { grid-column: span 12; }
}

@media (min-width: 800px) {
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .footer__lead { grid-column: 1 / -1; }
}

/* ---------- 17. Desktop ---------- */
@media (min-width: 900px) {
  body {
    padding-top: 0;
    padding-left: var(--rail-w);
  }

  .topbar { display: none; }

  #main-content { padding-top: clamp(52px, 6vw, 80px); }

  .rail {
    top: 0;
    right: auto;
    bottom: 0;
    left: 0;
    width: var(--rail-w);
    align-items: center;
    gap: 0;
    padding: 18px 8px 16px;
    border-left: 0;
    border-right: 1px solid rgba(216, 255, 74, .18);
    box-shadow: none;
    background-image: repeating-linear-gradient(180deg, rgba(216, 255, 74, .05) 0 1px, transparent 1px 26px);
    transform: none;
    visibility: visible;
    overflow-x: hidden;
    overflow-y: auto;
    scrollbar-width: none;
  }

  .rail::-webkit-scrollbar { width: 0; height: 0; }

  .rail__head {
    flex-direction: column;
    justify-content: flex-start;
    gap: 12px;
    width: 100%;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(247, 244, 236, .12);
  }

  .rail__brand {
    flex-direction: column;
    gap: 10px;
  }

  .rail__name {
    writing-mode: vertical-rl;
    text-orientation: upright;
    font-size: 11.5px;
    line-height: 1;
    letter-spacing: .36em;
  }

  .rail__close { display: none; }

  .rail__list {
    width: 100%;
    gap: 2px;
    margin-top: 14px;
    margin-bottom: 14px;
  }

  .rail__link {
    grid-template-columns: 1fr;
    gap: 1px;
    padding: 8px 6px 8px 9px;
    font-size: 11.5px;
    line-height: 1.3;
  }

  .rail__num { font-size: 9px; }

  .rail__txt {
    font-size: 11.5px;
    letter-spacing: .01em;
  }

  .rail__foot {
    width: 100%;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid rgba(247, 244, 236, .12);
  }

  .rail__foot .btn {
    width: 100%;
    padding: 8px 2px;
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: .03em;
    gap: 0;
  }

  .rail__season { display: none; }

  .rail-scrim { display: none; }

  .season-chip { display: inline-flex; }

  .read-progress { left: var(--rail-w); }

  .to-top {
    right: 26px;
    bottom: 26px;
    width: 50px;
    height: 50px;
  }

  .page { padding-inline: clamp(28px, 4vw, 64px); }
}

@media (min-width: 1080px) {
  .footer__inner { grid-template-columns: 1.05fr 1.1fr .85fr; }
  .footer__lead { grid-column: auto; }
}

/* ---------- 18. Small screens ---------- */
@media (max-width: 399px) {
  .brand__sub { display: none; }
  .brand__name { letter-spacing: .06em; }
}

@media (max-width: 520px) {
  .topbar__coord { display: none; }
  .nav-toggle__label { display: none; }
}

/* ---------- 19. Reduced 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;
  }

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

  .to-top,
  .to-top[data-visible="true"] { transform: none; }
}

/* ---------- 20. Print ---------- */
@media print {
  body {
    padding: 0;
    background: #fff;
    color: #000;
  }

  .topbar,
  .rail,
  .rail-scrim,
  .season-chip,
  .to-top,
  .read-progress { display: none !important; }

  .site-footer {
    background: #fff;
    color: #000;
    clip-path: none;
    border-top: 1px solid #999;
  }

  .site-footer::before,
  .footer__scan { display: none; }

  .footer__brandtext strong,
  .footer__title,
  .footer__legal { color: #000; }

  a { text-decoration: underline; }
}
