/* The marketing site, in the app's colours and fonts (src/ui/tokens.css), with a dark version of its own.
   The fonts are copied from @fontsource by build.mjs, so the page loads nothing from other hosts. */

@font-face {
  font-family: "Bricolage Grotesque Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url(/fonts/bricolage-grotesque-latin-opsz-normal.woff2) format("woff2-variations");
}

@font-face {
  font-family: "Figtree Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 300 900;
  src: url(/fonts/figtree-latin-wght-normal.woff2) format("woff2-variations");
}

:root {
  color-scheme: light dark;
  --paper: #fff8ec;
  --paper-deep: #f2e9da;
  --ink: #1b1530;
  --ink-muted: #4a4263;
  --grass: #3dd16f;
  --tomato: #ff5a3c;
  --space-2: 8px;
  --space-3: 16px;
  --space-4: 24px;
  --space-5: 40px;
  --radius-lg: 22px;
  --font-display: "Bricolage Grotesque Variable", "Figtree Variable", system-ui, sans-serif;
  --font-sans: "Figtree Variable", system-ui, -apple-system, "Segoe UI", sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #1b1530;
    --paper-deep: #2a2346;
    --ink: #fff8ec;
    --ink-muted: #cfc6e4;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.55 var(--font-sans);
}
h1, h2, h3, p { margin: 0; }
a { color: inherit; text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--grass); }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 4px; }

.skip {
  position: absolute; left: var(--space-3); top: -60px;
  padding: var(--space-2) var(--space-3); border-radius: 999px;
  background: var(--ink); color: var(--paper); font-weight: 700;
}
.skip:focus { top: var(--space-3); }

.masthead, main, .footer { max-width: 760px; margin: 0 auto; padding: 0 var(--space-3); }
.masthead { padding-top: var(--space-4); }
.wordmark { font: 800 22px/1 var(--font-display); letter-spacing: -0.01em; }
.wordmark::after { content: ""; display: inline-block; width: 10px; height: 10px; margin-left: 6px; border-radius: 50%; background: var(--grass); }

section { margin-top: var(--space-5); }
.hero { margin-top: var(--space-5); }
/* The name fills the column on one line at every width: in the font's display cut it's 12.23em wide, so 8.1%
   of the column (cqi) leaves about 1% to spare. The optical size is pinned, since smaller sizes are wider.
   Measure again if the name, the font, or the letter-spacing changes. */
main { container-type: inline-size; }
h1 { font: 800 8.1cqi/1.02 var(--font-display); font-variation-settings: "opsz" 96; letter-spacing: -0.02em; white-space: nowrap; }
.lede { margin-top: var(--space-4); font-size: 21px; line-height: 1.5; max-width: 34em; }
.lede + p { margin-top: var(--space-3); max-width: 40em; }
h2 { font: 800 30px/1.15 var(--font-display); letter-spacing: -0.01em; margin-bottom: var(--space-3); }

.beta { padding: var(--space-4); border-radius: var(--radius-lg); background: var(--paper-deep); }
.beta p + p { margin-top: var(--space-3); }
.beta a { font-weight: 700; }

.footer { margin-top: var(--space-5); padding-bottom: var(--space-5); color: var(--ink-muted); font-size: 15px; }
.footer nav { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-4); margin-bottom: var(--space-3); }
.footer nav a { color: var(--ink); font-weight: 600; padding: 10px 0; }
.credit { margin-top: var(--space-2); font-size: 14px; }
.credit a { color: var(--ink); font-weight: 600; }

@media (max-width: 640px) {
  .lede { font-size: 19px; }
  h2 { font-size: 26px; }
}

@media (prefers-reduced-motion: no-preference) {
  a { transition: text-decoration-color 0.15s; }
}
