/*
  Margin Notes: design tokens
  Feel: a quiet notebook on the web. White paper, a narrow reading column,
  lettered lists hanging in the margin, small gray chip buttons and one deep
  navy for the single action that matters. Collections show as square
  "blocks": a note in serif italic, a link, a swatch, a drawing.

  Fonts (free on Google Fonts):
  <link href="https://fonts.googleapis.com/css2?family=Hanken+Grotesk:wght@400;500;600;700&family=Newsreader:ital,opsz,wght@1,6..72,400;1,6..72,500&family=JetBrains+Mono:wght@400;500&display=swap" rel="stylesheet">
*/

:root {
  /* Color */
  --mn-paper: #FDFDFC;
  --mn-white: #FFFFFF;
  --mn-wash: #F2F2EF;
  --mn-wash-2: #E9E9E5;
  --mn-line: #E6E6E2;
  --mn-ink: #262624;
  --mn-mute: #84847F;
  --mn-faint: #B7B7B1;
  --mn-navy: #1F2270;
  --mn-navy-hover: #2A2E8C;
  --mn-moss: #3C7A4F;
  --mn-clay: #B8643E;
  --mn-error: #B3362F;

  /* Fonts */
  --mn-sans: "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;
  --mn-serif: "Newsreader", Georgia, serif;
  --mn-mono: "JetBrains Mono", ui-monospace, monospace;

  /* Type scale: deliberately modest */
  --mn-text-display: clamp(30px, 4.2vw, 44px);
  --mn-text-h2: clamp(22px, 2.6vw, 28px);
  --mn-text-h3: 17px;
  --mn-text-lead: 19px;
  --mn-text-body: 16px;
  --mn-text-small: 14px;
  --mn-text-tiny: 12px;
  --mn-leading: 1.55;
  --mn-leading-tight: 1.2;

  /* Shape */
  --mn-radius-xs: 3px;
  --mn-radius-sm: 4px;
  --mn-radius: 6px;
  --mn-radius-lg: 10px;
  --mn-border: 1px solid var(--mn-line);
  --mn-border-ink: 1px solid var(--mn-ink);

  /* Shadow: only app windows float */
  --mn-shadow-window: 0 1px 2px rgba(38, 38, 36, .04), 0 24px 60px -18px rgba(38, 38, 36, .16);
  --mn-shadow-pop: 0 6px 24px -8px rgba(38, 38, 36, .18);
  --mn-focus: 0 0 0 3px rgba(31, 34, 112, .16);

  /* Space */
  --mn-space-1: 4px;
  --mn-space-2: 8px;
  --mn-space-3: 12px;
  --mn-space-4: 16px;
  --mn-space-5: 24px;
  --mn-space-6: 32px;
  --mn-space-7: 48px;
  --mn-space-8: 72px;
  --mn-space-9: 112px;

  /* Widths */
  --mn-column: 600px;
  --mn-margin: 34px;
  --mn-wide: 1040px;
  --mn-page: 1200px;
}
