/* ==========================================================================
   Ludo Resonance — site stylesheet
   Dark "workshop at night" palette: ink background, warm paper text,
   ember accent (from the Ember Colony flagship), violet + cyan from the logo.
   ========================================================================== */

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("../assets/fonts/bricolage-grotesque-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Sans";
  src: url("../assets/fonts/ibm-plex-sans-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Sans";
  src: url("../assets/fonts/ibm-plex-sans-latin-wght-italic.woff2") format("woff2");
  font-weight: 100 700;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("../assets/fonts/jetbrains-mono-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 800;
  font-display: swap;
}

:root {
  --bg: #0c0a10;
  --bg-2: #120f18;
  --surface: #18141f;
  --surface-2: #201a29;
  --line: #2b2436;
  --line-soft: #221c2b;

  --text: #eee8df;
  --text-2: #c9c1cf;
  --muted: #958ca0;

  --ember: #f4a43a;
  --ember-hot: #ff6a3d;
  --ember-dim: rgba(244, 164, 58, 0.14);
  --violet: #a78bfa;
  --violet-dim: rgba(167, 139, 250, 0.14);
  --cyan: #5fd4e8;

  --ok: #6fdc9f;
  --ok-dim: rgba(111, 220, 159, 0.12);
  --warn: #f4c04a;
  --warn-dim: rgba(244, 192, 74, 0.12);
  --plan: #a99fbd;
  --plan-dim: rgba(169, 159, 189, 0.12);

  --font-display: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
  --font-body: "IBM Plex Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --max: 1140px;
  --gutter: clamp(16px, 4vw, 32px);
  --radius: 10px;
  --radius-lg: 16px;

  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  /* JetBrains Mono turns ->, >=, == into glyphs; show code exactly as typed */
  font-variant-ligatures: no-contextual;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--ember); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: #ffc070; }
:focus-visible { outline: 2px solid var(--ember); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 650;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
  color: var(--text);
}
h1 { font-size: clamp(2.4rem, 5.6vw, 4.4rem); font-weight: 700; letter-spacing: -0.035em; }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.3rem; letter-spacing: -0.01em; }
h4 { font-size: 1.05rem; }
p { margin: 0 0 1em; }
strong { color: var(--text); font-weight: 600; }

code, kbd, pre { font-family: var(--font-mono); font-size: 0.88em; font-variant-ligatures: none; font-feature-settings: "liga" 0, "calt" 0; }
:not(pre) > code {
  background: var(--surface-2);
  border: 1px solid var(--line);
  padding: 0.1em 0.38em;
  border-radius: 5px;
  color: #f2d9b8;
  overflow-wrap: anywhere;
}
kbd {
  display: inline-block;
  padding: 0.05em 0.45em;
  border: 1px solid var(--line);
  border-bottom-width: 2px;
  border-radius: 5px;
  background: var(--surface);
  font-size: 0.8em;
}

.skip-link {
  position: absolute; left: -9999px; top: 8px; z-index: 100;
  background: var(--ember); color: #1a1006; padding: 8px 14px; border-radius: 6px;
}
.skip-link:focus { left: 8px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 760px; }

/* --------------------------------------------------------------------------
   Navigation
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(12, 10, 16, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line-soft);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px; gap: 16px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  color: var(--text); text-decoration: none;
  font-family: var(--font-display); font-weight: 650; font-size: 1.08rem; letter-spacing: -0.01em;
}
.brand:hover { color: var(--text); }
.brand img { width: 30px; height: 30px; }
.nav-links { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  display: block; padding: 8px 12px; border-radius: 8px;
  color: var(--text-2); text-decoration: none; font-size: 0.95rem;
}
.nav-links a:hover { color: var(--text); background: var(--surface); }
.nav-links a[aria-current="page"] { color: var(--ember); }
.nav-toggle {
  display: none; background: none; border: 1px solid var(--line); color: var(--text);
  border-radius: 8px; padding: 7px 10px; font: inherit; font-size: 0.9rem; cursor: pointer;
}
@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none; position: absolute; left: 0; right: 0; top: 64px;
    flex-direction: column; padding: 8px var(--gutter) 16px;
    background: var(--bg); border-bottom: 1px solid var(--line);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 8px; }
}

/* --------------------------------------------------------------------------
   Generic sections
   -------------------------------------------------------------------------- */
section { padding: clamp(56px, 9vw, 104px) 0; }
.section-tight { padding: clamp(40px, 6vw, 64px) 0; }
.section-alt { background: var(--bg-2); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }

.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--ember); margin-bottom: 18px;
}
.kicker::before { content: ""; width: 22px; height: 1px; background: currentColor; opacity: 0.7; }
.lede { font-size: clamp(1.08rem, 1.6vw, 1.25rem); color: var(--text-2); max-width: 62ch; }
.muted { color: var(--muted); }
.section-head { max-width: 760px; margin-bottom: 44px; }
.section-head p { color: var(--text-2); }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 20px; border-radius: 999px; text-decoration: none;
  font-weight: 550; font-size: 0.97rem; border: 1px solid transparent;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.btn-primary { background: var(--ember); color: #1d1206; }
.btn-primary:hover { background: #ffb85a; color: #1d1206; transform: translateY(-1px); }
.btn-ghost { border-color: var(--line); color: var(--text); }
.btn-ghost:hover { border-color: var(--muted); color: var(--text); background: var(--surface); }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative; padding: clamp(56px, 9vw, 112px) 0 clamp(48px, 7vw, 88px);
  overflow: hidden; isolation: isolate;
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(900px 520px at 82% 8%, rgba(244, 120, 40, 0.16), transparent 60%),
    radial-gradient(700px 460px at 8% 0%, rgba(167, 139, 250, 0.12), transparent 62%);
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0.4;
  background-image:
    linear-gradient(var(--line-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 20%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 20%, #000 30%, transparent 75%);
}
.hero h1 { max-width: 17ch; }
.hero h1 em { font-style: normal; color: var(--ember); }
.hero .lede { margin-top: 18px; }

.page-hero { padding: clamp(48px, 7vw, 88px) 0 clamp(28px, 4vw, 48px); position: relative; isolation: isolate; }
.page-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(800px 380px at 85% 0%, rgba(244, 120, 40, 0.11), transparent 65%);
}
.page-hero h1 { font-size: clamp(2.2rem, 4.8vw, 3.6rem); max-width: 20ch; }

/* Status strip under the hero */
.status-strip {
  display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 36px;
  font-family: var(--font-mono); font-size: 0.78rem; color: var(--muted);
}
.status-strip span { display: inline-flex; align-items: center; gap: 8px; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px var(--ok-dim); flex: none; }
.dot.warn { background: var(--warn); box-shadow: 0 0 0 4px var(--warn-dim); }
.dot.plan { background: var(--plan); box-shadow: 0 0 0 4px var(--plan-dim); }

/* --------------------------------------------------------------------------
   Screenshot frame
   -------------------------------------------------------------------------- */
.shot {
  margin: 0; border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--line); background: var(--surface);
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.02) inset;
}
.shot-bar {
  display: flex; align-items: center; gap: 7px; padding: 10px 14px;
  border-bottom: 1px solid var(--line); background: var(--bg-2);
  font-family: var(--font-mono); font-size: 0.72rem; color: var(--muted);
}
.shot-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); display: block; }
.shot-bar span { margin-left: 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.shot figcaption, figure.plain figcaption {
  padding: 12px 16px; font-size: 0.86rem; color: var(--muted); border-top: 1px solid var(--line);
}
figure.plain { margin: 0; }
.code.hero-shot, .hero-shot { margin-top: clamp(40px, 6vw, 64px); }

.shot-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }

