/* Clear theme v1: warm dark, high-contrast, the Guardrails & Evals typefaces.
   Georgia for everything people read (bold titles, orange italic emphasis); IBM Plex Mono for
   code, labels and data. Georgia is built into every Mac and Windows machine; Gelasio, a free
   font drawn to Georgia's exact proportions, is stored here and takes over anywhere Georgia is
   missing, with the same layout.
   Requires deck-foundation/v2 (the token contract is unchanged since v1). Frozen once a published deck
   uses it; changes go into themes/<name>/v2.
   Fonts are self-hosted latin subsets under the SIL Open Font License (see fonts/OFL-*.txt).

   Contrast on --surface (WCAG 2.x), checked when this file was written:
     dark:  ink 16.6  ink-muted 11.4  ink-subtle 5.9  accent 8.9  positive 10.4  info 8.9  negative 7.8  (raised: >= 5.4)
     light: ink 17.2  ink-muted  9.7  ink-subtle 5.7  accent 5.3  positive  5.7  info 6.4  negative 5.8
   Rule: body text >= 7:1, nothing below 4.5:1. */

@font-face {
  font-family: "Gelasio";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(fonts/gelasio-var.woff2) format("woff2");
}
@font-face {
  font-family: "Gelasio";
  font-style: italic;
  font-weight: 400 700;
  font-display: swap;
  src: url(fonts/gelasio-italic-var.woff2) format("woff2");
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/plex-mono-400.woff2) format("woff2");
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(fonts/plex-mono-600.woff2) format("woff2");
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/plex-mono-italic-400.woff2) format("woff2");
}

:root {
  --font-display: Georgia, "Gelasio", serif;
  --font-body: Georgia, "Gelasio", serif;
  --font-label: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;
  --body-style: normal;
  --weight-display: 700;
  --tracking-tight: -0.015em;
  --tracking-kicker: 0.22em;
  --margin-x: 120px;
  --radius: 12px;
  /* Title, section and quote emphasis: italic regular in the solid accent ("Guardrails & Evals"). */
  --display-em-style: italic;
  --display-em-weight: 400;
  /* Georgia has regular and bold only: every heading, quotes included, is bold. */
  --quote-weight: 700;

  /* About 8% larger than the foundation defaults: Georgia's lowercase is smaller than a modern
     sans at the same size, and the room needs it. */
  --text-hero: 128px;
  --text-section: 90px;
  --text-title: 68px;
  --text-statement: 48px;
  --text-card-title: 34px;
  --text-lead: 34px;
  --text-body: 30px;
  --text-small: 26px;
  --text-kicker: 24px;
  --text-label: 22px;
  --text-hint: 21px;
  --text-code: 25px;
  --text-code-dense: 21px;

  /* Never fake a missing bold or italic. */
  font-synthesis: none;
}

/* Dark is the default. */
:root,
[data-mode="dark"] {
  /* Warm dark: a green-black that the orange accent sits in naturally, with warm inks to match. */
  --surface: #10140f;
  --surface-raised: #181e17;
  --stage-bg: #070906;
  --ink: #f4f2ec;
  --ink-muted: #cfcabd;
  --ink-subtle: #969182;
  --accent: #f2a065;
  --accent-strong: #e07d3c;
  --line: rgba(248, 244, 234, 0.1);
  --line-strong: rgba(248, 244, 234, 0.18);
  --positive: #8fd19f;
  --info: #8cb4ff;
  --negative: #f28b82;
  /* One soft accent light, top right, identical on every slide. */
  --slide-glow: radial-gradient(900px 700px at 84% 18%, rgba(242, 160, 101, 0.07), transparent 65%);
}

/* Light: for bright rooms and washed-out projectors. Set data-mode="light" on <html> or on a slide. */
[data-mode="light"] {
  --surface: #fafaf9;
  --surface-raised: #f0f0ee;
  --stage-bg: #e6e6e3;
  --ink: #15171a;
  --ink-muted: #3d4249;
  --ink-subtle: #5f646c;
  --accent: #a84f17;
  --accent-strong: #8a3f10;
  --line: rgba(0, 0, 0, 0.1);
  --line-strong: rgba(0, 0, 0, 0.2);
  --positive: #2a7048;
  --info: #2d5aa8;
  --negative: #b2352b;
  --slide-glow: radial-gradient(900px 700px at 84% 18%, rgba(168, 79, 23, 0.06), transparent 65%);
}
