/* ==========================================================================
   M6 手机端 · 全站共享样式 /assets/site.css
   晨曦公报风格：深海蓝框架 + 暖白纸面 + 晨曦橙状态
   ========================================================================== */

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}
body {
  min-height: 100vh;
  font-family: 'Source Serif', 'Noto Serif SC', serif;
  font-size: 1.0625rem;
  line-height: 1.8;
  color: #111111;
  background-color: #F5F0E8;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
main { display: block; }
img, picture, video, canvas, svg { display: block; max-width: 100%; }
input, button, textarea, select { font: inherit; }
ul[class], ol[class] { list-style: none; margin: 0; padding: 0; }
p, h1, h2, h3, h4, h5, h6, figure, blockquote, dl, dd { margin: 0; }
a {
  color: #B35A1F;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
a:hover { color: #FF8C42; }

::selection {
  background: #FF8C42;
  color: #1A3A5C;
}

:focus-visible {
  outline: 3px solid #FF8C42;
  outline-offset: 2px;
  border-radius: 2px;
}

/* ---------- Design tokens ---------- */
:root {
  --c-brand: #FF8C42;
  --c-blue: #1A3A5C;
  --c-bg: #F5F0E8;
  --c-ink: #111111;
  --c-white: #FFFFFF;
  --c-mist: #3A5A78;
  --c-gold: #E6C27A;
  --c-peach: #FFE0C7;
  --c-fog: #D8D2C4;
  --c-rust: #B35A1F;

  --font-head: Futura, 'Helvetica Now Display', 'Noto Sans SC', sans-serif;
  --font-body: 'Source Serif', 'Noto Serif SC', serif;
  --font-mono: 'IBM Plex Mono', 'SFMono-Regular', monospace;

  --size-h1: clamp(3.5rem, 8vw, 7rem);
  --size-h2: 2.5rem;
  --size-h3: 1.5rem;
  --size-body: 1.0625rem;
  --size-sm: 0.875rem;
  --size-mono: 0.8125rem;

  --wrap: 1440px;
  --gutter: clamp(20px, 4vw, 96px);

  --shadow-card: 12px 12px 0 rgba(17, 17, 17, 0.08);
  --shadow-card-hover: 16px 20px 0 rgba(17, 17, 17, 0.14);
  --radius: 10px;
  --dur: 240ms;
  --dur-lg: 360ms;
  --ease: cubic-bezier(0.2, 0.6, 0.2, 1);
}

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-head);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: 0.01em;
  overflow-wrap: break-word;
}
h1 {
  font-size: var(--size-h1);
  line-height: 0.95;
  font-weight: 900;
}
h2 { font-size: clamp(2rem, 4vw, var(--size-h2)); }
h3 { font-size: var(--size-h3); }
h4 { font-size: 1.125rem; }

.font-mono { font-family: var(--font-mono); }
.code-index {
  font-family: var(--font-mono);
  font-size: var(--size-mono);
  letter-spacing: 0.04em;
  color: var(--c-mist);
  background: var(--c-white);
  border: 1px dashed var(--c-fog);
  border-radius: 4px;
  padding: 2px 6px;
  white-space: nowrap;
}

/* ---------- Layout primitives ---------- */
.container {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--narrow { max-width: 900px; }

.section { padding-block: clamp(64px, 9vw, 112px); }
.section--alt { background: var(--c-white); border-block: 2px solid var(--c-ink); }
.section--dark {
  background: var(--c-blue);
  color: var(--c-white);
}
.section__head {
  margin-bottom: clamp(28px, 4vw, 48px);
  position: relative;
}
.section__no {
  font-family: var(--font-mono);
  font-size: var(--size-mono);
  letter-spacing: 0.14em;
  color: var(--c-mist);
  text-transform: uppercase;
}
.section--dark .section__no { color: var(--c-gold); }
.section__title {
  margin-top: 8px;
  margin-bottom: 12px;
  color: var(--c-ink);
}
.section--dark .section__title { color: var(--c-white); }
.section__lead {
  max-width: 640px;
  color: var(--c-mist);
}
.section--dark .section__lead { color: rgba(255, 255, 255, 0.72); }

.chapter-no {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: clamp(4.5rem, 10vw, 9rem);
  line-height: 0.85;
  letter-spacing: -0.04em;
  color: transparent;
  -webkit-text-stroke: 1px var(--c-fog);
  user-select: none;
}
.section--dark .chapter-no { -webkit-text-stroke-color: rgba(255, 255, 255, 0.24); }

/* ---------- Grid ---------- */
.grid {
  display: grid;
  gap: clamp(20px, 2.4vw, 32px);
}
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.collage {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 28px);
}
.collage > * { grid-column: span 4; }
.collage--wide > *:first-child { grid-column: span 7; grid-row: span 2; }
.collage--wide > *:nth-child(2) { grid-column: span 5; }
.collage--wide > *:nth-child(3) { grid-column: span 5; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.9375rem;
  line-height: 1.2;
  text-decoration: none;
  border-radius: 6px;
  border: 2px solid transparent;
  cursor: pointer;
  transition:
    transform var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease),
    background-color var(--dur) var(--ease),
    color var(--dur) var(--ease),
    border-color var(--dur) var(--ease);
}
.btn--primary {
  background: var(--c-brand);
  color: var(--c-blue);
  box-shadow: 6px 6px 0 rgba(17, 17, 17, 0.14);
}
.btn--primary:hover {
  transform: translate(-2px, -2px);
  box-shadow: 10px 10px 0 rgba(17, 17, 17, 0.18);
  color: var(--c-blue);
}
.btn--dark {
  background: var(--c-blue);
  color: var(--c-white);
  box-shadow: 6px 6px 0 rgba(17, 17, 17, 0.14);
}
.btn--dark:hover {
  transform: translate(-2px, -2px);
  background: #142c47;
  color: var(--c-white);
}
.btn--ghost {
  background: transparent;
  color: var(--c-blue);
  border-color: var(--c-blue);
  box-shadow: none;
}
.btn--ghost:hover {
  background: var(--c-blue);
  color: var(--c-white);
}
.btn--sm { padding: 8px 14px; font-size: 0.8125rem; border-radius: 5px; }

