/* MyEcho type system — the one place font families, the size scale, weights and line heights are defined.
   Every page links this file (before its own <style>) and sets sizes with these tokens, never raw px.

   Scale (16px root): 100 = 11px · 200 = 12px · 300 = 13px · 400 = 14px · 500 = 16px · 600 = 18px
                      700 = 22px · 800 = 28px · 900 = fluid 32→52px (section titles) · 1000 = fluid 40→70px (hero)
   Rules: body copy is never below --fs-400 (app) / --fs-500 (marketing); --fs-100 is only for short uppercase
   labels; form controls use --fs-500 on small screens so iOS doesn't zoom on focus. */

:root {
  --font-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --fs-100: 0.6875rem;
  --fs-200: 0.75rem;
  --fs-300: 0.8125rem;
  --fs-400: 0.875rem;
  --fs-500: 1rem;
  --fs-600: 1.125rem;
  --fs-700: 1.375rem;
  --fs-800: 1.75rem;
  --fs-900: clamp(2rem, 1.35rem + 2.4vw, 3.25rem);
  --fs-1000: clamp(2.5rem, 1.55rem + 3.8vw, 4.375rem);

  --fw-regular: 400;
  --fw-medium: 500;
  --fw-semibold: 600;
  --fw-bold: 700;

  --lh-tight: 1.12;
  --lh-snug: 1.3;
  --lh-body: 1.6;
  --lh-loose: 1.75;

  --tracking-label: 0.1em;
}

/* Sensible defaults a page can override. */
body { font-family: var(--font-sans); line-height: var(--lh-body); -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
h1, h2, h3, h4 { line-height: var(--lh-tight); text-wrap: balance; }
code, kbd, pre { font-family: var(--font-mono); }
@media (max-width: 640px) {
  input, select, textarea { font-size: max(var(--fs-500), 1em); }
}
