/* base.css — reset + tokens */
*,
*::before,
*::after {
  box-sizing: border-box;
}
* {
  margin: 0;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
body {
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
}
img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}
img {
  height: auto;
}
input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
}
p,
h1,
h2,
h3,
h4,
li {
  overflow-wrap: break-word;
}
ul[class],
ol[class] {
  list-style: none;
  padding: 0;
}
a {
  color: inherit;
}
:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

:root {
  /* type scale */
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.0625rem);
  --text-lg: clamp(1.125rem, 1rem + 0.6vw, 1.375rem);
  --text-xl: clamp(1.5rem, 1.2rem + 1.25vw, 2.25rem);
  --text-2xl: clamp(2rem, 1.2rem + 2.5vw, 3.25rem);

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

  --radius-sm: 3px;
  --radius-md: 5px;
  --radius-lg: 8px;

  --font-display: 'Archivo', 'Archivo Fallback', system-ui, sans-serif;
  --font-body: 'Switzer', 'Switzer Fallback', system-ui, sans-serif;

  --wrap: 74rem;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---- Steel & KES blue palette ---- */
:root,
[data-theme='light'] {
  --color-bg: #f1f5f8;
  --color-surface: #fcfdfe;
  --color-surface-2: #e6edf3;
  --color-surface-deep: #182241;
  --color-divider: #d7e1ea;
  --color-border: #bbc9d6;
  --color-text: #182241;
  --color-text-muted: #4a5468;
  --color-text-faint: #7c94a2;
  --color-text-inverse: #f4f8fb;
  --color-primary: #1f6f9e;
  --color-primary-hover: #185a80;
  --color-primary-soft: #e2eff7;
  --shadow-sm: 0 1px 2px rgb(24 34 65 / 0.08);
  --shadow-md: 0 6px 24px -12px rgb(24 34 65 / 0.22);
}

[data-theme='dark'] {
  --color-bg: #0f1723;
  --color-surface: #17212f;
  --color-surface-2: #1f2b3b;
  --color-surface-deep: #0a111c;
  --color-divider: #27323f;
  --color-border: #36424f;
  --color-text: #e7eef4;
  --color-text-muted: #a3b1bf;
  --color-text-faint: #76838f;
  --color-text-inverse: #0f1723;
  --color-primary: #4ea6d8;
  --color-primary-hover: #74bde6;
  --color-primary-soft: #14212c;
  --shadow-sm: 0 1px 2px rgb(0 0 0 / 0.5);
  --shadow-md: 0 8px 28px -14px rgb(0 0 0 / 0.7);
}
