/* =============================================================================
   Quiet theme (2026-11-23) - live on /blog/ first; other pages follow once checked under it
   -----------------------------------------------------------------------------
   Loaded AFTER /styles/ht.css. Only tokens and a few type rules change; every component keeps its markup.
   Direction: the same brand (navy, cream warmth, Patreon rust), drawn like an editorial / product site:
     - hairline 1px outlines instead of the thick die-cut outline
     - no hard depth edge under plates and buttons, no gloss band, no rim light
     - soft, low ambient shadow; smaller radii
     - headings in Inter (tight, heavy) instead of Lilita One; the rounded face stays only in the logo art
     - neutral paper / ink colours; the cream survives as a warm tint, not the whole plate
   ============================================================================= */

:root {
  --font-display: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --bw: 1px;
  --bw-sm: 1px;
  --depth: 0px;
  --depth-sm: 0px;
  --depth-xs: 0px;
  --r-xs: 4px; --r-sm: 6px; --r-md: 8px; --r-lg: 12px; --r-xl: 16px;
  --lift: -1px;
  --plate-fill: var(--plate);
  --btn-gloss: linear-gradient(transparent, transparent);
  --plate-shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 10px 28px -14px var(--ambient);
  --plate-shadow-lift: 0 2px 4px rgba(16, 24, 40, .07), 0 18px 36px -14px var(--ambient);
  --plate-shadow-sm: 0 1px 2px rgba(16, 24, 40, .06);
  /* desaturated slate: the blues move toward graphite (screens, stickers, the dark eyebrow chip) */
  --slate: #2c3238; --slate-deep: #0e1114;
  --screen-hi: #2b3036; --screen-lo: #1c2025;
}

/* LIGHT: paper and ink, the cream kept as a faint warmth */
:root, :root[data-theme="light"] {
  --bg: #eef0f2; --bg-2: #f6f7f8;
  --plate-hi: #ffffff; --plate-lo: #ffffff; --plate: #ffffff; --inset: #f4f2ee;
  --text: #1f2933; --text-muted: #5a6470; --heading: #121a22;
  --outline: #d9dde2; --depth-color: transparent; --ambient: rgba(16, 24, 40, .14);
  --sheen: transparent; --sheen-mid: transparent; --rim-light: transparent;
  --line: rgba(18, 26, 34, .1);
  --primary-hi: #3a4550; --primary-lo: #3a4550; --primary-ink: #ffffff; --primary-outline: #3a4550; --primary-depth: transparent;
  --secondary-hi: #ffffff; --secondary-lo: #ffffff; --secondary-ink: #1f2933;
  --link: #3f5568; --focus: #5d7287;
  --invert-hi: #30363d; --invert-lo: #262b31; --invert-outline: #1b1f23; --invert-depth: transparent;
}

/* DARK: deep neutral, not navy-on-navy */
:root[data-theme="dark"] {
  --bg: #0e1319; --bg-2: #131a22;
  --plate-hi: #161e27; --plate-lo: #161e27; --plate: #161e27; --inset: #111820;
  --text: #e4e7eb; --text-muted: #9aa4b0; --heading: #f2f4f6;
  --outline: #27313c; --depth-color: transparent; --ambient: rgba(0, 0, 0, .55);
  --sheen: transparent; --sheen-mid: transparent; --rim-light: transparent;
  --line: rgba(255, 255, 255, .08);
  --primary-hi: #e7e2d6; --primary-lo: #e7e2d6; --primary-ink: #121a22; --primary-outline: #e7e2d6; --primary-depth: transparent;
  --secondary-hi: #1c2228; --secondary-lo: #1c2228; --secondary-ink: #e4e7eb;
  --link: #b3bec9; --focus: #9aa8b6;
  --bg: #0f1215; --bg-2: #14181c;
  --plate-hi: #171b20; --plate-lo: #171b20; --plate: #171b20; --inset: #121519; --outline: #2a3037;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0e1319; --bg-2: #131a22;
    --plate-hi: #161e27; --plate-lo: #161e27; --plate: #161e27; --inset: #111820;
    --text: #e4e7eb; --text-muted: #9aa4b0; --heading: #f2f4f6;
    --outline: #27313c; --depth-color: transparent; --ambient: rgba(0, 0, 0, .55);
    --sheen: transparent; --sheen-mid: transparent; --rim-light: transparent;
    --line: rgba(255, 255, 255, .08);
    --primary-hi: #e7e2d6; --primary-lo: #e7e2d6; --primary-ink: #121a22; --primary-outline: #e7e2d6; --primary-depth: transparent;
    --secondary-hi: #1c2228; --secondary-lo: #1c2228; --secondary-ink: #e4e7eb;
    --link: #b3bec9; --focus: #9aa8b6;
    --bg: #0f1215; --bg-2: #14181c;
    --plate-hi: #171b20; --plate-lo: #171b20; --plate: #171b20; --inset: #121519; --outline: #2a3037;
  }
}

/* The highlighter: no gold block behind the words - bold, with a thin gold underline */
mark, .hl {
  background: none; color: var(--heading); font-weight: 700; padding: 0; border-radius: 0;
  text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 2px; text-underline-offset: .22em;
}

/* Type: Inter headings, tight and heavy; calmer body rhythm */
h1, h2, h3, h4, .h1, .h2, .h3, .h4, .display { font-weight: 750; letter-spacing: -.022em; }
h1, .h1 { font-size: clamp(2rem, 1.45rem + 2.3vw, 3.1rem); line-height: 1.08; }
.eyebrow { letter-spacing: .12em; }
.lead { color: var(--text-muted); }

/* Plates and buttons: no hard edge left to make room for */
.panel, .card { margin-bottom: 0; }
.btn { box-shadow: none; text-shadow: none; }
.btn:hover { transform: none; filter: brightness(1.06); }
.tag { box-shadow: none; }

/* The journal article: an editorial column */
.j-article { box-shadow: none; }
.j-prose { line-height: 1.75; max-width: 68ch; }
.j-prose > p:first-of-type::first-letter { font-family: var(--font-body); font-weight: 800; color: var(--heading); }
.j-figure img { border-radius: 10px; }
