/* GGUFCOIN site styles. Uses the variables in tokens.css. */

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 120px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  font-weight: var(--fw-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100vh; display: flex; flex-direction: column;
}
h1, h2, h3, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
img, svg { display: block; }
a { color: var(--accent-text); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: var(--focus-width) solid var(--focus-color); outline-offset: var(--focus-offset); }
[hidden] { display: none !important; }
.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; }
strong, b { font-weight: 650; }

.skip {
  position: absolute; left: 16px; top: -80px; z-index: 100;
  min-height: var(--target-min); display: inline-flex; align-items: center;
  background: var(--surface); color: var(--text);
  padding: 0 16px; border: 1px solid var(--line); border-radius: var(--radius-button);
}
.skip:focus { top: 12px; }

.wrap { max-width: calc(var(--grid-max) + 2 * var(--grid-margin)); margin: 0 auto; padding: 0 var(--grid-margin); }
.prose { max-width: var(--measure); }
.prose > * + * { margin-top: var(--space-16); }

/* ---------- type helpers ---------- */
.label {
  font-family: var(--font-mono); font-size: var(--fs-label); line-height: var(--lh-label);
  letter-spacing: var(--tr-label); font-weight: var(--fw-label); text-transform: uppercase; color: var(--text-2);
}
.lead { font-size: var(--fs-lead); line-height: var(--lh-lead); color: var(--text); max-width: var(--measure); }
.small { font-size: var(--fs-small); line-height: var(--lh-small); color: var(--text-2); }
.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.serif { font-family: var(--font-serif); }
code, .code {
  font-family: var(--font-mono); font-size: 0.92em; font-variant-numeric: tabular-nums;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-input); padding: 1px 6px;
}
.h1 { font-size: var(--fs-h1); line-height: var(--lh-h1); letter-spacing: var(--tr-h1); font-weight: var(--fw-h1-sans); }
.h2 { font-size: var(--fs-h2); line-height: var(--lh-h2); letter-spacing: var(--tr-h2); font-weight: var(--fw-h2); }
.h3 { font-size: var(--fs-h3); line-height: var(--lh-h3); letter-spacing: var(--tr-h3); font-weight: var(--fw-h3); }

/* ---------- status bar: sticky, not dismissible ---------- */
.statusbar {
  position: sticky; top: 0; z-index: 50;
  background: var(--surface); border-bottom: 1px solid var(--line);
}
.statusbar p {
  display: flex; gap: 10px; align-items: flex-start;
  max-width: calc(var(--grid-max) + 2 * var(--grid-margin)); margin: 0 auto; padding: 10px var(--grid-margin);
  font-family: var(--font-mono); font-size: 13px; line-height: 1.5; color: var(--text);
}
.status-label {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: var(--tr-label); text-transform: uppercase;
  font-weight: 600; color: var(--text-2); margin-right: 6px;
}
.status-field { border: 1px solid var(--line); border-left: 4px solid var(--notice); border-radius: var(--radius-card); background: var(--surface); padding: var(--space-16) var(--space-24); max-width: var(--measure); }
.status-field [data-key="status-text"] { font-family: var(--font-mono); font-size: 15px; line-height: 1.55; }
.field-value { font-family: var(--font-mono); }
.statusbar p::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--notice); margin-top: 6px; flex: none;
}

/* ---------- header ---------- */
.site-header { border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: var(--space-16); min-height: 72px; flex-wrap: wrap; }
.brand {
  display: inline-flex; align-items: center; min-height: var(--target-min); color: var(--text); text-decoration: none;
}
.brand svg { height: 28px; width: auto; color: var(--mark-ring); }
.brand .ticker { margin-left: var(--space-12); font-family: var(--font-mono); font-size: 13px; color: var(--text-2); }
.wordmark { font-family: var(--font-mono); font-weight: 600; }
.mark-bar { fill: var(--mark-bar); }
.nav ul { list-style: none; padding: 0; margin: 0; display: flex; align-items: center; gap: 2px; }
.nav a {
  display: inline-flex; align-items: center; min-height: var(--target-min); padding: 0 10px; white-space: nowrap;
  border-radius: var(--radius-pill); color: var(--text-2); text-decoration: none; font-size: 15px; font-weight: 500;
  border: 1px solid transparent;
  transition: background-color var(--dur-fast) var(--ease-standard), color var(--dur-fast) var(--ease-standard);
}
.nav a:hover { color: var(--text); background: var(--surface); }
.nav a[aria-current="page"] { color: var(--text); font-weight: 650; background: var(--surface); border-color: var(--line); }
.site-header .nav { margin-left: auto; }
.nav .nav-cta { margin-left: var(--space-8); }
.nav .nav-cta .btn { border-radius: var(--radius-button); border: 1px dashed var(--text-3); color: var(--text-2); font-size: 14px; font-weight: 600; padding: 0 14px; }
.nav .nav-cta .btn:hover { background: var(--surface); color: var(--text); }
.nav .nav-cta .btn[aria-current="page"] { border-style: solid; color: var(--text); background: var(--surface); }

