/* Self-hosted brand faces. No CDN, no third-party font host: the page loads
   exactly what it renders, from its own origin. Both are OFL 1.1. */
@font-face {
  font-family: "Atkinson Hyperlegible";
  src: url("/static/fonts/atkinson-regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Atkinson Hyperlegible";
  src: url("/static/fonts/atkinson-bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter Tight";
  src: url("/static/fonts/inter-tight.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* Kituwa VPN design tokens — generated from brand/tokens/tokens.json.
   Import once, then use var(--k-*). Every colour pair used for text was
   contrast-verified; see brand/qa/contrast.md. */

:root {
  --k-ink: #171d24;
  --k-ink-2: #2a333c;
  --k-slate: #46525e;
  --k-mist: #616d7a;
  --k-line: #e4e7eb;
  --k-paper: #ffffff;
  --k-cream: #fdf7f2;
  --k-brand: #ed6638;
  --k-brand-deep: #bc451a;
  --k-night: #14243a;
  --k-night-2: #1d3350;
  --k-accent: #0f5c6b;
  --k-accent-light: #8dd3cf;
  --k-success: #157a4a;
  --k-success-bg: #e7f5ec;
  --k-warn: #8a5300;
  --k-warn-bg: #fdf1de;
  --k-danger: #b3261e;
  --k-danger-bg: #fdecea;
  --k-info: #2a4fa8;
  --k-info-bg: #eaf0fb;

  --k-font-body: "Atkinson Hyperlegible", "Helvetica Neue", Arial, sans-serif;
  --k-font-display: "Inter Tight", "Atkinson Hyperlegible", sans-serif;

  --k-text-xs: 0.8125rem;
  --k-text-sm: 0.9375rem;
  --k-text-base: 1.0625rem;
  --k-text-lg: 1.1875rem;
  --k-text-xl: 1.375rem;
  --k-text-2xl: 1.75rem;
  --k-text-3xl: 2.25rem;
  --k-text-4xl: 2.875rem;

  --k-leading-tight: 1.15;
  --k-leading-snug: 1.3;
  --k-leading-normal: 1.55;
  --k-leading-loose: 1.7;

  --k-space-1: 0.25rem;
  --k-space-2: 0.5rem;
  --k-space-3: 0.75rem;
  --k-space-4: 1rem;
  --k-space-5: 1.5rem;
  --k-space-6: 2rem;
  --k-space-7: 2.5rem;
  --k-space-8: 3rem;
  --k-space-9: 4rem;
  --k-space-10: 5rem;
  --k-space-11: 6.5rem;

  --k-radius-sm: 6px;
  --k-radius-md: 10px;
  --k-radius-lg: 16px;
  --k-radius-xl: 24px;
  --k-radius-pill: 999px;

  --k-shadow-sm: 0 1px 2px rgba(23, 29, 36, 0.06), 0 1px 3px rgba(23, 29, 36, 0.08);
  --k-shadow-md: 0 2px 6px rgba(23, 29, 36, 0.07), 0 8px 20px rgba(23, 29, 36, 0.07);
  --k-shadow-lg: 0 8px 28px rgba(23, 29, 36, 0.12), 0 24px 60px rgba(23, 29, 36, 0.08);

  --k-focus: 3px solid var(--k-info);
  --k-measure: 68ch;
  --k-container: 1120px;
  --k-container-narrow: 720px;
  --k-tap: 48px;

  --k-fast: 120ms;
  --k-base: 200ms;
  --k-slow: 320ms;
  --k-ease: cubic-bezier(0.2, 0.7, 0.2, 1);

  color-scheme: light;
}

/* Dark mode: the same roles, re-pointed. Verified pairs are listed in
   brand/qa/contrast.md for light surfaces; on dark, text runs at ink-on-night
   ratios above 12:1 because the surfaces are deep by design. */
@media (prefers-color-scheme: dark) {
  :root {
    --k-ink: #f4f6f8;
    --k-ink-2: #e2e7ec;
    --k-slate: #c6ced8;
    --k-mist: #a7b1bd;
    --k-line: #2f3f55;
    --k-paper: #101b2a;
    --k-cream: #13202f;
    --k-night: #0b1420;
    --k-night-2: #16263a;
    --k-accent: #8dd3cf;
    --k-success: #57c98a;
    --k-success-bg: #10291d;
    --k-warn: #f0b356;
    --k-warn-bg: #2a1f0d;
    --k-danger: #f08a84;
    --k-danger-bg: #2b1414;
    --k-info: #9fbbf5;
    --k-info-bg: #14203a;
    --k-brand-deep: #f1825a;
    color-scheme: dark;
  }
}

@media (prefers-reduced-motion: reduce) {
  :root {
    --k-fast: 1ms;
    --k-base: 1ms;
    --k-slow: 1ms;
  }
}
