:root {
  /* Base neutrals */
  --white: #FFFFFF;
  --paper: #FAFAF9;          /* soft white background */
  --canvas: #F4F5F7;         /* section alt background */
  --mist: #E8EAED;           /* subtle borders */
  --line: #D6DAE0;           /* standard borders */
  --muted: #8E96A0;          /* secondary text */
  --ink-soft: #4A5360;       /* tertiary text */
  --ink: #1E2430;            /* primary text, dark slate */
  --ink-deep: #0F131B;       /* hero/emphasis */

  /* Slate scale */
  --slate-50: #F4F5F7;
  --slate-100: #E8EAED;
  --slate-200: #D6DAE0;
  --slate-400: #8E96A0;
  --slate-600: #4A5360;
  --slate-800: #1E2430;
  --slate-900: #0F131B;

  /* Emerald — trust / status accent only */
  --emerald-50: #ECFDF5;
  --emerald-100: #D1FAE5;
  --emerald-500: #059669;
  --emerald-600: #047857;
  --emerald-700: #065F46;

  /* Functional */
  --success: #059669;
  --warning: #B45309;
  --error: #B91C1C;

  /* Primary CTA */
  --cta-bg: var(--ink);
  --cta-bg-hover: var(--ink-deep);
  --cta-fg: var(--white);

  /* Secondary CTA */
  --cta-alt-bg: transparent;
  --cta-alt-fg: var(--ink);
  --cta-alt-border: var(--line);

  /* Shadows — subtle only */
  --shadow-sm: 0 1px 2px rgba(15,19,27,0.04);
  --shadow-md: 0 4px 12px rgba(15,19,27,0.06);
  --shadow-lg: 0 12px 32px rgba(15,19,27,0.08);

  /* Radii */
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 14px;
  --r-xl: 20px;

  /* Spacing scale */
  --s-1: 0.25rem;
  --s-2: 0.5rem;
  --s-3: 0.75rem;
  --s-4: 1rem;
  --s-5: 1.5rem;
  --s-6: 2rem;
  --s-7: 3rem;
  --s-8: 4rem;
  --s-9: 6rem;
  --s-10: 8rem;

  /* Type scale */
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;

  /* Container */
  --container-max: 1200px;
  --container-narrow: 880px;
  --container-wide: 1320px;
}

/* Dark mode override — optional, off by default */
@media (prefers-color-scheme: dark) {
  /* Do NOT implement dark mode in Phase 1.
     Placeholder only. Revisit post-launch. */
}

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

html, body {
  margin: 0;
  padding: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-size: 16px;
  line-height: 1.55;
}

img, svg { display: block; max-width: 100%; }

/* IMPORTANT: do not globally apply img max-width inside Leaflet containers */
.leaflet-container img { max-width: none !important; }

a { color: inherit; text-decoration: none; }

::selection { background: var(--ink); color: var(--white); }
