/* ==========================================================================
   Design tokens: every color, font and spacing value for the site.
   To swap the brand palette, change only the values in this file.

   PALETTE: Gary Foster Forward, approved by Gary 2026-12-03.
   Source: GPT_Playground/Brand_Management/Gary_Foster/brand/Color_Palette.md
   Use only these five colors. Paper dominant, Pine for primary actions,
   Brick sparingly, Ink on Sage for card text, underline links in running text.
   If colors change, keep WCAG AA contrast (4.5:1 for text).
   ========================================================================== */

/* Brand fonts, self-hosted (src/fonts/). SIL Open Font License 1.1: see the
   LICENSE-*.txt files next to the fonts. From Fontsource v5.3.1 (npm), Latin
   subset, variable weight 200-900, upright only (the site uses no italics).
   To change fonts: replace the .woff2 files, these blocks, --font-body /
   --font-heading below, and the two preload links in index.html and 404.html. */
@font-face {
  font-family: "Source Serif 4";
  src: url("../fonts/source-serif-4-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("../fonts/source-sans-3-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* Palette (the only colors on the site) */
  --paper: #faf7f0;
  --ink: #172b29;
  --pine: #245744;
  --brick: #9d4937;
  --sage: #e2eadf;

  /* Roles */
  --color-bg: var(--paper);           /* main background */
  --color-surface: var(--sage);       /* venture cards, subtle breaks */
  --color-border: var(--sage);        /* section dividers (decorative) */
  --color-text: var(--ink);           /* 13.88:1 on Paper, 12.07:1 on Sage */
  --color-text-muted: var(--ink);     /* palette has no gray: nav uses Ink */
  --color-accent: var(--pine);        /* buttons, links: 7.78:1 on Paper, 6.77:1 on Sage */
  --color-accent-hover: var(--ink);
  --color-on-accent: var(--paper);    /* text on Pine 7.78:1, on Ink 13.88:1 */
  --color-highlight: var(--brick);    /* tagline, small accents: 5.70:1 on Paper */
  --color-focus: var(--brick);        /* focus ring: 5.70:1 on Paper, 4.96:1 on Sage */
  --color-footer-bg: var(--ink);
  --color-footer-text: var(--paper);  /* 13.88:1 */

  /* Type: brand fonts first, system fallbacks after */
  --font-body: "Source Sans 3", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-heading: "Source Serif 4", ui-serif, "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;

  --text-xs: 0.875rem;                          /* 14px: nav, eyebrow (uppercase) */
  --text-sm: 1rem;                              /* 16px */
  --text-base: 1.125rem;                        /* 18px (Source Sans runs small) */
  --text-lg: clamp(1.125rem, 1rem + 0.5vw, 1.3125rem);
  --text-xl: clamp(1.5rem, 1.25rem + 1vw, 2rem);
  --text-2xl: clamp(2.25rem, 1.6rem + 3vw, 3.5rem);
  --text-xl-plus: clamp(1.75rem, 1.4rem + 1.5vw, 2.5rem);  /* section titles */
  --text-hero: clamp(2.75rem, 1.5rem + 5vw, 5rem);          /* hero name */
  --leading-tight: 1.15;
  --leading-body: 1.65;
  --weight-normal: 400;
  --weight-medium: 600;

  /* Spacing scale */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4.5rem;
  --space-9: 6rem;

  /* Layout */
  --measure: 40rem;             /* comfortable reading width */
  --page-max: 68rem;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --radius: 0.375rem;
  --focus-width: 3px;
}
