/* The marketing site's tokens: the one place a colour, size or timing is written down.
   The values are the app's own (mobile/src/constants/theme.ts), so the site, the app and the App
   Store icon read as one thing. Change a brand colour there and here together.

   One purple, flat: heroes, purple sections and the footer are the same colour, with no gradients or
   dot grids. Lime only ever sits on purple (1.1:1 on cream); on cream the same role is purple
   carrying cream, via --action / --on-action below. Cards are quiet, as in the app since 2026-10-15:
   white on cream, a 1px grey edge, no shadow. */

/* Served from here, not Google Fonts, so a visitor's address never goes to Google (and the CSP only
   allows fonts from this origin). Same files as style.css uses. */
@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url(/fonts/bricolage-grotesque-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url(/fonts/bricolage-grotesque-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF,
    U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  color-scheme: light;

  /* Colour ---------------------------------------------------------------- */
  --brand: #2e147c; /* purple: heroes, purple sections, the footer, primary actions */
  --brand-bright: #2e147c; /* the same purple, for actions and active states on cream */
  --brand-tint: #cfc3f7; /* pale lilac: secondary text on purple */
  --brand-wash: #e6e0fa; /* lilac tint */
  --brand-line: rgba(207, 195, 247, 0.4); /* hairlines and outlines on purple */
  --brand-deep: #1f0b5a; /* only /go/go.css still uses these two */
  --brand-raised: #3a1a96;

  --accent: #cefc40; /* lime: only ever on purple, always carrying purple text */
  --accent-deep: #bfee2c;

  --bone: #f5f2e9; /* cream: the canvas */
  --surface: #ffffff;
  --surface-line: #d8d2e0; /* the app's border: card edges and hairlines */

  --ink: #24153b; /* text */
  --ink-muted: #5d5670;
  --ink-faint: #938ba5;
  --ink-inverse: #f5f2e9; /* cream text on purple */

  --error: #d2333f;

  /* The primary action on cream. */
  --action: var(--brand);
  --action-hover: #23105f;
  --on-action: var(--bone);

  /* Type ------------------------------------------------------------------ */
  /* Bricolage for headings, actions and brand text; reading text in the reader's own system font,
     as in the app (Bricolage reads soft at body sizes). */
  --font-display: 'Bricolage Grotesque', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-body: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --display-1: clamp(2.5rem, 1.55rem + 4.05vw, 4.75rem);
  --display-2: clamp(2.125rem, 1.62rem + 2.15vw, 3.5rem);
  --display-3: clamp(1.75rem, 1.41rem + 1.45vw, 2.625rem);
  --display-4: clamp(1.375rem, 1.24rem + 0.58vw, 1.75rem);
  --title: 1.0625rem;
  --body-lg: clamp(1.0625rem, 1.02rem + 0.19vw, 1.1875rem);
  --body: 1rem;
  --body-sm: 0.875rem;
  --caption: 0.8125rem;
  --label: 0.75rem;

  /* Shape and motion ------------------------------------------------------ */
  --r-card: 1rem; /* feature surfaces */
  --r-inner: 0.625rem; /* icon tiles, inner boxes */
  --r-control: 0.5rem; /* the app's buttons, chips and fields */
  --r-pill: 9999px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur-fast: 0.18s;
  --dur-base: 0.5s;

  --gutter: 1rem;
  --max: 72rem;
  --header-h: 4.5rem;
}

@media (min-width: 640px) {
  :root {
    --gutter: 1.5rem;
  }
}

@media (min-width: 1024px) {
  :root {
    --gutter: 2rem;
  }
}
