/* GENERATED FILE — do not edit. tokens.css is built from the DESIGN.md
   frontmatter by scripts/tokens.mjs; change the token there and run
   `node scripts/tokens.mjs`. `--check --strict` fails on drift. */

:root {
  color-scheme: light;
  --color-heading: #111827;
  --color-body: #4b5563;
  --color-muted: #6b7280;
  --color-bg: #ffffff;
  --color-bg-muted: #f9fafb;
  --color-card: #ffffff;
  --color-accent: #111827;
  --color-on-accent: #ffffff;
  --color-link: #10b380;
  --color-on-link: #101312;
  --color-error-bg: #fef2f2;
  --color-error-fg: #991b1b;
  --color-border: #e5e7eb;
  --color-border-strong: #d1d5db;
  --surface-soft: #f6f7f9;
  --kind-guide: #506d59;
  --kind-feature: #0b7f5b;
  --kind-faq: #a16207;
  --kind-post: #4a6a89;
  --color-chart: #506d59;
  --band-forest: #283b2f;
  --band-footer: #0f1210;
  /* the footer column label — 5.97:1 on */
  --band-ink-muted: rgba(247, 250, 240, 0.55);
  --glass-rim: rgba(255, 255, 255, 0.45);
  --glass-ink: #3b4953;
  /* measured, not picked — 0.52 bottomed at 2.85 over the footer band, 0.70 first cleared 4.5, 0.75 buys margin */
  --glass-veil: rgba(247, 250, 240, 0.75);
  --glass-hover: rgba(59, 73, 83, 0.18);
  --glass-fill: rgba(255, 255, 255, 0.14);
  --glass-scrim: rgba(8, 10, 14, 0.92);
  --radius-pill: 999px;
  --radius-bar: 2.5rem;
  --radius-xl: calc(var(--radius-bar) / 2);
  --radius-lg: calc(var(--radius-bar) * 0.4);
  --radius-md: calc(var(--radius-bar) * 0.3);
  --radius-sm: calc(var(--radius-bar) * 0.25);
  --radius-xs: calc(var(--radius-bar) * 0.15);
  --radius-hair: calc(var(--radius-bar) * 0.05);
  --radius-circle: 50%;
  --radius-device: calc(var(--radius-bar) * 1.05);
  --radius-device-screen: calc(var(--radius-bar) * 0.8);
  --space-3xs: 0.125rem;
  --space-2xs: 0.25rem;
  --space-xs: 0.5rem;
  --space-sm: 0.75rem;
  --space-md: 1rem;
  --space-lg: 1.25rem;
  --space-xl: 1.5rem;
  --space-2xl: 2rem;
  --space-3xl: 2.5rem;
  --space-4xl: 3rem;
  --space-5xl: 4rem;
  --space-6xl: 5rem;
  --space-7xl: 6rem;
  --container: 72rem;
  --type-scale: 1.1;
  --fs-micro: calc(0.6875rem * var(--type-scale));
  --fs-label: calc(0.75rem * var(--type-scale));
  --fs-caption: calc(0.875rem * var(--type-scale));
  --fs-base: calc(1rem * var(--type-scale));
  --fs-lead: calc(1.125rem * var(--type-scale));
  --fs-h4: calc(1.25rem * var(--type-scale));
  --fs-h3: calc(1.375rem * var(--type-scale));
  --fs-stat: calc(1.75rem * var(--type-scale));
  --fs-price: calc(2.25rem * var(--type-scale));
  --fs-title: calc(clamp(1.75rem, 4vw, 2.75rem) * var(--type-scale));
  --fs-h1: calc(clamp(2rem, 4vw, 2.5rem) * var(--type-scale));
  --fs-hero: calc(min(14.5vw, 20dvh) * var(--type-scale));
  --fs-ghost: calc(clamp(4.5rem, 16vw, 10rem) * var(--type-scale));
  --fs-watermark: calc(min(14.5vw, 20dvh) * var(--type-scale));
  --lh-tight: 1;
  --lh-heading: 1.15;
  --lh-ui: 1.3;
  --lh-body: 1.5;
  --lh-prose: 1.65;
  --fw-regular: 400;
  --fw-bold: 700;
  --track-tight: -0.02em;
  --track-none: 0em;
  --track-snug: 0.08em;
  --track-wide: 0.18em;
  --focus-w: 2px;
  --focus-offset: 2px;
  --focus-color: var(--color-link);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in: cubic-bezier(0.4, 0, 1, 1);
  --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-fast: 0.18s;
  --dur-base: 0.28s;
  --dur-slow: 0.7s;
  --dur-nav: 0.8s;
  --glass-filter: blur(16px) saturate(1.15);
  /* the lift — a white gradient under the grain, so the flat tint reads as lit glass */
  --glass-sheen: linear-gradient(to bottom right, rgba(255, 255, 255, 0.42), rgba(255, 255, 255, 0.14) 55%, rgba(255, 255, 255, 0.05));
  /* the ONE frame width — fixed, not fluid, so the rim holds against the curve */
  --ring-w: 2px;
  --corner-shape: squircle;
  --bar-control: 2.75rem;
  --bar-inset: 1rem;
  --chrome-offset: 5.5rem;
  --mark-radius: 22.5%;
  /* never define this empty — Ghost GS051 drops the page to the default serif */
  --font-sans: var(--gh-font-body, "Winky Sans", "Winky Sans Fallback", "Fredoka", "Fredoka Fallback", Figtree, "Figtree Fallback", system-ui, sans-serif);
  /* GS051 reads the first stylesheet only, so both Ghost font hooks must live in tokens.css */
  --font-heading: var(--gh-font-heading, var(--font-sans));
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --color-bg: #101312;
  --color-bg-muted: #161a18;
  --color-heading: #f2f5ec;
  --color-body: #b9c1b7;
  --color-muted: #8d968c;
  --color-card: #171b19;
  --color-accent: #f7faf0;
  --color-on-accent: #101312;
  --color-link: #10b380;
  --color-on-link: #101312;
  --color-error-bg: #2a1512;
  --color-error-fg: #fca5a5;
  --color-border: #272c29;
  --color-border-strong: #3a403c;
  --surface-soft: #1a1e1c;
  --kind-guide: #a7c6ae;
  --kind-feature: var(--color-link);
  --kind-faq: #fbbf24;
  --kind-post: #8fb0cf;
  --color-chart: #a7c6ae;
  --band-forest: #24382c;
  --band-footer: #171d18;
  --glass-ink: #f7faf0;
  /* night flips ink AND veil — a cream veil reads as a white slab at night */
  --glass-veil: rgba(20, 24, 22, 0.7);
  --glass-hover: rgba(255, 255, 255, 0.14);
  --glass-sheen: linear-gradient(to bottom right, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.045) 55%, rgba(255, 255, 255, 0.015));
}

@media (prefers-reduced-transparency: reduce) {
  :root {
    --glass-veil: rgba(247, 250, 240, 0.94);
    --glass-sheen: none;
  }

  :root[data-theme="dark"] {
    --glass-veil: rgba(16, 19, 18, 0.94);
  }
}