/* ---------- Cards ---------- */
.card {
  position: relative;
  background: var(--c-white);
  border: 2px solid var(--c-ink);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-card);
  transition:
    transform var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease);
}
.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-card-hover);
}
.card--cut {
  clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 20px, 100% 100%, 0 100%);
}
.clip-cut {
  clip-path: polygon(0 0, calc(100% - 24px) 0, 100% 24px, 100% 100%, 0 100%);
}

/* ---------- Tags & notices ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: var(--size-mono);
  letter-spacing: 0.06em;
  line-height: 1;
  color: var(--c-rust);
  background: var(--c-white);
  border: 1px solid var(--c-fog);
  border-radius: 999px;
  padding: 6px 10px;
  white-space: nowrap;
}
.tag--gold {
  color: var(--c-blue);
  background: rgba(230, 194, 122, 0.28);
  border-color: rgba(230, 194, 122, 0.7);
}
.tag--orange {
  color: var(--c-rust);
  background: var(--c-peach);
  border-color: rgba(179, 90, 31, 0.35);
}

.notice-box {
  background: var(--c-peach);
  border-left: 4px solid var(--c-brand);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 18px 22px;
  font-size: var(--size-sm);
  color: var(--c-ink);
  box-shadow: 6px 6px 0 rgba(17, 17, 17, 0.06);
}
.notice-box code,
.notice-box .code-index { font-family: var(--font-mono); font-size: 0.8125rem; }

/* ---------- Stats ---------- */
.stat {
  display: block;
  font-family: var(--font-head);
  font-size: clamp(2rem, 4.5vw, 4rem);
  font-weight: 900;
  line-height: 1;
  color: var(--c-blue);
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.stat--orange { color: var(--c-rust); }
.stat__unit { font-size: 0.5em; margin-left: 2px; }

/* ---------- Timeline ---------- */
.timeline {
  border-left: 2px solid var(--c-fog);
  margin-left: 7px;
}
.timeline__item {
  position: relative;
  padding: 0 0 36px 28px;
}
.timeline__item:last-child { padding-bottom: 0; }
.timeline__item::before {
  content: "";
  position: absolute;
  left: -9px;
  top: 5px;
  width: 14px;
  height: 14px;
  border: 3px solid var(--c-blue);
  border-radius: 50%;
  background: var(--c-bg);
  transition:
    border-color var(--dur-lg) var(--ease),
    background-color var(--dur-lg) var(--ease),
    box-shadow var(--dur-lg) var(--ease);
}
.timeline__item.is-active::before {
  border-color: var(--c-brand);
  background: var(--c-brand);
  box-shadow: 0 0 0 5px rgba(255, 140, 66, 0.2);
}
.timeline__time {
  font-family: var(--font-mono);
  font-size: var(--size-mono);
  color: var(--c-rust);
  letter-spacing: 0.06em;
}

/* ---------- Table ---------- */
.table-wrap {
  overflow-x: auto;
  border: 2px solid var(--c-ink);
  border-radius: var(--radius);
  background: var(--c-white);
  box-shadow: var(--shadow-card);
}
.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
  min-width: 640px;
}
.table caption {
  text-align: left;
  padding: 12px 16px;
  font-family: var(--font-mono);
  font-size: var(--size-mono);
  color: var(--c-mist);
  background: var(--c-bg);
  border-bottom: 1px solid var(--c-fog);
}
.table th {
  background: var(--c-blue);
  color: var(--c-white);
  font-family: var(--font-head);
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  padding: 12px 16px;
  text-align: left;
  white-space: nowrap;
}
.table td {
  padding: 12px 16px;
  border-top: 1px solid var(--c-fog);
}
.table tbody tr:hover td { background: var(--c-peach); }
.table th[data-sort] { cursor: pointer; user-select: none; }
.table th[data-sort]:hover { background: var(--c-brand); color: var(--c-blue); }
.table th[aria-sort="ascending"]::after { content: " ↑"; }
.table th[aria-sort="descending"]::after { content: " ↓"; }

