/* ============================================================
   /assets/site.css — 完美体育主站 共享外壳与基础组件
   ============================================================ */

/* ---------- 1. Reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body, h1, h2, h3, h4, h5, p, ul, ol, li, figure, figcaption, blockquote, dl, dt, dd, fieldset { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, 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; }
table { border-collapse: collapse; width: 100%; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }

/* ---------- 2. Tokens ---------- */
:root {
  --ink: #062A24;
  --ink-2: #0B3B32;
  --gold: #D6A93B;
  --gold-ink: #8A6318;
  --sand: #F4E8CF;
  --blue: #1E9DF2;
  --coral: #FF6B4A;
  --mint: #EAF6F1;
  --moss: #A9C6B8;
  --night: #0E0F12;
  --mist: #DDF3EA;

  --frame-w: 1340px;
  --gutter: clamp(16px, 3.2vw, 40px);
  --side-w: 300px;

  --cut: 12px;
  --cut-sm: 8px;

  --font-sans: "PingFang SC", "HarmonyOS Sans SC", "Source Han Sans SC", "Noto Sans SC", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Roboto Mono", "Courier New", monospace;

  --shadow-1: 0 18px 40px -28px rgba(6, 42, 36, 0.55);
  --shadow-2: 0 26px 60px -34px rgba(6, 42, 36, 0.65);

  --line: rgba(6, 42, 36, 0.16);
  --line-gold: rgba(214, 169, 59, 0.42);
  --line-light: rgba(244, 232, 207, 0.18);
}

/* ---------- 3. Base ---------- */
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
  color: var(--night);
  background-color: var(--mint);
  background-image: radial-gradient(circle at 88% -8%, rgba(221, 243, 234, 0.95), transparent 58%);
}
#main-content { flex: 1 1 auto; scroll-margin-top: 110px; }
body.is-locked { overflow: hidden; }

h1, h2, h3, h4 { font-weight: 900; line-height: 1.16; letter-spacing: -0.01em; }
h1 { font-size: clamp(32px, 5vw, 58px); }
h2 { font-size: clamp(25px, 3.4vw, 40px); }
h3 { font-size: clamp(18px, 2vw, 23px); }
h4 { font-size: clamp(16px, 1.7vw, 19px); }

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

/* ---------- 4. Skip link ---------- */
.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 200;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 800;
  color: var(--ink);
  background: var(--gold);
  transform: translateY(-200%);
  transition: transform 0.22s ease;
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
}
.skip-link:focus,
.skip-link:focus-visible {
  transform: translateY(0);
  outline: 3px solid var(--blue);
  outline-offset: -5px;
}

/* ---------- 5. Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  color: var(--sand);
  background:
    radial-gradient(120% 200% at 94% -60%, rgba(30, 157, 242, 0.24), transparent 62%),
    linear-gradient(180deg, #062A24 0%, #05231E 100%);
  border-bottom: 1px solid var(--line-gold);
  box-shadow: 0 24px 46px -34px rgba(0, 0, 0, 0.92);
}
.site-header__inner {
  display: grid;
  grid-template-columns: minmax(0, auto) 1fr;
  grid-template-areas:
    "brand quick"
    "nav nav";
  align-items: center;
  column-gap: clamp(16px, 3vw, 36px);
  row-gap: 6px;
  width: 100%;
  max-width: var(--frame-w);
  margin-inline: auto;
  padding: 12px var(--gutter) 0;
}

/* brand */
.brand {
  grid-area: brand;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 4px 0;
}
.brand__mark {
  position: relative;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  background: linear-gradient(150deg, #EFC55F 0%, var(--gold) 45%, #A87B1C 100%);
  clip-path: polygon(50% 0, 100% 26%, 100% 74%, 50% 100%, 0 74%, 0 26%);
}
.brand__mark-ring {
  width: 15px;
  height: 15px;
  border: 2px solid var(--ink);
  border-top-color: transparent;
  border-radius: 50%;
  transform: rotate(-32deg);
}
.brand__text {
  display: grid;
  gap: 1px;
  min-width: 0;
}
.brand__name {
  font-size: clamp(17px, 1.6vw, 20px);
  font-weight: 900;
  letter-spacing: 0.06em;
  color: var(--sand);
  white-space: nowrap;
  transform: skewX(-3deg);
  transform-origin: left center;
}
.brand__sub {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  color: rgba(244, 232, 207, 0.58);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.brand:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 4px;
}

/* quick rail */
.quick-rail {
  grid-area: quick;
  justify-self: end;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.quick-rail__legend {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.22em;
  color: rgba(244, 232, 207, 0.5);
  white-space: nowrap;
}
.quick-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--sand);
  background: rgba(11, 59, 50, 0.9);
  border: 1px solid rgba(214, 169, 59, 0.36);
  clip-path: polygon(9px 0, 100% 0, 100% calc(100% - 9px), calc(100% - 9px) 100%, 0 100%, 0 9px);
  transition: background-color 0.22s ease, color 0.22s ease, border-color 0.22s ease, transform 0.22s ease;
}
.quick-link:hover,
.quick-link:focus-visible {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--ink);
  transform: translateY(-1px);
}
.quick-link:focus-visible { outline: 3px solid var(--blue); outline-offset: -4px; }
.quick-link__index {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  color: var(--gold);
}
.quick-link:hover .quick-link__index,
.quick-link:focus-visible .quick-link__index { color: var(--ink); }
.quick-link--hot { border-color: rgba(255, 107, 74, 0.6); }
.quick-link--hot .quick-link__index { color: var(--coral); }
.quick-link--hot:hover .quick-link__index { color: var(--ink); }
.quick-link__label { white-space: nowrap; }

