/*
 * Foot Note: design tokens
 * A quiet essay on oat paper. Huge calm whitespace, a centered serif headline with one phrase
 * set in italic, bracketed footnote markers [1] that open small italic notes underneath,
 * faded "ghost" serif lists, hairline rules, a single vermilion square as the logo and accent,
 * and black pill buttons with an italic serif label. It reads like a well-made pamphlet.
 *
 * Fonts (all free on Google Fonts):
 *   <link href="https://fonts.googleapis.com/css2?family=Source+Serif+4:ital,opsz,wght@0,8..60,400;0,8..60,500;1,8..60,400;1,8..60,500&family=Instrument+Sans:wght@400;500;600&display=swap" rel="stylesheet">
 */
:root {
  /* Paper */
  --fn-paper: #f5f3ec;        /* the page, everywhere */
  --fn-paper-deep: #ebe7dc;   /* quiet panels, inputs on hover, the featured plan */
  --fn-card: #fbfaf6;         /* cards and form panels, a shade lighter than the page */
  --fn-rule: #d9d4c7;         /* every hairline */

  /* Ink */
  --fn-ink: #1a1916;
  --fn-ink-soft: #57534b;     /* body copy and notes */
  --fn-ghost: #c9c4b8;        /* faded serif lists and big background numbers */

  /* The one accent: vermilion. The logo square, footnote markers, one link style */
  --fn-vermilion: #ec5f1f;
  --fn-vermilion-deep: #c94a10;
  --fn-vermilion-wash: #fbe3d6;

  /* Type */
  --fn-serif: "Source Serif 4", "Iowan Old Style", Georgia, serif;
  --fn-sans: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --fn-text-hero: clamp(42px, 6.4vw, 84px);
  --fn-text-h2: clamp(32px, 4vw, 52px);
  --fn-text-h3: 25px;
  --fn-text-ghost: clamp(34px, 4.6vw, 56px);
  --fn-text-lead: 21px;
  --fn-text-body: 18px;
  --fn-text-ui: 15px;
  --fn-text-note: 16px;
  --fn-text-micro: 13px;

  --fn-tracking-hero: -.025em;
  --fn-leading-hero: 1.08;

  /* Shape: almost none. Hairlines, square logo, pill buttons, small radii elsewhere */
  --fn-radius-sm: 4px;
  --fn-radius: 8px;
  --fn-radius-pill: 999px;
  --fn-hairline: 1px solid var(--fn-rule);
  --fn-shadow: 0 1px 0 rgba(26, 25, 22, .04), 0 10px 30px rgba(60, 50, 30, .06);

  /* Space: generous. Whitespace is the main design element */
  --fn-section: clamp(96px, 14vw, 200px);
  --fn-hero-pad: clamp(120px, 22vh, 260px);
  --fn-container: 1100px;
  --fn-measure: 640px;        /* text column */
  --fn-note: 420px;           /* footnote column */

  /* Motion: slow fades only */
  --fn-ease: cubic-bezier(.2, .7, .2, 1);
}
