/*
 * DevFoundy Academy design tokens.
 * Derived from the DevFoundy studio palette (assets/theme.css + studio-home.css
 * on devfoundy.github.io/DevFoundy): paper, ink, studio blue, orange mark,
 * Helvetica display, Iowan serif accents, monospace labels.
 */
:root {
  color-scheme: light;
  /* brand */
  --paper: #faf8f1;
  --surface: #fffdf6;
  --panel: #eeece3;
  --panel-2: #e6e3d6;
  --ink: #212023;
  --ink-soft: #3a383d;
  --muted: #5c585b;
  --line: #cbc7bc;
  --line-strong: #302c32;
  --blue: #3339a9;
  --blue-hover: #293093;
  --blue-soft: #e6e5f8;
  --orange: #fb633e;
  --orange-text: #b8401f; /* AA on paper */
  --band: #292e93;
  --band-ink: #fff3d8;
  --band-accent: #ffb482;
  /* semantic */
  --success: #1d6b45;
  --success-soft: #e1f1e6;
  --danger: #a8261b;
  --danger-soft: #fae3df;
  --warning: #7a4f00;
  --warning-soft: #f8edd2;
  --focus: #3339a9;
  /* school swatches (from the studio print swatches) */
  --school-ai: #ae9de9;
  --school-programming: #c7db7b;
  --school-cs: #8fb7ef;
  --school-creative: #f398aa;
  --school-professional: #f2c36b;
  --school-education: #7fd1b9;
  /* type */
  --font-display: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-body: "Helvetica Neue", Helvetica, Arial, system-ui, sans-serif;
  --font-serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --font-mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, "Liberation Mono", monospace;
  --step--1: 0.8125rem;
  --step-0: 1rem;
  --step-1: 1.125rem;
  --step-2: 1.375rem;
  --step-3: clamp(1.6rem, 1.2rem + 1.4vw, 2.25rem);
  --step-4: clamp(2.2rem, 1.4rem + 3vw, 3.6rem);
  --step-5: clamp(2.8rem, 1.5rem + 5.2vw, 6rem);
  /* space & shape */
  --gutter: clamp(1.1rem, 4vw, 3.5rem);
  --max: 1320px;
  --read: 72ch;
  --radius: 4px;
  --radius-lg: 10px;
  --shadow: 0 10px 32px -24px #212023aa;
  --shadow-lift: 0 18px 40px -26px #212023cc;
  --header-h: 68px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  /* code */
  --code-bg: #f1efe6;
  --tok-keyword: #3339a9;
  --tok-string: #1d6b45;
  --tok-number: #a8261b;
  --tok-comment: #6f6a6d;
  --tok-fn: #7a3aa0;
  --tok-type: #8a4a00;
  --tok-tag: #3339a9;
  --tok-attr: #8a4a00;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #1a191e;
  --surface: #25232a;
  --panel: #302e37;
  --panel-2: #393641;
  --ink: #f7f2e4;
  --ink-soft: #e2ddd0;
  --muted: #c2bdc4;
  --line: #524e57;
  --line-strong: #77727d;
  --blue: #c0bbff;
  --blue-hover: #d4d0ff;
  --blue-soft: #353347;
  --orange: #ff8a65;
  --orange-text: #ff9975;
  --band: #23276f;
  --success: #86d8a8;
  --success-soft: #1d3326;
  --danger: #ff9b8e;
  --danger-soft: #3d2220;
  --warning: #f2c66d;
  --warning-soft: #3a2f17;
  --focus: #c0bbff;
  --shadow: 0 16px 34px -22px #000a;
  --shadow-lift: 0 20px 40px -22px #000c;
  --code-bg: #201f25;
  --tok-keyword: #c0bbff;
  --tok-string: #9fe0b5;
  --tok-number: #ffab91;
  --tok-comment: #9a95a0;
  --tok-fn: #e5b3ff;
  --tok-type: #f2c66d;
  --tok-tag: #c0bbff;
  --tok-attr: #f2c66d;
}