/* main nav */
.site-nav {
  grid-area: nav;
  display: flex;
  align-items: center;
  gap: clamp(8px, 1.8vw, 22px);
  min-width: 0;
  padding: 6px 0 8px;
  border-top: 1px solid rgba(244, 232, 207, 0.14);
}
.site-nav__legend {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.24em;
  color: rgba(214, 169, 59, 0.9);
  white-space: nowrap;
}
.site-nav__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px;
  min-width: 0;
}
.site-nav__item { display: block; }
.site-nav__link {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  padding: 9px 13px;
  font-size: 14.5px;
  font-weight: 600;
  color: rgba(244, 232, 207, 0.82);
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
  transition: color 0.2s ease, background-color 0.2s ease;
}
.site-nav__index {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.04em;
  color: rgba(214, 169, 59, 0.72);
}
.site-nav__link::after {
  content: "";
  position: absolute;
  left: 13px;
  right: 13px;
  bottom: 4px;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.26s ease;
}
.site-nav__link:hover { color: var(--gold); background: rgba(214, 169, 59, 0.1); }
.site-nav__link:hover::after { transform: scaleX(1); }
.site-nav__link[aria-current="page"] {
  color: var(--gold);
  background: rgba(214, 169, 59, 0.16);
}
.site-nav__link[aria-current="page"]::after { transform: scaleX(1); }
.site-nav__link[aria-current="page"] .site-nav__index { color: var(--sand); }
.site-nav__link:focus-visible { outline: 3px solid var(--blue); outline-offset: -4px; }
.site-nav__season {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: rgba(244, 232, 207, 0.52);
  white-space: nowrap;
}
.site-nav__year { color: var(--blue); font-weight: 700; }

/* toggle */
.nav-toggle {
  grid-area: toggle;
  display: none;
  align-items: center;
  gap: 9px;
  padding: 9px 13px;
  font-size: 13px;
  font-weight: 700;
  color: var(--sand);
  background: rgba(214, 169, 59, 0.14);
  border: 1px solid var(--line-gold);
  clip-path: polygon(9px 0, 100% 0, 100% calc(100% - 9px), calc(100% - 9px) 100%, 0 100%, 0 9px);
}
.nav-toggle:focus-visible { outline: 3px solid var(--blue); outline-offset: -4px; }
.nav-toggle__bars { display: grid; gap: 3px; width: 16px; }
.nav-toggle__bar {
  display: block;
  height: 2px;
  background: currentColor;
  transition: transform 0.24s ease, opacity 0.18s ease;
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }
.nav-toggle__label { white-space: nowrap; }

/* drawer on desktop: participates in the header grid */
.site-drawer { display: contents; }

/* scroll progress */
.scroll-progress {
  position: relative;
  height: 2px;
  background: rgba(244, 232, 207, 0.1);
  overflow: hidden;
}
.scroll-progress__bar {
  display: block;
  width: 100%;
  height: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--gold) 0%, var(--blue) 62%, var(--coral) 100%);
  transition: transform 0.12s linear;
}