/* theme switch: Day / Night / Auto. Shown only when JS runs (theme.js adds .js). */
.theme-switch { display: none; }
.js .theme-switch {
  display: inline-flex; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: var(--radius-pill);
  background: var(--surface); min-width: 0;
}
.theme-switch input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.theme-switch label {
  display: inline-flex; align-items: center; justify-content: center; min-height: var(--target-min); padding: 0 12px;
  border-radius: var(--radius-pill); font-size: 13px; font-weight: 500; color: var(--text-2); cursor: pointer;
  transition: background-color var(--dur-fast) var(--ease-standard), color var(--dur-fast) var(--ease-standard);
}
.theme-switch label:hover { color: var(--text); }
.theme-switch input:checked + label { background: var(--text); color: var(--bg); font-weight: 600; }
.theme-switch input:focus-visible + label { outline: var(--focus-width) solid var(--focus-color); outline-offset: var(--focus-offset); }

/* Below desktop width the nav becomes a horizontally scrollable pill row under the logo. */
@media (max-width: 1180px) {
  .site-header .wrap { padding-top: var(--space-8); padding-bottom: 0; gap: var(--space-4) var(--space-8); min-height: 0; }
  .theme-switch { order: 2; margin-left: auto; }
  .site-header .nav {
    order: 3; flex: 0 0 auto; width: calc(100% + 2 * var(--grid-margin)); margin: 0 calc(-1 * var(--grid-margin));
    overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch;
  }
  .site-header .nav::-webkit-scrollbar { display: none; }
  .nav ul { width: max-content; padding: var(--space-4) var(--grid-margin) var(--space-8); }
}
@media (max-width: 760px) {
  .nav a { padding: 0 10px; }
}
@media (max-width: 420px) {
  .brand .ticker { display: none; }
  .theme-switch label { padding: 0 10px; }
}

/* ---------- sections ---------- */
main { display: block; flex: 1 0 auto; }
.section { padding: var(--space-96) 0; }
.section + .section { border-top: 1px solid var(--line); }
.section-head { display: grid; gap: var(--space-12); margin-bottom: var(--space-48); max-width: var(--measure); }
.section-head h2 { font-size: var(--fs-h2); line-height: var(--lh-h2); letter-spacing: var(--tr-h2); font-weight: var(--fw-h2); }
@media (max-width: 640px) {
  .section { padding: var(--space-64) 0; }
  .section-head { margin-bottom: var(--space-32); }
}

/* ---------- grid + cards ---------- */
.grid { display: grid; gap: var(--space-16); }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1000px) { .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) { .g2, .g3 { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 480px) { .g4 { grid-template-columns: minmax(0, 1fr); } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-card); padding: var(--space-24); min-width: 0; }
.span-2 { grid-column: span 2; }
.span-all { grid-column: 1 / -1; }
@media (max-width: 480px) { .span-2 { grid-column: auto; } }

/* ---------- buttons ---------- */
.row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-12); }
.btn {
  -webkit-appearance: none; appearance: none;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: var(--target-min); padding: 0 20px; border-radius: var(--radius-button);
  border: 1px solid transparent; font: 600 16px/1.2 var(--font-sans); text-decoration: none; cursor: pointer;
  transition: background-color var(--dur-fast) var(--ease-standard), color var(--dur-fast) var(--ease-standard), border-color var(--dur-fast) var(--ease-standard), transform var(--dur-fast) var(--ease-standard);
}
.btn:hover { text-decoration: none; }
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--accent-fill); color: var(--on-accent); }
.btn-primary:hover { background: var(--color-ember-glow); }
.btn-secondary { background: transparent; color: var(--text); border-color: var(--line); }
.btn-secondary:hover { background: var(--surface); border-color: var(--text-3); }
.btn-disabled { background: transparent; color: var(--text-2); border: 1px dashed var(--text-3); }
.btn-disabled:hover { background: var(--surface); }
.btn-sm { padding: 0 14px; font-size: 14px; }