/* ---------- Breadcrumb ---------- */
.breadcrumb {
  max-width: var(--wrap);
  margin-inline: auto;
  padding: 28px var(--gutter) 0;
  font-family: var(--font-head);
  font-size: 0.8125rem;
  letter-spacing: 0.06em;
}
.breadcrumb ol { display: flex; flex-wrap: wrap; }
.breadcrumb li { display: flex; align-items: center; }
.breadcrumb li + li::before {
  content: "／";
  color: var(--c-fog);
  margin-inline: 6px;
}
.breadcrumb a { color: var(--c-mist); text-decoration: none; padding-block: 4px; }
.breadcrumb a:hover { color: var(--c-rust); }
.breadcrumb [aria-current="page"] { color: var(--c-blue); font-weight: 800; }

/* ---------- Image frame ---------- */
.img-frame {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  background: var(--c-blue);
  border: 2px solid var(--c-ink);
  border-radius: var(--radius);
  box-shadow: 8px 8px 0 rgba(17, 17, 17, 0.1);
  overflow: hidden;
}
.img-frame--wide { aspect-ratio: 16 / 7; }
.img-frame--portrait { aspect-ratio: 3 / 4; }
.img-frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.img-frame__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 24px 16px 12px;
  background: linear-gradient(180deg, transparent, rgba(17, 17, 17, 0.72));
  color: var(--c-white);
  font-family: var(--font-mono);
  font-size: var(--size-mono);
}

