/*
 * Margin Star: design tokens
 * A personal-homepage style with opinions. The whole page is one flat lemon yellow and
 * everything on it is printed in a single near-black ink: no second color, no shadows, no
 * gradients. Lists of underlined links with faded dates, bold year headings, little black
 * stars hanging in the left margin to mark the good ones, a hairline outlined box for the
 * "Hi!" intro, and inline chips tinted with a wash of ink. Drawings are ink line art with a
 * halftone dot shade, like a photocopy. Blunt, a bit cheeky, very readable.
 *
 * Fonts (free on Google Fonts):
 *   <link href="https://fonts.googleapis.com/css2?family=Public+Sans:ital,wght@0,400;0,500;0,700;0,800;1,400&family=Fragment+Mono&display=swap" rel="stylesheet">
 */
:root {
  /* The page: one flat lemon, everywhere */
  --ms-lemon: #fcd92b;
  --ms-lemon-deep: #f0c814;   /* row hover, table stripes, pressed buttons */
  --ms-lemon-pale: #fde879;   /* input fill, the code block */

  /* The ink and its washes */
  --ms-ink: #15130b;          /* text, stars, rules, the picked plan */
  --ms-ink-soft: #4a4214;     /* secondary copy */
  --ms-faded: #8a7a1c;        /* dates, inactive nav, hints */
  --ms-line: #8f7f22;         /* hairline boxes and dividers */
  --ms-wash: rgba(21, 19, 11, 0.09);   /* chip fill */
  --ms-wash-strong: rgba(21, 19, 11, 0.16); /* chip hover */

  /* Fonts */
  --ms-font: "Public Sans", "Helvetica Neue", Arial, sans-serif;
  --ms-mono: "Fragment Mono", ui-monospace, Menlo, monospace;

  /* Type scale */
  --ms-text-hero: clamp(36px, 6vw, 60px);
  --ms-text-year: clamp(28px, 3.4vw, 34px);
  --ms-text-h2: 24px;
  --ms-text-h3: 19px;
  --ms-text-lead: 19px;
  --ms-text-body: 17px;
  --ms-text-small: 14px;
  --ms-text-micro: 12px;
  --ms-leading: 1.55;
  --ms-weight-body: 400;
  --ms-weight-mid: 500;
  --ms-weight-bold: 800;

  /* Shape: hairlines, tiny radius, never a shadow */
  --ms-hair: 1px solid var(--ms-line);
  --ms-rule: 2px solid var(--ms-ink);
  --ms-radius-chip: 3px;
  --ms-radius-box: 4px;
  --ms-underline: 1px;
  --ms-underline-gap: 3px;

  /* Space and width */
  --ms-column: 640px;
  --ms-wide: 900px;
  --ms-margin: 28px;          /* the gutter the stars hang in */
  --ms-space-1: 4px;
  --ms-space-2: 8px;
  --ms-space-3: 14px;
  --ms-space-4: 22px;
  --ms-space-5: 36px;
  --ms-space-6: 56px;
  --ms-space-7: 88px;
}
