/* ==========================================================================
   NTE Field Guide — unofficial Neverness to Everness reference
   Visual system: anomaly dossier. Paper, ink, neon magenta, aqua, amber.
   All visuals are CSS + inline SVG. No third-party images.
   ========================================================================== */

:root {
  --font-sans: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "Cascadia Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --wrap: 1180px;
  --read: 744px;
  --radius: 3px;
  --ease: cubic-bezier(.2,.7,.3,1);
}

:root[data-theme="light"] {
  --bg: #f4f1ea;
  --bg-2: #fffdf8;
  --panel: #fffdf8;
  --panel-2: #ece7db;
  --panel-3: #e2dccd;
  --border: #d9d3c6;
  --border-strong: #b9b1a0;
  --text: #17151d;
  --text-dim: #4a4553;
  --text-faint: #7b7486;
  --accent: #e01f63;
  --accent-deep: #b3124a;
  --accent-wash: rgba(224, 31, 99, 0.09);
  --aqua: #0b9d8b;
  --aqua-wash: rgba(11, 157, 139, 0.10);
  --amber: #a86d0a;
  --amber-wash: rgba(168, 109, 10, 0.12);
  --ok: #157a4a;
  --hero-1: #120f1e;
  --hero-2: #2b1743;
  --hero-ink: #f5f1e8;
  --grid: rgba(255, 255, 255, 0.055);
  --shadow: 0 1px 0 rgba(23, 21, 29, 0.04), 0 18px 40px -30px rgba(23, 21, 29, 0.55);
}

:root[data-theme="dark"] {
  --bg: #0e0d15;
  --bg-2: #131120;
  --panel: #171526;
  --panel-2: #211d33;
  --panel-3: #2a2440;
  --border: #332d47;
  --border-strong: #4a4163;
  --text: #f3efe6;
  --text-dim: #b9b2c6;
  --text-faint: #8a8299;
  --accent: #ff5c95;
  --accent-deep: #ff87b0;
  --accent-wash: rgba(255, 92, 149, 0.13);
  --aqua: #38e0c9;
  --aqua-wash: rgba(56, 224, 201, 0.12);
  --amber: #f0b13c;
  --amber-wash: rgba(240, 177, 60, 0.12);
  --ok: #47d18b;
  --hero-1: #0b0a12;
  --hero-2: #241437;
  --hero-ink: #f5f1e8;
  --grid: rgba(255, 255, 255, 0.045);
  --shadow: 0 1px 0 rgba(0, 0, 0, 0.35), 0 22px 50px -30px rgba(0, 0, 0, 0.8);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
html, body { margin: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16.5px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
img { max-width: 100%; height: auto; }
svg { display: block; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  padding: 10px 16px; background: var(--accent); color: #fff;
}
.skip-link:focus { left: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex; align-items: center; gap: 18px;
  min-height: 66px; padding-top: 8px; padding-bottom: 8px;
}
.brand { display: flex; align-items: center; gap: 11px; flex: none; color: var(--text); }
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 38px; height: 38px; flex: none; display: grid; place-items: center;
  background: var(--hero-1); color: var(--hero-ink);
  border: 1px solid var(--accent);
  clip-path: polygon(0 0, calc(100% - 9px) 0, 100% 9px, 100% 100%, 0 100%);
}
.brand-mark svg { width: 21px; height: 21px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-weight: 800; font-size: 16.5px; letter-spacing: -0.02em; }
.brand-sub { font-size: 10.5px; color: var(--text-faint); letter-spacing: 0.14em; text-transform: uppercase; }

.main-nav { display: flex; align-items: center; gap: 1px; margin-left: auto; flex-wrap: wrap; }
.main-nav a {
  display: inline-block; padding: 7px 10px;
  color: var(--text-dim); font-size: 13.5px; font-weight: 600;
  letter-spacing: 0.02em; text-transform: uppercase;
  border-bottom: 2px solid transparent;
}
.main-nav a:hover { color: var(--text); border-bottom-color: var(--border-strong); text-decoration: none; }
.main-nav a[aria-current="page"] { color: var(--accent); border-bottom-color: var(--accent); }

.header-actions { display: flex; align-items: center; gap: 8px; flex: none; }
.icon-btn {
  width: 38px; height: 38px; display: grid; place-items: center;
  border: 1px solid var(--border); background: var(--panel);
  color: var(--text-dim); cursor: pointer; border-radius: var(--radius);
}
.icon-btn:hover { color: var(--text); border-color: var(--border-strong); }
.icon-btn svg { width: 18px; height: 18px; }
.menu-btn { display: none; }

@media (max-width: 1020px) {
  .main-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0; margin: 0;
    padding: 8px 14px 14px; background: var(--bg-2);
    border-bottom: 1px solid var(--border); box-shadow: var(--shadow);
  }
  .main-nav[hidden] { display: none; }
  .main-nav a { padding: 12px 12px; border-bottom: 1px solid var(--border); font-size: 15px; }
  .menu-btn { display: grid; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 20px; border: 1px solid transparent;
  font: inherit; font-size: 14.5px; font-weight: 700;
  letter-spacing: 0.03em; text-transform: uppercase; cursor: pointer;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-deep); }
