/* Good Ground design tokens. This file is the source of truth for color, type, space and shape. */

@font-face {
  font-family: 'Libre Franklin';
  src: url('fonts/libre-franklin-latin-wght-normal.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Libre Franklin';
  src: url('fonts/libre-franklin-latin-wght-italic.woff2') format('woff2');
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

:root, [data-theme="light"] {
  --brand-red: #af1126;
  --brand-white: #ffffff;
  --brand-black: #111111;
  --surface: var(--brand-white);
  --surface-alt: #f4f4f4;
  --ink: var(--brand-black);
  --ink-muted: #5c5c5c;
  --line: #e2e2e2;
  --line-strong: #707070;
  --action: var(--brand-red);
  --action-hover: #8f1122;
  --on-action: var(--brand-white);
  --accent: var(--brand-red);
  --accent-soft: #f9ecee;
  --error: var(--accent);
  --focus: var(--brand-black);
  --logo: var(--brand-red);
  --focus-ring: 0 0 0 2px #ffffff, 0 0 0 5px #111111;
}

[data-theme="dark"] {
  --surface: var(--brand-black);
  --surface-alt: #222222;
  --ink: var(--brand-white);
  --ink-muted: #b5b5b5;
  --line: #333333;
  --line-strong: #8c8c8c;
  --action: var(--brand-white);
  --action-hover: #e2e2e2;
  --on-action: var(--brand-black);
  --accent: var(--brand-white);
  --accent-soft: #222222;
  --focus: var(--brand-white);
  --logo: var(--brand-white);
  --focus-ring: 0 0 0 2px #111111, 0 0 0 5px #ffffff;
  --error: var(--accent);
}

[data-theme="red"] {
  --surface: var(--brand-red);
  --surface-alt: #991123;
  --ink: var(--brand-white);
  --ink-muted: #f3dbde;
  --line: #c4404f;
  --line-strong: #f3dbde;
  --action: var(--brand-white);
  --action-hover: #f9ecee;
  --on-action: var(--brand-red);
  --accent: var(--brand-white);
  --accent-soft: #8f1122;
  --focus: var(--brand-white);
  --logo: var(--brand-white);
  --focus-ring: 0 0 0 2px #af1126, 0 0 0 5px #ffffff;
  --error: var(--accent);
}

:root {
  --space-4: 4px;
  --space-8: 8px;
  --space-12: 12px;
  --space-16: 16px;
  --space-24: 24px;
  --space-32: 32px;
  --space-48: 48px;
  --space-64: 64px;
  --space-96: 96px;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --content-width: 1120px;
  --text-width: 680px;
  --tap-target: 48px;
  --font-sans: "Libre Franklin", "Franklin Gothic Medium", "Helvetica Neue", Arial, sans-serif;
}

.display { font-family: var(--font-sans); font-size: 56px; line-height: 60px; font-weight: 800; letter-spacing: -0.02em; }
/* The hero of a marketing page (the brand site's first screen): about 4x the body, as the leaders set theirs
   (data/market/brand_site_refs/FINDINGS.md, pattern 6; the owner, 2026-11-03: bigger headlines). */
.display-hero { font-family: var(--font-sans); font-size: 76px; line-height: 78px; font-weight: 800; letter-spacing: -0.025em; }
.heading-1 { font-family: var(--font-sans); font-size: 40px; line-height: 46px; font-weight: 800; letter-spacing: -0.015em; }
.heading-2 { font-family: var(--font-sans); font-size: 28px; line-height: 34px; font-weight: 700; letter-spacing: -0.01em; }
.heading-3 { font-family: var(--font-sans); font-size: 21px; line-height: 28px; font-weight: 700; }
.lead { font-family: var(--font-sans); font-size: 21px; line-height: 32px; font-weight: 400; }
.body { font-family: var(--font-sans); font-size: 18px; line-height: 28px; font-weight: 400; }
.body-small { font-family: var(--font-sans); font-size: 16px; line-height: 24px; font-weight: 400; }
.label { font-family: var(--font-sans); font-size: 16px; line-height: 20px; font-weight: 600; }
.caption { font-family: var(--font-sans); font-size: 14px; line-height: 20px; font-weight: 500; letter-spacing: 0.01em; }

/* Phones: the two biggest headings step down. Text styles never shrink. */
@media (max-width: 639px) {
  .display { font-size: 40px; line-height: 46px; }
  .display-hero { font-size: 46px; line-height: 50px; }
  .heading-1 { font-size: 32px; line-height: 38px; }
}
