/*
 * Footnote Gray: design tokens
 * A scholar's notebook printed on the web. Pure grayscale: white paper, near-black ink and
 * a ladder of grays, with no accent hue at all. Book typography does the work: a justified,
 * hyphenated serif column, small caps headings over dotted rules, dotted underlines on links,
 * numbered sidenotes in the right margin, fleuron bullets, boxed double-rule nav buttons and
 * a blackletter monogram. It feels patient, exact and a little obsessive.
 *
 * 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,600;0,8..60,700;1,8..60,400;1,8..60,600&family=Source+Sans+3:wght@400;600&family=IBM+Plex+Mono:wght@400;500&family=UnifrakturMaguntia&display=swap" rel="stylesheet">
 */
:root {
  /* Paper and ink. No hue anywhere in the chrome. */
  --fg-paper: #ffffff;
  --fg-page: #fbfbfa;       /* the faintest off-white, for alternating sections */
  --fg-wash: #f1f1f0;       /* boxes, inline code, table headers */
  --fg-wash-2: #e4e4e2;     /* hover on wash, pressed buttons */
  --fg-rule: #b9b9b6;       /* dotted rules, link underlines */
  --fg-rule-strong: #4a4a48;/* double borders on boxed buttons */
  --fg-ink: #111111;        /* text, headings, the primary button fill */
  --fg-soft: #4b4b49;       /* leads, sidenotes, metadata */
  --fg-faint: #8a8a87;      /* timestamps, captions, disabled */
  --fg-ink-inverse: #ffffff;

  /* The only non-gray, used for form errors and nothing else */
  --fg-error: #8b1e1e;

  /* Type */
  --fg-serif: "Source Serif 4", "Iowan Old Style", Georgia, serif;
  --fg-sans: "Source Sans 3", system-ui, -apple-system, "Segoe UI", sans-serif;
  --fg-mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --fg-black: "UnifrakturMaguntia", "Old English Text MT", serif;   /* monogram and drop caps only */

  --fg-text-hero: clamp(38px, 5.4vw, 64px);
  --fg-text-h2: clamp(26px, 3vw, 34px);
  --fg-text-h3: 21px;
  --fg-text-lead: 21px;
  --fg-text-body: 19px;
  --fg-text-side: 15px;
  --fg-text-small: 15px;
  --fg-text-micro: 12px;

  --fg-leading: 1.62;
  --fg-leading-tight: 1.12;
  --fg-tracking-caps: .06em;

  /* Shape: square corners, hairlines, dotted rules, double boxes. No shadows. */
  --fg-radius: 0;
  --fg-radius-sm: 2px;
  --fg-hair: 1px solid var(--fg-rule);
  --fg-dotted: 1px dotted var(--fg-ink);
  --fg-dotted-soft: 1px dotted var(--fg-rule);
  --fg-double: 3px double var(--fg-rule-strong);
  --fg-shadow: none;
  --fg-popup-shadow: 0 0 0 1px var(--fg-ink), 4px 4px 0 0 var(--fg-wash-2);  /* the one exception: link preview boxes */

  /* Space */
  --fg-column: 720px;        /* the reading column */
  --fg-side: 230px;          /* the sidenote margin */
  --fg-container: 1040px;    /* column + gap + margin */
  --fg-gap: 48px;
  --fg-space-1: 4px;
  --fg-space-2: 8px;
  --fg-space-3: 16px;
  --fg-space-4: 24px;
  --fg-space-5: 40px;
  --fg-space-6: 64px;
  --fg-space-7: 96px;

  --fg-ease: cubic-bezier(.2, .6, .2, 1);
}