.btn-ghost { background: transparent; border-color: rgba(245,241,232,.4); color: var(--hero-ink); }
.btn-ghost:hover { border-color: var(--hero-ink); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  margin: 22px 0 10px; padding: 50px 42px 46px;
  background: linear-gradient(135deg, var(--hero-1), var(--hero-2));
  color: var(--hero-ink);
  clip-path: polygon(0 0, calc(100% - 26px) 0, 100% 26px, 100% 100%, 0 100%);
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(circle at 60% 30%, #000 0, transparent 78%);
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(700px 340px at 92% -12%, rgba(255, 61, 127, 0.30), transparent 64%),
    radial-gradient(520px 300px at 4% 118%, rgba(42, 224, 200, 0.18), transparent 62%);
}
.hero-inner { position: relative; z-index: 2; max-width: 800px; }
.hero-tag {
  display: inline-flex; align-items: center; gap: 9px;
  margin: 0 0 18px; padding: 5px 12px;
  border: 1px solid rgba(245,241,232,.28); background: rgba(255,255,255,.06);
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--hero-ink);
}
.hero-tag i { width: 7px; height: 7px; background: var(--accent); border-radius: 50%; box-shadow: 0 0 0 4px rgba(255,61,127,.22); }
.hero h1 {
  margin: 0 0 16px; font-size: clamp(31px, 5vw, 54px);
  line-height: 1.04; letter-spacing: -0.035em; font-weight: 800; color: #fff;
}
.hero h1 em { font-style: normal; color: #ff8fb6; }
.hero p.lede {
  margin: 0 0 24px; max-width: 660px;
  font-size: 17.5px; line-height: 1.66; color: rgba(245,241,232,.82);
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-stats {
  position: relative; z-index: 2; display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1px; margin: 34px 0 0; background: rgba(245,241,232,.14);
  border: 1px solid rgba(245,241,232,.14);
}
.hero-stat { background: rgba(12,10,20,.42); padding: 13px 16px; }
.hero-stat b { display: block; font-size: 20px; letter-spacing: -0.02em; color: #fff; }
.hero-stat span { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: rgba(245,241,232,.58); }

/* ---------- Sections & cards ---------- */
.section { margin: 44px 0; scroll-margin-top: 84px; }
.section-head { margin: 0 0 18px; display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.section-head h2 {
  margin: 0; font-size: clamp(20px, 2.3vw, 26px);
  letter-spacing: -0.025em; font-weight: 800;
  display: flex; align-items: center; gap: 10px;
}
.section-head h2::before { content: ""; width: 6px; height: 20px; background: var(--accent); display: inline-block; }
.section-head p { margin: 0; color: var(--text-dim); font-size: 14.5px; }

.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 900px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .grid { grid-template-columns: 1fr; } }
.card {
  position: relative; display: flex; flex-direction: column; gap: 8px;
  padding: 20px 20px 18px; background: var(--panel);
  border: 1px solid var(--border); box-shadow: var(--shadow);
  color: var(--text); transition: transform .16s var(--ease), border-color .16s var(--ease);
}
.card::after {
  content: ""; position: absolute; top: 0; right: 0;
  border-width: 0 14px 14px 0; border-style: solid;
  border-color: transparent var(--bg) transparent transparent;
}
.card:hover { transform: translateY(-3px); border-color: var(--accent); text-decoration: none; }
.card-tag {
  font-family: var(--font-mono); font-size: 10.5px;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-faint);
}
.card h3 { margin: 2px 0 0; font-size: 17.5px; line-height: 1.34; letter-spacing: -0.02em; }
.card p { margin: 0; color: var(--text-dim); font-size: 14.5px; line-height: 1.62; }
.card-more { margin-top: auto; padding-top: 10px; font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }

/* ---------- Site network ---------- */
.network-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px 26px; }
.network-card { display: flex; flex-direction: column; gap: 3px; padding: 9px 0; color: var(--text); border: 0; }
.network-card strong { font-size: 15px; font-weight: 700; letter-spacing: -0.01em; }
.network-card span { font-size: 13px; line-height: 1.5; color: var(--text-faint); }
.network-card:hover { text-decoration: none; }
.network-card:hover strong { color: var(--accent); }
@media (max-width: 720px) { .network-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .network-grid { grid-template-columns: 1fr; } }

.facts {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 1px; background: var(--border); border: 1px solid var(--border);
}
.fact { background: var(--panel); padding: 16px 18px; }
.fact-k { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--text-faint); }
.fact-v { margin-top: 4px; font-size: 19px; font-weight: 800; letter-spacing: -0.02em; }
.fact-v small { display: block; font-size: 12.5px; font-weight: 500; color: var(--text-dim); margin-top: 2px; }

