/* ExtantTexts design tokens. The scales (type, spacing, radii, control sizes) are ExtantBible's; the palette is this site's own.
   Light is the default; dark follows the system setting. scripts/check-contrast.mjs checks every text and mark pair in both themes.
   The --eb-* colors are ExtantBible's own warm brown and gold, used only on its card.
   The --mark-* and --eb-mark-* tones are the shared mark's (~/Projects/extant-brand), set through the .mk-* classes in site.css. */
:root {
  color-scheme: light;
  --background: #e9eded;
  --line: #cdd5d6;
  --text: #13212b;
  --text-lead: #33434e;
  --muted: #475761;
  --accent: #0b5a5e;
  --accent-hover: #07464a;
  /* The mark's three tones, from ~/Projects/extant-brand/tokens/logo-colors.css. --mark-mid equals --accent. */
  --mark-light: #4f9c99;
  --mark-mid: #0b5a5e;
  --mark-dark: #05383b;

  --eb-background: #f6f2ea;
  --eb-line: #8a7f6d;
  --eb-text: #1b1814;
  --eb-text-2: #3d3830;
  --eb-accent: #8f5d12;
  --eb-accent-hover: #6f470b;
  --eb-tint: #f6ecd9;
  --eb-mark-light: #b98a45;
  --eb-mark-mid: #8f5d12;
  --eb-mark-dark: #5c3a08;
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --background: #0b1119;
    --line: #243039;
    --text: #e4edf0;
    --text-lead: #b7c5cc;
    --muted: #9dacb4;
    --accent: #62d0c9;
    --accent-hover: #9ae5df;
    --mark-light: #9ae5df;
    --mark-mid: #62d0c9;
    --mark-dark: #2f8f89;

    --eb-background: #241f19;
    --eb-line: #8f7f65;
    --eb-text: #ece7dc;
    --eb-text-2: #c9c3b7;
    --eb-accent: #e9b25a;
    --eb-accent-hover: #f5d08f;
    --eb-tint: #2f2719;
    --eb-mark-light: #f5d08f;
    --eb-mark-mid: #e9b25a;
    --eb-mark-dark: #a8782c;
  }
}

:root {
  --font-ui: 'Schibsted Grotesk', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;

  --fs-hero: clamp(30px, 3.2vw, 44px);
  --fs-wordmark: 22px;
  --fs-card: 18px;
  --fs-lead: 17px;
  --fs-body: 16px;
  --fs-small: 15px;
  --fs-ui: 14px;
  --fs-label: 13px;
  --lh-tight: 1.04;
  --lh-ui: 1.45;
  --lh-body: 1.6;
  --track-tight: -0.02em;
  --weight-regular: 400;
  --weight-medium: 500;

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --gutter: 32px;
  --page-width: 840px;
  --measure: 64ch;

  --radius-md: 12px;
  --radius-pill: 999px;
  --dur-fast: 150ms;
}

@media (max-width: 640px) {
  :root {
    --gutter: 16px;
    --fs-wordmark: 18px;
  }
}
