/* Design tokens: "Kingston gouache". Palette is lifted from the hero painting. */
:root {
  /* paint */
  --cobalt-900: #263f3e;
  --cobalt-800: #365b60;
  --cobalt-600: #587c80;
  --cobalt-500: #6f9293;
  --cobalt-300: #a9c6c3;
  --cobalt-100: #e4ede8;
  --cream-50: #fffefa;
  --cream-100: #f6f4ee;
  --cream-200: #eae8e1;
  --cream-300: #c8c7c1;
  --ink-900: #303633;
  --ink-700: #393d3b;
  --rose-600: #476864;
  --rose-500: #587c80;
  --rose-100: #e4ede8;
  --gold-500: #d4ba80;
  --terra-500: #746c59;
  --terra-600: #625b4b;
  --leaf-600: #365f4a;

  /* semantic (day) */
  --bg: var(--cream-100);
  --bg-alt: var(--cream-200);
  --surface: var(--cream-50);
  --surface-2: #ffffff;
  --text: var(--ink-900);
  --text-muted: #58615c;
  --line: rgb(48 54 51 / 0.16);
  --accent: var(--cobalt-600);
  --accent-strong: #365b60;
  --on-accent: #ffffff;
  --highlight: var(--gold-500);
  --danger: #9b3028;
  --focus: var(--cobalt-600);
  --pattern-ink: rgb(88 124 128 / 0.1);
  --tick-bg: var(--cream-300);

  /* text that sits on the painting */
  --on-art: var(--cream-100);
  --on-art-muted: rgb(246 244 238 / 0.86);
  --art-focus: var(--gold-500);

  /* type */
  --font-display: "Gloock", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --font-ui: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --text-eyebrow: 0.75rem;
  --text-small: 0.875rem;
  --text-body: 1.0625rem;
  --text-lede: clamp(1.0625rem, 0.98rem + 0.4vw, 1.25rem);
  --display-1: clamp(2.9rem, 1.1rem + 6.4vw, 7rem);
  --display-2: clamp(2.2rem, 1.2rem + 3.6vw, 4.4rem);
  --display-3: clamp(1.5rem, 1.1rem + 1.6vw, 2.25rem);

  /* space + shape */
  --gutter: clamp(20px, 4vw, 56px);
  --section-y: clamp(72px, 9vw, 132px);
  --max: 1440px;
  --header-h: 88px; /* the fixed header: scroll offsets and the pinned stage are measured from it */
  --r-pill: 999px;
  --r-card: 28px;
  --r-sm: 14px;
  --shadow-soft: 0 18px 40px -18px rgb(30 41 39 / 0.35);
  --shadow-card: 0 1px 0 rgb(255 255 255 / 0.6) inset, 0 14px 30px -16px rgb(48 54 51 / 0.35);

  /* motion */
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --dur: 0.4s;

  /* layers */
  --z-art: -2;
  --z-header: 30;
  --z-drawer: 40;
  --z-top: 50;
  --z-toast: 60;

  color-scheme: light;
}

@media (max-width: 559px) {
  :root {
    --header-h: 76px;
  }
}

:root[data-theme="night"] {
  --bg: #1e2927;
  --bg-alt: #263431;
  --surface: #2c3c37;
  --surface-2: #344841;
  --text: #f6f4ee;
  --text-muted: #c8d1cb;
  --line: rgb(246 244 238 / 0.22);
  --accent: #a9c6c3;
  --accent-strong: #c6dcd5;
  --shadow-card: 0 1px 0 rgb(255 255 255 / 0.08) inset, 0 14px 30px -16px rgb(0 0 0 / 0.65);
  --on-accent: #263f3e;
  --danger: #ffb4a8;
  --focus: var(--gold-500);
  --pattern-ink: rgb(169 198 195 / 0.13);
  --tick-bg: rgb(246 244 238 / 0.28);
  color-scheme: dark;
}