/* ---------- Breadcrumb ---------- */
.breadcrumb { margin: 20px 0 14px; font-size: 12.5px; color: var(--text-faint); }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 7px; margin: 0; padding: 0; }
.breadcrumb li { display: flex; align-items: center; gap: 7px; }
.breadcrumb li:not(:last-child)::after { content: "/"; color: var(--border-strong); }
.breadcrumb a { color: var(--text-dim); }
.breadcrumb [aria-current="page"] { color: var(--text); }

/* ---------- Article ---------- */
.doc {
  display: grid; grid-template-columns: minmax(0, 1fr) 304px;
  gap: 44px; align-items: start; padding-bottom: 20px;
}
@media (max-width: 1000px) {
  .doc { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .doc-aside { order: -1; }
}
.article-head { margin-bottom: 10px; }
.article-head h1 {
  margin: 0 0 14px; font-size: clamp(28px, 3.8vw, 43px);
  line-height: 1.1; letter-spacing: -0.035em; font-weight: 800;
}
.eyebrow {
  display: inline-block; margin: 0 0 12px; padding: 4px 10px;
  background: var(--accent-wash); border: 1px solid var(--accent);
  color: var(--accent); font-family: var(--font-mono);
  font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase;
}
.lede { margin: 0 0 16px; font-size: 18px; line-height: 1.64; color: var(--text-dim); }
.meta-row {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
  margin: 0 0 22px; padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
  font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .05em; color: var(--text-faint);
}
.badge {
  display: inline-block; padding: 3px 9px; background: var(--accent-wash);
  border: 1px solid var(--accent); color: var(--accent); font-size: 10.5px;
  letter-spacing: .1em; text-transform: uppercase;
}
.badge-aqua { background: var(--aqua-wash); border-color: var(--aqua); color: var(--aqua); }

/* Keybox */
.keybox {
  max-width: var(--read); margin: 0 0 24px; padding: 18px 20px;
  background: var(--panel); border: 1px solid var(--border-strong);
  border-left: 4px solid var(--accent);
}
.keybox h2 {
  margin: 0 0 10px !important; font-family: var(--font-mono);
  font-size: 11px !important; letter-spacing: .14em; text-transform: uppercase;
  color: var(--text-faint) !important; font-weight: 600 !important;
}
.keybox dl { margin: 0; display: grid; grid-template-columns: max-content 1fr; gap: 7px 18px; font-size: 14.5px; }
.keybox dt { color: var(--text-faint); font-weight: 600; }
.keybox dd { margin: 0; color: var(--text); }
@media (max-width: 560px) {
  .keybox dl { grid-template-columns: 1fr; gap: 0; }
  .keybox dd { margin-bottom: 10px; }
}

/* Prose */
.prose { font-size: 17px; line-height: 1.76; color: var(--text); }
.prose > * { max-width: var(--read); }
.prose h2 {
  margin: 42px 0 12px; font-size: clamp(22px, 2.5vw, 28px);
  line-height: 1.2; letter-spacing: -0.03em; font-weight: 800;
  scroll-margin-top: 86px;
}
.prose h2::before {
  content: ""; display: block; width: 26px; height: 3px;
  background: var(--accent); margin-bottom: 9px;
}
.prose h3 {
  margin: 28px 0 8px; font-size: 19px; letter-spacing: -0.015em;
  font-weight: 700; scroll-margin-top: 86px;
}
.prose p { margin: 0 0 16px; }
.prose ul, .prose ol { margin: 0 0 16px; padding-left: 22px; }
.prose li { margin: 7px 0; }
.prose li::marker { color: var(--accent); }
.prose strong { font-weight: 700; }
.prose a { text-decoration: underline; text-decoration-color: var(--border-strong); }
.prose a:hover { text-decoration-color: var(--accent); }
.prose hr { border: none; border-top: 1px dashed var(--border-strong); margin: 34px 0; }
.prose code { font-family: var(--font-mono); font-size: .86em; padding: 2px 5px; background: var(--panel-2); }

.prose table {
  width: 100%; border-collapse: collapse; margin: 0 0 22px;
  font-size: 14.5px; border: 1px solid var(--border-strong);
  display: block; overflow-x: auto; white-space: nowrap;
}
.prose th, .prose td { padding: 11px 14px; text-align: left; border-bottom: 1px solid var(--border); vertical-align: top; }
.prose thead th {
  background: var(--panel-2); font-family: var(--font-mono);
  font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-dim);
  border-bottom: 2px solid var(--border-strong);
}
.prose tbody tr:last-child td { border-bottom: none; }
.prose tbody tr:nth-child(even) { background: var(--panel-2); }
.prose td strong { color: var(--text); }

