/* Design tokens: the only place colours, type sizes, spacing, radii, shadows, motion and breakpoints are defined. */

/*
 * Breakpoints (CSS cannot read custom properties inside @media, so the
 * media queries repeat these numbers; keep them in step):
 *   --bp-sm 600px  tablets, 2 item columns
 *   --bp-md 900px  hero text and map side by side
 *   --bp-lg 1100px quote form and summary side by side, 3 item columns
 */
:root {
  --bp-sm: 600px;
  --bp-md: 900px;
  --bp-lg: 1100px;

  /* Owambe Blue, light mode (white page, chosen by BlakMamba 25 Nov 2026). */
  --bg: #fff;
  --surface: #f6f9fe;
  --field: #fff;
  --ink: #17212c;
  --muted: #566373;
  --line: #d8e0e9;
  --blue: #2f86e0;
  --blue-ink: #1f6fc2; /* links and buttons: --blue is 3.75:1 on white, this is 5.1:1 */
  --blue-deep: #0f4a8a;
  --blue-soft: #dfeefd;
  --gold: #e9a20c;
  --gold-ink: #8a5a00;
  --gold-soft: #fff1cc;
  --on-gold: #17212c; /* text on gold: dark in both themes (dark --ink on gold is 1.4:1) */
  --coral: #b93a2d;
  --coral-mark: #ff6f61;
  --coral-soft: #ffe9e6;
  --on-blue: #fff;
  --dot: #f0f5fc; /* adire dots on the hero band: faint texture, so text over it reads strong */
  --text-soft: #3d4856; /* small text over the pattern: 8.0:1 even where a ring crosses */

  /* Hero map (boundaries: svg-maps/nigeria, CC BY 4.0). */
  --map-served-fill: #dcebfb;
  --map-line: #8dbbec;
  --map-home-fill: #93c2f2; /* medium blue: the navy state label stays 4.75:1 on it */
  --map-home-line: #1a6cc4;
  --map-label: var(--blue-deep); /* one colour for all served states: 7.3:1 on Oyo and Ondo */
  --map-halo: var(--bg);
  --map-pin: var(--gold);
  --map-pin-edge: var(--bg);
  --shadow-color: rgb(15 40 70 / 12%);

  --font-display: 'Bricolage Grotesque', 'Avenir Next', 'Segoe UI', system-ui, sans-serif;

  /* BlakMamba, 25 Nov 2026: the phone's own font for body text (no download); Bricolage for headings only. */
  --font-body: system-ui, -apple-system, 'Segoe UI', 'Roboto', 'Helvetica Neue', 'Arial', sans-serif;

  /* Inputs stay at 16px or more so iOS does not zoom the page on focus. */
  --fs-xs: 0.75rem;
  --fs-sm: 0.875rem;
  --fs-base: 1rem;
  --fs-md: 1.125rem;
  --fs-lg: 1.3rem;
  --fs-xl: clamp(1.5rem, 1.2rem + 1.2vw, 2rem);
  --fs-hero: clamp(2.1rem, 1.5rem + 3vw, 3.6rem);

  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 24px;
  --sp-6: 32px;
  --sp-7: 48px;
  --sp-8: 72px;
  --gutter: max(16px, env(safe-area-inset-left, 0px), clamp(16px, 4vw, 56px));

  --r-sm: 6px;
  --r-md: 8px;
  --r-lg: 12px;
  --r-xl: 16px;
  --r-pill: 999px;

  --tap: 44px; /* smallest tap target */
  --icon-tile: 80px;
  --icon: 56px;
  --measure: 62ch; /* about 75 characters of body text; ch is the wide "0" */
  --content-max: 1440px;

  --dur-draw: 900ms;
  --dur-pop: 420ms;
  --stagger: 160ms;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);

  --shadow-sm: 0 1px 2px var(--shadow-color);
  --shadow-md: 0 6px 20px var(--shadow-color);

  color-scheme: light;
}

/* Dark mode, only when the visitor picks it with the toggle. Light is the default (BlakMamba, 25 Nov 2026). */
:root[data-theme='dark'] {
  --bg: #0c1420;
  --surface: #17202a;
  --field: #0c1420;
  --ink: #e5ebf2;
  --muted: #9aa8b8;
  --line: #2a3644;
  --blue: #6fb2f5;
  --blue-ink: #6fb2f5;
  --blue-deep: #cfe5fc;
  --blue-soft: #142b45;
  --gold: #f5c14a;
  --gold-ink: #f8d27a;
  --gold-soft: #3a2e12;
  --coral: #ff8f84;
  --coral-mark: #ff8f84;
  --coral-soft: #3a1f1c;
  --on-blue: #0c1218;
  --dot: #16263a;
  --text-soft: var(--muted);
  --map-served-fill: #16304d;
  --map-line: #2f5f93;
  --map-home-fill: #2a62a8; /* deeper blue: the light state label stays 5.13:1 */
  --map-home-line: #7db6f0;
  --map-label: var(--ink); /* 11.2:1 on Oyo and Ondo */
  --map-halo: var(--bg);
  --map-pin: var(--gold);
  --map-pin-edge: var(--bg);
  --shadow-color: rgb(0 0 0 / 40%);

  color-scheme: dark;
}
