/* Synced from alvinsvitzer-brand/brand/tokens.css. Edit brand/tokens.json there, never this file. */

/* Alvin Svitzer brand tokens: generated from brand/tokens.json by scripts/build-tokens.py.
   Do not edit by hand. Load this file BEFORE each site's own styles.
   Dark mode: the two dark blocks are generated identical (explicit toggle, then system preference). */

:root {
  /* ---- color (light values; constants are the same in both themes) ---- */
  --bg: #F4F1E8;
  --bg-deep: #E9E1D2;
  --surface: #FFFAF0;
  --text: #2A2724;
  --text-muted: #635D54;
  --accent: #B07E40;
  --accent-strong: #825A27;
  --accent-cool: #83BDB3;
  --button: #0E2A28;
  --button-hover: #173C38;
  --on-button: #FFFAF0;
  --border: rgba(176, 126, 64, 0.24);
  --focus: #825A27;
  --shadow: rgba(45, 35, 24, 0.12);
  --field-border: #8D7A58;
  --mm-parchment: #F4F1E8;
  --mm-parchment-deep: #E9E1D2;
  --mm-vellum: #FFFAF0;
  --mm-ink: #2A2724;
  --mm-muted: #6C665C;
  --mm-laurel: #0E2A28;
  --mm-laurel-light: #173C38;
  --mm-gold: #B07E40;
  --mm-gold-deep: #825A27;
  --mm-gold-bright: #CF954C;
  --mm-verdigris: #83BDB3;
  --mm-verdigris-deep: #2E5750;
  --mm-verdigris-mid: #3D6F66;
  --mm-night: #171410;
  --mm-night-deep: #0F0D0A;
  --mm-night-raise: #1E1B16;
  --mm-ink-inv: #F1E8D9;
  --mm-muted-inv: #C4B5A1;
  --aokg-ink: #130A0E;
  --aokg-oxblood: #251A1C;
  --aokg-ember: #813C22;
  --aokg-ember-light: #9C4E2B;
  --aokg-bronze: #8D6D48;
  --aokg-gold: #C09562;
  --aokg-foil: #DCB07E;
  --aokg-bone: #B1AEA7;
  --dos-cream: #FDF3D8;
  --dos-butter: #FDE8B6;
  --dos-teal: #3F6970;
  --dos-copper: #B8743F;
  --dos-copper-deep: #8A5530;
  --dos-ink: #2A3B3E;
  --dos-bg: #FDF3D8;
  --dos-heading: #3F6970;
  --dos-text: #2A3B3E;
  --dos-muted: #5A6668;
  --dos-label: #8A5530;
  --dos-frame: #3F6970;
  --tech-blueprint: #13203A;
  --tech-log: #0D1729;
  --tech-line: #263552;
  --tech-text: #E7ECF5;
  --tech-muted: #A3B1C9;
  --tech-dim: #8492AC;
  --tech-accent: #8FB3E8;
  --fsa-navy: #1B2A4A;
  --fsa-signal: #17E3D0;
  --fsa-mist: #F7F9FB;
  --fsa-night: #0F1720;
  --fsa-bg: #F7F9FB;
  --fsa-text: #1B2A4A;

  /* ---- type ---- */
  --font-inscription: "Cinzel", "Trajan Pro", Georgia, serif;
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-reading: "EB Garamond", Georgia, serif;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --font-dos-signature: "Roxborough CF", "Cormorant Garamond", Georgia, serif;
  --font-fsa-display: "Space Grotesk", "Inter", sans-serif;
  --font-fsa-body: "IBM Plex Sans", "Inter", sans-serif;
  --mm-display: var(--font-display);
  --mm-body: var(--font-sans);

  /* ---- spacing and radius ---- */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-6: 24px;
  --space-8: 32px;
  --space-16: 64px;
  --space-24: 96px;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 10px;
  --radius-arch: 999px;
  --radius-pill: 999px;
}

/* Dark, block 1 of 2: explicit toggle. */
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #171410;
  --bg-deep: #0F0D0A;
  --surface: #1E1B16;
  --text: #F1E8D9;
  --text-muted: #C4B5A1;
  --accent: #D8A568;
  --accent-strong: #F6C184;
  --accent-cool: #7AAEA6;
  --button: #D8A568;
  --button-hover: #F6C184;
  --on-button: #171410;
  --border: rgba(210, 185, 142, 0.16);
  --focus: #F6C184;
  --shadow: rgba(0, 0, 0, 0.42);
  --field-border: #7E7260;
  --mm-laurel: #0C2C29;
  --mm-laurel-light: #174A43;
  --mm-gold: #D8A568;
  --mm-gold-deep: #BF8D51;
  --mm-gold-bright: #F6C184;
  --mm-verdigris: #7AAEA6;
  --dos-bg: #13262A;
  --dos-heading: #9CC9CF;
  --dos-text: #F3E9D2;
  --dos-muted: #B9C3C2;
  --dos-label: #E2A877;
  --dos-frame: #48909A;
  --fsa-bg: #0F1720;
  --fsa-text: #F7F9FB;
}

/* Dark, block 2 of 2: system preference, unless toggled to light. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #171410;
    --bg-deep: #0F0D0A;
    --surface: #1E1B16;
    --text: #F1E8D9;
    --text-muted: #C4B5A1;
    --accent: #D8A568;
    --accent-strong: #F6C184;
    --accent-cool: #7AAEA6;
    --button: #D8A568;
    --button-hover: #F6C184;
    --on-button: #171410;
    --border: rgba(210, 185, 142, 0.16);
    --focus: #F6C184;
    --shadow: rgba(0, 0, 0, 0.42);
    --field-border: #7E7260;
    --mm-laurel: #0C2C29;
    --mm-laurel-light: #174A43;
    --mm-gold: #D8A568;
    --mm-gold-deep: #BF8D51;
    --mm-gold-bright: #F6C184;
    --mm-verdigris: #7AAEA6;
    --dos-bg: #13262A;
    --dos-heading: #9CC9CF;
    --dos-text: #F3E9D2;
    --dos-muted: #B9C3C2;
    --dos-label: #E2A877;
    --dos-frame: #48909A;
    --fsa-bg: #0F1720;
    --fsa-text: #F7F9FB;
  }
}
