/*
 * maxwellhandler.com design tokens: custom properties on :root only.
 * Rules that use them live in base.css (shared) and each page’s own file.
 * Source: homepage v12. Values map to Tailwind's scale
 * (stone neutrals, blue-700 accent, red-700 pencil) but the site is hand-written CSS.
 */
:root {
  /* Color */
  --ink: #1C1917;          /* primary text, black rules, primary buttons (stone-900) */
  --ink-hover: #44403C;    /* primary button hover (stone-700) */
  --ink-soft: #292524;     /* secondary paragraphs: Process, card text (stone-800) */
  --muted: #57534E;        /* labels, meta, captions (stone-600), 7.5:1 on white */
  --rule: #E7E5E4;         /* light dividers between projects, card borders (stone-200) */
  --paper: #FFFFFF;        /* page background */
  --paper-alt: #FAFAF9;    /* footer, secondary hover (stone-50) */
  --accent: #1D4ED8;       /* links, section numbers, active step, current-role dot (blue-700) */
  --pencil: #B91C1C;       /* hand-drawn marks and the "Didn't" label (red-700) */
  --graphite: #44403C;     /* strike-throughs in the intro edit; red stays for new words (stone-700) */
  --highlighter: linear-gradient(100deg, rgba(255, 221, 64, 0) 0.5%, rgba(255, 221, 64, 0.85) 2%, rgba(255, 221, 64, 0.62) 6%, rgba(255, 221, 64, 0.38) 92%, rgba(255, 221, 64, 0.8) 97%, rgba(255, 221, 64, 0) 99.5%);

  /* Type */
  --font-sans: 'Geist', 'Helvetica Neue', Arial, sans-serif;
  --font-mono: 'Geist Mono', ui-monospace, Menlo, monospace;
  --font-hand: 'Caveat', 'Bradley Hand', cursive;  /* pencil notes: "try it!", intro edit inserts, "More to come!", build-log notes */
  --text-12: 12px; --text-13: 13px; --text-14: 14px; --text-15: 15px; --text-16: 16px; --text-19: 19px;
  --text-22: 22px; --text-24: 24px; --text-26: 26px; --text-28: 28px; --text-34: 34px; --text-44: 44px; --text-72: 72px;
  --leading-tight: 1; --leading-heading: 1.1; --leading-lede: 1.45; --leading-body: 1.6;
  --tracking-label: 0.06em; --tracking-1: -0.01em; --tracking-2: -0.02em; --tracking-3: -0.03em;

  /* Space (4/8 scale) */
  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px; --space-5: 24px;
  --space-6: 32px; --space-7: 48px; --space-8: 64px; --space-9: 96px;
  --space-section: 40px;   /* gap between blocks inside a section: under section titles, before CTAs and footers */
  --gutter: clamp(24px, 8vw, 120px);   /* left/right page margin */
  --content-max: 1120px;

  /* Shape and size */
  --radius-s: 4px; --radius-m: 6px;
  --tap: 44px;        /* minimum tap height for every link */
  --button-h: 48px;   /* every button */
  --mark-size: 26px;  /* the underlined-M mark in the top bar */
  --stroke-main: 1.8px; --stroke-secondary: 1.2px;  /* pencil marks */

  /* Motion */
  --fade: 700ms ease;   /* step highlight in/out */
  --step: 2200ms;       /* step interval */
  --edit-draw: 600ms ease-in-out;              /* intro edit: strike line draws */
  --edit-fade: 400ms ease;                     /* intro edit: struck words dim, caret appears */
  --edit-swipe: 700ms ease-out;                /* intro edit: highlighter sweep */
  --edit-reveal: 600ms ease;                   /* intro edit: replay link fades in */
  --edit-write: cubic-bezier(0.3, 0.1, 0.7, 0.9);  /* intro edit: insert writing curve; JS sets each duration */
}