/* ---------- placeholder ("to be announced") fields ---------- */
.tba {
  display: inline-block;
  border: 1.5px dashed var(--text-3); border-radius: var(--radius-input);
  padding: 2px 8px;
  font-family: var(--font-mono); font-size: var(--fs-label); line-height: 1.6; letter-spacing: var(--tr-label);
  font-weight: var(--fw-label); text-transform: uppercase; color: var(--text-2);
  font-style: normal; white-space: normal; vertical-align: baseline;
}
.field { display: grid; gap: 8px; justify-items: start; }
.field .tba { padding: 10px 12px; }
.fields { display: grid; gap: var(--space-24); }

/* ---------- spec sheet ---------- */
.spec { display: grid; grid-template-columns: minmax(120px, 30%) 1fr; border-top: 1px solid var(--line); }
.spec dt, .spec dd { padding: 14px 0; border-bottom: 1px solid var(--line); }
.spec dt {
  font-family: var(--font-mono); font-size: var(--fs-label); letter-spacing: var(--tr-label);
  text-transform: uppercase; color: var(--text-2); font-weight: 500; padding-top: 17px; padding-right: 16px;
}
.spec dd { font-family: var(--font-mono); font-size: var(--fs-data); line-height: var(--lh-data); font-variant-numeric: tabular-nums; }

