/* CSPC Library design tokens: the one source of color, depth, type and radius values.
   Loaded first on every page: the public site (before styles.css) and the admin (before admin.css). */

:root {
  /* Brand */
  --navy-900: #0B1F44;
  --navy-700: #12305E;
  --navy-500: #2A4577;
  --gold: #F5B700;
  --white: #FFFFFF;

  /* Text */
  --ink: #0F1B33;
  --muted: #4A5670;
  --on-navy: #DCE5F5;
  --on-navy-muted: #C9D4EA;

  /* Surfaces and lines */
  --tint: #F3F6FB;
  --tint-soft: color-mix(in srgb, var(--tint) 50%, var(--white));
  --tag-bg: #E8EEF8;
  --line: #DCE3EF;
  --line-strong: #B9C5DB;
  --line-on-navy: #6F88B8;
  --border-input: #6B7790;
  --wash-on-navy: color-mix(in srgb, var(--white) 10%, transparent);

  /* Status: notice (gold family), danger, success */
  --accent-wash: #FFFBEA;
  --warn-bg: #FFF6D6;
  --warn-bg-strong: #FFF0C2;
  --warn-line: #F0D27A;
  --warn-ink: #6B4200;
  --danger: #B3261E;
  --danger-bg: #FDECEA;
  --danger-line: #F1B5B5;
  --danger-ink: #7A1810;
  --ok: #1B6E43;
  --ok-bg: #E6F4EC;
  --ok-ink: #0D4A2B;
  --ok-on-navy: #8FE0B0;
  --pin: var(--warn-ink);

  /* Depth: all shadows are tinted navy */
  --shadow-raised: 0 8px 20px color-mix(in srgb, var(--navy-900) 8%, transparent);
  --shadow-popover: 0 12px 28px color-mix(in srgb, var(--navy-900) 18%, transparent);
  --shadow-dialog: 0 24px 64px color-mix(in srgb, var(--navy-900) 35%, transparent);
  --backdrop: color-mix(in srgb, var(--navy-900) 60%, transparent);

  /* Type */
  --font-display: Archivo, system-ui, sans-serif;
  --font-body: Inter, system-ui, sans-serif;

  /* Type roles (DESIGN.md Typography). Every font size uses one of these. */
  --text-label: 0.75rem;      /* uppercase data labels, table headers, tags */
  --text-meta: 0.875rem;      /* dates, hints, small print, compact controls */
  --text-body: 1rem;          /* all reading text and standard controls */
  --text-lead: 1.125rem;      /* lead paragraphs, emphasised values */
  --text-citation: 1.0625rem; /* citation generator output only */
  --text-title-sm: 1.1875rem; /* item names: tiles, lists, facilities, events */
  --text-title: 1.5rem;       /* card, panel and pop-up titles */
  --text-numeral: 2rem;       /* the PST clock and event dates */
  --text-headline: clamp(1.75rem, 3.5vw, 2.5rem); /* section and page titles */
  --text-display: clamp(2rem, 4.2vw, 3.25rem);    /* hero and article headlines */

  /* Radius */
  --radius-sm: 6px;
  --radius: 8px;
  --radius-lg: 12px;
}
