/* Copied verbatim from the Alice site (alice-lang.org, src/styles/tokens.css). Replace this file to restyle the playground.
   Playground-only values (syntax colors, pane sizes) live in src/Application/view.al and are built from these. */
/*
  Alice design tokens. Shared by the site (global.css) and the book (documentation.css).
  Two typefaces, both bundled under the OFL: Fraunces (display) and DM Sans (text). Code uses the system monospace.
  Colors switch with color-scheme: auto by default, forced by data-theme="light" | "dark"
  (the same attribute and localStorage key, starlight-theme, that the book uses).
*/
:root {
  color-scheme: light dark;

  /* Type */
  --font-display: 'Fraunces Variable', Georgia, 'Times New Roman', serif;
  --font-sans: 'DM Sans', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: ui-monospace, 'SFMono-Regular', 'Cascadia Mono', 'JetBrains Mono', Menlo, Consolas, monospace;
  --text-xs: .75rem;      /* 12px: labels, captions */
  --text-sm: .875rem;     /* 14px: secondary text, code */
  --text-base: 1rem;      /* 16px: body */
  --text-lg: 1.125rem;    /* 18px: lead text */
  --text-xl: 1.375rem;    /* 22px: card titles */
  --text-2xl: clamp(1.5rem, 1.2rem + 1.1vw, 1.875rem);   /* 24-30px: h3 */
  --text-3xl: clamp(1.875rem, 1.3rem + 2.2vw, 2.75rem);  /* 30-44px: h2 */
  --text-4xl: clamp(2.375rem, 1.4rem + 4vw, 4.25rem);    /* 38-68px: h1 */
  --leading-tight: 1.08;
  --leading-snug: 1.3;
  --leading-body: 1.6;
  --tracking-display: -.025em;
  --tracking-label: .08em;

  /* Space (4px grid) */
  --space-1: .25rem;
  --space-2: .5rem;
  --space-3: .75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --section-gap: clamp(4rem, 3rem + 4vw, 7rem);
  --page-width: 75rem;     /* 1200px */
  --page-gutter: clamp(1.25rem, .5rem + 3vw, 3rem);
  --measure: 38rem;        /* readable line length */

  /* Radii */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-pill: 999px;

  /* Color: light | dark. Text pairs meet WCAG AA (4.5:1) on --bg and --surface. */
  --bg: light-dark(#f5efe0, #131110);              /* ivory | ink */
  --surface: light-dark(#fffcf5, #1c1916);         /* cards, code */
  --surface-2: light-dark(#ece4d2, #26221e);       /* tabs, wells */
  --surface-inverse: light-dark(#1b1814, #f5efe0);
  --text: light-dark(#1b1814, #f3ece0);
  --text-muted: light-dark(#575047, #b7ad9f);      /* 6.6:1 | 8.6:1 on --bg */
  --text-inverse: light-dark(#f5efe0, #1b1814);
  --border: light-dark(#dcd1bf, #3a342e);
  --border-strong: light-dark(#b9ab95, #5a5149);
  --accent: light-dark(#b51638, #f2708c);          /* cherry: 6.0:1 | 6.7:1 on --bg */
  --accent-hover: light-dark(#92112d, #ff95ab);
  --accent-soft: light-dark(#f6dde2, #3a1820);
  --accent-contrast: light-dark(#ffffff, #1b0a10);
  --ok: light-dark(#2c6a3c, #7fcf95);
  --ok-soft: light-dark(#dfeedf, #17301f);
  --wip: light-dark(#8a5300, #f0b860);
  --wip-soft: light-dark(#f7e7c8, #33260f);
  --bar-alice: var(--accent);
  --bar-other: light-dark(#857a6d, #7f756a);       /* non-text graphics: >= 3:1 */
  --focus: light-dark(#b51638, #f2708c);
  --shadow-sm: 0 1px 2px light-dark(#3a2a1a14, #00000066);
  --shadow-md: 0 10px 30px -12px light-dark(#3a2a1a33, #000000aa);

  /* Code (pairs with Shiki github-light / github-dark) */
  --code-bg: light-dark(#fffcf5, #161412);
  --code-border: var(--border);
}
:root[data-theme='light'] { color-scheme: light; }
:root[data-theme='dark'] { color-scheme: dark; }
