/* ITS Kenya foundation
   Preset: its-kenya
   Mode: body and chrome (header/footer) share the same page surface; map heroes stay inverse.
   Header: plain links. Corners: 16px. Display: mixed-case Space Grotesk.
   Texture: map atmosphere on inverse heroes. Section rail: off.
   Families are the blueprint set (Space Grotesk, Inter, JetBrains Mono), Latin, SIL Open Font License.
   They are not taken from the previous ITS Kenya site. */

@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../assets/fonts/space-grotesk-600.woff2") format("woff2");
}

@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../assets/fonts/space-grotesk-700.woff2") format("woff2");
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../assets/fonts/inter-400.woff2") format("woff2");
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../assets/fonts/inter-500.woff2") format("woff2");
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../assets/fonts/inter-600.woff2") format("woff2");
}

@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../assets/fonts/jetbrains-mono-500.woff2") format("woff2");
}

@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../assets/fonts/jetbrains-mono-600.woff2") format("woff2");
}

:root {
  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  --fs-micro: 0.75rem;
  --fs-body: 1rem;
  --fs-lede: clamp(1.125rem, 1.4vw, 1.375rem);
  --fs-h3: clamp(1.25rem, 1.6vw, 1.5rem);
  --fs-h2: clamp(2rem, 4.5vw, 3.75rem);
  --fs-h1: clamp(3rem, 9vw, 7.5rem);
  --fs-stat: clamp(3.5rem, 7vw, 7rem);
  --fs-cell: clamp(1.75rem, 2vw, 2rem);

  --track-micro: 0.16em;
  --track-display: -0.02em;

  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 24px;
  --s-6: 32px;
  --s-7: 48px;
  --s-8: 64px;
  --s-9: 96px;
  --s-10: 128px;
  --section-y: clamp(80px, 10vw, 140px);

  --container: 1240px;
  --gutter: clamp(20px, 4vw, 48px);
  --header-h: 80px;
  --rail-w: 0px;
  --stage-bg: #f4f6f8;
  --stage-ink: #111418;
  --stage-body: #24303a;

  --radius-card: 16px;
  --radius-ctl: 4px;
  --radius-pill: 999px;
  --hairline: 1px;

  color-scheme: light;
}

[data-theme="its-kenya"] {
  --bg: #ffffff;
  --bg-alt: #fbfbfb;
  --text: #0a0a0a;
  --text-muted: #737373;
  --line: #e5e5e5;
  --inv-bg: #111418;
  --inv-bg-deep: #0a0a0a;
  --inv-glow: #1a2026;
  --inv-text: #eeeeee;
  --inv-muted: #8d8d8d;
  --inv-line: #222222;
  --chrome-bg: var(--bg);
  --chrome-bg-deep: var(--bg);
  --chrome-text: var(--text);
  --chrome-muted: var(--text-muted);
  --chrome-line: var(--line);
  --accent: #0a7b3e;
  --accent-ink: #fffcf8;
  --accent-2: #c1121f;
  --ok: #78c9a2;
  --warn: #f5b544;
  --bad: #df2225;
}

[data-theme="its-kenya"][data-mode="dark"] {
  --bg: #0a0a0a;
  --bg-alt: #121212;
  --text: #eeeeee;
  --text-muted: #8d8d8d;
  --line: #222222;
  --chrome-bg: var(--bg);
  --chrome-bg-deep: var(--bg);
  --chrome-text: var(--text);
  --chrome-muted: var(--text-muted);
  --chrome-line: var(--line);
  --accent: #24a15a;
  --accent-ink: #150a07;
  --accent-2: #dd3b40;
  --ok: #44bc79;
  --bad: #f76063;
  --stage-bg: #12151a;
  --stage-ink: #f2f4f6;
  --stage-body: #a8b0b8;
  color-scheme: dark;
}

[data-surface="base"] {
  --surface: var(--bg);
  --surface-text: var(--text);
  --surface-muted: var(--text-muted);
  --surface-line: var(--line);
}

[data-surface="inverse"] {
  --surface: var(--inv-bg);
  --surface-text: var(--inv-text);
  --surface-muted: var(--inv-muted);
  --surface-line: var(--inv-line);
}