/* ---------- stat blocks ---------- */
.stat { display: grid; gap: var(--space-8); align-content: start; }
.stat .value { font-family: var(--font-mono); font-size: 32px; line-height: 1.1; letter-spacing: -0.02em; font-weight: 600; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.stat .value-text { font-size: 17px; line-height: 1.45; }
.stat .value-text .mono { font-weight: 600; }
.glance { margin: 0; }
.glance dt { margin: 0; }
.glance dd { margin: 0; }

/* ---------- tables ---------- */
.tbl-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-card); background: var(--surface); }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
caption { text-align: left; }
th, td { text-align: left; vertical-align: top; padding: 12px 16px; border-bottom: 1px solid var(--line); }
tbody tr:last-child td, tbody tr:last-child th { border-bottom: 0; }
thead th {
  font-family: var(--font-mono); font-size: var(--fs-label); letter-spacing: var(--tr-label);
  text-transform: uppercase; font-weight: 500; color: var(--text-2); white-space: nowrap;
}
tbody th { font-weight: 500; white-space: nowrap; }
.num { text-align: right; font-family: var(--font-mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
@media (max-width: 640px) { th, td { padding: 10px 12px; } }
@media (max-width: 480px) {
  table { font-size: 14px; }
  th, td { padding: 10px 8px; }
  tbody th { white-space: normal; }
}

/* ---------- emission chart ---------- */
.emission { display: grid; gap: var(--space-24); grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); align-items: start; }
@media (max-width: 900px) { .emission { grid-template-columns: minmax(0, 1fr); } }
.chart-card figcaption { margin-top: var(--space-12); }
.chart { width: 100%; height: auto; overflow: visible; }
.chart-grid { stroke: var(--line); stroke-width: 1; fill: none; }
.chart-ground { stroke: var(--baseline-color); stroke-width: 2; fill: none; }
.chart-line { stroke: var(--accent-graphic); stroke-width: 2.5; fill: none; stroke-linejoin: round; stroke-linecap: round; }
.chart-label { fill: var(--text-2); font-family: var(--font-mono); font-size: 12px; }
@media (max-width: 480px) { .chart-label { font-size: 20px; } .chart-minor { display: none; } }
.after-table { margin-top: var(--space-16); }

/* ---------- ground rule ---------- */
.ground { height: var(--baseline-width); background: var(--baseline-color); border: 0; margin: 0; }

/* ---------- hero (home) ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.6fr); gap: var(--space-48); align-items: center; padding: var(--space-96) 0 var(--space-64); }
.hero-text { display: grid; gap: var(--space-24); }
.slogan {
  font-family: var(--font-serif); font-weight: var(--fw-display-serif);
  font-size: clamp(40px, 7vw, var(--fs-display)); line-height: 1.02; letter-spacing: var(--tr-display);
}
.slogan span { display: block; }
.slogan em { font-style: italic; }
.hero .sub { color: var(--text-2); font-size: var(--fs-small); font-family: var(--font-mono); }
.hero .row { margin-top: var(--space-8); }
.hero-art { justify-self: center; width: min(280px, 100%); color: var(--mark-ring); }
.hero-art svg { width: 100%; height: auto; overflow: visible; }
.sig-bar, .sig-halo { fill: var(--mark-bar); }
@media (max-width: 860px) {
  .hero { grid-template-columns: minmax(0, 1fr); gap: var(--space-32); padding: var(--space-48) 0 var(--space-64); }
  .hero-art { order: -1; justify-self: start; width: 132px; margin-bottom: -24px; }
}

/* ---------- home pieces ---------- */
.points { list-style: none; padding: 0; display: grid; gap: var(--space-16); grid-template-columns: repeat(3, minmax(0, 1fr)); }
.points li { font-size: 19px; line-height: 1.45; letter-spacing: -0.01em; }
@media (max-width: 860px) { .points { grid-template-columns: minmax(0, 1fr); } }
.pull {
  margin-top: var(--space-48); max-width: 30em;
  font-family: var(--font-serif); font-size: clamp(24px, 3.2vw, 34px); line-height: 1.25; letter-spacing: -0.015em; font-weight: 500;
}
.note { margin-bottom: var(--space-16); }
.steps { list-style: none; padding: 0; counter-reset: step; }
.steps li { counter-increment: step; display: grid; gap: var(--space-16); align-content: start; }
.steps li::before {
  content: counter(step); font-family: var(--font-mono); font-weight: 600; font-size: 15px;
  width: 36px; height: 36px; display: inline-grid; place-items: center;
  border: 1px solid var(--line); border-radius: 50%; color: var(--text);
}
.fine { margin-top: var(--space-24); max-width: var(--measure); }
.check-card p + p { margin-top: var(--space-12); }
.limits { list-style: none; padding: 0; display: grid; gap: 0; border-top: 1px solid var(--line); max-width: var(--measure); }
.limits li { padding: var(--space-16) 0; border-bottom: 1px solid var(--line); max-width: var(--measure); }
.more { margin-top: var(--space-24); }
.more a { display: inline-flex; align-items: center; min-height: var(--target-min); }
.official { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-48); align-items: start; }
@media (max-width: 860px) { .official { grid-template-columns: minmax(0, 1fr); gap: var(--space-32); } }

/* ---------- notice banner ---------- */
.notice {
  display: flex; gap: var(--space-16); align-items: flex-start;
  border: 1px solid var(--line); border-left: 4px solid var(--notice); border-radius: var(--radius-card);
  background: var(--surface); padding: var(--space-24);
}
.notice svg { width: 28px; height: 28px; flex: none; color: var(--notice); }
.notice p { font-size: clamp(20px, 2.6vw, 28px); line-height: 1.3; letter-spacing: -0.015em; font-weight: 650; }

/* ---------- page header (inner pages) ---------- */
.page-head { padding: var(--space-64) 0 var(--space-48); display: grid; gap: var(--space-24); }
.page-head h1 { font-size: var(--fs-h1); line-height: var(--lh-h1); letter-spacing: var(--tr-h1); font-weight: var(--fw-h1-sans); }
.page-body .block { padding: var(--space-48) 0; border-top: 1px solid var(--line); }
.page-body .block:last-child { padding-bottom: var(--space-96); }
.page-body .block h2 { font-size: var(--fs-h3); line-height: var(--lh-h3); letter-spacing: var(--tr-h3); font-weight: var(--fw-h3); margin-bottom: var(--space-16); max-width: var(--measure); }
.page-body .block > p, .page-body .block > ul, .page-body .block > ol { max-width: var(--measure); }
.page-body .block > * + * { margin-top: var(--space-16); }
.list { padding-left: 1.25em; display: grid; gap: var(--space-8); }
.list li::marker { color: var(--text-3); }