/* ---------- 6. Footer ---------- */
.site-footer {
  position: relative;
  padding-top: clamp(34px, 5vw, 64px);
  color: var(--sand);
  background:
    radial-gradient(90% 140% at 6% 0%, rgba(30, 157, 242, 0.14), transparent 62%),
    linear-gradient(180deg, #062A24 0%, #05201B 100%);
  border-top: 1px solid var(--line-gold);
}
.site-footer__inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr 1.35fr;
  gap: clamp(26px, 4.4vw, 60px);
  width: 100%;
  max-width: var(--frame-w);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.footer-brand { min-width: 0; }
.footer-brand__name {
  font-size: clamp(21px, 2.4vw, 29px);
  font-weight: 900;
  letter-spacing: 0.04em;
  color: var(--sand);
  transform: skewX(-3deg);
  transform-origin: left center;
}
.footer-brand__tag {
  margin-top: 4px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.2em;
  color: var(--gold);
  text-transform: uppercase;
}
.footer-brand__note {
  margin-top: 12px;
  max-width: 30em;
  font-size: 14px;
  line-height: 1.8;
  color: rgba(244, 232, 207, 0.72);
}
.footer-brand__track {
  display: block;
  width: min(230px, 74%);
  height: 8px;
  margin-top: 18px;
  background-image: repeating-linear-gradient(90deg, var(--gold) 0 2px, transparent 2px 14px);
  opacity: 0.6;
}

.footer-nav,
.footer-contact { min-width: 0; }
.footer-heading {
  margin-bottom: 14px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.24em;
  color: var(--gold);
}
.footer-heading::before {
  content: "";
  display: inline-block;
  width: 14px;
  height: 2px;
  margin-right: 8px;
  vertical-align: 4px;
  background: var(--gold);
}
.footer-list { display: grid; gap: 8px; }
.footer-list__item { display: block; }
.footer-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 2px 0;
  font-size: 15px;
  color: rgba(244, 232, 207, 0.86);
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.footer-link::before {
  content: "";
  width: 10px;
  height: 1px;
  background: var(--gold);
  opacity: 0.65;
}
.footer-link:hover {
  color: var(--gold);
  border-bottom-color: var(--gold);
  transform: translateX(3px);
}
.footer-link:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }

.contact-list { display: grid; gap: 9px; }
.contact-list__item {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  gap: 10px;
  align-items: baseline;
  padding-bottom: 8px;
  border-bottom: 1px dashed rgba(244, 232, 207, 0.14);
}
.contact-list__key {
  font-size: 12px;
  letter-spacing: 0.1em;
  color: rgba(244, 232, 207, 0.6);
}
.contact-list__val {
  font-family: var(--font-mono);
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--sand);
  word-break: break-word;
}
.footer-contact__note {
  margin-top: 12px;
  max-width: 34em;
  font-size: 13px;
  line-height: 1.75;
  color: rgba(244, 232, 207, 0.62);
}
.footer-cta { margin-top: 14px; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  width: 100%;
  max-width: var(--frame-w);
  margin: clamp(28px, 4vw, 48px) auto 0;
  padding: 16px var(--gutter) 22px;
  border-top: 1px solid rgba(244, 232, 207, 0.12);
}
.footer-bottom__copy,
.footer-bottom__legal {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.02em;
  color: rgba(244, 232, 207, 0.6);
}
.to-top {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 700;
  color: var(--sand);
  background: rgba(214, 169, 59, 0.1);
  border: 1px solid var(--line-gold);
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.to-top:hover { background: var(--gold); color: var(--ink); transform: translateY(-1px); }
.to-top:focus-visible { outline: 3px solid var(--blue); outline-offset: -4px; }
.to-top__arrow { font-family: var(--font-mono); }

.feedback-fab {
  position: fixed;
  right: clamp(12px, 2vw, 24px);
  bottom: clamp(12px, 2vw, 24px);
  z-index: 70;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 800;
  color: #FFFFFF;
  background: var(--coral);
  box-shadow: 0 16px 32px -18px rgba(255, 107, 74, 0.95);
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
  transition: background-color 0.2s ease, transform 0.2s ease;
}
.feedback-fab:hover { background: #E9522F; transform: translateY(-2px); }
.feedback-fab:focus-visible { outline: 3px solid var(--sand); outline-offset: -5px; }
.feedback-fab__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #FFFFFF;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.28);
}
.feedback-fab__label { letter-spacing: 0.08em; }

/* ---------- 7. Layout & sections ---------- */
.page-shell {
  width: 100%;
  max-width: var(--frame-w);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section { padding-block: clamp(36px, 5.5vw, 80px); }
.section--tight { padding-block: clamp(22px, 3vw, 38px); }
.section--mint { background: var(--mint); }
.section--sand { background: linear-gradient(180deg, #F8EFDB 0%, var(--sand) 100%); }
.section--dark {
  color: var(--sand);
  background:
    radial-gradient(80% 120% at 100% 0%, rgba(30, 157, 242, 0.16), transparent 60%),
    linear-gradient(165deg, var(--ink) 0%, #041D19 100%);
}
.section__head {
  display: grid;
  gap: 8px;
  max-width: 62em;
  margin-bottom: clamp(18px, 2.4vw, 30px);
}
.section__kicker {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--gold-ink);
}
.section__title {
  font-size: clamp(26px, 3.4vw, 42px);
  font-weight: 900;
  line-height: 1.12;
  color: var(--ink);
  transform: skewX(-2.5deg);
  transform-origin: left bottom;
}
.section__note { font-size: 14.5px; line-height: 1.8; color: rgba(14, 15, 18, 0.64); }
.section--dark .section__title { color: var(--sand); }
.section--dark .section__kicker { color: var(--gold); }
.section--dark .section__note { color: rgba(244, 232, 207, 0.66); }

.lede {
  max-width: 40em;
  font-size: clamp(17px, 1.7vw, 20px);
  line-height: 1.72;
  color: #1D3B33;
}
.prose { font-size: 16px; line-height: 1.85; }
.prose p { max-width: 38em; }
.prose p + p { margin-top: 1em; }
.prose a { text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 3px; }
.section--dark .prose { color: rgba(244, 232, 207, 0.82); }

/* ---------- 8. Breadcrumb ---------- */
.breadcrumb { padding-block: clamp(14px, 2vw, 22px); }
.breadcrumb__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: rgba(14, 15, 18, 0.62);
}
.breadcrumb__item { display: inline-flex; align-items: center; gap: 8px; }
.breadcrumb__item + .breadcrumb__item::before { content: "/"; color: var(--gold-ink); }
.breadcrumb__item a { border-bottom: 1px solid transparent; transition: border-color 0.2s ease, color 0.2s ease; }
.breadcrumb__item a:hover { color: var(--ink); border-bottom-color: var(--gold); }
.breadcrumb__item a:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.breadcrumb__item[aria-current="page"] { color: var(--ink); font-weight: 700; }

/* ---------- 9. Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--ink);
  background: var(--gold);
  clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut));
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.btn:hover { background: #E7BC53; transform: translateY(-1px); }
.btn:focus-visible { outline: 3px solid var(--blue); outline-offset: -5px; }
.btn--gold { background: var(--gold); color: var(--ink); }
.btn--dark { background: var(--ink); color: var(--sand); }
.btn--dark:hover { background: var(--ink-2); }
.btn--ghost {
  background: rgba(244, 232, 207, 0.08);
  color: var(--sand);
  box-shadow: inset 0 0 0 1px rgba(244, 232, 207, 0.4);
}
.btn--ghost:hover { background: rgba(244, 232, 207, 0.18); }
.btn--outline {
  background: transparent;
  color: var(--ink);
  box-shadow: inset 0 0 0 2px var(--ink);
}
.btn--outline:hover { background: var(--ink); color: var(--sand); }
.btn--sm { padding: 9px 16px; font-size: 13.5px; --cut: 8px; }
.btn-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }

/* ---------- 10. Panels ---------- */
.panel {
  position: relative;
  min-width: 0;
  padding: clamp(16px, 2.2vw, 26px);
  background: #FFFFFF;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-1);
}
.panel--cut {
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 14px 100%, 0 calc(100% - 14px));
}
.panel--dark {
  color: var(--sand);
  background: linear-gradient(160deg, var(--ink-2) 0%, var(--ink) 100%);
  border-color: rgba(214, 169, 59, 0.32);
}
.panel--sand { background: var(--sand); border-color: rgba(6, 42, 36, 0.2); }
.panel__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}
.panel__title { font-size: clamp(17px, 1.8vw, 20px); font-weight: 800; line-height: 1.32; }
.panel__body { font-size: 15px; line-height: 1.78; }
.panel__meta {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: rgba(14, 15, 18, 0.6);
}
.panel--dark .panel__meta { color: rgba(244, 232, 207, 0.63); }

/* ---------- 11. Tags ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--ink-2);
  background: rgba(6, 42, 36, 0.08);
  clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px);
}
.tag--gold { background: var(--gold); color: var(--ink); }
.tag--blue { background: rgba(30, 157, 242, 0.16); color: #0B6DB0; }
.tag--coral { background: rgba(255, 107, 74, 0.18); color: #B8381C; }
.tag--muted { background: rgba(169, 198, 184, 0.5); color: #28473D; }
.panel--dark .tag,
.section--dark .tag { background: rgba(244, 232, 207, 0.14); color: var(--sand); }

/* ---------- 12. Metrics ---------- */
.metric-row { display: flex; flex-wrap: wrap; gap: 12px; }
.metric {
  min-width: 106px;
  padding: 10px 13px;
  color: var(--sand);
  background: rgba(6, 42, 36, 0.92);
  border-left: 3px solid var(--gold);
}
.metric__value {
  font-family: var(--font-mono);
  font-size: clamp(20px, 2.4vw, 28px);
  font-weight: 700;
  line-height: 1.1;
  color: #FFFFFF;
}
.metric__label {
  font-size: 11.5px;
  letter-spacing: 0.08em;
  color: rgba(244, 232, 207, 0.72);
}

/* ---------- 13. Media ---------- */
.media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: linear-gradient(140deg, var(--mist) 0%, var(--moss) 100%);
}
.media--wide { aspect-ratio: 21 / 9; }
.media--tall { aspect-ratio: 4 / 5; }
.media__img { width: 100%; height: 100%; object-fit: cover; }
.media__badge {
  position: absolute;
  left: 10px;
  bottom: 10px;
  padding: 4px 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--sand);
  background: rgba(6, 42, 36, 0.84);
}
.media__caption {
  position: absolute;
  left: 10px;
  right: 10px;
  top: 10px;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
}