/* --------------------------------------------------------------------------
   Cards & grids
   -------------------------------------------------------------------------- */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }

.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 26px; position: relative;
}
.card h3 { margin-bottom: 0.4em; }
.card p { color: var(--text-2); font-size: 0.97rem; margin-bottom: 0; }
.card p + p { margin-top: 0.8em; }
.card .card-icon { width: 38px; height: 38px; margin-bottom: 16px; opacity: 0.95; }
a.card { text-decoration: none; color: inherit; display: block; transition: border-color 0.15s ease, transform 0.15s ease; }
a.card:hover { border-color: #4a3f58; transform: translateY(-2px); color: inherit; }
.card .more { display: inline-block; margin-top: 14px; color: var(--ember); font-size: 0.92rem; }

.split { display: grid; gap: clamp(28px, 5vw, 64px); grid-template-columns: 1fr; align-items: center; }
@media (min-width: 920px) { .split { grid-template-columns: 1fr 1.1fr; } .split.flip > :first-child { order: 2; } }

/* --------------------------------------------------------------------------
   Status pills & capability matrix
   -------------------------------------------------------------------------- */
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 3px 9px; border-radius: 999px; white-space: nowrap;
  border: 1px solid transparent;
}
.pill.ok { color: var(--ok); background: var(--ok-dim); border-color: rgba(111, 220, 159, 0.25); }
.pill.warn { color: var(--warn); background: var(--warn-dim); border-color: rgba(244, 192, 74, 0.25); }
.pill.plan { color: var(--plan); background: var(--plan-dim); border-color: rgba(169, 159, 189, 0.25); }
.pill.ember { color: var(--ember); background: var(--ember-dim); border-color: rgba(244, 164, 58, 0.3); }