/* ---------- download ---------- */
.code-block {
  display: flex; align-items: center; gap: var(--space-12); flex-wrap: wrap;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-card); padding: var(--space-12) var(--space-12) var(--space-12) var(--space-16);
}
.code-block { min-width: 0; }
.code-block pre { margin: 0; flex: 1 1 240px; min-width: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.code-block code { background: none; border: 0; padding: 0; font-size: 15px; white-space: pre-wrap; }
.code-block .tba { white-space: nowrap; }
.copy-status { font-family: var(--font-mono); font-size: 13px; color: var(--text-2); min-width: 1ch; }
.howto { padding: 0; list-style: none; counter-reset: s; display: grid; gap: var(--space-24); }
.howto > li { counter-increment: s; display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: var(--space-16); align-items: start; }
.howto > li::before { content: "Step " counter(s) "."; font-family: var(--font-mono); font-size: 14px; color: var(--text-2); padding-top: 2px; }
.howto > li > div { display: grid; gap: var(--space-12); min-width: 0; }
.howto > li > div > * { min-width: 0; }
@media (max-width: 480px) { .howto > li { grid-template-columns: minmax(0, 1fr); gap: var(--space-8); } }
.numbered { padding-left: 1.5em; display: grid; gap: var(--space-8); }
.numbered li::marker { font-family: var(--font-mono); color: var(--text-2); }

/* ---------- FAQ ---------- */
.faq-index { list-style: none; padding: 0; display: grid; gap: 0; border-top: 1px solid var(--line); max-width: var(--measure); }
.faq-index li { border-bottom: 1px solid var(--line); }
.faq-index a { display: flex; align-items: center; min-height: var(--target-min); padding: 6px 0; text-decoration: none; color: var(--text); }
.faq-index a:hover { color: var(--accent-text); text-decoration: underline; }
.faq { list-style: none; padding: 0; margin: 0; }
.faq > li { padding: var(--space-48) 0; border-top: 1px solid var(--line); max-width: var(--measure); }
.faq h2 { font-size: var(--fs-h3); line-height: var(--lh-h3); letter-spacing: var(--tr-h3); font-weight: var(--fw-h3); margin-bottom: var(--space-12); }
.faq h2 a { color: var(--text); text-decoration: none; }
.faq h2 a:hover { text-decoration: underline; }
.faq .anchor { font-family: var(--font-mono); font-size: 13px; color: var(--text-3); text-decoration: none; display: inline-flex; align-items: center; min-height: var(--target-min); margin-top: var(--space-8); }
.faq .anchor:hover { color: var(--accent-text); }

/* ---------- 404 ---------- */
.lost { padding: var(--space-128) 0; display: grid; gap: var(--space-24); justify-items: start; }
.lost svg { width: 72px; height: auto; color: var(--mark-ring); }
.lost h1 { font-family: var(--font-serif); font-weight: 500; font-size: var(--fs-h1); line-height: var(--lh-h1); letter-spacing: var(--tr-h1); }
@media (max-width: 640px) { .lost { padding: var(--space-64) 0; } }

/* ---------- Proof register (rules page): mono-led, Day and Night ---------- */
.proof { font-family: var(--font-sans); }
.proof .page-head h1 { font-family: var(--font-mono); font-weight: 600; font-size: clamp(30px, 4.4vw, 48px); line-height: 1.12; letter-spacing: -0.02em; max-width: 22em; }
.proof .page-head .lead { font-family: var(--font-mono); font-size: 17px; line-height: 1.65; }
.proof .page-body .block h2 { font-family: var(--font-mono); font-size: 20px; font-weight: 600; letter-spacing: -0.01em; }
.ember-line { width: 72px; height: 2px; background: var(--accent-graphic); border: 0; margin: 0; }
.rules { list-style: none; padding: 0; counter-reset: rule; border-top: 1px solid var(--line); max-width: calc(74ch + 80px); }
.rules > li {
  counter-increment: rule; display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: var(--space-16);
  padding: var(--space-24) 0; border-bottom: 1px solid var(--line);
}
.rules > li::before { content: counter(rule, decimal-leading-zero); font-family: var(--font-mono); font-size: 14px; color: var(--accent-text); padding-top: 3px; font-variant-numeric: tabular-nums; }
.rules p { font-family: var(--font-mono); font-size: 15px; line-height: 1.7; max-width: 74ch; color: var(--text-2); }
.rules p strong { color: var(--text); font-weight: 600; }
.rule-body { display: grid; gap: var(--space-16); min-width: 0; }
.rules .field .label { font-size: var(--fs-label); line-height: var(--lh-label); color: var(--text-2); }
.notlist { list-style: none; padding: 0; border-top: 1px solid var(--line); max-width: calc(74ch + var(--space-32)); }
.notlist li { padding: var(--space-16) 0 var(--space-16) var(--space-32); border-bottom: 1px solid var(--line); position: relative; font-family: var(--font-mono); font-size: 15px; line-height: 1.7; color: var(--text-2); max-width: calc(74ch + var(--space-32)); }
.notlist li::before { content: "\00D7"; position: absolute; left: 4px; top: var(--space-16); color: var(--voided); font-weight: 600; }
.notlist strong { color: var(--text); font-weight: 600; }
.formula { font-family: var(--font-mono); font-size: var(--fs-data); }
.closing p { font-family: var(--font-mono); }
.closing .big { font-size: clamp(20px, 2.4vw, 26px); line-height: 1.35; color: var(--text); font-weight: 600; letter-spacing: -0.01em; }
@media (max-width: 480px) {
  .rules > li { grid-template-columns: minmax(0, 1fr); gap: var(--space-8); }
  .rules p, .notlist li { font-size: 14px; }
}

/* ---------- footer ---------- */
.site-footer { padding: var(--space-48) 0 var(--space-48); }
.site-footer .ground { margin-bottom: var(--space-24); }
.site-footer .disclaimer { display: grid; gap: var(--space-8); max-width: var(--measure); }
.site-footer .disclaimer p { font-size: var(--fs-small); line-height: var(--lh-small); color: var(--text-2); }
.footer-links { list-style: none; padding: 0; margin: var(--space-24) 0 0; display: flex; flex-wrap: wrap; gap: var(--space-8) var(--space-24); align-items: center; font-size: 15px; }
.footer-links a { display: inline-flex; align-items: center; min-height: var(--target-min); }
.footer-links .pair { display: inline-flex; align-items: center; gap: var(--space-8); min-height: var(--target-min); color: var(--text-2); }

/* ---------- page entry: rise 8px and fade in, once ---------- */
@media (prefers-reduced-motion: no-preference) {
  .enter { animation: enter var(--dur-base) var(--ease-standard) both; }
  .enter-2 { animation-delay: calc(var(--stagger) * 1); }
  .enter-3 { animation-delay: calc(var(--stagger) * 2); }
  .enter-4 { animation-delay: calc(var(--stagger) * 3); }
}
@keyframes enter { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ==========================================================================
   v1.1 feature pages
   ========================================================================== */

/* ---------- home: link cards ---------- */
.link-cards { padding-bottom: var(--space-64); }
.link-cards ul { list-style: none; padding: 0; margin: 0; }
.link-card {
  display: grid; gap: var(--space-8); align-content: start; height: 100%; min-height: var(--target-min);
  color: var(--text); text-decoration: none;
  transition: border-color var(--dur-fast) var(--ease-standard), background-color var(--dur-fast) var(--ease-standard);
}
.link-card:hover { border-color: var(--text-3); }
.link-card-title { font-weight: 650; font-size: 18px; letter-spacing: -0.01em; display: inline-flex; align-items: center; gap: 8px; }
.link-card-title::after { content: "\2192"; color: var(--accent-text); font-weight: 500; }
.link-card-text { font-size: var(--fs-small); line-height: var(--lh-small); color: var(--text-2); }
@media (max-width: 860px) { .link-cards { padding-bottom: var(--space-48); } }

/* ---------- shared: standfirst, numbered blocks, tags ---------- */
.page-head .lead { color: var(--text); }
.block-num { font-family: var(--font-mono); font-weight: 500; font-size: 0.8em; color: var(--accent-text); margin-right: 2px; }
.tag {
  display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
  font-family: var(--font-mono); font-size: 11px; line-height: 1; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 500;
  padding: 5px 9px; border-radius: var(--radius-pill); border: 1px solid var(--line); color: var(--text-2); background: var(--surface);
}
.tag::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--pending); flex: none; }
.tag-planned { border-style: dashed; border-color: var(--text-3); background: transparent; }
.tag-planned::before { background: transparent; border: 1px dashed var(--text-2); width: 6px; height: 6px; }
.tag-done { color: var(--confirmed); border-color: currentColor; }
.tag-done::before { background: var(--confirmed); }
.tag-progress { color: var(--accent-text); border-color: currentColor; }
.tag-progress::before { background: var(--accent-graphic); }
.tag-next::before { background: var(--text-2); }
.tag-later::before { background: transparent; border: 1px solid var(--text-3); width: 5px; height: 5px; }

