@import url('/ui.css');
@import url('/shell.css');
/* DM Sans variable (weights 100–1000, optical size 9–40), Latin subset. The only typeface. */
@font-face { font-family: 'DM Sans'; src: url('/fonts/dm-sans-variable.woff') format('woff'); font-weight: 100 1000; font-style: normal; font-display: swap; }
:root {
  /* Neutral surfaces and lines */
  --bg: #f7f7f8; --surface: #ffffff; --surface-2: #f2f3f5; --surface-3: #e8eaed;
  --line: #e6e8eb; --line-strong: #d4d8dd;
  /* Text */
  --ink: #111418; --ink-2: #4a515b; --ink-3: #697180;
  /* Primary actions are ink; green marks learning: correct answers, progress, links and the logo */
  --brand: #111418; --brand-strong: #000000; --brand-soft: #eceef1; --brand-ink: #111418;
  --green: #0b7a4f; --green-strong: #086140; --green-soft: #e8f5ee; --link: var(--green);
  --accent: #0b7a4f; --accent-hover: #086140;
  /* Status */
  --ok: #0b7a4f; --ok-bg: #e8f5ee; --ok-line: #a7d9bf;
  --warn: #8a5a00; --warn-bg: #fdf4df; --warn-line: #efd9a4;
  --danger: #c0262d; --danger-bg: #fdeeee; --danger-line: #f1c2c4;
  --info: #1f5fa8; --info-bg: #eaf1fb;
  --focus: #0b7a4f;
  /* Type: one family, seven sizes */
  --font: 'DM Sans', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-brand: var(--font);
  --mono: ui-monospace, 'SF Mono', SFMono-Regular, Menlo, Consolas, monospace;
  --fs-xs: 12px; --fs-sm: 13px; --fs-base: 14px; --fs-md: 16px; --fs-lg: 18px; --fs-xl: 22px; --fs-2xl: 28px;
  /* Shape and layout */
  --r-sm: 6px; --r: 8px; --r-lg: 12px; --r-xl: 16px;
  --shadow-sm: 0 1px 2px rgb(17 20 24 / 5%); --shadow-lg: 0 20px 56px rgb(17 20 24 / 16%);
  --side-w: 240px; --w-read: 760px; --w-page: 1120px;
  --control-h: 38px;

  /* Older names, kept so every page follows the tokens above */
  --paper: var(--bg); --paper-deep: var(--surface-2); --card: var(--surface); --ink-soft: var(--ink-2);
  --forest: var(--green); --error: var(--danger); --bad-bg: var(--danger-bg); --warm: var(--warn-bg);
  --shadow: var(--shadow-sm); --display: var(--font); --sans: var(--font);
}
@media (pointer: coarse) { :root { --control-h: 44px; } }
@media (max-width: 1050px) { :root { --side-w: 216px; } }
