/* ==========================================================================
   K体育赛场 · /assets/site.css
   夜间赛场指挥台 × 展览画册刊头 · 共享外壳与基础组件
   ========================================================================== */

/* 1. Reset ---------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: clamp(96px, 15vh, 168px);
}

body, h1, h2, h3, h4, h5, h6, p, ul, ol, li,
figure, figcaption, blockquote, dl, dd { margin: 0; }

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

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

button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }

a { color: inherit; }

hr { border: 0; border-top: 1px solid var(--line); margin: 0; }

/* 2. Tokens --------------------------------------------------------------- */
:root {
  /* 矿物色体系 + 夜间赛场信号色 */
  --ink: #071C16;
  --turf: #0F2B23;
  --lime: #C8FF3D;
  --gold: #E6B45A;
  --char: #101512;
  --rock: #7D8A82;
  --moss: #4E6A56;
  --clay: #B96A4B;
  --paper: #F3EEE2;

  --line: rgba(243, 238, 226, 0.13);
  --line-strong: rgba(243, 238, 226, 0.3);

  --font-cn: "PingFang SC", "Noto Sans SC", "Source Han Sans SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-body: var(--font-cn);
  --font-display: "Barlow Condensed", "Oswald", "Arial Narrow", var(--font-cn);
  --font-mono: "JetBrains Mono", "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 26px;
  --radius-pill: 999px;

  --gutter: clamp(16px, 4vw, 48px);
  --wrap: 1200px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* 3. Base ----------------------------------------------------------------- */
body {
  min-height: 100vh;
  overflow-x: clip;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-body);
  font-size: clamp(16px, 0.4vw + 15px, 17.5px);
  line-height: 1.75;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: 0.01em;
  text-wrap: balance;
}

h1 { font-size: clamp(40px, 8vw, 92px); }
h2 { font-size: clamp(28px, 4vw, 40px); }

strong, b { font-weight: 700; }

::selection { background: var(--lime); color: var(--char); }

:where(a, button, summary, [tabindex]):focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 3px;
  border-radius: 6px;
}

/* 4. Utilities & layout --------------------------------------------------- */
.container {
  width: min(var(--wrap), calc(100% - var(--gutter) * 2));
  margin-inline: auto;
}

.container--narrow {
  width: min(760px, calc(100% - var(--gutter) * 2));
  margin-inline: auto;
}

.section { padding-block: clamp(44px, 6vw, 92px); }
.section--turf { background: var(--turf); }
.section--paper { background: var(--paper); color: var(--ink); }
.section--paper .kicker { color: var(--clay); }

.stack { display: grid; gap: clamp(14px, 2vw, 26px); }

.grid { display: grid; gap: clamp(18px, 2.6vw, 32px); }
.grid--2 { grid-template-columns: 1fr; }
.grid--3 { grid-template-columns: 1fr; }
.grid--aside { grid-template-columns: 1fr; }

@media (min-width: 640px) {
  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 720px) {
  .grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 960px) {
  .grid--aside { grid-template-columns: minmax(0, 240px) minmax(0, 1fr); }
}
@media (min-width: 1000px) {
  .grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--gold);
}
.kicker::before {
  content: "";
  width: 22px;
  height: 1px;
  background: currentColor;
  opacity: 0.7;
}

.rule { height: 1px; background: var(--line); border: 0; }

/* 5. Buttons / cards / tags ----------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: transform 0.22s var(--ease), background 0.22s var(--ease),
              color 0.22s var(--ease), border-color 0.22s var(--ease),
              box-shadow 0.22s var(--ease);
}
.btn:hover { transform: translateY(-2px); }

.btn--lime {
  background: var(--lime);
  color: var(--char);
  box-shadow: 0 14px 30px -16px rgba(200, 255, 61, 0.9);
}
.btn--lime:hover { background: #d6ff6b; }

.btn--outline {
  border-color: var(--line-strong);
  background: rgba(243, 238, 226, 0.04);
  color: var(--paper);
}
.btn--outline:hover { border-color: var(--lime); color: var(--lime); }

.card {
  position: relative;
  background: var(--turf);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(20px, 2.6vw, 32px);
  box-shadow: 0 24px 50px -40px rgba(0, 0, 0, 0.9);
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease);
}
.card--paper {
  background: var(--paper);
  color: var(--ink);
  border-color: rgba(7, 28, 22, 0.14);
}
.card--lift:hover {
  transform: translateY(-4px);
  border-color: rgba(200, 255, 61, 0.45);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  background: rgba(243, 238, 226, 0.08);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.tag--lime { background: var(--lime); color: var(--char); }
.tag--gold {
  background: rgba(230, 180, 90, 0.16);
  border: 1px solid rgba(230, 180, 90, 0.42);
  color: var(--gold);
}

/* 6. Media containers (页面阶段放入图片) ---------------------------------- */
.media {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: linear-gradient(140deg, var(--turf), #0a201a);
  isolation: isolate;
}
.media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.media--3x2 { aspect-ratio: 3 / 2; }
.media--16x9 { aspect-ratio: 16 / 9; }
.media--1x1 { aspect-ratio: 1 / 1; }
.media--slant {
  border-radius: 0;
  clip-path: polygon(0 5%, 100% 0, 100% 95%, 0 100%);
}
.media__tag {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
}
.media__caption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 16px 18px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--paper);
  background: linear-gradient(180deg, transparent, rgba(7, 28, 22, 0.94));
}