/* ---------- app page ---------- */
.app-today {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 406px); column-gap: var(--space-64); row-gap: var(--space-32);
  grid-template-areas: "text panel" "more panel" "cap cap"; align-items: start;
}
.app-text { grid-area: text; }
.app-text > * + * { margin-top: var(--space-16); }
.shot-panel { grid-area: panel; }
.app-more { grid-area: more; display: grid; gap: var(--space-24); align-self: start; }
.shots-caption { grid-area: cap; font-family: var(--font-mono); font-size: 13px; line-height: 1.55; color: var(--text-2); max-width: var(--measure); }
@media (max-width: 900px) {
  .app-today { grid-template-columns: minmax(0, 1fr); grid-template-areas: "text" "panel" "more" "cap"; }
  .shot-panel { justify-self: center; width: 100%; max-width: 406px; }
  .app-more { align-self: start; }
}
.shot { margin: 0; position: relative; min-width: 0; }
.shot img { display: block; max-width: 100%; height: auto; }
/* Light/dark image pairs: shown by theme, including Auto (system). */
img.theme-img-dark { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) img.theme-img-light { display: none; }
  :root:not([data-theme="light"]) img.theme-img-dark { display: block; }
}
:root[data-theme="dark"] img.theme-img-light { display: none; }
:root[data-theme="dark"] img.theme-img-dark { display: block; }
.shot-tag {
  position: absolute; z-index: 1; font-family: var(--font-mono); font-size: 10px; line-height: 1; letter-spacing: 0.08em;
  font-weight: 500; color: var(--text-2); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-pill);
  padding: 4px 8px; white-space: nowrap;
}
.menubar-strip {
  height: 26px; display: flex; align-items: center; justify-content: center; margin-bottom: 2px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 8px; color: var(--text-2);
}
.menubar-strip svg { width: 15px; height: 15px; }
.shot-panel .shot-tag { position: static; display: inline-block; margin-bottom: var(--space-8); }
.shot-panel img { width: 100%; }
.shot-card {
  display: grid; place-items: center; padding: var(--space-48) var(--space-24) var(--space-24);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-card);
}
.shot-card .shot-tag { top: 12px; left: 12px; }
.pv-ink { fill: currentColor; }
.planned-block {
  border: 1.5px dashed var(--text-3); border-radius: var(--radius-panel); padding: var(--space-32);
  display: grid; gap: var(--space-24);
}
.planned-block > .planned-list { max-width: var(--measure); }
.proto-group { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-32); margin-top: var(--space-8); }
.proto-group .shots-caption { grid-area: auto; }
.shot-proto img { width: 100%; border-radius: var(--radius-input); }
.shot-tag-proto { position: static; display: inline-block; margin-bottom: var(--space-8); border-style: dashed; border-color: var(--text-3); background: transparent; }
.planned-block > p { max-width: var(--measure); }
.planned-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.planned-list li { padding: var(--space-16) 0; border-bottom: 1px solid var(--line); display: grid; gap: var(--space-8); }
.planned-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.planned-head { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-8) var(--space-12); }
.planned-head strong { font-weight: 650; color: var(--text); }
.planned-list p { color: var(--text-2); }
@media (max-width: 640px) { .planned-block { padding: var(--space-24) var(--space-16); } }

