/* The Good Ground — generated from tokens.json */
:root, [data-theme="light"] {
  --surface: #f5efe0; /* Page and slide ground. Cream by day, deep field green by night. Never pure white or pure black. */
  --surface-2: #ece5d3; /* Alternating sections, cards that sit on surface, table headers. */
  --surface-3: #e1d9c2; /* Wells, table stripes, quiet panels. Keep small text off it unless it is text or text-muted. */
  --text: #1a2421; /* Body copy and headings on surface, surface-2 and surface-3 (11:1 or better in both themes). */
  --text-muted: #3d4a45; /* Secondary copy, ledes and captions on surface, surface-2 and surface-3. */
  --text-subtle: #56615b; /* Hints, footnotes and source lines on surface and surface-2 only (4.5:1+). On surface-3 use text-muted. */
  --brand: #2f5233; /* Brand-coloured text, links, icons and the logo ink on surface and surface-2. In dark it lifts to lichen so it stays legible. */
  --brand-fill: #2f5233; /* Pasture blocks: inverse sections, primary buttons, cover slabs. Put on-brand text on it. */
  --on-brand: #f5efe0; /* Text and reverse logo on brand-fill and bush (7.7:1 and 12:1). */
  --accent: #b8552b; /* Rust. The colour of a sponsor's name in print: one highlight per screen, sprout in the mark, large numbers (24px+), chart highlight. Not for small text in daylight; use accent-text. */
  --accent-text: #a34a24; /* Rust text under 24px and the accent button fill, on surface and surface-2 (5.1:1 daylight, 5.9:1 night). */
  --on-accent: #f5efe0; /* Text on an accent-text fill (accent buttons, rust tags). */
  --highlight: #d4a23a; /* Harvest gold. Sprout on dark grounds, strata band, chart second series, a single emphasis on pasture or bush. Text in it only at 24px+ on brand-fill, or any size on bush. */
  --line: #1a24211f; /* Default hairline: card borders, rules, table lines. Cards use borders, not shadows. */
  --line-strong: #1a24213d; /* Input borders and dividers that must be seen (3:1 against the ground). */
  --focus: #2f5233; /* Focus ring: 2px solid, 2px offset. Pasture by day (7.7:1 on surface), harvest by night (6.9:1). */
  --success: #2f5233; /* Delivered, approved, paid. Always with a word or a check icon, never colour alone. */
  --warning: #8a5a12; /* Renewal due, awaiting approval. With a word or icon. */
  --danger: #a34a24; /* Overdue or failed. Shares rust with accent, so always pair with a word or icon. */
  --pasture: #2f5233; /* Brand palette: primary green. Logo, cover slabs, field signs. For print, agree a Pantone match with the printer and check it on a proof. */
  --bush: #1b3220; /* Brand palette: deepest green. Night grounds, TV loop backgrounds, the dark half of big panels. */
  --cream: #f5efe0; /* Brand palette: paper. Default ground everywhere; print on uncoated cream stock where possible. */
  --rust: #b8552b; /* Brand palette: rust. The sprout, the sponsor's moment, one accent per piece. */
  --harvest: #d4a23a; /* Brand palette: harvest gold. Sprout on dark, strata band, warmth on green. */
  --loam: #6b4f2c; /* Brand palette: soil brown. Bottom band of strata, eyebrow labels, small rules. */
  --lichen: #a8b89a; /* Brand palette: soft green. Quiet fills, chart third series, badges on bush. */
  --ink: #1a2421; /* Brand palette: green-black ink. Single-colour print and the mono logo. */
  --shadow-1: 0 1px 2px #1a242114, 0 1px 1px #1a24210a; /* Menus, tooltips, a hovered interactive card. */
  --shadow-2: 0 8px 24px #1a24211f, 0 2px 6px #1a242114; /* Modals and popovers only. */
}
[data-theme="dark"] {
  --surface: #16241a;
  --surface-2: #1f3324;
  --surface-3: #2a4030;
  --text: #f5efe0;
  --text-muted: #c9d2c2;
  --text-subtle: #a3b096;
  --brand: #9db08f;
  --brand-fill: #2f5233;
  --on-brand: #f5efe0;
  --accent: #e0874f;
  --accent-text: #e0874f;
  --on-accent: #16241a;
  --highlight: #d4a23a;
  --line: #f5efe029;
  --line-strong: #f5efe047;
  --focus: #d4a23a;
  --success: #9db08f;
  --warning: #d4a23a;
  --danger: #e0874f;
}
:root {
  --space-1: 4px; /* Icon to label, tight inline gaps. */
  --space-2: 8px; /* Chip padding, gaps inside controls. */
  --space-3: 12px; /* Label to field, list item gaps. */
  --space-4: 16px; /* Default gap; button horizontal padding is space-5. */
  --space-5: 24px; /* Card padding, gaps between cards. */
  --space-6: 32px; /* Between groups inside a section. */
  --space-7: 48px; /* Between sections; slide inner margin at 1920 wide is space-9. */
  --space-8: 64px; /* Large section breaks, sign margins. */
  --space-9: 96px; /* Slide margins, hero padding. */
  --radius-sm: 4px; /* Buttons, inputs, tags. */
  --radius-md: 8px; /* Cards and panels. */
  --radius-lg: 16px; /* Large panels, image frames, app icon at small sizes. */
  --radius-pill: 999px; /* Status badges and the Backed badge only. */
  --font-serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --font-sans: "Public Sans", "Segoe UI", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  --text-display-xl: 600 96px/0.95 var(--font-serif); /* Covers, field signs and one statement per deck. Italicise one word at most, in 400 italic. */
  --text-display: 600 64px/1 var(--font-serif); /* Slide titles that carry the argument; hero lines. */
  --text-h1: 600 44px/1.1 var(--font-serif); /* Page and section titles. */
  --text-h2: 600 32px/1.15 var(--font-serif); /* Sub-sections, card titles on slides. */
  --text-h3: 600 24px/1.25 var(--font-serif); /* Small headings, sponsor names on cards. */
  --text-quote: italic 400 36px/1.2 var(--font-serif); /* Pull quotes from clubs and sponsors. Always attributed. */
  --text-lede: 400 20px/1.5 var(--font-sans); /* The sentence under a headline. One per section. */
  --text-body: 400 16px/1.55 var(--font-sans); /* Running text, UI copy. */
  --text-body-strong: 600 16px/1.55 var(--font-sans); /* Inline emphasis and button labels. Use instead of bold serif in running text. */
  --text-small: 400 14px/1.45 var(--font-sans); /* Captions, table cells, footnotes. */
  --text-label: 600 12px/1.3 var(--font-sans); /* Eyebrows above headings, set in capitals, in loam (daylight) or highlight (night). */
  --text-stat: 600 72px/1 var(--font-serif); /* Big numbers on slides and reports. Serif numerals; the unit can drop to h2. */
  --text-ref: 400 13px/1.4 var(--font-mono); /* Sponsor references, order numbers, print specs, source tags. */
}
.display-xl {
  font-family: var(--font-serif);
  font-size: 96px;
  line-height: 0.95;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.display {
  font-family: var(--font-serif);
  font-size: 64px;
  line-height: 1;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.h1 {
  font-family: var(--font-serif);
  font-size: 44px;
  line-height: 1.1;
  font-weight: 600;
  letter-spacing: -0.015em;
}
.h2 {
  font-family: var(--font-serif);
  font-size: 32px;
  line-height: 1.15;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.h3 {
  font-family: var(--font-serif);
  font-size: 24px;
  line-height: 1.25;
  font-weight: 600;
  letter-spacing: 0;
}
.quote {
  font-family: var(--font-serif);
  font-size: 36px;
  line-height: 1.2;
  font-weight: 400;
  letter-spacing: 0;
  font-style: italic;
}
.lede {
  font-family: var(--font-sans);
  font-size: 20px;
  line-height: 1.5;
  font-weight: 400;
  letter-spacing: 0;
}
.body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  font-weight: 400;
  letter-spacing: 0;
}
.body-strong {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  font-weight: 600;
  letter-spacing: 0;
}
.small {
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.45;
  font-weight: 400;
  letter-spacing: 0;
}
.label {
  font-family: var(--font-sans);
  font-size: 12px;
  line-height: 1.3;
  font-weight: 600;
  letter-spacing: 0.08em;
}
.stat {
  font-family: var(--font-serif);
  font-size: 72px;
  line-height: 1;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.ref {
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.4;
  font-weight: 400;
  letter-spacing: 0;
}
@font-face {
  font-family: "Source Serif 4";
  src: url("fonts/SourceSerif4-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Serif 4";
  src: url("fonts/SourceSerif4-Italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Source Serif 4";
  src: url("fonts/SourceSerif4-Semibold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Serif 4";
  src: url("fonts/SourceSerif4-SemiboldItalic.woff2") format("woff2");
  font-weight: 600;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Public Sans";
  src: url("fonts/PublicSans-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Public Sans";
  src: url("fonts/PublicSans-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Public Sans";
  src: url("fonts/PublicSans-Semibold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Public Sans";
  src: url("fonts/PublicSans-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("fonts/IBMPlexMono-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("fonts/IBMPlexMono-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
