/*
 * tokens.css — DesignClass brand tokens (from Brand & Style Guide rev 1.0, 23 Oct 2026).
 * Colour names follow the guide; CSS variable names follow the live site where it has them.
 */

/* Self-hosted fonts (the site never loads from Google so it works on school networks). */
@font-face { font-family: "Poppins"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/poppins-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 400; font-style: italic; font-display: swap; src: url("../fonts/poppins-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 500; font-style: normal; font-display: swap; src: url("../fonts/poppins-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 600; font-style: normal; font-display: swap; src: url("../fonts/poppins-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 700; font-style: normal; font-display: swap; src: url("../fonts/poppins-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 800; font-style: normal; font-display: swap; src: url("../fonts/poppins-latin-800-normal.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-weight: 500; font-style: normal; font-display: swap; src: url("../fonts/jetbrains-mono-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-weight: 700; font-style: normal; font-display: swap; src: url("../fonts/jetbrains-mono-latin-700-normal.woff2") format("woff2"); }

:root {
  /* Core colour (sheet 07) */
  --ink: #0A1020;          /* Drawing Ink — dark sections, viewport */
  --ink2: #121B36;         /* Night Sheet — cards on ink */
  --paper: #F4F2EC;        /* Tracing Paper — page background */
  --white: #FFFFFF;
  --blue: #2448FF;         /* Drafting Blue — action */
  --blue-d: #1630D6;       /* Pressed Blue — hover/pressed */
  --cyan: #4FE3FF;         /* Blueprint Cyan — highlight on dark */
  --text: #121726;         /* Graphite — body text on light */

  /* Neutrals (sheet 08) */
  --pencil: #4D566A;       /* ledes, small text on light */
  --faint: #626A7C;        /* sheet numbers (contrast-fixed per sheet 10) */
  --field-line: #C9CDD8;
  --track: #ECEAF2;
  --level-pill: #ECE8E5;
  --placeholder: #E9E6DE;
  --fact-text: #DFE5FF;
  --tb-text: #C9D3EE;      /* title-block text on dark */
  --body-dark: #B9C4E2;
  --dim-text: #A7BBEA;
  --lens-label: #8EA2D4;
  --tb-label: #7186BB;

  /* Lines & grids */
  --line-light: rgba(18, 23, 38, .14);
  --line-dark: rgba(160, 195, 255, .22);
  --grid-dark: rgba(120, 170, 255, .09);
  --grid-paper: rgba(18, 23, 38, .05);

  /* Accent used only for the hand-drawn pencil scribble (Craft orange) */
  --scribble: #FF8A2A;

  /* Semantic result colours (NOT subject colours) — traffic lights */
  --ok: #1E9E5A;
  --warn: #F2A516;
  --bad: #E5383B;
  --ok-tint: #E3F5EA;
  --warn-tint: #FDF1D8;
  --bad-tint: #FBE3E3;

  /* Type */
  --font: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;

  /* Radius scale (sheet 19) */
  --r-pill: 999px; --r-photo: 28px; --r-card: 24px; --r-share: 20px; --r-value: 18px;
  --r-fact: 16px; --r-input: 12px; --r-tag: 6px;

  /* Shadows: long and soft */
  --shadow-card-hover: 0 28px 50px -24px rgba(10, 16, 32, .35);
  --shadow-window: 0 30px 60px -30px rgba(10, 16, 32, .45);
  --shadow-primary: 0 10px 24px -10px rgba(36, 72, 255, .7);

  /* Motion (sheet 20) */
  --ease: cubic-bezier(.2, .8, .2, 1);
  --t-btn: .18s; --t-card: .25s;

  /* Layout */
  --header-h: 64px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}