/* ---------- how it works: steps with diagrams ---------- */
.how-steps { list-style: none; padding: 0; margin: 0; counter-reset: how; border-top: 1px solid var(--line); }
.how-steps > li {
  counter-increment: how; display: grid; grid-template-columns: 40px 120px minmax(0, 1fr); gap: var(--space-24);
  align-items: start; padding: var(--space-32) 0; border-bottom: 1px solid var(--line);
}
.how-steps > li::before { content: counter(how, decimal-leading-zero); font-family: var(--font-mono); font-size: 14px; color: var(--accent-text); padding-top: 4px; font-variant-numeric: tabular-nums; }
.how-steps h3 { font-size: 19px; line-height: 1.35; font-weight: 650; letter-spacing: -0.01em; margin-bottom: var(--space-8); }
.how-steps p { color: var(--text-2); max-width: var(--measure); }
.diag { width: 120px; height: auto; display: block; overflow: visible; }
.d-ink { stroke: var(--text); fill: none; stroke-width: 2; }
.d-ink.d-thick { stroke-width: 6; }
.d-fill { fill: var(--text); }
.d-faint { stroke: var(--line); fill: none; stroke-width: 1; }
.d-soft { fill: var(--text-3); }
.d-dot { fill: none; stroke: var(--text-2); stroke-width: 1.5; }
.d-accent { fill: var(--accent-graphic); }
.d-accent-line { stroke: var(--accent-graphic); fill: none; stroke-width: 2; }
.d-dash { stroke: var(--text-2); stroke-width: 1; stroke-dasharray: 3 3; fill: none; }
@media (max-width: 640px) {
  .how-steps > li { grid-template-columns: 32px minmax(0, 1fr); gap: var(--space-12) var(--space-16); }
  .how-steps .diag { grid-column: 2; width: 96px; }
  .how-steps > li > div { grid-column: 2; }
}