/* Callouts */
.callout {
  max-width: var(--read); margin: 22px 0; padding: 15px 18px;
  background: var(--panel); border: 1px solid var(--border);
  border-left: 3px solid var(--aqua); font-size: 15px; line-height: 1.66; color: var(--text-dim);
}
.callout p { margin: 0 0 8px; }
.callout p:last-child { margin-bottom: 0; }
.callout strong { color: var(--text); }
.callout-title {
  display: block; margin-bottom: 4px; font-family: var(--font-mono);
  font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--aqua);
}
.callout-verify { border-left-color: var(--amber); }
.callout-verify .callout-title { color: var(--amber); }

/* TOC + ads */
.doc-aside { position: sticky; top: 86px; display: flex; flex-direction: column; gap: 18px; }
@media (max-width: 1000px) { .doc-aside { position: static; } }
.toc { padding: 16px 18px; background: var(--panel); border: 1px solid var(--border); font-size: 14px; }
.toc h2 { margin: 0 0 8px; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--text-faint); }
.toc ol { list-style: none; margin: 0; padding: 0; }
.toc li { margin: 1px 0; }
.toc a {
  display: block; padding: 5px 9px; color: var(--text-dim);
  line-height: 1.45; border-left: 2px solid transparent;
}
.toc a:hover { background: var(--panel-2); color: var(--text); text-decoration: none; }
.toc a.is-active { color: var(--accent); background: var(--accent-wash); border-left-color: var(--accent); }

/* Ads are intentionally hidden until an ad account is approved. */
.ad-slot {
  display: none; align-items: center; justify-content: center;
  max-width: var(--read); min-height: 96px; margin: 26px 0;
  border: 1px dashed var(--border-strong); background: var(--panel-2);
  color: var(--text-faint); font-family: var(--font-mono);
  font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase;
}
.ad-aside { max-width: none; min-height: 250px; margin: 0; }

