/* Spiral Out design tokens. The single source for color, type, spacing, borders and widths.
   Rules and contrast ratios: DESIGN.md at the repo root. Dark first; light under prefers-color-scheme.
   Loaded before style.css and components.css. Never hardcode a value that has a token here. */
:root {
  /* color, dark */
  --bg: #0a0a0c;          /* page */
  --fg: #e2ddd0;          /* THE white (Emi 2026-10-25: one muted ivory for text, borders, fills, hover, spiral) */
  --muted: #a39f93;       /* secondary marks only (prefixes, separators): the ivory dimmed, same hue */
  --line: var(--fg);      /* default 2px borders */
  --line-strong: var(--fg); /* focused, active or selected borders */
  --head: var(--line);    /* box header fill (title bars) */
  --head-ink: #0a0a0c;    /* text on --head */
  --glyph: currentColor;  /* arrow glyphs (↗ → ▶) */
  --soft: #2e2c28;        /* 1px separators, grid, hatch: the ivory very dim, same hue */
  --accent: #c4b2cf;      /* mauve: selected/active and the primary action only */
  --accent-ink: #0a0a0c;  /* text and icons on --accent */
  --err: #ff9a8a;         /* error text */
  --mark: var(--fg);      /* the illustrative spiral: ink, never the accent (Emi 2026-10-25) */
  --veil: rgba(10, 10, 12, 0.9); /* overlay on photos, behind flat boxes */
  color-scheme: dark;

  /* type */
  --font: ui-monospace, 'SF Mono', Menlo, Consolas, 'Liberation Mono', monospace;
  --fs-xs: 12px;      /* meta, quiet links, footnotes */
  --fs-sm: 13px;      /* UI labels, buttons, box headers, nav */
  --fs-md: 14px;      /* secondary body, large buttons */
  --fs-base: 15px;    /* body */
  --fs-lg: 17px;      /* row titles */
  --fs-xl: 22px;      /* wordmark */
  --fs-h1: 34px;      /* page title, phone */
  --fs-display: 56px; /* page title, 760 px and up */
  --lh-tight: 1.05;
  --lh-ui: 1.2;
  --lh-base: 1.5;
  --lh-read: 1.7;
  --ls-tight: -0.02em;  /* big uppercase titles */
  --ls-ui: 0.04em;      /* buttons, nav, links in caps */
  --ls-label: 0.06em;   /* box headers, labels */
  --ls-wide: 0.08em;    /* subtitles, artist chip */
  --ls-wordmark: 0.12em;

  /* spacing (4 px base) */
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 24px;
  --sp-6: 32px;
  --sp-7: 40px;
  --sp-8: 48px;
  --sp-9: 64px;
  --gutter: 16px; /* page side margin: 16 px under 600, 24 px from 600, 32 px from 1024 */

  /* borders and targets */
  --border: 2px;  /* strong: boxes, controls, tables */
  --rule: 1px;    /* separators inside a box */
  --tap: 44px;    /* minimum height of the primary toggle and touch targets */
  --row: 48px;    /* list rows that are whole links */
  --focus-width: 3px;

  /* widths */
  --w-home: 560px;   /* the label's home card */
  --w-form: 800px;   /* forms, settings, reading */
  --w-release: 880px;/* release page */
  --w-wide: 1200px;  /* agendas and tables */

  /* motion */
  --spin: 180s;      /* the spiral's rotation; off under prefers-reduced-motion */
}
@media (prefers-color-scheme: light) {
  :root {
    --bg: #ffffff;
    --fg: #000000;
    --muted: #55555c;
    --line: #3a372f;        /* dark warm ink for light mode */
    --line-strong: #000000;
    --head: var(--line);
    --head-ink: #f5f2ea;
    --soft: #c9c9cf;
    --accent: #5f4a6c;
    --accent-ink: #ffffff;
    --err: #b3261e;
    --mark: var(--fg);
    --veil: rgba(255, 255, 255, 0.93);
    color-scheme: light;
  }
}

/* Artist tint: an artist page takes its borders, header fills and arrow glyphs from its album's palette.
   The hook is data-page (the page slug, set in templates/base.html); label pages stay neutral gray.
   ÆM: a dimmed version of the Heliopause phosphor (#a6d65f). Future: a pasteup field per release. */
@media (prefers-color-scheme: light) {
  }

@media (min-width: 600px) { :root { --gutter: 24px; } }
@media (min-width: 1024px) { :root { --gutter: 32px; } }
