/* bioQ Herbarium tokens (vision V19, 28 September 2026)
   The one source for type, colour, space, radius, shadow and motion on
   rebuilt pages. Components and templates use these custom properties;
   they never restate a raw colour or an off-scale size. Legacy pages keep
   their own Newsreader/Outfit variables until they migrate, so every token
   here carries the --bq- prefix to avoid collisions during the migration.

   Checked by scripts/lint_design_tokens.mjs in qa:changed.
   Fonts are self-hosted OFL files; pages preload the two latin files they
   use first (fraunces-latin.woff2, figtree-latin.woff2). */

@font-face {
  font-family: "Figtree";
  font-style: normal;
  font-weight: 300 700;
  font-display: optional;
  src: url("/assets/fonts/figtree-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;
}

@font-face {
  font-family: "Figtree";
  font-style: normal;
  font-weight: 300 700;
  font-display: optional;
  src: url("/assets/fonts/figtree-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: "Fraunces";
  font-style: normal;
  font-weight: 300 700;
  font-display: optional;
  src: url("/assets/fonts/fraunces-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;
}

@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 300 700;
  font-display: optional;
  src: url("/assets/fonts/fraunces-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: "IBM Plex Mono";
  font-style: normal;
  font-weight: 400;
  font-display: optional;
  src: url("/assets/fonts/ibm-plex-mono-latin-ext-400.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: "IBM Plex Mono";
  font-style: normal;
  font-weight: 400;
  font-display: optional;
  src: url("/assets/fonts/ibm-plex-mono-latin-400.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: "IBM Plex Mono";
  font-style: normal;
  font-weight: 500;
  font-display: optional;
  src: url("/assets/fonts/ibm-plex-mono-latin-ext-500.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: "IBM Plex Mono";
  font-style: normal;
  font-weight: 500;
  font-display: optional;
  src: url("/assets/fonts/ibm-plex-mono-latin-500.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;
}

:root {
  /* Type: Fraunces for display and headings (sentence case), Figtree for
     body and interface, IBM Plex Mono for specimen labels only. */
  --bq-font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --bq-font-body: "Figtree", "Helvetica Neue", Arial, sans-serif;
  --bq-font-mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;

  --bq-weight-regular: 400;
  --bq-weight-medium: 500;
  --bq-weight-semibold: 600;

  --bq-text-label: .75rem;
  --bq-text-small: .875rem;
  --bq-text-body: 1.0625rem;
  --bq-text-lead: 1.25rem;
  --bq-text-h3: clamp(1.375rem, 1.2rem + .7vw, 1.75rem);
  --bq-text-h2: clamp(1.75rem, 1.4rem + 1.6vw, 2.5rem);
  --bq-text-h1: clamp(2.25rem, 1.6rem + 3vw, 3.75rem);
  --bq-text-display: clamp(2.75rem, 1.7rem + 4.8vw, 5rem);

  --bq-leading-tight: 1.08;
  --bq-leading-heading: 1.2;
  --bq-leading-body: 1.6;
  --bq-tracking-display: -.012em;
  --bq-tracking-label: .08em;
  --bq-measure: 65ch;

  /* Colour: neutral chrome so the product carries the page. Action copper
     is for actions and focus only, never decoration. */
  --bq-color-bone: #f3efe7;
  --bq-color-paper: #faf7f1;
  --bq-color-ink: #0a2e30;
  --bq-color-ink-muted: #5f6d6c;
  --bq-color-line: rgba(10, 46, 48, .18);
  --bq-color-control: #687574;
  --bq-color-action: #995638;
  --bq-color-action-hover: #7f432c;
  --bq-color-on-action: #faf7f1;
  --bq-color-on-ink: #faf7f1;
  --bq-color-focus: #995638;
  --bq-color-scrim: rgba(4, 29, 31, .72);

  /* Space: one scale for margin, padding and gap. */
  --bq-space-1: 4px;
  --bq-space-2: 8px;
  --bq-space-3: 12px;
  --bq-space-4: 16px;
  --bq-space-5: 24px;
  --bq-space-6: 32px;
  --bq-space-7: 48px;
  --bq-space-8: 64px;
  --bq-space-9: 96px;
  --bq-space-10: 128px;
  --bq-space-11: 160px;
  --bq-section-editorial: clamp(96px, 12vw, 160px);
  --bq-section-compact: clamp(48px, 6vw, 64px);
  --bq-gutter: clamp(16px, 4vw, 40px);
  --bq-container: min(1240px, calc(100vw - 2 * var(--bq-gutter)));
  --bq-target: 44px;

  /* Shape and depth */
  --bq-radius: 2px;
  --bq-radius-round: 999px;
  --bq-shadow-lift: 0 1px 2px rgba(10, 46, 48, .06), 0 8px 24px rgba(10, 46, 48, .08);
  --bq-shadow-overlay: 0 16px 48px rgba(10, 46, 48, .18);

  /* Motion */
  --bq-ease: cubic-bezier(.16, 1, .3, 1);
  --bq-duration-fast: 150ms;
  --bq-duration: 300ms;
}

@media (prefers-reduced-motion: reduce) {
  :root {
    --bq-duration-fast: 1ms;
    --bq-duration: 1ms;
  }
}
