/* ═══════════════════════════════════════════════════════════════
   Vanta Grow — Design System Foundation
   
   Palette drawn from the growing world: deep pine canopy,
   fern understory, pale sprout, warm soil, and a single
   bloom-orange reserved strictly for calls to action.
   ═══════════════════════════════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* ── Palette ─────────────────────────────────────────────── */
  --pine:       #1b4332;
  --pine-90:    rgba(27, 67, 50, 0.9);
  --fern:       #52796f;
  --fern-light: #74a898;
  --sprout:     #e9f5ec;
  --soil:       #fafaf7;
  --root:       #1a1a1a;
  --stone:      #6b7280;
  --stone-light:#d1d5db;
  --bloom:      #d95f3b;
  --bloom-dark: #b84a2a;
  --white:      #ffffff;

  /* ── Typography ──────────────────────────────────────────── */
  --font-display: 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-body:    Georgia, 'Times New Roman', serif;
  --font-ui:      'Segoe UI', system-ui, -apple-system, sans-serif;

  /* ── Scale ───────────────────────────────────────────────── */
  --text-xs:   0.75rem;    /* 12px */
  --text-sm:   0.875rem;   /* 14px */
  --text-base: 1rem;       /* 16px */
  --text-lg:   1.125rem;   /* 18px */
  --text-xl:   1.25rem;    /* 20px */
  --text-2xl:  1.625rem;   /* 26px */
  --text-3xl:  2.25rem;    /* 36px */
  --text-4xl:  3rem;       /* 48px */

  /* ── Spacing ─────────────────────────────────────────────── */
  --sp-1:  0.25rem;
  --sp-2:  0.5rem;
  --sp-3:  0.75rem;
  --sp-4:  1rem;
  --sp-5:  1.25rem;
  --sp-6:  1.5rem;
  --sp-8:  2rem;
  --sp-10: 2.5rem;
  --sp-12: 3rem;
  --sp-16: 4rem;
  --sp-20: 5rem;
  --sp-24: 6rem;

  /* ── Layout ──────────────────────────────────────────────── */
  --max-w:     1120px;
  --max-w-narrow: 720px;
  --radius:    6px;
  --radius-lg: 10px;

  /* ── Shadows ─────────────────────────────────────────────── */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow:    0 2px 10px rgba(0,0,0,0.07);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.1);
}

/* ── Reset & base ──────────────────────────────────────────── */

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-ui);
  font-size: var(--text-base);
  color: var(--root);
  background: var(--soil);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--fern);
  text-decoration: none;
  transition: color 0.15s;
}
a:hover { color: var(--pine); }

img { display: block; max-width: 100%; height: auto; }

::selection {
  background: var(--sprout);
  color: var(--pine);
}

/* ── Layout ────────────────────────────────────────────────── */

.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--sp-6);
}

.container-narrow {
  width: 100%;
  max-width: var(--max-w-narrow);
  margin: 0 auto;
  padding: 0 var(--sp-6);
}

/* ── Site header ───────────────────────────────────────────── */

.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--stone-light);
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-header .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.site-logo {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--pine);
  letter-spacing: -0.03em;
  text-decoration: none;
}
.site-logo:hover { color: var(--pine); text-decoration: none; }

.site-logo span {
  font-weight: 400;
  color: var(--fern);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: var(--sp-8);
}

.site-nav a {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--stone);
  letter-spacing: 0.01em;
}
.site-nav a:hover { color: var(--pine); text-decoration: none; }
.site-nav a.active { color: var(--pine); }

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--sp-2);
  color: var(--root);
}

@media (max-width: 640px) {
  .nav-toggle { display: block; }

  .site-nav {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--stone-light);
    flex-direction: column;
    padding: var(--sp-6);
    gap: var(--sp-4);
    box-shadow: var(--shadow);
  }
  .site-nav.open { display: flex; }
}

/* ── Site footer ───────────────────────────────────────────── */

.site-footer {
  border-top: 1px solid var(--stone-light);
  padding: var(--sp-10) 0;
  margin-top: var(--sp-16);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--sp-4);
}

.footer-copy {
  font-size: var(--text-sm);
  color: var(--stone);
}

.footer-nav {
  display: flex;
  gap: var(--sp-6);
}

.footer-nav a {
  font-size: var(--text-sm);
  color: var(--stone);
}

/* ── Utility ───────────────────────────────────────────────── */

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

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