/* ============================================
   base.css — Diagrammatic Design Tokens
   All colours, spacing, radii, shadows, and
   typography live here. landing.css and app.css
   consume tokens only — never raw values.
   ============================================ */

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

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

:root {
  /* ── Palette ── */
  --teal:       #156082;
  --teal-mid:   #1B7A9F;
  --teal-soft:  #5BA3B8;
  --teal-light: #EBF4F7;

  --text:       #1A1A2E;
  --text-muted: #4A5568;
  --bg:         #FAFBFC;
  --white:      #FFFFFF;
  --border:     #E2E8F0;

  --coral:  #E07A5F;
  --orange: #E07A3D;
  --amber:  #D4A03D;
  --sage:   #4A9E6B;

  /* ── Spacing (8px grid) ── */
  --space-1:  8px;
  --space-2:  16px;
  --space-3:  24px;
  --space-4:  32px;
  --space-5:  40px;
  --space-6:  48px;
  --space-8:  64px;
  --space-10: 80px;

  /* ── Radii ── */
  --radius-sm:   6px;
  --radius-md:   8px;
  --radius-lg:   12px;
  --radius-pill: 100px;

  /* ── Shadows ── */
  --shadow-sm:    0 1px 3px rgba(0,0,0,0.08);
  --shadow-md:    0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg:    0 8px 32px rgba(0,0,0,0.10);
  --shadow-hover: 0 12px 40px rgba(0,0,0,0.12);

  /* ── Typography ── */
  --font:      'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --text-xs:   11px;
  --text-sm:   13px;
  --text-base: 16px;
  --text-lg:   20px;
  --text-xl:   24px;
  --text-hero: clamp(2.5rem, 5vw, 3.5rem);
}

html {
  font-family: var(--font);
  font-size: var(--text-base);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; }
a { color: inherit; }
button, input, select, textarea { font-family: var(--font); }

:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  top: var(--space-2);
  left: var(--space-2);
  z-index: 1000;
  padding: 8px 12px;
  background: var(--white);
  color: var(--teal);
  border: 2px solid var(--teal);
  border-radius: var(--radius-sm);
  font-weight: 600;
  text-decoration: none;
  transform: translateY(calc(-100% - var(--space-3)));
}

.skip-link:focus { transform: translateY(0); }

.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;
}

.brand-mark__name { color: var(--teal); }
.brand-mark__suffix { color: var(--orange); }

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