/* ---------- 14. Grid ---------- */
.grid { display: grid; gap: clamp(14px, 2vw, 24px); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--rail { grid-template-columns: minmax(0, 1fr) var(--side-w); align-items: start; }

/* ---------- 15. Filter ---------- */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: clamp(16px, 2vw, 26px);
}
.filter-btn {
  padding: 8px 16px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink-2);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: inset 0 0 0 1px rgba(6, 42, 36, 0.18);
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
  transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}
.filter-btn:hover { color: var(--ink); box-shadow: inset 0 0 0 1px var(--gold); }
.filter-btn[aria-pressed="true"] {
  color: var(--sand);
  background: var(--ink);
  box-shadow: inset 0 0 0 1px var(--ink);
}
.filter-btn:focus-visible { outline: 3px solid var(--blue); outline-offset: -4px; }
.filter-status {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--gold-ink);
}
.section--dark .filter-btn { color: var(--sand); background: rgba(244, 232, 207, 0.1); box-shadow: inset 0 0 0 1px rgba(244, 232, 207, 0.28); }
.section--dark .filter-btn[aria-pressed="true"] { background: var(--gold); color: var(--ink); box-shadow: inset 0 0 0 1px var(--gold); }
.section--dark .filter-status { color: var(--gold); }

/* ---------- 16. Accordion ---------- */
.accordion { display: grid; gap: 10px; }
.accordion__item { background: #FFFFFF; border: 1px solid var(--line); }
.accordion__summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  font-size: 16px;
  font-weight: 800;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
}
.accordion__summary::-webkit-details-marker { display: none; }
.accordion__summary::after {
  content: "+";
  font-family: var(--font-mono);
  font-size: 18px;
  color: var(--gold-ink);
}
.accordion__item[open] .accordion__summary { background: var(--sand); }
.accordion__item[open] .accordion__summary::after { content: "–"; }
.accordion__summary:focus-visible { outline: 3px solid var(--blue); outline-offset: -4px; }
.accordion__body {
  padding: 4px 16px 18px;
  font-size: 15px;
  line-height: 1.8;
  color: rgba(14, 15, 18, 0.78);
}
.accordion__body p { max-width: 40em; }
.accordion__body p + p { margin-top: 0.8em; }

