/* ============================================================
   ALWARIZME — design tokens
   One source of truth. Consumed by the website, by HyperFrames
   compositions, by decks, and by any future product surface.
   Change a value here and everything downstream follows.

   Direction: Ink & Ochre. Warm paper, warm near-black, one accent.
   Display serif never touches body copy.
   ============================================================ */

:root {
  /* ---- surface ---- */
  --aw-canvas: #f4f1e9;
  --aw-surface: #fbf9f4;
  --aw-surface-sunk: #efebe1;

  /* ---- ink ---- */
  --aw-ink: #16130f;
  --aw-ink-muted: #6a6357;
  --aw-ink-faint: #9a9284;

  /* ---- line ---- */
  --aw-hairline: #ded7c7;
  --aw-hairline-strong: #c9c0ac;

  /* ---- accent (rationed: links, marks, one CTA) ---- */
  --aw-accent: #8c5a21;
  --aw-accent-hover: #74491a;
  --aw-accent-wash: #f0e6d6;

  /* ---- signal (logo only — never for UI chrome) ---- */
  --aw-signal: #d9481c;

  /* ---- type ---- */
  --aw-font-display: "Instrument Serif", "Newsreader", Georgia, serif;
  --aw-font-text: "Geist", "Inter", system-ui, -apple-system, sans-serif;
  --aw-font-mono: "Geist Mono", "JetBrains Mono", ui-monospace, monospace;

  --aw-display-xl: 76px;
  --aw-display-l: 56px;
  --aw-display-m: 40px;
  --aw-heading: 28px;
  --aw-subhead: 20px;
  --aw-body: 17px;
  --aw-small: 14px;
  --aw-label: 12px;

  --aw-lh-display: 0.95;
  --aw-lh-heading: 1.2;
  --aw-lh-body: 1.6;

  --aw-track-display: -0.03em;
  --aw-track-heading: -0.01em;
  --aw-track-label: 0.08em;

  /* ---- space (4px base) ---- */
  --aw-1: 4px;
  --aw-2: 8px;
  --aw-3: 12px;
  --aw-4: 16px;
  --aw-5: 24px;
  --aw-6: 32px;
  --aw-7: 48px;
  --aw-8: 64px;
  --aw-9: 96px;
  --aw-10: 128px;

  --aw-section-y: 96px;
  --aw-content-width: 1120px;
  --aw-measure: 68ch;

  /* ---- shape ---- */
  --aw-radius-block: 0px;
  --aw-radius-input: 2px;
  --aw-radius-pill: 999px;

  /* ---- motion ---- */
  --aw-ease: cubic-bezier(0.2, 0, 0, 1);
  --aw-dur-fast: 120ms;
  --aw-dur-base: 160ms;
  --aw-dur-slow: 320ms;
}

@media (min-width: 900px) {
  :root {
    --aw-section-y: 128px;
    --aw-display-xl: 96px;
  }
}

@media (prefers-reduced-motion: reduce) {
  :root {
    --aw-dur-fast: 0ms;
    --aw-dur-base: 0ms;
    --aw-dur-slow: 0ms;
  }
}