/* ---------- Checksum pattern ---------- */
.checksum {
  display: inline-grid;
  grid-template-columns: repeat(4, 5px);
  gap: 2px;
  width: 28px;
  height: 28px;
  flex: none;
}
.checksum i {
  display: block;
  background: rgba(255, 255, 255, 0.22);
}
.checksum i:nth-child(1) { background: var(--c-brand); }
.checksum i:nth-child(4) { background: var(--c-brand); }
.checksum i:nth-child(6) { background: var(--c-gold); }
.checksum i:nth-child(7) { background: var(--c-brand); }
.checksum i:nth-child(10) { background: var(--c-gold); }
.checksum i:nth-child(12) { background: var(--c-brand); }
.checksum i:nth-child(13) { background: var(--c-gold); }
.checksum i:nth-child(15) { background: var(--c-brand); }

/* ---------- Skip link ---------- */
.skip-link {
  position: fixed;
  top: -60px;
  left: 16px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--c-brand);
  color: var(--c-blue);
  font-family: var(--font-head);
  font-weight: 800;
  text-decoration: none;
  border-radius: 0 0 8px 8px;
  box-shadow: 4px 4px 0 rgba(17, 17, 17, 0.18);
  transition: top var(--dur) var(--ease);
}
.skip-link:focus { top: 0; }

/* ---------- Site header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background-color: var(--c-blue);
  background-image: radial-gradient(circle at 24px 24px, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 32px 32px;
  color: var(--c-white);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 8px 24px rgba(17, 17, 17, 0.18);
}
.site-header__progress {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--c-brand);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 120ms linear;
  will-change: transform;
  z-index: 3;
}
.site-header__inner {
  max-width: var(--wrap);
  margin-inline: auto;
  padding: 16px var(--gutter) 14px;
  display: flex;
  align-items: center;
  gap: 20px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--c-white);
  text-decoration: none;
}
.brand__mark {
  position: relative;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  background: var(--c-brand);
  color: var(--c-blue);
  font-family: var(--font-head);
  font-size: 28px;
  font-weight: 900;
  letter-spacing: -1px;
  border-radius: 4px 12px 4px 12px;
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.24);
  transition: transform var(--dur) var(--ease);
}
.brand__mark::after {
  content: "";
  position: absolute;
  right: -5px;
  top: -5px;
  width: 10px;
  height: 10px;
  background: var(--c-gold);
  border-radius: 50%;
  box-shadow: 0 0 0 2px var(--c-blue);
}
.brand:hover .brand__mark { transform: rotate(-3deg) scale(1.03); }
.brand__text { display: flex; flex-direction: column; }
.brand__name {
  font-family: var(--font-head);
  font-size: 1.125rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 1.15;
  color: var(--c-white);
  transition: color var(--dur) var(--ease);
}
.brand:hover .brand__name { color: var(--c-brand); }
.brand__site {
  font-family: var(--font-body);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.55);
}

.site-header__meta {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 16px;
}
.site-header__checksum { margin-right: 4px; }
.site-header__update {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: var(--size-mono);
  letter-spacing: 0.1em;
  color: var(--c-brand);
  background: rgba(255, 140, 66, 0.1);
  border: 1px solid rgba(255, 140, 66, 0.45);
  border-radius: 999px;
  padding: 5px 12px;
  white-space: nowrap;
}
.site-header__clock {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
}
.site-header__clock-label {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.5);
}
.site-header__clock-time {
  font-family: var(--font-mono);
  font-size: 1.125rem;
  letter-spacing: 0.1em;
  color: var(--c-white);
  font-variant-numeric: tabular-nums;
  min-width: 7.6ch;
  text-align: right;
}

/* ---------- Navigation ---------- */
.site-nav {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}
.site-nav__list {
  max-width: var(--wrap);
  margin-inline: auto;
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  gap: 2px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.site-nav__list::-webkit-scrollbar { display: none; }
.site-nav__item { flex: 0 0 auto; }
.site-nav__link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 13px 16px 11px;
  font-family: var(--font-head);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  line-height: 1;
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
  border-bottom: 3px solid transparent;
  border-right: 3px solid transparent;
  transition:
    color var(--dur) var(--ease),
    border-color var(--dur) var(--ease),
    background-color var(--dur) var(--ease);
}
.site-nav__link:hover {
  color: var(--c-white);
  background: rgba(255, 255, 255, 0.05);
  border-bottom-color: var(--c-brand);
}
.site-nav__link[aria-current="page"] {
  color: var(--c-brand);
  background: rgba(255, 140, 66, 0.1);
  border-bottom-color: var(--c-brand);
  border-right-color: var(--c-brand);
}
.site-nav__index {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--c-gold);
  opacity: 0.65;
  transition: opacity var(--dur) var(--ease), color var(--dur) var(--ease);
}
.site-nav__link:hover .site-nav__index,
.site-nav__link[aria-current="page"] .site-nav__index {
  opacity: 1;
  color: var(--c-brand);
}

