/*
  Betula.Theme token defaults (v0.2.1).
  Clients override in tokens.css / brand.css loaded after site.css.
  --text, --bg, --link, and --focus are required contract names; set all four on :root.
*/

:root {
  color-scheme: light;

  /* Required (PLATFORM contract) */
  --text: #111111;
  --bg: #ffffff;
  --link: #0b57d0;
  --focus: #0b57d0;

  /* Brand palette (optional; alias into required tokens in client tokens.css) */
  --paper: var(--bg);
  --ink: var(--text);
  --accent: var(--link);
  --accent-text: var(--bg);
  --muted: #5c5348;
  --surface: #ffffff;
  --line: #d6cbb8;
  --link-underline: var(--link);
  --link-underline-active: var(--link);

  /* Type */
  --font-heading: Georgia, "Times New Roman", serif;
  --font-body: ui-sans-serif, system-ui, sans-serif;
  --type-body: 1.0625rem;
  --line-height: 1.6;
  --heading-line: 1.15;
  --heading-tracking: -0.02em;
  --heading-weight: 600;

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;
  --content-width: 42rem;
  --gutter: 1rem;

  /* Radius, border, shadow, focus */
  --radius: 0.25rem;
  --border-width: 1px;
  --shadow: none;
  --focus-width: 3px;
  --focus-offset: 2px;

  /* Shared media components */
  --media-stage-bg: #080c0b;
  --media-control-on-accent: var(--accent-text);
  --button-radius: 999px;

  /*
    Legacy Hugo / website-template aliases (deprecated; remove when client migrates).
    New sites should use the canonical names above.
  */
  --color-bg: var(--bg);
  --color-surface: var(--surface);
  --color-text: var(--text);
  --color-muted: var(--muted);
  --color-accent: var(--accent);
  --color-accent-text: var(--accent-text);
  --color-line: var(--line);
  --home-media-accent-on-text: var(--media-control-on-accent);
}