/*
 * Design tokens shared by the participant site and the researcher admin.
 * Change colours and spacing here only.
 *
 * Palette (v1.1, inspired by canine colour vision: dogs separate blue and
 * yellow best). Contrast (WCAG 2.1), measured on --color-bg #F7F5EF:
 *   --color-text      #283747  11.2:1   running text
 *   --color-muted     #56616E   5.8:1   hints, meta (AA for normal text)
 *   --color-accent    #345F87   6.2:1   links, buttons (white text on it 6.7:1)
 *   --color-border-strong #857F72 3.7:1 form-control borders (non-text 3:1)
 *   --color-secondary #729FC5   2.6:1   DECORATIVE ONLY: never text, never
 *                                       the only sign of a state
 *   --color-highlight #EAC75D   1.5:1   DECORATIVE ONLY, or as a fill behind
 *                                       --color-text (7.4:1)
 * Status is never shown by colour alone: every state also has text, an
 * icon, a border style or a weight change.
 */
/*
 * Self-hosted fonts (SIL OFL 1.1, see static/fonts/README.md).
 * Inter for all text: headings, navigation, tables, buttons and forms.
 * Identifiers and numbers use Inter's tabular figures (see .mono).
 */
@font-face {
  font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../fonts/inter/inter-latin-400-normal.da03732a27e1.woff2") format("woff2");
}
@font-face {
  font-family: "Inter"; font-style: italic; font-weight: 400; font-display: swap;
  src: url("../fonts/inter/inter-latin-400-italic.abfa19127a95.woff2") format("woff2");
}
@font-face {
  font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("../fonts/inter/inter-latin-500-normal.51205681a1ba.woff2") format("woff2");
}
@font-face {
  font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("../fonts/inter/inter-latin-600-normal.2ede57db1a3a.woff2") format("woff2");
}

:root {
  /* Colour palette */
  --color-bg: #F7F5EF;              /* warm background */
  --color-surface: #FFFFFF;
  --color-surface-muted: #EFEBE2;
  --color-text: #283747;            /* dark text */
  --color-muted: #56616E;
  --color-border: #DAD5C9;
  --color-border-strong: #857F72;
  --color-accent: #345F87;          /* primary dark blue */
  --color-accent-hover: #264A6B;
  --color-accent-soft: #E6EEF6;
  --color-secondary: #729FC5;       /* secondary blue: decorative only */
  --color-highlight: #EAC75D;       /* accent yellow: decorative or fill only */
  --color-highlight-soft: #FBF3DA;
  --color-focus: #345F87;
  --color-success: #2E6B4F;
  --color-success-soft: #EAF3EE;
  --color-warning: #6E5210;
  --color-warning-soft: #FBF3DA;
  --color-error: #A23B3B;
  --color-error-soft: #F8ECEC;
  --color-on-accent: #FFFFFF;

  /* Spacing scale (4px base) */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;

  /* Shape and type */
  --radius: 3px;
  --border-width: 1px;
  /* Type roles */
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-display: var(--font-sans);  /* headings use Inter too (heavier weight, tighter tracking) */
  --font-mono: var(--font-sans);     /* identifiers: Inter with tabular figures and a slashed zero */
  --font-weight-heading: 600;
  --tracking-heading: -0.015em;

  /* Type scale (rem; 1rem = 16px) */
  --font-size-label: 0.75rem;    /* 12px: small uppercase group labels */
  --font-size-sm: 0.875rem;      /* 14px: meta, hints, captions */
  --font-size-ui: 0.9375rem;     /* 15px: controls, options, nav */
  --font-size-base: 1.0625rem;   /* 17px: running text */
  --font-size-lg: 1.1875rem;     /* 19px: section headings, lead text */
  --font-size-xl: 1.875rem;      /* 30px: page titles */
  --font-size-display: clamp(2rem, 4.2vw, 2.5rem); /* homepage title */
  --line-height: 1.6;
  --line-height-tight: 1.2;
  --tracking-label: 0.08em;
  --content-width: 1100px;
  --reading-width: 720px;
}
