/* One hue. #659ad3 is the brand; paper, ink, and every gray are steps of it.
 * Display: Archivo Narrow. Body: Newsreader.
 */
@font-face {
  font-family: "Archivo Narrow";
  src: url("fonts/archivo-narrow-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Newsreader";
  src: url("fonts/newsreader-400.woff2") format("woff2");
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
  font-optical-sizing: auto;
}

:root {
  /* The blue is the brand. Everything else is a step of it: paper is the
     lightest step, ink the darkest. No second hue on the page.
     Contrast (WCAG, computed): ink/paper 16.4, muted/paper 6.4,
     accent-2/paper 6.1, accent-ink/accent 5.8. */
  --color-paper: #f8f9fb;
  --color-paper-2: #eef2f7;
  --color-paper-3: #e3eaf2;
  --color-rule: #c9d4e0;
  --color-neutral: #6b7d8f;
  --color-muted: #4c5d6e;
  --color-ink: #101c26;
  --color-accent: #659ad3;
  --color-accent-2: #1f5fa8;
  --color-accent-ink: #0e1c2c;
  --color-focus: #1f5fa8;
  --color-danger: #a83232;

  --font-display: "Archivo Narrow", "Arial Narrow", "Helvetica Neue", sans-serif;
  --font-body: "Newsreader", "Iowan Old Style", "Palatino Linotype", Palatino, serif;

  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-md: 1rem;
  --text-lg: 1.25rem;
  --text-xl: 1.5rem;
  --text-2xl: 2rem;
  --text-3xl: 2.5rem;
  --text-4xl: 3.25rem;
  --text-display-s: clamp(2.25rem, 6vw, 3.25rem);
  --text-display: clamp(2.5rem, 8vw, 4.5rem);

  --space-3xs: 0.125rem;
  --space-2xs: 0.25rem;
  --space-xs: 0.5rem;
  --space-sm: 0.75rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2.5rem;
  --space-2xl: 4rem;
  --space-3xl: 6rem;
  --space-4xl: 9rem;

  --page-gutter: clamp(1.5rem, 5vw, 4rem);
  --page-pad-left: max(var(--page-gutter), env(safe-area-inset-left, 0px));
  --page-pad-right: max(var(--page-gutter), env(safe-area-inset-right, 0px));
  /* Height of the sticky mast. Hash jumps use this as scroll-padding so
     the target is not hidden under the header. JS overwrites with the
     measured height; 7rem is the no-JS phone estimate. */
  --mast-offset: 7rem;
  /* Sticky CTA bar: button row + dock padding + home-indicator inset. */
  --dock-offset: calc(4.5rem + env(safe-area-inset-bottom, 0px));
  --measure: 65ch;
  --radius: 0;
  --rule-hair: 1px;
  --rule-heavy: 3px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in: cubic-bezier(0.7, 0, 0.84, 0);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-micro: 120ms;
  --dur-short: 220ms;
  --dur-long: 420ms;

  --z-base: 0;
  --z-nav: 20;
  --z-menu: 30;
  --z-focus: 40;
}

@media (min-width: 40rem) {
  :root {
    --mast-offset: 11rem;
  }
}
