/* ==========================================================================
   Born To Influence design system, flattened for static hosting.

   Compiled from the Claude Design export:
   _ds/born-to-influence-design-system-7e11105e.../{tokens,base,styles}.css

   Two deliberate changes from the export:

   1. Fonts are self-hosted WOFF2 instead of Google Fonts plus TTF. Didot went
      from 258KB of TTF to 46KB, Figtree no longer costs a third-party DNS
      lookup and TLS handshake before any text can paint. Approved 3 August.
   2. Didot Bold and Signarita Zhai are not loaded. Nothing on these pages uses
      them: every h1 sets font-weight 400 explicitly, and no page uses the
      script face. Add them back here if that ever changes.
   ========================================================================== */

/* ---------- Fonts, self-hosted ---------- */

/* Subset to Basic Latin + Latin-1 + smart punctuation. If copy ever needs a
   character outside that range it will fall back to Georgia, so re-subset
   rather than adding a stray glyph. */
@font-face {
  font-family: 'Didot';
  src: url('../fonts/Didot-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Didot';
  src: url('../fonts/Didot-Italic.woff2') format('woff2');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

/* Figtree ships as a variable font, so one file covers 400 through 700. */
@font-face {
  font-family: 'Figtree';
  src: url('../fonts/Figtree-Variable.woff2') format('woff2-variations'),
       url('../fonts/Figtree-Variable.woff2') format('woff2');
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Figtree';
  src: url('../fonts/Figtree-Italic.woff2') format('woff2-variations'),
       url('../fonts/Figtree-Italic.woff2') format('woff2');
  font-weight: 300 900;
  font-style: italic;
  font-display: swap;
}

/* ---------- Colour tokens ---------- */

:root {
  --navy-950: #010d1e;
  --navy-900: #041925;
  --navy-800: #0d2436;
  --navy-700: #1b3a4f;
  --indigo-900: #18163c;
  --indigo-700: #2b2860;
  --cream-50: #fffaee;
  --cream-100: #fff4cf;
  --cream-200: #f5e6ae;
  --cream-300: #ead9a0;
  --gold-600: #c9a24a;
  --gold-400: #e0c477;
  --gold-300: #e8d59a;
  --steel-600: #2f5f7d;
  --gray-900: #1e1e1e;
  --gray-600: #3a3a3a;
  --gray-400: #8a8483;
  --gray-200: #d9d2d2;
  --gray-100: #efeae7;
  --white: #ffffff;

  --surface-page: var(--white);
  --surface-cream: var(--cream-100);
  --surface-cream-soft: var(--cream-50);
  --surface-inverse: var(--navy-900);
  --surface-inverse-deep: var(--navy-950);
  --surface-accent: var(--indigo-900);
  --surface-card: var(--white);
  --surface-card-inverse: var(--navy-800);

  --text-primary: var(--navy-900);
  --text-inverse: var(--white);
  --text-muted: var(--gray-600);
  --text-muted-inverse: var(--gray-200);
  --text-on-cream: var(--navy-900);

  --accent-primary: var(--cream-100);
  --accent-primary-strong: var(--gold-600);
  --accent-eyebrow: var(--gold-400);
  --accent-numeral: var(--steel-600);
  --accent-secondary: var(--indigo-900);

  --border-subtle: var(--gray-200);
  --border-inverse: rgba(255, 255, 255, 0.14);
  --focus-ring: var(--gold-600);
  --link: var(--indigo-900);
  --link-hover: var(--gold-600);
}

/* ---------- Typography tokens ---------- */

:root {
  --font-display: 'Didot', 'Bodoni Moda', Georgia, serif;
  --font-sans: 'Figtree', -apple-system, BlinkMacSystemFont, sans-serif;

  --size-display-xl: clamp(48px, 7vw, 104px);
  --size-display-lg: clamp(40px, 5vw, 72px);
  --size-display-md: clamp(32px, 4vw, 48px);
  --size-headline: clamp(24px, 2.6vw, 32px);
  --size-subhead: 22px;
  --size-body-lg: 19px;
  --size-body: 17px;
  --size-body-sm: 15px;
  --size-caption: 13px;
  --size-eyebrow: 13px;

  --lh-tight: 1.05;
  --lh-snug: 1.2;
  --lh-normal: 1.45;
  --lh-relaxed: 1.7;

  --ls-eyebrow: 0.18em;
  --ls-display: 0.01em;

  --weight-regular: 400;
  --weight-medium: 500;
  --weight-semibold: 600;
  --weight-bold: 700;
}

/* ---------- Spacing tokens ---------- */

:root {
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 96px;
  --space-10: 128px;
  --container-max: 1200px;
  --container-narrow: 760px;
}

/* ---------- Effect tokens ---------- */

:root {
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-pill: 999px;
  --shadow-sm: 0 2px 8px rgba(4, 25, 37, 0.08);
  --shadow-md: 0 8px 24px rgba(4, 25, 37, 0.12);
  --shadow-lg: 0 24px 56px rgba(4, 25, 37, 0.18);
  --shadow-inverse: 0 20px 48px rgba(0, 0, 0, 0.35);
  --ease-standard: cubic-bezier(.4, 0, .2, 1);
  --ease-out: cubic-bezier(0, 0, .2, 1);
  --duration-fast: 150ms;
  --duration-base: 240ms;
  --duration-slow: 420ms;
}

/* ---------- Base ---------- */

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--text-primary);
  background: var(--surface-page);
  font-size: var(--size-body);
  line-height: var(--lh-normal);
}

h1, h2, h3 {
  font-family: var(--font-display);
  margin: 0;
  font-weight: var(--weight-semibold);
  letter-spacing: var(--ls-display);
}

a { color: var(--link); text-decoration: none; }
a:hover { color: var(--link-hover); }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* Keyboard focus stays visible. The design never styled this and the browser
   default is nearly invisible on navy. */
:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
}
