/*
 * Fig One: design tokens
 * A light, technical-drawing style. Near-white paper with a faint dot grid and thin column
 * rules, big monospace headlines at regular weight, a quiet sans for reading, and product
 * shots framed like plates in a manual with bracketed captions ("[ fig. 2 · the bake plan ]").
 * Data is drawn as grids of small squares where only a few light up electric indigo.
 * One lime highlight marks the single most important action.
 *
 * Fonts (all free on Google Fonts):
 *   <link href="https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=Geist:wght@400;500;600&display=swap" rel="stylesheet">
 */
:root {
  /* Surfaces: paper first, white plates inside framed figures */
  --fo-paper: #f7f7f9;
  --fo-plate: #ffffff;
  --fo-frame: #efeff4;       /* the outer band of a framed figure, quiet sections */
  --fo-line: #dddde5;        /* every border, column rule and divider */
  --fo-dot: #cfcfda;         /* the dot grid and empty data squares */
  --fo-night: #17161d;       /* primary buttons, code, the one dark band */

  /* Text */
  --fo-ink: #17161d;
  --fo-soft: #5d5c6b;
  --fo-faint: #9897a8;

  /* Accents. Indigo for data and links, lime for one highlighted action per screen */
  --fo-indigo: #3b2ff0;
  --fo-indigo-dark: #2a20c4;
  --fo-indigo-soft: #e8e6fe;
  --fo-indigo-mid: #b9b4fb;   /* in-between data states, like proofing cells */
  --fo-lime: #e3f26b;
  --fo-lime-dark: #d2e24f;

  /* Type */
  --fo-mono: "DM Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --fo-sans: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;

  --fo-text-hero: clamp(40px, 6.2vw, 76px);
  --fo-text-h2: clamp(30px, 3.8vw, 46px);
  --fo-text-h3: 21px;
  --fo-text-lead: 18px;
  --fo-text-body: 16px;
  --fo-text-small: 14px;
  --fo-text-micro: 12px;

  --fo-tracking-hero: -.035em;
  --fo-tracking-h2: -.025em;
  --fo-tracking-caps: .08em;

  /* Shape: square and drafted. Hairlines, tiny radii, no soft shadows */
  --fo-radius-xs: 2px;
  --fo-radius: 4px;
  --fo-radius-pill: 999px;
  --fo-border: 1px solid var(--fo-line);
  --fo-shadow: 0 1px 0 rgba(23, 22, 29, .04);
  --fo-dots: radial-gradient(circle, var(--fo-dot) 1px, transparent 1.4px);
  --fo-dots-size: 22px 22px;

  /* Space */
  --fo-section: clamp(72px, 9vw, 120px);
  --fo-container: 1084px;
  --fo-narrow: 720px;
  --fo-gap: 24px;

  /* Motion */
  --fo-ease: cubic-bezier(.2, .7, .2, 1);
}
