/* RAISE design tokens. The :root block is copied from RAISE/app/web/src/styles/tokens.css.
   Do not add hex values here or anywhere else in the site: tools/check_tokens.py fails the
   build if a stylesheet uses a colour that is not in this file.

   Where each colour may be used (measured contrast on --paper):
     --ink, --ink-90, --ink-soft   any text (5.5:1 or better)
     --p3, --p4                    small labels and text (above 5:1)
     --ink-mute                    control borders and large text only (3.5:1)
     --p1, --p2                    marks only on light grounds (dots, strips, chart marks);
                                   text only on --ink panels, where they pass
     --ink-faint, --rule, --rule-hi   hairlines only */

@font-face { font-family: 'Source Serif 4'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/source-serif-4-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Source Serif 4'; font-style: italic; font-weight: 400; font-display: swap; src: url('../fonts/source-serif-4-latin-400-italic.woff2') format('woff2'); }
@font-face { font-family: 'Source Serif 4'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/source-serif-4-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter Tight'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/inter-tight-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter Tight'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/inter-tight-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter Tight'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/inter-tight-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/ibm-plex-mono-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/ibm-plex-mono-latin-500-normal.woff2') format('woff2'); }

:root {
  /* Ground — warm cream */
  --paper: #faf3e3;
  --paper-soft: #f3e9cf;
  --paper-deep: #ecdfb8;
  --card: #ffffff;
  --card-soft: #fdf9ee;

  /* Ink — navy from the RAISE wordmark */
  --ink: #0a2855;
  --ink-90: rgba(10, 40, 85, 0.9);
  --ink-soft: rgba(10, 40, 85, 0.72);
  --ink-mute: rgba(10, 40, 85, 0.55);
  --ink-faint: rgba(10, 40, 85, 0.32);
  --rule: rgba(10, 40, 85, 0.12);
  --rule-hi: rgba(10, 40, 85, 0.22);

  /* Practice colors — sampled from PDF banners */
  --p1: #3d9aa0; /* teal     — District Focus */
  --p1-soft: #cfe6e8;
  --p2: #e68552; /* orange   — Warm Communication */
  --p2-soft: #fadbc4;
  --p3: #a23f56; /* burgundy — First Faces */
  --p3-soft: #ecc9d0;
  --p4: #2c6e6a; /* deep teal — Data-Informed Outreach */
  --p4-soft: #c3dad8;

  /* Accent (italic subtitle on cover, quote marks) */
  --accent: #3d9aa0;

  /* Type families */
  --font-serif: 'Source Serif 4', Georgia, serif;
  --font-ui: 'Inter Tight', system-ui, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, monospace;

  /* Layout */
  --container-max: 1440px;
  --content-max: 1340px;
  --gutter: clamp(20px, 4vw, 56px);

  /* Tints of the paper colour for text and rules on --ink panels (no new hues). */
  --on-ink-rule: rgba(250, 243, 227, 0.25);
  --on-ink-rule-hi: rgba(250, 243, 227, 0.4);
  --scrim: rgba(10, 40, 85, 0.55);
  --scrim-deep: rgba(10, 40, 85, 0.88);
  --shadow: rgba(10, 40, 85, 0.3);
}
