:root {
  --font-display: "Bricolage Grotesque Variable", ui-sans-serif, system-ui, sans-serif;
  --font-serif: var(--font-display); /* legacy alias: every current font-serif use is a heading or title */
  --font-sans: "Hanken Grotesk Variable", ui-sans-serif, system-ui, sans-serif;
  --font-read: "Source Serif 4 Variable", Georgia, serif; /* lesson prose and learner free text */
  --font-punch: "Big Shoulders Display Variable", Impact, sans-serif; /* moments of understanding only, uppercase */
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --bg: #eef0f8;
  --paper: #ffffff;
  --surface: #ffffff;
  --surface-2: #f6f7fc;
  --surface-3: #e8ebf8;
  --surface-hover: #f1f3fb;
  --surface-disabled: #f4f5fb;
  --skeleton: #e4e8f6;
  --divider: #e6e9f5;
  --border: #d9dcee;
  --border-strong: #c4c9e4;
  --edge: #c4c9e4;
  --text: #0d1330;
  --text-prose: #1c2342;
  --text-2: #4a5174;
  --text-3: #5b6288;

  --brand: #2338d8;
  --brand-hover: #16249b;
  --brand-soft: #e2e6ff;
  --brand-text: #2338d8;
  --on-brand: #ffffff;

  --action: #0d1330;
  --action-hover: #1c2342;
  --on-action: #eef0f8;

  /* "Now": the node being taught and the Socratic question. Cobalt, not a
     status: yellow is reserved for the marker, red for wrong ideas. */
  --now: #2338d8;
  --now-strong: #2338d8;
  --now-text: #2338d8;
  --now-soft: #e2e6ff;
  --on-now: #ffffff;
  --now-glow: rgb(35 56 216 / 0.18);

  --socratic: var(--now);
  --socratic-text: var(--now-text);
  --socratic-soft: var(--now-soft);

  --success: #0f7551;
  --success-soft: #d9f3e8;
  --warning: #b85400;
  --warning-text: #7a3800;
  --warning-soft: #ffe4cc;
  --warning-glow: rgb(184 84 0 / 0.22);
  --danger: #d4341a;
  --danger-soft: #fde1da;

  /* A wrong idea (misconception). The same red as danger, named for what it
     means in the knowledge map. */
  --wrong: var(--danger);
  --wrong-soft: var(--danger-soft);

  --status-unseen: #c4c9e4;
  --status-shaky: var(--warning);
  --status-solid: var(--success);
  --status-misconception: var(--wrong);
  --status-teaching: var(--now);

  --marker: #ffe14d; /* the highlighter: key terms in prose, the badge in a recap */
  --on-marker: #0d1330;

  --rail: #2338d8; /* the desktop navigation rail */
  --rail-deep: #16249b;
  --on-rail: #ffffff;
  --on-rail-2: #d6dbff;

  --hero: #0d1330;
  --on-hero: #ffffff;
  --on-hero-2: #b9bfe0;
  --hero-eyebrow: #ffe14d;
  --hero-track: #2a3158;
  --hero-solid: #ffffff;

  --logo-board: #3b4fd8;
  --logo-band: #7c4ddb;
  --logo-tassel: #1f8a5b;

  --scrim: rgb(13 19 48 / 0.5);
  --scrim-soft: rgb(13 19 48 / 0.12);

  --radius-xs: 4px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 18px;
  --radius-2xl: 22px;

  --shadow-sm: 0 1px 2px rgb(13 19 48 / 0.08);
  --shadow-card: 0 1px 0 rgb(13 19 48 / 0.06), 0 12px 30px -12px rgb(13 19 48 / 0.18);
  --shadow-float: 0 2px 4px rgb(13 19 48 / 0.06), 0 14px 36px rgb(13 19 48 / 0.1);
  --shadow-pop: 0 2px 4px rgb(13 19 48 / 0.06), 0 18px 44px rgb(13 19 48 / 0.14);
  --shadow-sheet: 0 2px 4px rgb(13 19 48 / 0.08), 0 22px 54px rgb(13 19 48 / 0.22);
  --shadow-now: 0 10px 28px rgb(35 56 216 / 0.14);
  /* The "punch": a hard offset shadow, only on things that test you or flag
     a wrong idea. */
  --punch: 5px 5px 0 var(--text);
  --punch-sm: 4px 4px 0 var(--text);

  --focus-ring: 0 0 0 3px rgb(35 56 216 / 0.32);
  --ring-current: 0 0 0 4px rgb(35 56 216 / 0.18);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

.dark {
  --bg: #0c1020;
  --paper: #121830;
  --surface: #161b34;
  --surface-2: #1d2342;
  --surface-3: #262d52;
  --surface-hover: #1a2040;
  --surface-disabled: #141930;
  --skeleton: #222a52;
  --divider: #232a4e;
  --border: #2a3158;
  --border-strong: #3a4274;
  --edge: #3a4274;
  --text: #eef0ff;
  --text-prose: #dfe3ff;
  --text-2: #b4bbe0;
  --text-3: #8f97c4;

  --brand: #7482ff;
  --brand-hover: #909bff;
  --brand-soft: #222a5c;
  --brand-text: #aab4ff;
  --on-brand: #0c1020;

  --action: #eef0ff;
  --action-hover: #ffffff;
  --on-action: #0c1020;

  --now: #7482ff;
  --now-strong: #7482ff;
  --now-text: #aab4ff;
  --now-soft: #222a5c;
  --on-now: #0c1020;
  --now-glow: rgb(116 130 255 / 0.22);

  --success: #3fc08f;
  --success-soft: #14382d;
  --warning: #f0a04b;
  --warning-text: #ffc88a;
  --warning-soft: #3d2a12;
  --warning-glow: rgb(240 160 75 / 0.22);
  --danger: #ff6a52;
  --danger-soft: #3d1c18;

  --wrong: var(--danger);
  --wrong-soft: var(--danger-soft);

  --status-unseen: #3a4274;

  --marker: #ffe14d;
  --on-marker: #0c1020;

  --rail: #1a2480;
  --rail-deep: #10185e;
  --on-rail: #ffffff;
  --on-rail-2: #d6dbff;

  --hero: #1a2256;
  --on-hero: #ffffff;
  --on-hero-2: #b9bfe0;
  --hero-track: #2a3158;
  --hero-solid: #ffffff;

  --logo-board: #8c9bff;
  --logo-band: #b394f5;
  --logo-tassel: #4cc38a;

  --scrim: rgb(0 0 0 / 0.55);
  --scrim-soft: rgb(0 0 0 / 0.3);

  --shadow-sm: none;
  --shadow-card: 0 0 0 1px var(--border);
  --shadow-float: 0 0 0 1px var(--border), 0 14px 36px rgb(0 0 0 / 0.4);
  --shadow-pop: 0 0 0 1px var(--border-strong), 0 18px 44px rgb(0 0 0 / 0.5);
  --shadow-sheet: 0 0 0 1px var(--border-strong), 0 22px 54px rgb(0 0 0 / 0.55);
  --shadow-now: 0 0 0 1px var(--now);
  --punch: 5px 5px 0 #000;
  --punch-sm: 4px 4px 0 #000;
  --focus-ring: 0 0 0 3px rgb(116 130 255 / 0.45);
  --ring-current: 0 0 0 4px rgb(116 130 255 / 0.25);
}