/* ---------- emission page ---------- */
.spec-wrap { max-width: 760px; }
.chart-wide { max-width: 760px; }
.period-wrap { max-height: none; }
.period-table td, .period-table th { white-space: nowrap; }
.period-table tbody th { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.periods-more { margin-top: var(--space-16); }

/* ---------- roadmap ---------- */
.roadmap { list-style: none; padding: 0; margin: 0; counter-reset: road; position: relative; max-width: calc(var(--measure) + 72px); }
.roadmap > li {
  counter-increment: road; position: relative; display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: var(--space-16);
  padding: 0 0 var(--space-32);
}
.roadmap > li::before {
  content: counter(road, decimal-leading-zero); font-family: var(--font-mono); font-size: 13px; color: var(--text-2);
  width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line); background: var(--bg);
  display: grid; place-items: center; position: relative; z-index: 1; font-variant-numeric: tabular-nums;
}
.roadmap > li::after { content: ""; position: absolute; left: 16px; top: 32px; bottom: 0; width: 1px; background: var(--line); }
.roadmap > li:last-child::after { display: none; }
.roadmap .road-body { display: grid; gap: var(--space-8); padding-top: 4px; }
.roadmap .road-head { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-8) var(--space-12); }
.roadmap .road-head strong { font-weight: 650; font-size: 18px; letter-spacing: -0.01em; }
.roadmap p { color: var(--text-2); }
.roadmap > li.is-done::before { border-color: var(--confirmed); color: var(--confirmed); }
.roadmap > li.is-progress::before { border-color: var(--accent-graphic); color: var(--accent-text); }

/* ---------- official links ---------- */
.official-list { display: grid; grid-template-columns: minmax(140px, 30%) 1fr; max-width: 860px; }
.official-list dt, .official-list dd { margin: 0; padding: 14px 0; border-bottom: 1px solid var(--line); display: flex; align-items: center; min-height: 56px; }
.official-list dt {
  font-family: var(--font-mono); font-size: var(--fs-label); letter-spacing: var(--tr-label); text-transform: uppercase;
  color: var(--text-2); font-weight: 500; padding-right: 16px;
}
.official-list dd { font-family: var(--font-mono); font-size: var(--fs-data); }
@media (max-width: 560px) {
  .official-list { grid-template-columns: minmax(0, 1fr); }
  .official-list dt { border-bottom: 0; padding-bottom: 0; min-height: 0; }
  .official-list dd { min-height: 0; }
}

/* "Draft." marker at the start of each rule */
.draft { font-style: normal; font-family: var(--font-mono); font-size: var(--fs-label); letter-spacing: var(--tr-label); text-transform: uppercase; color: var(--text-2); }

/* the cap (13 characters, about 7.8em in the mono face) must fit its tile at any column count */
.stat:has(.value-long) { container-type: inline-size; }
.stat .value.value-long { font-size: min(32px, 12cqi); overflow-wrap: normal; white-space: nowrap; }

/* long hashes wrap instead of widening the page */
code.hash { word-break: break-all; overflow-wrap: anywhere; }