/* ---------- Nav toggle ---------- */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.32);
  color: var(--c-white);
  padding: 8px 12px;
  border-radius: 6px;
  font-family: var(--font-head);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: background-color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.nav-toggle:hover {
  border-color: var(--c-brand);
  background: rgba(255, 140, 66, 0.15);
}
.nav-toggle__icon {
  display: inline-grid;
  gap: 4px;
  width: 16px;
}
.nav-toggle__icon span {
  display: block;
  height: 2px;
  background: currentColor;
  transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease);
}
.nav-toggle.is-active .nav-toggle__icon span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle.is-active .nav-toggle__icon span:nth-child(2) { opacity: 0; }
.nav-toggle.is-active .nav-toggle__icon span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Site footer ---------- */
.site-footer {
  background-color: var(--c-blue);
  background-image: radial-gradient(circle at 80px 40px, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 40px 40px;
  color: rgba(255, 255, 255, 0.8);
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}
.site-footer__bar {
  height: 4px;
  background: linear-gradient(90deg, var(--c-brand) 0%, var(--c-brand) 55%, var(--c-gold) 55%, var(--c-gold) 100%);
}
.site-footer__main {
  max-width: var(--wrap);
  margin-inline: auto;
  padding: 64px var(--gutter) 48px;
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
  gap: 44px 36px;
}
.site-footer__intro {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.site-footer__brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--c-white);
  text-decoration: none;
  margin-bottom: 18px;
}
.site-footer__mark {
  position: relative;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  background: var(--c-brand);
  color: var(--c-blue);
  font-family: var(--font-head);
  font-size: 26px;
  font-weight: 900;
  letter-spacing: -1px;
  border-radius: 4px 12px 4px 12px;
  box-shadow: 5px 5px 0 rgba(0, 0, 0, 0.26);
  transition: transform var(--dur) var(--ease);
}
.site-footer__mark::after {
  content: "";
  position: absolute;
  right: -5px;
  top: -5px;
  width: 10px;
  height: 10px;
  background: var(--c-gold);
  border-radius: 50%;
  box-shadow: 0 0 0 2px var(--c-blue);
}
.site-footer__brand:hover .site-footer__mark { transform: rotate(-3deg) scale(1.03); }
.site-footer__brand-text { display: flex; flex-direction: column; }
.site-footer__brand-name {
  font-family: var(--font-head);
  font-size: 1.125rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.2;
  color: var(--c-white);
  transition: color var(--dur) var(--ease);
}
.site-footer__brand:hover .site-footer__brand-name { color: var(--c-brand); }
.site-footer__brand-sub {
  font-family: var(--font-body);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.55);
}
.site-footer__statement {
  max-width: 38ch;
  font-size: 0.9375rem;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 14px;
}
.site-footer__address {
  font-style: normal;
  font-size: 0.8125rem;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.45);
  border-left: 2px solid var(--c-brand);
  padding-left: 10px;
}
.site-footer__title {
  font-family: var(--font-head);
  font-size: 0.8125rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-gold);
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  padding-bottom: 10px;
  margin-bottom: 14px;
}
.site-footer__links li {
  margin-bottom: 2px;
}
.site-footer__links a {
  display: inline-block;
  padding: 4px 0 4px 10px;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 0.9375rem;
  line-height: 1.6;
  border-left: 2px solid transparent;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease), padding var(--dur) var(--ease);
}
.site-footer__links a:hover {
  color: var(--c-brand);
  border-left-color: var(--c-brand);
  padding-left: 16px;
}
.site-footer__meta {
  background: rgba(0, 0, 0, 0.18);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.site-footer__meta-inner {
  max-width: var(--wrap);
  margin-inline: auto;
  padding: 16px var(--gutter);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.52);
}
.site-footer__contact {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin: 0;
}
.site-footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin: 0;
  justify-content: flex-end;
}

