/* 2084.news landing v1 — tokens follow brand/BRAND.md §3–§8 (dark only: brand promo surfaces are dark).
   v1 = v0 + CRITIQUE.md (2026-11-02) fixes. Renamed because site.v*.css is served immutable. */

@font-face {
  font-family: "Source Serif 4";
  font-style: normal;
  font-display: swap;
  font-weight: 200 900;
  src: url(fonts/source-serif-4-latin-wght-5.3.1.woff2) format("woff2-variations"), url(fonts/source-serif-4-latin-wght-5.3.1.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(fonts/inter-latin-wght-5.3.0.woff2) format("woff2-variations"), url(fonts/inter-latin-wght-5.3.0.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-display: swap;
  font-weight: 100 800;
  src: url(fonts/jetbrains-mono-latin-wght-5.3.0.woff2) format("woff2-variations"), url(fonts/jetbrains-mono-latin-wght-5.3.0.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Chinese display face (BRAND §4): Noto Serif SC (OFL), cut to the glyphs of the /cn/ slogan + /cn/about/ title only
   (~3 KB per weight, generated by _src/cn_slogan_font.py — re-run it when that text changes). Body text stays on system fonts. */
@font-face {
  font-family: "2084 Serif SC";
  font-style: normal;
  font-display: swap;
  font-weight: 600;
  src: url(fonts/noto-serif-sc-600-display.v1.woff2) format("woff2");
  unicode-range: U+3002, U+4E01, U+4E0D, U+4E8E, U+5173, U+6253, U+65E9, U+662F, U+6D1E, U+6F0F, U+8865, U+8A00, U+8D81, U+9884, U+FF0C;
}
@font-face {
  font-family: "2084 Serif SC";
  font-style: normal;
  font-display: swap;
  font-weight: 900;
  src: url(fonts/noto-serif-sc-900-display.v1.woff2) format("woff2");
  unicode-range: U+3002, U+4E01, U+4E0D, U+4E8E, U+5173, U+6253, U+65E9, U+662F, U+6D1E, U+6F0F, U+8865, U+8A00, U+8D81, U+9884, U+FF0C;
}

:root {
  color-scheme: dark;
  --bg: #0A0C10;
  --surface: #12161D;
  --line: #2A313D;
  --text: #EDEFF2;
  --text-2: #A3ACBA;
  --text-3: #7D8799;
  --accent: #FF4F1F;
  --link: #6EA8FF;

  --font-serif: "Source Serif 4", "Iowan Old Style", Georgia, serif;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --font-display: var(--font-serif);

  --gutter: 40px;
  --max: 1360px;
  --ease: cubic-bezier(.2, 0, 0, 1);
}

/* Chinese edition: body/UI on system CJK stacks; only the display line uses the tiny self-hosted serif subset above. */
:root:lang(zh-Hans) {
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "PingFang SC", "HarmonyOS Sans SC", "Noto Sans CJK SC", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  --font-display: "Source Serif 4", "2084 Serif SC", "Noto Serif SC", "Source Han Serif SC", "Noto Serif CJK SC", "Songti SC", "STSong", serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--bg);   /* no visible column guides: the grid shows through alignment (CRITIQUE S4) */
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  font-feature-settings: "ss01" 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
:lang(zh-Hans) body { line-height: 1.8; font-feature-settings: normal; }

a { color: var(--link); text-decoration: none; text-underline-offset: .2em; transition: color 120ms var(--ease); }
a:hover { color: var(--text); text-decoration: underline; text-decoration-thickness: 1px; }
:focus-visible { outline: 2px solid var(--link); outline-offset: 3px; border-radius: 2px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: 16px; top: -48px; z-index: 10;
  padding: 8px 12px; background: var(--text); color: var(--bg); border-radius: 4px;
  font: 600 14px/1.2 var(--font-sans);
}
.skip:focus { top: 12px; color: var(--bg); text-decoration: none; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.mono { font-family: var(--font-mono); font-feature-settings: "tnum" 1, "zero" 0; }
/* Monospace is for data only (BRAND §4): URL path, hunk, units, timestamps, numbering. */
.meta {
  font-family: var(--font-mono);
  font-size: 13px; line-height: 1.4;
  letter-spacing: .08em; text-transform: uppercase;
  font-feature-settings: "tnum" 1;
  color: var(--text-3);
}
:lang(zh-Hans) .meta-zh { font-family: var(--font-sans); letter-spacing: .04em; text-transform: none; }

/* ── Top bar + scanline ─────────────────────────────── */
.top {
  position: relative;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  height: 72px;
}
.top-left { display: flex; align-items: center; gap: 12px; min-width: 0; margin: 0; }
.top-desc { display: inline-flex; gap: 12px; }
.top-right { display: flex; align-items: center; gap: 24px; }
.home { display: block; line-height: 0; }
.home img { display: block; }
.lang {
  display: inline-flex; align-items: center;
  font: 500 14px/1 var(--font-sans);
  color: var(--text);
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 4px;
  white-space: nowrap;
}
.lang:hover { border-color: var(--text-3); text-decoration: none; }
.lang span { color: var(--text-3); margin-left: 8px; font-family: var(--font-mono); font-size: 12px; letter-spacing: .06em; }

.scan { position: relative; height: 1px; background: var(--line); overflow: hidden; }
.scan::after {
  content: ""; position: absolute; top: 0; left: 0; height: 1px; width: 22%;
  background: linear-gradient(90deg, transparent, var(--accent) 70%, transparent);
  transform: translateX(-100%);
  opacity: 0;
  animation: scan 2400ms var(--ease) 1000ms 1 both;   /* starts after the logo has settled (800ms) */
}
@keyframes scan {
  0% { transform: translateX(-100%); opacity: 1; }
  92% { opacity: 1; }
  100% { transform: translateX(460%); opacity: 0; }
}

/* ── Hero: one masthead band (logo | distance card), then copy | follow ── */
main { display: block; }
.hero {
  --logo-w: clamp(280px, 40vw, 576px);                 /* 576 × 221 at 1440 wide */
  --logo-x: max(48px, calc(var(--logo-w) * .104));     /* LOGO-REVIEW §5.3 clear space: 28 units of the 271.5-unit crop */
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 24px;
  row-gap: var(--logo-x);
  grid-template-areas:
    "mark mark mark mark mark mark mark .    dist dist dist dist"
    "copy copy copy copy copy copy copy copy .    foll foll foll";
  padding: clamp(var(--logo-x), 7vh, 88px) 0 clamp(40px, 5vh, 72px);
  align-items: end;
}
.hero-mark   { grid-area: mark; }
.hero-dist   { grid-area: dist; }
.hero-copy   { grid-area: copy; }
.hero-follow { grid-area: foll; }

.logo { margin: 0; line-height: 0; width: fit-content; }
.logo svg { display: block; width: var(--logo-w); height: auto; overflow: visible; }

/* One-shot logo motion (LOGO-REVIEW §5.4, BRAND §7.3): the page opens on "1984" (grey 19 + paper 84);
   the vermilion patch is applied left→right and the "19" is wiped out exactly where the patch lands → "2084". 600ms. */
.patch { animation: patch 600ms var(--ease) 200ms 1 both; }
.old { clip-path: inset(0 0 0 100%); animation: unpatch 600ms var(--ease) 200ms 1 both; }  /* resting state: hidden */
.edge { opacity: 0; animation: edge 600ms var(--ease) 200ms 1 both; }
@keyframes patch { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes unpatch { from { clip-path: inset(0 0 0 0); } to { clip-path: inset(0 0 0 100%); } }
@keyframes edge {
  0% { transform: translateX(0); opacity: 1; }
  85% { opacity: 1; }
  100% { transform: translateX(141.5px); opacity: 0; }
}

/* Slogan: the set-up is grey, the punchline is paper white (CRITIQUE M2). No vermilion here: the patch owns it. */
.slogan {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(40px, 5vw, 72px);
  line-height: 1.04;
  letter-spacing: -.02em;
  text-wrap: balance;
}
.slogan span { display: block; }
.slogan span:first-child { color: var(--text-2); font-weight: 500; }
.slogan .sub { color: var(--text); font-weight: 650; }
:lang(zh-Hans) .slogan {
  font-size: clamp(34px, 4.2vw, 60px); line-height: 1.2; letter-spacing: 0;
  line-break: strict; text-spacing-trim: trim-start; hanging-punctuation: allow-end;
}
:lang(zh-Hans) .slogan span:first-child { font-weight: 600; }
:lang(zh-Hans) .slogan .sub { font-weight: 900; }

.lead {
  margin: 28px 0 0;
  max-width: 34em;
  font-size: clamp(18px, 1.5vw, 21px);
  line-height: 1.5;
  color: var(--text-2);
}
.lead strong { color: var(--text); font-weight: 600; }
:lang(zh-Hans) .lead { margin-top: 24px; max-width: 30em; line-height: 1.75; font-size: clamp(17px, 1.35vw, 19px); line-break: strict; text-wrap: pretty; }

/* ── Follow (status + accounts) ─────────────────────── */
.status {
  display: inline-flex; align-items: center; gap: 10px; margin: 0;
  font: 500 15px/1.4 var(--font-sans); color: var(--text); white-space: nowrap;
}
.status::before { content: ""; width: 8px; height: 8px; background: var(--accent); flex: none; }
.follow-h { margin: 24px 0 0; font: 600 14px/1.4 var(--font-sans); color: var(--text-2); }
.follow { list-style: none; margin: 12px 0 0; padding: 0; border-top: 1px solid var(--line); }
.follow li { border-bottom: 1px solid var(--line); }
.follow a, .follow .row {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  min-height: 44px; font: 600 16px/1.2 var(--font-sans); color: var(--text);
}
.follow a span, .follow .row span { font: 400 13px/1 var(--font-mono); color: var(--text-3); }
:lang(zh-Hans) .follow .row span { font-family: var(--font-sans); font-size: 14px; }
.follow a:hover { color: var(--text); text-decoration: none; }
.follow a:hover span { color: var(--accent); }
.follow-hint { margin: 10px 0 0; font-size: 14px; line-height: 1.5; color: var(--text-3); }
.qr { display: block; margin: 16px 0 0; width: 120px; height: 120px; border-radius: 2px; }

/* ── Calendar distance to 2084 ──────────────────────── */
.dist {
  margin: 0;
  padding: 20px 24px 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 4px;
  font-feature-settings: "tnum" 1;
}
.hunk { margin: 0; color: var(--text-3); text-transform: none; }
.hunk b { font-weight: 500; color: var(--text-2); }
.hunk .add { color: var(--accent); }
.dist-h { margin: 4px 0 0; font: 600 15px/1.4 var(--font-sans); color: var(--text); }
.dist-num {
  display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 20px;
  margin: 10px 0 4px;
  font-family: var(--font-mono);
  color: var(--text);
}
.dist-num > span { display: inline-flex; align-items: baseline; gap: 8px; }
.dist-num b { font-size: clamp(40px, 3.6vw, 52px); font-weight: 500; line-height: 1; letter-spacing: -.03em; }
.dist-num .u { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); }
:lang(zh-Hans) .dist-num .u { font-family: var(--font-sans); font-size: 15px; letter-spacing: 0; }
.dist-sub { margin: 0; }
.nw { white-space: nowrap; }
.track { margin: 16px 0 0; }
.track-bar { position: relative; height: 4px; background: var(--line); border-radius: 2px; }
.track-bar i {
  position: absolute; left: 0; top: 0; bottom: 0; width: var(--p, 42.84%);
  background: var(--accent); border-radius: 2px 0 0 2px;
}
.track-bar i::after {
  content: ""; position: absolute; right: -1px; top: -6px; width: 2px; height: 16px; background: var(--text);
}
/* labels sit on the real tick, not on a space-between guess (CRITIQUE M9) */
.track-ends { position: relative; height: 1.4em; margin: 8px 0 0; }
.track-ends span { position: absolute; top: 0; }
.track-ends span:first-child { left: 0; }
.track-ends span:last-child { right: 0; }
.track-ends span:nth-child(2) { left: var(--p, 42.84%); transform: translateX(-50%); color: var(--text-2); }
.dist-note {
  margin: 12px 0 0; padding-top: 12px; border-top: 1px solid var(--line);
  font-size: 14px; line-height: 1.5; color: var(--text-2);
}

/* ── Coverage band ──────────────────────────────────── */
.cover { border-top: 1px solid var(--line); padding: 28px 0 40px; }
.cover-h { margin: 0 0 20px; font: 600 15px/1.4 var(--font-sans); color: var(--text); }
.chan {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(8, minmax(0, 1fr));
  border-left: 1px solid var(--line);
}
.chan li { padding: 4px 16px 6px; border-right: 1px solid var(--line); min-width: 0; }
.chan .n { display: block; font-family: var(--font-mono); font-size: 12px; letter-spacing: .08em; font-feature-settings: "tnum" 1; color: var(--text-3); }
.chan .t { display: block; margin-top: 10px; font-size: 16px; font-weight: 600; line-height: 1.3; color: var(--text); }
:lang(zh-Hans) .chan .t { font-size: 17px; letter-spacing: .02em; }

/* ── Standards: how we verify / who we are / contact ── */
.standards {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px;
  border-top: 1px solid var(--line); padding: 32px 0 28px;
}
.standards h2 { margin: 0 0 8px; font: 600 15px/1.4 var(--font-sans); color: var(--text); }
.standards p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--text-2); max-width: 32em; }
:lang(zh-Hans) .standards p { line-height: 1.8; }
.ids { margin: 0 0 40px; font-size: 13px; line-height: 1.5; color: var(--text-3); }
.ids .mono { color: var(--text-2); letter-spacing: .02em; }

/* ── Footer ─────────────────────────────────────────── */
.foot { padding-bottom: 32px; }
.foot-row { border-top: 1px solid var(--line); padding-top: 24px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 32px; }
.foot p { margin: 0; }
.foot .by { color: var(--text-2); font-size: 15px; }
.foot .by .pub { color: var(--text); font-weight: 600; }
.foot .by .pub:hover { text-decoration: underline; }
.foot nav ul { display: flex; flex-wrap: wrap; gap: 8px 24px; list-style: none; margin: 0; padding: 0; }
.foot nav a { font-size: 15px; }
.foot .note { margin-top: 12px; }

/* ── Simple pages (about) ───────────────────────────── */
.page { padding-top: clamp(48px, 9vh, 104px); padding-bottom: 72px; }
.prose { max-width: 40em; }
.prose > .meta { margin: 0; }
.page-title {
  margin: 16px 0 0;
  font-family: var(--font-display); font-weight: 650;
  font-size: clamp(36px, 4.4vw, 56px); line-height: 1.08; letter-spacing: -.015em;
}
:lang(zh-Hans) .page-title { font-weight: 900; letter-spacing: 0; line-height: 1.2; }
.page-lead { margin: 24px 0 0; font-size: clamp(19px, 1.6vw, 21px); line-height: 1.55; color: var(--text); }
:lang(zh-Hans) .page-lead { line-height: 1.8; line-break: strict; }
.prose h2 { margin: 44px 0 0; font: 600 18px/1.4 var(--font-sans); color: var(--text); }
.prose p:not(.meta):not(.page-lead) { margin: 10px 0 0; color: var(--text-2); }
:lang(zh-Hans) .prose p { line-break: strict; }

/* ── 404 ────────────────────────────────────────────── */
.nf { padding-top: clamp(56px, 12vh, 140px); padding-bottom: 80px; }
.nf-code { margin: 0; font: 500 clamp(72px, 12vw, 160px)/1 var(--font-mono); letter-spacing: -.04em; color: var(--text); display: flex; align-items: flex-end; }
.cursor { display: inline-block; width: .5em; height: .12em; margin-left: .06em; margin-bottom: .1em; background: var(--accent); animation: blink 1s steps(1, end) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.nf h1 { margin: 32px 0 0; font: 600 clamp(30px, 3.6vw, 48px)/1.12 var(--font-serif); letter-spacing: -.015em; }
.nf .zh { margin: 12px 0 0; font: 600 clamp(22px, 2.4vw, 30px)/1.4 "PingFang SC", "Noto Sans CJK SC", "Microsoft YaHei", sans-serif; color: var(--text-2); }
.nf ul { list-style: none; padding: 0; margin: 40px 0 0; display: flex; flex-wrap: wrap; gap: 12px; }

/* ── Responsive ─────────────────────────────────────── */
@media (max-width: 1100px) {
  .hero {
    --logo-w: clamp(280px, 52vw, 480px);
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "mark" "copy" "foll" "dist";
    row-gap: 40px;
    align-items: start;
  }
  .hero-mark { margin-bottom: max(0px, calc(var(--logo-x) - 40px)); }
  .hero-follow, .hero-dist { max-width: 560px; }
  .chan { grid-template-columns: repeat(4, minmax(0, 1fr)); border-left: 0; }
  .chan li { border-right: 0; border-top: 1px solid var(--line); padding: 14px 16px 14px 0; }
  .chan li:nth-child(-n+4) { border-top: 0; padding-top: 0; }
}
@media (max-width: 720px) {
  :root { --gutter: 16px; }
  body { font-size: 16px; }
  .top { height: 60px; }
  .top-left { font-size: 12px; letter-spacing: .04em; white-space: nowrap; gap: 8px; }
  .top-desc { gap: 8px; }
  .lang { min-height: 44px; }
  .hero { --logo-w: min(86vw, 340px); padding: 40px 0 40px; row-gap: 36px; }
  .hero-mark { margin-bottom: max(0px, calc(var(--logo-x) - 36px)); }
  .slogan { font-size: clamp(34px, 10.2vw, 44px); line-height: 1.06; }
  :lang(zh-Hans) .slogan { font-size: clamp(30px, 8.6vw, 38px); line-height: 1.25; }
  .lead { font-size: 18px; margin-top: 20px; }
  :lang(zh-Hans) .lead { font-size: 17px; }
  .dist { padding: 20px; }
  .dist-sub { font-size: 12px; letter-spacing: .04em; }
  .dist-sub .nw { display: block; }
  .dist-sub .sep { display: none; }
  .cover { padding: 24px 0 28px; }
  .cover-h { margin-bottom: 8px; }
  .chan { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 16px; }
  .chan li { padding: 14px 0; }
  .chan li:nth-child(-n+4) { border-top: 1px solid var(--line); padding-top: 14px; }
  .chan li:nth-child(-n+2) { border-top: 0; }
  .chan .t { margin-top: 6px; font-size: 15px; }
  .standards { grid-template-columns: 1fr; gap: 20px; padding: 28px 0 24px; }
  .foot-row { flex-direction: column; align-items: flex-start; }
  .page { padding-top: 40px; }
}
@media (max-width: 400px) {
  .top-desc { display: none; }
}

/* ── Motion off ─────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .scan::after { display: none; }
  .old { display: none; }
  .edge { opacity: 0; }
}

@media print {
  body { background: #fff; color: #000; }
  .scan, .skip, .old, .edge, .lang { display: none; }
  .logo .ink { fill: #0B0D12; }               /* paper-white "84" would vanish on paper (LOGO-REVIEW §5.4 #10) */
  .slogan span:first-child, .slogan .sub, .lead, .lead strong, .dist-h, .cover-h, .chan .t, .standards h2, .standards p { color: #000; }
  .dist { background: none; }
}
