/* Design tokens: crafted visuals, tight serif display, clean sans text.
   Inspired by america.gov: white space, deep ink, one civic blue, layered
   soft shadows, squircle tiles that hold living visuals. */
:root {
  /* Color */
  --paper:      #FFFFFF;
  --paper-2:    #F4F4F2;   /* soft panels */
  --paper-3:    #ECECE9;   /* deeper panel */
  --ink:        #0B1220;   /* near-black with a blue cast */
  --ink-soft:   #3A4150;
  --ink-mute:   #6B7280;   /* ≥4.5:1 on white */
  --ink-meta:   #4A5160;
  --line:       #E4E5E8;
  --mark:       #1B2A6B;   /* one accent: deep ink blue for CTA, links, toggle, focus */
  --mark-soft:  rgba(27, 42, 107, 0.12);
  --accent-ink: #121D4D;
  --highlight:  #FFD43B;   /* Jonathan's highlight: marker fills, hovers, emphasis (ink text on top) */
  --highlight-soft: rgba(255, 212, 59, 0.55);
  --accent:     #E0A73E;   /* hand drawings: every highlighter stroke renders in this one gold */
  --line-strong: rgba(16, 24, 40, 0.22);  /* button and control outlines */
  --hover-tint:  rgba(11, 18, 32, 0.05);   /* quiet hover fill on nav and rows */
  --ink-quiet:   #8A909C;   /* display-size connective words only (3:1 at that size) */

  /* Type */
  --font-display: "Instrument Serif", "Times New Roman", Times, serif;
  --font-serif:   "Instrument Serif", "Times New Roman", Times, serif;
  --font-sans:    "Inter Variable", "Inter", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --font-mono:    "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --step--1: clamp(0.78rem, 0.76rem + 0.10vw, 0.84rem);
  --step-0:  clamp(1.00rem, 0.97rem + 0.15vw, 1.08rem);
  --step-1:  clamp(1.25rem, 1.16rem + 0.40vw, 1.50rem);
  --step-2:  clamp(1.70rem, 1.45rem + 1.10vw, 2.50rem);
  --step-3:  clamp(2.40rem, 1.90rem + 2.30vw, 4.00rem);
  --step-4:  clamp(3.20rem, 2.20rem + 4.60vw, 6.40rem);

  /* Type roles. Use these, not raw sizes. One role per job, the same on every page:
     hero        page titles and the home hero            display serif
     section     section titles, pull quotes               display serif
     subsection  big names inside a section (a role, a list title)  display serif
     title-lg    large item titles (features, featured card, prose h2)  sans 500
     title       item titles (cards, talks, trainings)     sans 500
     lede        intro paragraph under a title             sans
     body        running text                              sans
     desc        descriptions inside cards and lists       sans, --ink-meta
     small       secondary lines (venue, artist, notes)    sans
     meta        dates, years, types                       sans 500, --ink-mute
     label       uppercase eyebrows and small headings     sans 600, tracked
     action      buttons and "Read →" links                sans 600 */
  --type-hero:       400 var(--step-4)/0.95 var(--font-display);
  --type-section:    400 var(--step-3)/1 var(--font-display);
  --type-subsection: 400 clamp(1.7rem, 1.3rem + 1.5vw, 2.5rem)/1.05 var(--font-display);
  --type-title-lg:   500 clamp(1.5rem, 1.25rem + 1vw, 2.05rem)/1.12 var(--font-sans);
  --type-title:      500 clamp(1.2rem, 1.08rem + 0.45vw, 1.42rem)/1.25 var(--font-sans);
  --type-lede:       400 var(--step-1)/1.45 var(--font-sans);
  --type-body:       400 17px/1.6 var(--font-sans);
  --type-desc:       400 16px/1.55 var(--font-sans);
  --type-small:      400 14.5px/1.45 var(--font-sans);
  --type-meta:       500 13px/1.3 var(--font-sans);
  --type-label:      600 12px/1 var(--font-sans);
  --type-action:     600 14px/1 var(--font-sans);
  --track-display: -0.03em;
  --track-title:   -0.02em;
  --track-label:   0.1em;

  /* 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: 5rem;
  --space-9: 9rem;

  /* Layout */
  --measure: 64ch;
  --content: 44rem;
  --wide: 72rem;
  /* Radii: four sizes. Media inside cards, cards, page panels, pills. */
  --r-sm: 8px;       /* album art, small thumbnails */
  --r-media: 14px;   /* images and quiet notes inside cards */
  --r-card: 24px;    /* every card and figure */
  --r-pill: 99px;
  --radius: var(--r-media);
  --radius-tile: 48px;   /* home visual tiles */
  --radius-panel: 36px;  /* full-width page panels */
  --card-pad: clamp(22px, 2.6vw, 30px);

  /* Depth — layered, soft, long-throw shadows */
  --shadow-tile:
    0 1px 2px rgba(16, 24, 40, 0.04),
    0 12px 24px -8px rgba(16, 24, 40, 0.10),
    0 32px 64px -24px rgba(16, 24, 40, 0.14);
  --shadow-hero:
    0 1px 2px rgba(16, 24, 40, 0.05),
    0 16px 32px -10px rgba(16, 24, 40, 0.12),
    0 40px 64px -28px rgba(16, 24, 40, 0.10);
  --shadow-card:
    0 1px 2px rgba(16, 24, 40, 0.05),
    0 8px 20px -6px rgba(16, 24, 40, 0.10);
  --shadow-bar:
    0 1px 2px rgba(16, 24, 40, 0.06),
    0 10px 28px -8px rgba(16, 24, 40, 0.18);
  --dock-h: 64px;

  --transition: 220ms cubic-bezier(0.2, 0.7, 0.2, 1);
  --draw: 640ms cubic-bezier(0.2, 0.7, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}