/* ---------- Scroll hooks ---------- */
.js [data-reveal] {
  opacity: 0;
  transform: translate3d(0, 18px, 0);
  transition: opacity var(--dur-lg) var(--ease), transform var(--dur-lg) var(--ease);
}
.js [data-reveal].is-revealed {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

[data-scroll-spy] {
  transition: box-shadow var(--dur-lg) var(--ease), border-color var(--dur-lg) var(--ease);
}
[data-scroll-spy].is-active {
  box-shadow: 12px 12px 0 rgba(255, 140, 66, 0.18);
}

/* ---------- Anchor offset ---------- */
#main-content,
[id] { scroll-margin-top: 128px; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .site-header__update { display: none; }
  .collage > * { grid-column: span 6; }
  .collage--wide > *:first-child,
  .collage--wide > *:nth-child(2),
  .collage--wide > *:nth-child(3) { grid-column: span 6; }
}

@media (max-width: 980px) {
  .grid--3, .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-footer__main { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .site-header {
    position: relative;
  }
  .site-header__checksum { display: none; }
  .site-header__inner {
    padding-top: 12px;
    padding-bottom: 12px;
  }
  .site-header__clock-label { display: none; }
  .nav-toggle { display: inline-flex; }
  .site-nav { display: none; }
  .site-nav[data-open] {
    display: block;
    animation: navDrop var(--dur) var(--ease);
  }
  .site-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px var(--gutter) 16px;
    overflow: visible;
  }
  .site-nav__item {
    flex: auto;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }
  .site-nav__link {
    justify-content: flex-start;
    padding: 14px 10px;
    border-bottom: none;
    border-right: 4px solid transparent;
    border-radius: 0;
  }
  .site-nav__link[aria-current="page"] {
    border-right-color: var(--c-brand);
  }
}

@keyframes navDrop {
  from { opacity: 0; transform: translate3d(0, -8px, 0); }
  to { opacity: 1; transform: translate3d(0, 0, 0); }
}

@media (max-width: 640px) {
  .grid--2 { grid-template-columns: 1fr; }
  .collage > *,
  .collage--wide > *,
  .collage--wide > *:first-child,
  .collage--wide > *:nth-child(2),
  .collage--wide > *:nth-child(3) { grid-column: 1 / -1; grid-row: auto; }
  .site-footer__main {
    grid-template-columns: 1fr;
    gap: 36px;
    padding-block: 48px 36px;
  }
  .brand__site { display: none; }
  .brand__mark { width: 44px; height: 44px; font-size: 24px; }
  .site-header__meta { gap: 10px; }
  .nav-toggle__text { display: none; }
  .site-footer__meta-inner { justify-content: center; text-align: center; }
  .site-footer__contact, .site-footer__legal { justify-content: center; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .js [data-reveal],
  .js [data-reveal].is-revealed {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .site-header__progress { transition: none; }
}
