/* Quaestorum tokens: palette B "Grove" (forest + sand), picked by Q 2026-11-21.
   Every colour, size, radius and duration lives here; other CSS only reads var(--*).
   Contrast pairs are measured by tests/test_contrast.py. */

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("/fonts/BricolageGrotesque-Variable-latin.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}
@font-face {
  font-family: "Manrope";
  src: url("/fonts/Manrope-Variable-latin.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}

:root {
  color-scheme: light;

  /* Palette (OKLCH). Hex in comments for the brand notes. */
  --forest: oklch(0.43 0.075 158);       /* #265C40 hero field */
  --forest-deep: oklch(0.36 0.07 160);   /* #124830 logo tile, field bottom */
  --forest-ink: oklch(0.22 0.035 160);   /* body text on white */
  --forest-ink-2: oklch(0.44 0.03 160);  /* secondary text on white */
  --blob: oklch(0.18 0.03 165);          /* dark blob in the hero */
  --blob-2: oklch(0.27 0.05 150);
  --sand: oklch(0.92 0.035 85);          /* #EFE3CB text/logo on dark only, never a page ground */
  --sand-2: oklch(0.78 0.03 120);        /* small text on the band */
  --band: oklch(0.19 0.03 165);          /* #051810-ish products band */
  --band-raised: oklch(0.25 0.035 165);
  --band-raised-2: oklch(0.3 0.04 165);
  --white: oklch(1 0 0);
  --panel: oklch(0.975 0.006 160);       /* light panels on white (Terms bar, prose asides) */

  /* Roles */
  --ground: var(--white);
  --text: var(--forest-ink);
  --text-2: var(--forest-ink-2);
  --link: var(--forest);
  --on-field: var(--sand);
  --on-band: var(--sand);
  --on-band-2: var(--sand-2);
  --btn-solid: var(--forest);
  --btn-solid-hover: oklch(0.49 0.085 158);
  --btn-solid-text: oklch(0.97 0.02 85);
  --btn-glow: oklch(0.6 0.11 158 / 0.55);
  --focus: var(--forest-ink);
  --focus-on-dark: var(--sand);

  /* Alpha hairlines */
  --line: oklch(0.22 0.035 160 / 0.12);
  --line-strong: oklch(0.22 0.035 160 / 0.4);   /* 3:1 borders that carry meaning */
  --line-on-dark: oklch(1 0 0 / 0.1);
  --line-on-dark-strong: oklch(1 0 0 / 0.22);

  /* Shadows: soft in light, none on dark (lighter surfaces do the work) */
  --shadow-1: 0 1px 2px oklch(0.2 0.03 160 / 0.08), 0 4px 14px -6px oklch(0.2 0.03 160 / 0.14);
  --shadow-btn: 0 1px 2px oklch(0 0 0 / 0.3), 0 4px 12px -4px oklch(0 0 0 / 0.4);
  --shadow-btn-hover: 0 0 0 1px oklch(1 0 0 / 0.08), 0 10px 30px -8px var(--btn-glow);

  /* Gradients (always in oklch) */
  --field-gradient: linear-gradient(180deg in oklch, var(--forest), var(--forest-deep));
  --blob-gradient:
    radial-gradient(60% 70% at 30% 70% in oklch, var(--blob) 0 42%, transparent 70%),
    radial-gradient(45% 60% at 78% 80% in oklch, var(--blob-2) 0 34%, transparent 68%),
    radial-gradient(70% 50% at 55% 100% in oklch, var(--blob) 0 45%, transparent 80%);

  /* Type (melon: light display heads, tight tracking, 18px body) */
  --font-display: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Manrope", ui-sans-serif, system-ui, sans-serif;
  --text-wordmark: 20.5vw;                     /* desktop: Q stays in view, a sliver cropped each side (melon) */
  --text-wordmark-phone: 18vw;                 /* phones: the whole word fits, so the name is readable */
  --text-display: clamp(3.5rem, 9vw, 9.5rem);  /* section heads, weight 300 */
  --text-h2: clamp(2.5rem, 5vw, 4.75rem);
  --text-lead: clamp(1.375rem, 2.3vw, 1.875rem); /* hero line, weight 300 */
  --text-h3: 1.375rem;
  --text-body: 1.125rem;                       /* 18px */
  --text-sm: 0.9375rem;                        /* 15px */
  --text-xs: 0.8125rem;                        /* 13px, never below */
  --track-display: -0.05em;
  --track-h2: -0.045em;
  --track-lead: -0.025em;
  --track-wordmark: -0.035em;
  --lh-tight: 0.92;
  --lh-snug: 1.15;
  --lh-body: 1.55;

  /* Space (melon: 40/20 gutters, 144/120 section padding) */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;
  --space-9: 6rem;
  --gutter: 2.5rem;
  --gutter-phone: 1.25rem;
  --section-top: 9rem;
  --section-bottom: 7.5rem;
  --section-top-phone: 5.5rem;
  --section-bottom-phone: 5rem;
  --measure: 36em;                             /* about 70-75 characters of body text */
  --wrap: 110rem;                              /* content cap on very wide screens */

  /* Shape: 6px shot frames, 8px buttons and Terms bar (radius-sm and radius-panel kept for later), never pill */
  --radius-sm: 6px;
  --radius-btn: 8px;
  --radius-card: 6px;
  --radius-panel: 12px;
  --btn-h: 48px;
  --target: 44px;

  /* Motion. CSS only for state feedback under 150 ms; everything else is GSAP. */
  --dur-state: 120ms;
  --ease-state: cubic-bezier(0.2, 0, 0, 1);
  --press-sink: 1px;
  --ease-melon: cubic-bezier(0.11, 0.06, 0.18, 1); /* measured on melon's nav */
}