/* 7. Breadcrumb ----------------------------------------------------------- */
.breadcrumb {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.16em;
  color: var(--rock);
}
.breadcrumb__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 10px;
}
.breadcrumb__item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.breadcrumb__item + .breadcrumb__item::before {
  content: "/";
  color: rgba(125, 138, 130, 0.55);
}
.breadcrumb__link {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.breadcrumb__link:hover { color: var(--lime); border-bottom-color: var(--lime); }
.section--paper .breadcrumb { color: #5c6a61; }

/* 8. Prose ---------------------------------------------------------------- */
.prose {
  max-width: 68ch;
  font-size: clamp(16px, 0.3vw + 15px, 17.5px);
  line-height: 1.85;
  color: rgba(243, 238, 226, 0.88);
}
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: clamp(24px, 3.2vw, 34px); margin-top: 2.2em; }
.prose h3 {
  font-size: clamp(19px, 2.2vw, 23px);
  margin-top: 1.8em;
  color: var(--paper);
}
.prose p { text-wrap: pretty; }
.prose a {
  color: var(--lime);
  text-decoration: none;
  border-bottom: 1px solid rgba(200, 255, 61, 0.4);
}
.prose ul, .prose ol { padding-inline-start: 1.25em; list-style: disc; }
.prose ol { list-style: decimal; }
.prose li + li { margin-top: 0.4em; }
.prose strong { color: var(--paper); }
.prose blockquote {
  border-left: 2px solid var(--gold);
  padding-left: 18px;
  color: rgba(243, 238, 226, 0.75);
}
.section--paper .prose { color: #243029; }
.section--paper .prose h3,
.section--paper .prose strong { color: var(--ink); }
.section--paper .prose a { color: #8a4429; border-bottom-color: rgba(185, 106, 75, 0.5); }

/* 9. Reveal --------------------------------------------------------------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
[data-reveal][data-revealed] { opacity: 1; transform: none; }

/* 10. Skip link ----------------------------------------------------------- */
.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 300;
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  background: var(--lime);
  color: var(--char);
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  transform: translateY(-180%);
  transition: transform 0.24s var(--ease);
}
.skip-link:focus,
.skip-link:focus-visible { transform: translateY(0); }

/* 11. Header — 居中刊头 ---------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background:
    linear-gradient(180deg, rgba(7, 28, 22, 0.98), rgba(7, 28, 22, 0.93)),
    var(--ink);
  border-bottom: 1px solid var(--line);
  color: var(--paper);
  backdrop-filter: blur(8px);
}

.scroll-meter {
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: rgba(243, 238, 226, 0.08);
  overflow: hidden;
}
.scroll-meter__bar {
  display: block;
  width: 100%;
  height: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--lime), var(--gold));
  transition: transform 0.15s linear;
}

.site-header__inner {
  width: min(var(--wrap), calc(100% - var(--gutter) * 2));
  margin-inline: auto;
}

.masthead {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: clamp(10px, 2vw, 28px);
  padding-block: clamp(14px, 2.2vw, 26px) clamp(10px, 1.4vw, 16px);
  transition: padding 0.32s var(--ease);
}

.masthead__eyebrow {
  justify-self: start;
  writing-mode: vertical-rl;
  max-height: 76px;
  overflow: hidden;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.32em;
  color: var(--gold);
  opacity: 0.85;
  transition: max-height 0.32s var(--ease), opacity 0.24s var(--ease);
}

.brand {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-areas:
    "mark name"
    "mark sub";
  align-items: center;
  column-gap: clamp(8px, 1.2vw, 14px);
  row-gap: 2px;
  justify-self: center;
  text-decoration: none;
  color: var(--paper);
}

.brand__mark {
  grid-area: mark;
  display: grid;
  place-items: center;
  width: clamp(36px, 4.6vw, 52px);
  height: clamp(36px, 4.6vw, 52px);
  border-radius: 14px;
  background: linear-gradient(135deg, var(--lime), #9fe016);
  color: var(--char);
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(20px, 2.6vw, 28px);
  line-height: 1;
  box-shadow: 0 0 0 1px rgba(200, 255, 61, 0.35),
              0 12px 26px -14px rgba(200, 255, 61, 0.65);
  transition: width 0.32s var(--ease), height 0.32s var(--ease),
              font-size 0.32s var(--ease), border-radius 0.32s var(--ease);
}

.brand__name {
  grid-area: name;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(22px, 3.4vw, 38px);
  letter-spacing: 0.02em;
  line-height: 1.05;
  white-space: nowrap;
  transition: font-size 0.32s var(--ease);
}

.brand__sub {
  grid-area: sub;
  max-height: 20px;
  overflow: hidden;
  font-family: var(--font-mono);
  font-size: clamp(9px, 0.95vw, 11px);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--rock);
  transition: max-height 0.28s var(--ease), opacity 0.22s var(--ease);
}

.masthead__edition {
  justify-self: end;
  text-align: right;
  font-family: var(--font-mono);
  font-size: 10.5px;
  line-height: 1.9;
  letter-spacing: 0.16em;
  color: var(--rock);
}
.masthead__edition strong {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.1em;
}

.masthead-bar {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 10px 16px;
  padding-block: 10px clamp(10px, 1.4vw, 14px);
  border-top: 1px solid var(--line);
  transition: padding 0.32s var(--ease);
}

/* 移动导航按钮 */
.nav-toggle {
  grid-column: 1;
  grid-row: 1;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 15px 9px 13px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line-strong);
  background: rgba(15, 43, 35, 0.9);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease),
              background 0.2s var(--ease);
}
.nav-toggle:hover { border-color: var(--lime); color: var(--lime); }
.nav-toggle[aria-expanded="true"] {
  border-color: var(--lime);
  color: var(--lime);
  background: rgba(200, 255, 61, 0.08);
}