.legend { display: flex; flex-wrap: wrap; gap: 10px 18px; margin: 0 0 18px; font-size: 0.88rem; color: var(--muted); }
.legend span { display: inline-flex; gap: 8px; align-items: center; }

.matrix { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.matrix th, .matrix td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
.matrix th { font-family: var(--font-mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); font-weight: 500; }
.matrix td:first-child { font-weight: 550; color: var(--text); width: 26%; }
.matrix td:nth-child(2) { width: 140px; }
.matrix td { color: var(--text-2); }
.table-wrap { border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); overflow-x: auto; }
.matrix tr:last-child td { border-bottom: 0; }
@media (max-width: 640px) {
  .matrix, .matrix tbody, .matrix tr, .matrix td { display: block; width: 100% !important; }
  .matrix thead { display: none; }
  .matrix tr { padding: 14px 16px; border-bottom: 1px solid var(--line-soft); }
  .matrix td { padding: 2px 0; border: 0; }
  .matrix td:nth-child(2) { margin: 6px 0; }
}

/* --------------------------------------------------------------------------
   Code blocks
   -------------------------------------------------------------------------- */
.code {
  margin: 0; border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: #0f0c14; overflow: hidden;
}
.code-head {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 10px 16px; border-bottom: 1px solid var(--line);
  font-family: var(--font-mono); font-size: 0.72rem; color: var(--muted); background: var(--bg-2);
}
.code-head span:last-child { color: var(--violet); }
.code pre { margin: 0; padding: 18px 20px; overflow-x: auto; line-height: 1.6; font-size: 0.83rem; color: #ddd5e6; tab-size: 4; }
.prose .code { margin: 1.6em 0; }
.tok-c { color: #6f6680; font-style: italic; }
.tok-s { color: #b8e08e; }
.tok-n { color: #f7b267; }
.tok-k { color: #c4a8ff; }
.tok-t { color: #7fd6e8; }
.tok-b { color: #f0a0c0; }

/* --------------------------------------------------------------------------
   Pipeline diagram (engine page)
   -------------------------------------------------------------------------- */
.pipeline { display: grid; gap: 12px; grid-template-columns: 1fr; }
.pipe-row { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
.pipe-node {
  border: 1px solid var(--line); background: var(--surface); border-radius: 12px; padding: 16px 18px;
}
.pipe-node b { display: block; font-family: var(--font-mono); font-size: 0.86rem; color: var(--text); font-weight: 600; margin-bottom: 4px; }
.pipe-node span { font-size: 0.88rem; color: var(--muted); display: block; line-height: 1.5; }
.pipe-node.core { border-color: rgba(244, 164, 58, 0.45); background: linear-gradient(180deg, rgba(244, 164, 58, 0.08), transparent), var(--surface); }
.pipe-arrow { text-align: center; color: var(--muted); font-family: var(--font-mono); font-size: 0.8rem; letter-spacing: 0.1em; }

/* --------------------------------------------------------------------------
   Timeline (roadmap)
   -------------------------------------------------------------------------- */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 1px; background: var(--line); }
.timeline > li { position: relative; padding: 0 0 36px 40px; }
.timeline > li::before {
  content: ""; position: absolute; left: 0; top: 6px; width: 15px; height: 15px; border-radius: 50%;
  background: var(--bg); border: 2px solid var(--muted);
}
.timeline > li.done::before { border-color: var(--ok); background: var(--ok); box-shadow: 0 0 0 4px var(--ok-dim); }
.timeline > li.now::before { border-color: var(--ember); background: var(--ember); box-shadow: 0 0 0 5px var(--ember-dim); }
.timeline > li.reset::before { border-color: var(--warn); }
.timeline .when { font-family: var(--font-mono); font-size: 0.76rem; color: var(--muted); letter-spacing: 0.06em; text-transform: uppercase; }
.timeline h3 { margin: 4px 0 8px; }
.timeline p { color: var(--text-2); max-width: 70ch; }
.timeline ul { color: var(--text-2); margin: 0; padding-left: 1.1em; }
.timeline ul li { margin-bottom: 4px; }

.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li { padding: 10px 0 10px 30px; border-bottom: 1px solid var(--line-soft); position: relative; color: var(--text-2); }
.checklist li:last-child { border-bottom: 0; }
.checklist li::before { content: "○"; position: absolute; left: 4px; top: 9px; color: var(--muted); font-family: var(--font-mono); }
.checklist li.done::before { content: "✓"; color: var(--ok); }
.checklist li.now::before { content: "◐"; color: var(--ember); }
.checklist li strong { color: var(--text); }

/* --------------------------------------------------------------------------
   Stats
   -------------------------------------------------------------------------- */
.stats { display: grid; gap: 1px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr)); background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.stats-2 { grid-template-columns: repeat(2, 1fr); }
.stat { background: var(--surface); padding: 22px 22px 20px; }
.stat b { display: block; font-family: var(--font-display); font-size: 2rem; font-weight: 650; letter-spacing: -0.03em; color: var(--text); line-height: 1.1; }
.stat span { font-size: 0.86rem; color: var(--muted); }

/* --------------------------------------------------------------------------
   Devlog
   -------------------------------------------------------------------------- */
.post-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.post-list li { border-bottom: 1px solid var(--line); }
.post-list a {
  display: grid; gap: 6px 32px; padding: 26px 4px; text-decoration: none; color: inherit;
  grid-template-columns: 1fr;
}
@media (min-width: 760px) { .post-list a { grid-template-columns: 170px 1fr; } }
.post-list a:hover h3 { color: var(--ember); }
.post-list .meta { font-family: var(--font-mono); font-size: 0.76rem; color: var(--muted); padding-top: 5px; }
.post-list h3 { margin: 0 0 6px; transition: color 0.15s ease; font-size: 1.35rem; }
.post-list p { margin: 0; color: var(--text-2); font-size: 0.97rem; }

.post-header { padding: clamp(48px, 7vw, 88px) 0 28px; }
.post-header h1 { font-size: clamp(2rem, 4.4vw, 3.1rem); max-width: 22ch; }
.post-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; font-family: var(--font-mono); font-size: 0.78rem; color: var(--muted); margin-top: 18px; }
.back-link { font-size: 0.9rem; text-decoration: none; color: var(--muted); }
.back-link:hover { color: var(--ember); }

.prose { font-size: 1.06rem; color: var(--text-2); padding-bottom: 72px; }
.prose > * { max-width: 70ch; }
.prose > .code, .prose > figure, .prose > .table-wrap, .prose > .callout { max-width: 100%; }
.prose h2 { font-size: 1.65rem; margin-top: 2.2em; }
.prose h3 { font-size: 1.22rem; margin-top: 1.8em; }
.prose p, .prose li { color: var(--text-2); }
.prose ul, .prose ol { padding-left: 1.2em; margin: 0 0 1.2em; }
.prose li { margin-bottom: 0.45em; }
.prose blockquote {
  margin: 1.6em 0; padding: 4px 0 4px 20px; border-left: 2px solid var(--ember);
  color: var(--text); font-size: 1.1rem;
}
.prose figure { margin: 2em 0; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2.4em 0; }

.callout {
  border: 1px solid var(--line); border-left: 3px solid var(--violet); background: var(--surface);
  border-radius: 10px; padding: 16px 20px; margin: 1.6em 0; font-size: 0.96rem;
}
.callout.ember { border-left-color: var(--ember); }
.callout p:last-child { margin-bottom: 0; }
.callout b:first-child { color: var(--text); }

.post-nav { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); padding: 32px 0 80px; border-top: 1px solid var(--line); }
.post-nav a { text-decoration: none; border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; color: var(--text); }
.post-nav a:hover { border-color: #4a3f58; }
.post-nav small { display: block; color: var(--muted); font-family: var(--font-mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 4px; }

/* --------------------------------------------------------------------------
   CTA + footer
   -------------------------------------------------------------------------- */
.cta {
  border: 1px solid var(--line); border-radius: 22px; padding: clamp(32px, 5vw, 56px);
  background:
    radial-gradient(600px 300px at 100% 0%, rgba(244, 120, 40, 0.15), transparent 70%),
    var(--surface);
}
.cta h2 { max-width: 20ch; }
.cta p { color: var(--text-2); max-width: 60ch; }

.site-footer { border-top: 1px solid var(--line-soft); padding: 48px 0 40px; font-size: 0.92rem; color: var(--muted); }
.footer-grid { display: grid; gap: 32px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); }
.footer-grid h4 { font-family: var(--font-mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); font-weight: 500; margin-bottom: 12px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 6px; }
.footer-grid a { color: var(--text-2); text-decoration: none; }
.footer-grid a:hover { color: var(--ember); }
.footer-base { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line-soft); display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; font-size: 0.84rem; }

/* --------------------------------------------------------------------------
   Legal pages (privacy) — light restyle of existing content
   -------------------------------------------------------------------------- */
.legal { padding-bottom: 80px; }
.legal h2 { font-size: 1.5rem; margin-top: 2em; }
.legal h3 { font-size: 1.15rem; margin-top: 1.5em; }
.legal p, .legal li { color: var(--text-2); }
.legal section, .legal .section { padding: 0; }

/* --------------------------------------------------------------------------
   Reveal-on-scroll (progressive; content visible without JS)
   -------------------------------------------------------------------------- */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.6s ease, transform 0.6s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } }

.mt-0 { margin-top: 0; } .mt-1 { margin-top: 12px; } .mt-2 { margin-top: 24px; } .mt-3 { margin-top: 40px; }
.center { text-align: center; }

/* Aliases for variables used by the (verbatim) privacy-policy markup */
.legal {
  --color-text-secondary: var(--text-2);
  --color-text-muted: var(--muted);
  --color-accent: var(--violet);
}
.legal h2 { margin-top: 0.4em; }
