/* Ultima Trail — generated from tokens.json */
:root, [data-theme="light"] {
  --black: #0f1010; /* Raw Treepoints 'Black'. Text on light backgrounds; darkest nav/footer. */
  --green-black: #141a19; /* Raw 'Green-black'. Dark section and calculator-panel backgrounds; the dark theme's page. */
  --light-black: #161a1a; /* Raw 'Light black'. Alternate dark background to separate stacked dark sections. */
  --dark-green: #233433; /* Raw 'Dark Green'. Raised dark surfaces. */
  --primary-green: #1b7a66; /* Raw 'Primary Green'. Brand colour: primary buttons, banners, colour sections. */
  --primary-green-deep: #156352; /* Derived: pressed/hover state of primary-green; link text on alabaster where primary-green is 4.3:1. */
  --accent-green: #24a375; /* Raw 'Accent Green'. Small highlights, icons, step labels, links on dark. 3.2:1 on white: icons and 24px+ text only. */
  --accent-red: #e3645b; /* Raw 'Accent Red'. Alternate accent: 'almost full' badges, the logo capstone. Put black text on it, never white (3.4:1). */
  --alabaster: #ede9dd; /* Raw 'Alabaster'. Light sand sections, the neutral gap between green sections. */
  --josefine: #f7f6f3; /* Raw 'Josefine'. Lightest background; separates light sections. */
  --white: #ffffff; /* Raw 'White'. Cards, text on dark, strokes on dark buttons. */
  --gray-50: #878888; /* Raw '50%' black. Decorative strokes and disabled fills only — 3.6:1, never body text. */
  --surface: var(--white); /* Default page and card background. */
  --surface-alt: var(--josefine); /* Alternating section background; listing-page canvas behind cards. */
  --surface-sand: var(--alabaster); /* Warm feature sections (press, testimonials, 'how it works'). */
  --surface-inverse: var(--green-black); /* Dark hero-adjacent bands and footer in both themes. */
  --surface-brand: var(--primary-green); /* Full-bleed brand sections (partners, CTA band). Text on it: on-brand. */
  --ink: var(--black); /* Headings and body text on surface, surface-alt and surface-sand. */
  --ink-muted: #454646; /* Secondary text: subtitles, event meta. 9:1 light, 9:1 dark. */
  --ink-subtle: #5f6060; /* Tertiary text: captions, timestamps, placeholder. ≥4.5:1 on every surface incl. sand. */
  --on-brand: var(--white); /* Text and icons on surface-brand and action (5.2:1). */
  --on-inverse: var(--josefine); /* Text on surface-inverse. */
  --action: var(--primary-green); /* Primary button fill in both themes (white label stays 5.2:1). */
  --action-hover: var(--primary-green-deep); /* Primary button hover/pressed. */
  --link: var(--primary-green-deep); /* Inline links and text buttons. */
  --highlight: var(--accent-green); /* Step overlines, selected chip ring, map pins, focus ring. */
  --alert: var(--accent-red); /* 'Few spots left', sold-out ribbons. Black text on it. */
  --border: #e2ded3; /* Hairline dividers, card outlines on surface-alt, input borders (with ink-subtle on focus). */
  --border-strong: #878888; /* Input and outline-button borders: 3:1 against surface. */
  --elevation-1: 0 1px 3px rgba(15,16,16,0.08); /* Resting cards on surface-alt. */
  --elevation-2: 0 4px 12px rgba(15,16,16,0.08); /* Hovered cards, search bar. */
  --elevation-3: 0 8px 24px rgba(15,16,16,0.12); /* Dropdowns, popovers. */
  --elevation-4: 0 16px 40px rgba(15,16,16,0.16); /* Modals, sticky mobile action bar. */
}
[data-theme="dark"] {
  --surface: var(--green-black);
  --surface-alt: var(--light-black);
  --surface-sand: var(--dark-green);
  --surface-inverse: var(--black);
  --surface-brand: var(--primary-green);
  --ink: var(--josefine);
  --ink-muted: #b5bab9;
  --ink-subtle: #a3aaa9;
  --on-brand: var(--white);
  --on-inverse: var(--josefine);
  --action: var(--primary-green);
  --action-hover: var(--primary-green-deep);
  --link: var(--accent-green);
  --highlight: var(--accent-green);
  --alert: var(--accent-red);
  --border: #2c3b3a;
  --border-strong: #6e7776;
}
:root {
  --space-1: 4px; /* Icon-to-label gap. */
  --space-2: 8px; /* Chip padding, tight stacks. */
  --space-3: 12px; /* Input padding, list gaps. */
  --space-4: 16px; /* Card padding, mobile gutter. */
  --space-6: 24px; /* Grid gap between event cards. */
  --space-8: 32px; /* Section inner spacing, desktop gutter. */
  --space-12: 48px; /* Between blocks inside a section. */
  --space-16: 64px; /* Section padding, mobile. */
  --space-24: 96px; /* Section padding, desktop. */
  --radius-sm: 6px; /* Chips, badges, small thumbnails. */
  --radius-md: 10px; /* Buttons and inputs (Treepoints button radius). */
  --radius-lg: 16px; /* Cards, panels, images, app icon (Treepoints 'Corners-16'). */
  --radius-pill: 999px; /* Avatars, count pills, the search bar on mobile. */
  --font-display: "Bricolage Grotesque", "Instrument Sans", system-ui, sans-serif;
  --font-sans: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-serif: "Instrument Serif", Georgia, serif;
  --text-h1: 800 72px/1 var(--font-display); /* Hero headline only. Mobile: use h3. */
  --text-h2: 800 60px/1.02 var(--font-display); /* Landing section titles. */
  --text-h3: 700 48px/1.08 var(--font-display); /* Page titles on listing and event pages. */
  --text-h4: 700 34px/1.12 var(--font-display); /* Event title on detail page; mobile section titles. */
  --text-h5: 700 24px/1.25 var(--font-display); /* Sub-sections, modal titles. */
  --text-h6: 700 20px/1.3 var(--font-display); /* Event card titles. */
  --text-h7: 600 18px/1.35 var(--font-display); /* Small headings, sidebar blocks. */
  --text-h8: 600 16px/1.4 var(--font-display); /* List headers, form groups. */
  --text-h9: 600 14px/1.4 var(--font-sans); /* Uppercase label heading. */
  --text-body-big: 400 20px/1.55 var(--font-sans); /* Lead paragraphs, hero subline. */
  --text-body: 400 16px/1.6 var(--font-sans); /* Paragraphs and long descriptions. */
  --text-body-small: 400 14px/1.55 var(--font-sans); /* Card meta, form help, dense UI. */
  --text-caption: 600 12px/1.4 var(--font-sans); /* Captions, chip labels, counts. */
  --text-overline: 600 10px/1.4 var(--font-sans); /* Uppercase eyebrow above headings; colour highlight. */
  --text-button: 600 14px/1.2 var(--font-sans); /* Large button labels (10px on small buttons). */
  --text-serif-quote: 400 40px/1.15 var(--font-serif); /* Pull quotes and testimonials. */
  --text-serif-lead: 400 28px/1.25 var(--font-serif); /* Editorial subtitles; one accent word in a display heading may switch to this face in italic. */
  --text-serif-small: italic 400 18px/1.4 var(--font-serif); /* Small editorial labels and bylines. */
}
.h1 {
  font-family: var(--font-display);
  font-size: 72px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: -0.025em;
}
.h2 {
  font-family: var(--font-display);
  font-size: 60px;
  line-height: 1.02;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.h3 {
  font-family: var(--font-display);
  font-size: 48px;
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: -0.015em;
}
.h4 {
  font-family: var(--font-display);
  font-size: 34px;
  line-height: 1.12;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.h5 {
  font-family: var(--font-display);
  font-size: 24px;
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.h6 {
  font-family: var(--font-display);
  font-size: 20px;
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: -0.005em;
}
.h7 {
  font-family: var(--font-display);
  font-size: 18px;
  line-height: 1.35;
  font-weight: 600;
  letter-spacing: -0.005em;
}
.h8 {
  font-family: var(--font-display);
  font-size: 16px;
  line-height: 1.4;
  font-weight: 600;
  letter-spacing: 0em;
}
.h9 {
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.4;
  font-weight: 600;
  letter-spacing: 0.06em;
}
.body-big {
  font-family: var(--font-sans);
  font-size: 20px;
  line-height: 1.55;
  font-weight: 400;
  letter-spacing: 0;
}
.body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  font-weight: 400;
  letter-spacing: 0;
}
.body-small {
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.55;
  font-weight: 400;
  letter-spacing: 0;
}
.caption {
  font-family: var(--font-sans);
  font-size: 12px;
  line-height: 1.4;
  font-weight: 600;
  letter-spacing: 0;
}
.overline {
  font-family: var(--font-sans);
  font-size: 10px;
  line-height: 1.4;
  font-weight: 600;
  letter-spacing: 0.08em;
}
.button {
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: 0;
}
.serif-quote {
  font-family: var(--font-serif);
  font-size: 40px;
  line-height: 1.15;
  font-weight: 400;
  letter-spacing: -0.01em;
}
.serif-lead {
  font-family: var(--font-serif);
  font-size: 28px;
  line-height: 1.25;
  font-weight: 400;
  letter-spacing: 0;
}
.serif-small {
  font-family: var(--font-serif);
  font-size: 18px;
  line-height: 1.4;
  font-weight: 400;
  letter-spacing: 0;
  font-style: italic;
}
@font-face {
  font-family: "Bricolage Grotesque";
  src: url("fonts/BricolageGrotesque-Variable.ttf") format("truetype");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("fonts/InstrumentSans-Variable.ttf") format("truetype");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("fonts/InstrumentSerif-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("fonts/InstrumentSerif-Italic.ttf") format("truetype");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