/* ---------- 17. Timeline ---------- */
.timeline { position: relative; display: grid; padding-left: 26px; }
.timeline::before {
  content: "";
  position: absolute;
  left: 9px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: linear-gradient(180deg, var(--gold) 0%, rgba(214, 169, 59, 0.18) 100%);
}
.timeline__item { position: relative; padding-bottom: 22px; }
.timeline__item::before {
  content: "";
  position: absolute;
  left: -22px;
  top: 8px;
  width: 10px;
  height: 10px;
  background: var(--gold);
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
}
.timeline__year {
  display: block;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--gold-ink);
}
.timeline__text { font-size: 15px; line-height: 1.78; color: rgba(14, 15, 18, 0.78); }
.section--dark .timeline__year { color: var(--gold); }
.section--dark .timeline__text { color: rgba(244, 232, 207, 0.8); }

/* ---------- 18. Annotations & rules ---------- */
.annotation {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-ink);
}
.section--dark .annotation,
.panel--dark .annotation { color: var(--gold); }
.annotation--vertical {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  letter-spacing: 0.34em;
}
.tilt { display: inline-block; transform: skewX(-2.5deg); transform-origin: left bottom; }
.rule-slant {
  width: 100%;
  height: 10px;
  background-image: repeating-linear-gradient(115deg, var(--gold) 0 2px, transparent 2px 12px);
  opacity: 0.55;
}

/* ---------- 19. Reveal ---------- */
.js [data-reveal] { opacity: 0; transform: translate3d(0, 16px, 0); }
.js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
  transition: opacity 0.55s ease, transform 0.55s cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- 20. Responsive ---------- */
@media (max-width: 1023px) {
  .site-header__inner {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "brand toggle";
    row-gap: 0;
    padding: 10px var(--gutter) 12px;
  }
  .nav-toggle { display: inline-flex; }
  .brand__sub { display: none; }
  .site-drawer {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: block;
    max-height: 78vh;
    max-height: 78dvh;
    padding: 18px var(--gutter) 26px;
    overflow-y: auto;
    overscroll-behavior: contain;
    background: linear-gradient(180deg, #062A24 0%, #0B3B32 100%);
    border-bottom: 1px solid var(--line-gold);
    box-shadow: 0 34px 54px -32px rgba(0, 0, 0, 0.92);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-12px);
    transition: opacity 0.22s ease, transform 0.28s ease, visibility 0.28s;
  }
  .site-header[data-open="true"] .site-drawer {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
  .site-nav {
    display: block;
    padding: 0;
    border-top: 0;
  }
  .site-nav__legend { display: block; margin-bottom: 10px; }
  .site-nav__list { display: grid; gap: 4px; }
  .site-nav__link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 13px 12px;
    font-size: 16px;
    background: rgba(244, 232, 207, 0.04);
    border-bottom: 1px solid rgba(244, 232, 207, 0.1);
  }
  .site-nav__link::after { display: none; }
  .site-nav__link[aria-current="page"] {
    background: rgba(214, 169, 59, 0.2);
    box-shadow: inset 3px 0 0 var(--gold);
  }
  .site-nav__link:focus-visible { outline: 3px solid var(--blue); outline-offset: -4px; }
  .site-nav__season { display: none; }
  .quick-rail {
    justify-self: stretch;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(112px, 1fr));
    gap: 8px;
    margin-top: 20px;
  }
  .quick-rail__legend { grid-column: 1 / -1; margin-bottom: 2px; }
  .quick-link { justify-content: center; padding: 11px 8px; }

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

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

@media (max-width: 640px) {
  body { font-size: 15.5px; }
  .site-footer__inner { grid-template-columns: 1fr; gap: 26px; }
  .footer-bottom { justify-content: flex-start; }
  .contact-list__item { grid-template-columns: 1fr; gap: 2px; }
  .filter-status { margin-left: 0; width: 100%; }
  .feedback-fab { padding: 9px 14px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .js [data-reveal] { opacity: 1 !important; transform: none !important; }
  .skip-link { transition: none; }
}
