/* ============================================================================
   tokens.css — the design system for the Edward H. Crane memorial
   A single source of truth: colour, type, scale, space, layout, motion.
   Concept: an 18th-century pamphlet / university-press monograph, set in two
   inks (oxblood + deep ink) on laid paper — a nod to "Cato's Letters," the
   1720s liberty essays the Cato Institute is named for.
   ========================================================================== */

:root {
  /* ---- Colour: laid paper, two inks, one restrained accent --------------- */
  --paper:        #EAE3D3;   /* warm laid paper — the page */
  --paper-deep:   #E2D9C5;   /* recessed band (chronology, closing, footer) */
  --paper-raised: #F1EBDD;   /* lifted plane (plates, pulled quotes) */
  --ink:          #221D17;   /* deep warm near-black — primary text */
  --ink-soft:     #5B5446;   /* secondary text, captions, apparatus, labels */
  --oxblood:      #7C2D2D;   /* the single accent — red title-page ink */
  --oxblood-deep: #5C2020;   /* hover / pressed */
  --rule:         rgba(34, 29, 23, 0.20);  /* hairlines */
  --rule-strong:  rgba(34, 29, 23, 0.46);  /* emphasis rules */
  --select:       rgba(124, 45, 45, 0.16); /* text selection */

  /* ---- Type families ---------------------------------------------------- */
  --serif: "EB Garamond", Georgia, "Times New Roman", serif;
  --sans:  "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* ---- Type scale (fluid) ----------------------------------------------- */
  --fs-hero:  clamp(3.25rem, 1.9rem + 6.6vw, 8rem);
  --fs-h2:    clamp(1.9rem, 1.45rem + 1.9vw, 2.9rem);
  --fs-h3:    clamp(1.3rem, 1.16rem + 0.6vw, 1.6rem);
  --fs-quote: clamp(1.5rem, 1.1rem + 1.7vw, 2.3rem);
  --fs-lead:  clamp(1.2rem, 1.2rem + 0.5vw, 1.5rem);
  --fs-body:  clamp(1.18rem, 1.12rem + 0.3vw, 1.3rem);
  --fs-small: 0.95rem;
  --fs-meta:  0.78rem;

  /* ---- Line height & measure -------------------------------------------- */
  --lh-body:  1.62;
  --lh-lead:  1.5;
  --lh-quote: 1.28;
  --lh-tight: 1.08;
  --measure:  42rem;   /* ~66–70 characters at body size */
  --rubric-w: 12rem;   /* the scholarly margin column */
  --page-max: 72rem;
  --gutter:   clamp(1.25rem, 5vw, 3.5rem);

  /* ---- Space scale ------------------------------------------------------- */
  --s-1: 0.25rem; --s-2: 0.5rem;  --s-3: 0.75rem; --s-4: 1rem;
  --s-5: 1.5rem;  --s-6: 2rem;    --s-7: 3rem;    --s-8: 4.5rem; --s-9: 7rem;
  --section-y: clamp(3.5rem, 4rem + 4vh, 7rem);

  /* ---- Motion ----------------------------------------------------------- */
  --ease: cubic-bezier(0.2, 0.6, 0.2, 1);
  --dur:  0.7s;
  --dur-fast: 0.28s;
}