.nav-toggle__bars {
  display: grid;
  gap: 4px;
  width: 16px;
}
.nav-toggle__bars span {
  display: block;
  height: 2px;
  background: var(--lime);
  transition: transform 0.28s var(--ease), opacity 0.2s var(--ease);
}
.nav-toggle__text { line-height: 1; }

.site-header[data-open] .nav-toggle__bars span:nth-child(1) { transform: translateY(6px) 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(-6px) rotate(-45deg); }

/* 导航 */
.site-nav {
  grid-column: 1 / -1;
  grid-row: 2;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transition: max-height 0.36s var(--ease), opacity 0.24s var(--ease),
              visibility 0.2s linear, padding 0.2s var(--ease);
}
.site-header[data-open] .site-nav {
  max-height: 64vh;
  overflow-y: auto;
  opacity: 1;
  visibility: visible;
  padding-bottom: 8px;
}

.site-nav__list {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.site-nav__item { display: block; }

.site-nav__link {
  position: relative;
  display: block;
  padding: 12px 2px;
  border-bottom: 1px solid var(--line);
  color: rgba(243, 238, 226, 0.82);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-decoration: none;
  transition: color 0.2s var(--ease);
}
.site-nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 0.26s var(--ease);
}
.site-nav__link:hover { color: var(--paper); }
.site-nav__link:hover::after { transform: scaleX(1); }
.site-nav__link[aria-current="page"] {
  color: var(--lime);
}
.site-nav__link[aria-current="page"]::after {
  transform: scaleX(1);
  background: var(--lime);
}