/* Related */
.related { max-width: var(--read); margin: 36px 0 0; padding-top: 24px; border-top: 1px dashed var(--border-strong); }
.related h2 { margin: 0 0 12px; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--text-faint); }
.related-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px; }
.related-list a { display: block; padding: 12px 15px; background: var(--panel); border: 1px solid var(--border); color: var(--text); }
.related-list a:hover { border-color: var(--accent); text-decoration: none; }
.related-list .rk { display: block; font-family: var(--font-mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 2px; }
.related-list .rt { font-weight: 600; font-size: 15px; }

/* FAQ */
.faq { max-width: var(--read); }
.faq details { border: 1px solid var(--border); background: var(--panel); margin: 0 0 8px; }
.faq summary {
  cursor: pointer; list-style: none; padding: 15px 18px;
  font-weight: 700; font-size: 16px; display: flex; align-items: center; gap: 10px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; margin-left: auto; color: var(--accent); font-size: 19px; line-height: 1; }
.faq details[open] summary::after { content: "\2212"; }
.faq details[open] summary { border-bottom: 1px solid var(--border); }
.faq .faq-body { padding: 14px 18px 18px; color: var(--text-dim); font-size: 15.5px; line-height: 1.7; }
.faq .faq-body p { margin: 0 0 10px; }
.faq .faq-body p:last-child { margin-bottom: 0; }

/* ---------- Footer ---------- */
.site-footer { margin-top: 60px; padding: 44px 0 28px; background: var(--bg-2); border-top: 1px solid var(--border-strong); }
.footer-inner { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 30px; }
.footer-inner > *, .footer-col { min-width: 0; }
@media (max-width: 860px) { .footer-inner { grid-template-columns: 1fr 1fr; gap: 26px; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 560px) { .footer-inner { grid-template-columns: 1fr; gap: 22px; } }
.footer-brand .brand { margin-bottom: 12px; }
.footer-note { margin: 0 0 10px; font-size: 12.5px; color: var(--text-faint); max-width: 44ch; line-height: 1.65; }
.footer-legal-note { margin: 0; font-size: 11.5px; color: var(--text-faint); max-width: 46ch; overflow-wrap: anywhere; }
.footer-col h3 { margin: 0 0 12px; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--text-faint); }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin: 0 0 8px; }
.footer-col a { color: var(--text-dim); font-size: 14px; }
.footer-col a:hover { color: var(--accent); }
.footer-network { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--border); }
.footer-network h3 { margin: 0 0 6px; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--text-faint); }
.footer-network-note { margin: 0 0 16px; font-size: 12.5px; line-height: 1.6; color: var(--text-faint); max-width: 52ch; }
.footer-network-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px 24px; }
.footer-network-grid a { color: var(--text-dim); font-size: 13.5px; line-height: 1.5; }
.footer-network-grid a:hover { color: var(--accent); }
@media (max-width: 640px) { .footer-network-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 420px) { .footer-network-grid { grid-template-columns: 1fr; } }
.footer-bottom {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px;
  margin-top: 32px; padding-top: 18px; border-top: 1px solid var(--border);
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .06em; color: var(--text-faint);
}

