/* Intertrade: design tokens.
   The single source of colour, type, space and motion. site.css reads only these.
   Brand: indigo #23246B + coral #E2553A on cool paper. Type: Geist + Geist Mono.
   Contrast measured 2026-10-09: body text >= 7.4:1, coral-ink text 5.5:1, controls >= 3:1. */

@font-face {
  font-family: "Geist";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("assets/fonts/geist-latin-wght-normal.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: "Geist";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("assets/fonts/geist-latin-ext-wght-normal.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;
}
@font-face {
  font-family: "Geist Mono";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("assets/fonts/geist-mono-latin-wght-normal.woff2") format("woff2");
}

:root {
  color-scheme: light;

  /* Colour: light */
  --bg: #f5f6fa;
  --surface: #ffffff;
  --surface-2: #eceef5;
  --ink: #14153d;
  --ink-2: #4a4f66;
  --line: #dcdee8;
  --line-strong: #7a7f99;

  --brand: #23246b;
  --brand-hover: #1b1c57;
  --brand-active: #141542;
  --brand-ink: #ffffff;
  --brand-soft: #e8e9f7;

  --accent: #e2553a;        /* coral: the mark, rules, large display only */
  --accent-ink: #b23a20;    /* coral as text on light surfaces */

  --band: #23246b;          /* indigo feature band */
  --band-2: #2c2e7d;
  --band-ink: #ffffff;
  --band-ink-2: #c7c9ec;
  --band-line: #3d3f8f;
  --band-accent: #ff9c84;
  --footer: #15164a;        /* deeper than --band so bands never merge into it */

  --focus: #23246b;
  --focus-on-band: #ff9c84;

  --ok: #1d6b43;
  --danger: #b42318;

  /* Type */
  --font-sans: "Geist", "Segoe UI", Helvetica, Arial, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --fs-xs: 0.8125rem;
  --fs-sm: 0.9375rem;
  --fs-base: 1.0625rem;
  --fs-lg: 1.25rem;
  --fs-xl: 1.5rem;
  --fs-2xl: clamp(1.875rem, 1.35rem + 1.9vw, 2.75rem);
  --fs-3xl: clamp(2.375rem, 1.5rem + 3.2vw, 3.75rem);
  --fs-hero: clamp(2.75rem, 1.4rem + 5vw, 6rem);

  --lh-tight: 1.02;
  --lh-snug: 1.15;
  --lh-body: 1.6;

  --track-display: -0.035em;
  --track-head: -0.02em;
  --track-label: 0.08em;

  /* Space */
  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-5: 1.5rem;
  --sp-6: 2rem;
  --sp-7: 3rem;
  --sp-8: 4.5rem;
  --sp-9: 7rem;

  --gutter: clamp(1rem, 0.4rem + 3vw, 4rem);
  --max: 92rem;
  --max-prose: 42rem;

  /* Shape and depth */
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 20px;
  --radius-pill: 999px;
  --border: 1px;
  --shadow: 0 1px 2px rgb(20 21 61 / 0.05), 0 10px 30px rgb(20 21 61 / 0.07);
  --shadow-lift: 0 2px 6px rgb(20 21 61 / 0.08), 0 24px 48px rgb(20 21 61 / 0.12);

  /* Motion */
  --dur-fast: 120ms;
  --dur: 220ms;
  --dur-enter: 600ms;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0d0f23;
    --surface: #15183a;
    --surface-2: #1c2048;
    --ink: #eef0fa;
    --ink-2: #a9aec9;
    --line: #2a2f5c;
    --line-strong: #5c64a6;
    --brand: #a9adff;
    --brand-hover: #c2c5ff;
    --brand-active: #9196f0;
    --brand-ink: #0d0f23;
    --brand-soft: #22265a;
    --accent: #f07a5f;
    --accent-ink: #ff9c84;
    --band: #191c47;
    --band-2: #22265a;
    --band-line: #343a78;
    --footer: #07081a;
    --focus: #ff9c84;
    --ok: #7ed3a6;
    --danger: #f4a097;
    --shadow: 0 1px 2px rgb(0 0 0 / 0.3), 0 10px 30px rgb(0 0 0 / 0.3);
    --shadow-lift: 0 2px 6px rgb(0 0 0 / 0.35), 0 24px 48px rgb(0 0 0 / 0.4);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0d0f23;
  --surface: #15183a;
  --surface-2: #1c2048;
  --ink: #eef0fa;
  --ink-2: #a9aec9;
  --line: #2a2f5c;
  --line-strong: #5c64a6;
  --brand: #a9adff;
  --brand-hover: #c2c5ff;
  --brand-active: #9196f0;
  --brand-ink: #0d0f23;
  --brand-soft: #22265a;
  --accent: #f07a5f;
  --accent-ink: #ff9c84;
  --band: #191c47;
  --band-2: #22265a;
  --band-line: #343a78;
  --footer: #07081a;
  --focus: #ff9c84;
  --ok: #7ed3a6;
  --danger: #f4a097;
  --shadow: 0 1px 2px rgb(0 0 0 / 0.3), 0 10px 30px rgb(0 0 0 / 0.3);
  --shadow-lift: 0 2px 6px rgb(0 0 0 / 0.35), 0 24px 48px rgb(0 0 0 / 0.4);
}

@media (prefers-reduced-motion: reduce) {
  :root { --dur-fast: 0ms; --dur: 0ms; --dur-enter: 0ms; }
}
