/* First Wave Foundation — colors, type, and core tokens
   Import this once at the top of any HTML file:
     <link rel="stylesheet" href="../colors_and_type.css" />
*/

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

/* Inter — brand-provided variable font (supplied by First Wave Foundation) */
@font-face {
  font-family: 'Inter';
  src: url('fonts/Inter-VariableFont_opsz_wght.ttf') format('truetype-variations'),
       url('fonts/Inter-VariableFont_opsz_wght.ttf') format('truetype');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  /* ── Brand colors ───────────────────────────────────────── */
  --color-deep-ocean-black: #111111;
  --color-coastal-navy:     #1F2F3A;
  --color-slate-gray:       #4A525A;
  --color-sandstone:        #D8D0C8;
  --color-ocean-mist:       #B9D1DB;
  --color-white:            #FFFFFF;

  /* ── Semantic colors (light surface) ────────────────────── */
  --bg:         var(--color-white);
  --bg-soft:    #FAF8F5;             /* whisper of sandstone */
  --bg-warm:    var(--color-sandstone);
  --bg-inverse: var(--color-coastal-navy);

  --fg:         var(--color-deep-ocean-black);
  --fg-1:       var(--color-deep-ocean-black);
  --fg-2:       var(--color-slate-gray);
  --fg-3:       #7A8088;
  --fg-on-dark: var(--color-white);
  --fg-on-dark-2: rgba(255,255,255,0.72);
  --fg-on-dark-3: rgba(255,255,255,0.50);

  --accent:        var(--color-ocean-mist);
  --accent-strong: #8DB8C7;          /* mist, darker for AA on white */

  --border:       rgba(74,82,90,0.12);
  --border-strong:rgba(74,82,90,0.22);
  --border-dark:  rgba(185,209,219,0.30);

  /* ── Type families ──────────────────────────────────────── */
  --font-display: 'Montserrat', 'Avenir Next', 'Neue Haas Grotesk', system-ui, sans-serif;
  --font-body:    'Inter', 'Avenir Next', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono:    'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  /* ── Type scale (fluid-ish, desktop) ────────────────────── */
  --fs-xs:   12px;
  --fs-sm:   14px;
  --fs-base: 16px;
  --fs-md:   18px;
  --fs-lg:   20px;
  --fs-xl:   24px;
  --fs-2xl:  32px;
  --fs-3xl:  44px;
  --fs-4xl:  60px;
  --fs-5xl:  80px;

  --lh-tight: 1.1;
  --lh-snug:  1.25;
  --lh-body:  1.6;
  --lh-loose: 1.75;

  --tracking-tight:  -0.02em;
  --tracking-normal: 0;
  --tracking-wide:   0.04em;
  --tracking-eyebrow:0.14em;

  /* ── Spacing scale (4px base) ───────────────────────────── */
  --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;

  /* ── Radii ──────────────────────────────────────────────── */
  --radius-xs:  4px;
  --radius-sm:  8px;     /* buttons, inputs */
  --radius-md:  12px;    /* cards, images */
  --radius-lg:  20px;    /* hero/feature blocks */
  --radius-pill: 999px;
  --radius-full: 9999px;

  /* ── Shadows (cool, never black) ────────────────────────── */
  --shadow-1: 0 1px 2px rgba(31,47,58,0.06), 0 4px 16px rgba(31,47,58,0.06);
  --shadow-2: 0 4px 8px rgba(31,47,58,0.08), 0 16px 32px rgba(31,47,58,0.10);

  /* ── Motion ─────────────────────────────────────────────── */
  --ease-out:   cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-in-out:cubic-bezier(0.4, 0, 0.2, 1);
  --dur-fast:   150ms;
  --dur-base:   200ms;
  --dur-slow:   400ms;
  --dur-hero:   800ms;

  /* ── Layout ─────────────────────────────────────────────── */
  --container-max: 1200px;
  --container-pad: 24px;
}

/* ── Base ─────────────────────────────────────────────────── */
html, body { background: var(--bg); color: var(--fg); }
body {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ── Semantic type classes (use these, not raw font sizes) ─ */
.eyebrow {
  font-family: var(--font-display);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--fg-2);
}

.h1, h1 {
  font-family: var(--font-display);
  font-size: var(--fs-5xl);
  font-weight: 600;
  line-height: var(--lh-tight);
  letter-spacing: var(--tracking-tight);
  color: var(--fg-1);
  text-wrap: balance;
}
.h2, h2 {
  font-family: var(--font-display);
  font-size: var(--fs-3xl);
  font-weight: 600;
  line-height: var(--lh-snug);
  letter-spacing: var(--tracking-tight);
  color: var(--fg-1);
  text-wrap: balance;
}
.h3, h3 {
  font-family: var(--font-display);
  font-size: var(--fs-2xl);
  font-weight: 600;
  line-height: var(--lh-snug);
  color: var(--fg-1);
}
.h4, h4 {
  font-family: var(--font-display);
  font-size: var(--fs-xl);
  font-weight: 600;
  line-height: var(--lh-snug);
  color: var(--fg-1);
}
.lead {
  font-family: var(--font-body);
  font-size: var(--fs-lg);
  line-height: var(--lh-body);
  color: var(--fg-2);
  text-wrap: pretty;
}
.p, p {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: var(--lh-body);
  color: var(--fg-2);
  text-wrap: pretty;
}
.small {
  font-size: var(--fs-sm);
  color: var(--fg-2);
}
.caption {
  font-size: var(--fs-xs);
  color: var(--fg-3);
  letter-spacing: 0.02em;
}
.mono, code, kbd {
  font-family: var(--font-mono);
  font-size: 0.95em;
}

a {
  color: var(--fg-1);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur-base) var(--ease-in-out);
}
a:hover { border-bottom-color: var(--accent); }

/* ── Reduce motion ───────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}