/* Subscribe */
.subscribe {
  margin: 44px 0 0; padding: 30px 30px 32px;
  background: linear-gradient(135deg, var(--hero-1), var(--hero-2));
  color: var(--hero-ink); position: relative; overflow: hidden;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 20px), calc(100% - 20px) 100%, 0 100%);
}
.subscribe::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(460px 220px at 88% 0%, rgba(255,61,127,.28), transparent 65%);
}
.subscribe-inner { position: relative; z-index: 2; display: grid; grid-template-columns: 1.2fr 1fr; gap: 26px; align-items: center; }
@media (max-width: 760px) { .subscribe-inner { grid-template-columns: 1fr; } }
.subscribe h2 { margin: 0 0 8px; font-size: clamp(20px, 2.6vw, 26px); letter-spacing: -0.025em; color: #fff; }
.subscribe p { margin: 0; font-size: 14.5px; line-height: 1.6; color: rgba(245,241,232,.76); max-width: 52ch; }
.subscribe-col { min-width: 0; }
.subscribe-form { display: flex; gap: 8px; flex-wrap: wrap; }
.subscribe-form[hidden] { display: none; }
.subscribe p.subscribe-status { margin: 10px 0 0; font-size: 13.5px; line-height: 1.55; color: rgba(245,241,232,.8); }
.subscribe p.subscribe-status:empty { display: none; }
.subscribe p.subscribe-status.is-ok { color: #8ff0dd; font-weight: 600; }
.subscribe p.subscribe-status.is-err { color: #ffb4a4; }
.subscribe-status a { color: inherit; text-decoration: underline; }
.subscribe-form .btn:disabled { opacity: .72; cursor: progress; }
.subscribe-form label { position: absolute; left: -9999px; }
.subscribe-form input[type="email"] {
  flex: 1 1 220px; min-width: 0; padding: 12px 14px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(245,241,232,.34);
  color: #fff; font: inherit; font-size: 15px;
}
.subscribe-form input[type="email"]::placeholder { color: rgba(245,241,232,.5); }
.subscribe-form input[type="email"]:focus { outline: 2px solid var(--accent); border-color: var(--accent); }
.subscribe-form .btn { background: var(--accent); color: #fff; border-color: var(--accent); }
.subscribe-form .btn:hover { background: var(--accent-deep); }
.subscribe p.subscribe-note { margin: 10px 0 0; font-size: 11.5px; line-height: 1.5; color: rgba(245,241,232,.55); }
.subscribe p.subscribe-note a { color: inherit; text-decoration: underline; }

/* Cookie banner */
.cookie-banner {
  position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%);
  z-index: 60; width: min(720px, calc(100% - 32px));
  display: flex; align-items: center; gap: 16px;
  padding: 14px 18px; background: var(--panel);
  border: 1px solid var(--border-strong); box-shadow: var(--shadow);
}
.cookie-banner p { margin: 0; font-size: 13.5px; color: var(--text-dim); }
.cookie-banner a { text-decoration: underline; }
.cookie-actions { display: flex; gap: 8px; flex: none; }
.cookie-banner .btn { padding: 8px 14px; font-size: 12px; }
@media (max-width: 620px) { .cookie-banner { flex-direction: column; align-items: stretch; gap: 12px; } }

/* Misc */
.pill-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; background: var(--panel); border: 1px solid var(--border); font-size: 12.5px; color: var(--text-dim); }
.pill b { color: var(--text); }
.timeline { max-width: var(--read); list-style: none; margin: 0; padding: 0; }
.timeline li { position: relative; padding: 0 0 20px 26px; border-left: 2px solid var(--border); margin-left: 6px; }
.timeline li:last-child { border-left-color: transparent; padding-bottom: 0; }
.timeline li::before { content: ""; position: absolute; left: -7px; top: 3px; width: 11px; height: 11px; background: var(--accent); }
.timeline .t-date { font-family: var(--font-mono); font-size: 12px; color: var(--accent); font-weight: 600; }
.timeline .t-title { font-weight: 700; margin: 2px 0 3px; }
.timeline .t-desc { color: var(--text-dim); font-size: 15px; margin: 0; }

.figure { max-width: var(--read); margin: 24px 0; padding: 16px; background: var(--panel); border: 1px solid var(--border); }
.figure img, .figure svg { width: 100%; height: auto; }
.figure figcaption { margin-top: 10px; font-family: var(--font-mono); font-size: 11px; letter-spacing: .04em; color: var(--text-faint); }
.figure-wide { max-width: 100%; }

.legal { max-width: var(--read); }
.legal h2 { margin-top: 34px; }
.legal .updated { color: var(--text-faint); font-size: 13.5px; }

@media print {
  .site-header, .site-footer, .doc-aside, .cookie-banner, .ad-slot, .subscribe { display: none; }
  body { background: #fff; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