/* 快捷入口 */
.shortcuts {
  grid-column: 2;
  grid-row: 1;
  justify-self: end;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.shortcut {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  white-space: nowrap;
  text-decoration: none;
  transition: transform 0.2s var(--ease), background 0.2s var(--ease),
              color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.shortcut::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  flex: none;
}
.shortcut:hover { transform: translateY(-2px); }

.shortcut--solid {
  background: var(--lime);
  color: var(--char);
  box-shadow: 0 10px 22px -14px rgba(200, 255, 61, 0.9);
}
.shortcut--solid:hover { background: #d6ff6b; }

.shortcut--line {
  border: 1px solid rgba(230, 180, 90, 0.55);
  background: rgba(230, 180, 90, 0.07);
  color: var(--gold);
}
.shortcut--line:hover { background: rgba(230, 180, 90, 0.16); }

/* 刊头收窄状态 */
.site-header[data-condensed] .masthead { padding-block: 6px 4px; }
.site-header[data-condensed] .masthead__eyebrow { max-height: 0; opacity: 0; }
.site-header[data-condensed] .brand__name { font-size: clamp(19px, 2.2vw, 26px); }
.site-header[data-condensed] .brand__mark {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  font-size: 17px;
}
.site-header[data-condensed] .brand__sub { max-height: 0; opacity: 0; }
.site-header[data-condensed] .masthead-bar { padding-block: 6px 8px; }
.site-header[data-condensed] .masthead__edition { opacity: 0.55; }

/* 平板 / 桌面：刊头横向展开 */
@media (min-width: 900px) {
  .masthead-bar {
    grid-template-columns: 1fr auto 1fr;
    gap: 12px 24px;
  }
  .nav-toggle { display: none; }

  .site-nav {
    grid-column: 2;
    grid-row: 1;
    justify-self: center;
    max-height: none;
    overflow: visible;
    opacity: 1;
    visibility: visible;
    padding-bottom: 0;
  }
  .site-nav__list {
    flex-direction: row;
    align-items: center;
    gap: clamp(6px, 1.6vw, 26px);
  }
  .site-nav__link {
    padding: 8px 2px;
    border-bottom: 0;
    font-size: 14.5px;
  }
  .shortcuts {
    grid-column: 3;
    grid-row: 1;
  }
}

@media (max-width: 899px) {
  .masthead {
    grid-template-columns: 1fr auto;
    gap: 8px 12px;
  }
  .masthead__eyebrow { display: none; }
  .brand { justify-self: start; }
  .masthead__edition { justify-self: end; }
  .shortcut { padding: 8px 14px; font-size: 12px; }
}

@media (max-width: 420px) {
  .shortcuts .shortcut--line { display: none; }
  .nav-toggle { padding: 8px 12px 8px 10px; }
  .nav-toggle__text { display: none; }
}

/* 12. Footer — 赛事记分牌 -------------------------------------------------- */
.site-footer {
  margin-top: clamp(48px, 7vw, 96px);
  padding-top: clamp(36px, 5vw, 64px);
  color: var(--paper);
  border-top: 1px solid var(--line-strong);
  background:
    repeating-linear-gradient(135deg, rgba(243, 238, 226, 0.035) 0 1px, transparent 1px 9px),
    linear-gradient(180deg, #0B241D, var(--ink) 62%);
}

.site-footer__inner {
  width: min(var(--wrap), calc(100% - var(--gutter) * 2));
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(26px, 4vw, 48px);
  padding-bottom: clamp(28px, 4vw, 44px);
}

.footer-brand {
  display: grid;
  gap: 14px;
  align-content: start;
  justify-items: start;
}
.footer-brand__name {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(26px, 3.6vw, 38px);
  line-height: 1;
  letter-spacing: 0.01em;
}
.footer-brand__note {
  max-width: 34ch;
  font-size: 14.5px;
  line-height: 1.75;
  color: rgba(243, 238, 226, 0.72);
}
.footer-brand__meta {
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--rock);
}
.footer-brand .btn { margin-top: 4px; }

.footer-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(18px, 3vw, 32px);
}

.footer-col__title {
  padding-bottom: 10px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
}

.footer-list { display: grid; gap: 10px; }

.footer-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14.5px;
  color: rgba(243, 238, 226, 0.8);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}
.footer-link::before {
  content: "";
  width: 10px;
  height: 1px;
  background: var(--rock);
  transition: width 0.2s var(--ease), background 0.2s var(--ease);
}
.footer-link:hover { color: var(--lime); }
.footer-link:hover::before { width: 16px; background: var(--lime); }

.footer-contact__list {
  display: grid;
  gap: 12px;
  margin-top: 4px;
}
.footer-contact__item {
  display: grid;
  gap: 2px;
}
.footer-contact__label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}
.footer-contact__value {
  font-size: 14.5px;
  line-height: 1.65;
  color: rgba(243, 238, 226, 0.86);
  word-break: break-word;
}

.footer-legal {
  border-top: 1px solid var(--line);
  background: rgba(7, 28, 22, 0.65);
}
.footer-legal__inner {
  width: min(var(--wrap), calc(100% - var(--gutter) * 2));
  margin-inline: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 24px;
  padding-block: 16px 18px;
}
.footer-legal__line,
.footer-legal__meta {
  font-size: 12.5px;
  letter-spacing: 0.04em;
  color: var(--rock);
}
.footer-legal__line .mono { color: rgba(243, 238, 226, 0.62); }

.to-top {
  margin-inline-start: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(230, 180, 90, 0.5);
  color: var(--gold);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  transition: background 0.2s var(--ease), color 0.2s var(--ease),
              border-color 0.2s var(--ease);
}
.to-top:hover {
  background: var(--lime);
  border-color: var(--lime);
  color: var(--char);
}
.to-top__arrow { font-size: 13px; line-height: 1; }

@media (min-width: 760px) {
  .site-footer__inner { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.25fr); }
  .footer-contact { grid-column: 1 / -1; }
}

@media (min-width: 1040px) {
  .site-footer__inner {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.3fr) minmax(0, 1fr);
    align-items: start;
  }
  .footer-contact { grid-column: auto; }
}

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

@media print {
  .site-header,
  .site-footer,
  .skip-link,
  .to-top,
  .scroll-meter { display: none !important; }
  body { background: #fff; color: #000; }
  .card, .media { border-color: #bbb; }
}
