/* ziaz.eu case-studies: maps each article's own variables onto the site tokens
   in base.css, so the pages share the home page's palette and type without
   rewriting their article styles. Loaded after the page's inline <style>; the
   selectors repeat the pages' own theme selectors so these win on specificity. */
:root, :root[data-theme="light"], :root[data-theme="dark"] {
  --paper: var(--bg);
  --surface: var(--bg-raised);
  --surface-2: var(--bg-sunk);
  --ink-soft: var(--ink-2);
  --teal: var(--accent);
  --teal-bg: color-mix(in srgb, var(--accent) 12%, transparent);
  --copper: var(--brand);
  --copper-bg: var(--brand-soft);
  --cover-bg: #111315;
  --cover-ink: #F5F5F7;
  --cover-soft: #A9B0B7;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: var(--bg); --surface: var(--bg-raised); --surface-2: var(--bg-sunk);
    --ink-soft: var(--ink-2); --teal: var(--accent); --copper: var(--brand); --copper-bg: var(--brand-soft);
    --cover-bg: #0B0D0F;
  }
}
:root[data-theme="dark"] { --cover-bg: #0B0D0F; }

body { -webkit-font-smoothing: antialiased; }
h1, h2, h3 { letter-spacing: -0.025em; font-weight: 600; }
.cover h1 { letter-spacing: -0.035em; }
.brand-mark { clip-path: none !important; object-fit: contain !important; }
/* The schematic's diagram panel scrolls sideways on a phone; without this its
   flex parent grew to the SVG's min-width and the whole page scrolled instead. */
.sheet, .sheet > * { min-width: 0; }
.wrap-outer > .sheet { width: 100%; }
