/* Kairo design tokens. Single source: DESIGN.md (v1.1). Dark theme only (light comes later).
   Fonts: Geist + Geist Mono variable (SIL OFL 1.1, see /static/geist-ofl.txt). */
@font-face {
  font-family: "Geist";
  src: url("/static/geist-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Geist Mono";
  src: url("/static/geist-mono-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark;

  /* ---------- colour: surfaces ---------- */
  --k-canvas: #000000;
  --k-surface-1: #0f1511;
  --k-surface-2: #191f1b;
  --k-surface-3: #262c28;
  --k-control: #090d0a;
  --k-announce-bg: #262c28;

  /* ---------- colour: lines ---------- */
  --k-hairline: #191f1b;
  --k-hairline-mid: #262c28;
  --k-hairline-strong: #353d37;
  --k-grid-line: #262c28;

  /* ---------- colour: text ---------- */
  --k-ink: #ffffff;
  --k-text: #f0f6fc;
  --k-body: #a4aea6;
  --k-mute: #a4aea6;
  --k-faint: #5b636b;

  /* ---------- colour: accent (change these 4 to rebrand) ---------- */
  --k-accent: #08872b;
  --k-accent-hover: #077124;
  --k-accent-bright: #5fed83;
  --k-accent-soft: #0d3024;
  --k-on-accent: #ffffff;

  /* ---------- colour: translucent fills (secondary buttons) ---------- */
  --k-fill-secondary: rgba(255, 255, 255, 0.12);
  --k-fill-secondary-hover: rgba(255, 255, 255, 0.16);
  --k-line-secondary: rgba(255, 255, 255, 0.06);
  --k-line-secondary-hover: rgba(255, 255, 255, 0.12);

  /* ---------- colour: semantic ---------- */
  --k-link: #a2daff;
  --k-focus: #a2daff;
  --k-danger: #f85149;
  --k-danger-soft: #2d1214;
  --k-warning: #d29922;
  --k-warning-soft: #2b2111;
  --k-info: #4493f8;
  --k-info-soft: #0f1d33;
  --k-violet: #a371f7;
  --k-violet-soft: #1f1533;
  --k-cyan: #39c5cf;
  --k-cyan-soft: #0d2629;
  --k-pink: #fd9fe2;
  --k-pink-soft: #2c1426;

  /* ---------- colour: pixel squares (decoration only) ---------- */
  --k-pixel-1: #5fed83;
  --k-pixel-2: #c898fd;
  --k-pixel-3: #8dd6ff;
  --k-pixel-4: #fd9fe2;

  /* ---------- type: families ---------- */
  --k-font:
    "Geist", Arial, ui-sans-serif, system-ui, -apple-system, "Segoe UI",
    sans-serif;
  --k-mono:
    "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  /* ---------- type: scale (size / line-height / weight / tracking) ---------- */
  --k-display-size: 56px;
  --k-display-lh: 62px;
  --k-display-weight: 440;
  --k-display-track: -0.02em;

  --k-h-xl-size: 48px;
  --k-h-xl-lh: 57px;
  --k-h-xl-weight: 440;
  --k-h-xl-track: -0.02em;

  --k-h-lg-size: 34px;
  --k-h-lg-lh: 44px;
  --k-h-lg-weight: 460;
  --k-h-lg-track: -0.01em;

  --k-h-md-size: 28px;
  --k-h-md-lh: 38px;
  --k-h-md-weight: 480;

  --k-title-lg-size: 22px;
  --k-title-lg-lh: 31px;
  --k-title-lg-weight: 480;

  --k-title-md-size: 20px;
  --k-title-md-lh: 26px;
  --k-title-md-weight: 400;

  --k-body-lg-size: 18px;
  --k-body-lg-lh: 27px;
  --k-body-lg-track: 0.01em;

  --k-body-md-size: 16px;
  --k-body-md-lh: 24px;
  --k-body-md-track: 0.015em;

  --k-body-sm-size: 14px;
  --k-body-sm-lh: 21px;
  --k-body-sm-track: 0.015em;

  --k-caption-size: 12px;
  --k-caption-lh: 18px;

  --k-eyebrow-size: 14px;
  --k-eyebrow-lh: 21px;
  --k-eyebrow-track: 1px;

  --k-label-size: 14px;
  --k-label-lh: 21px;
  --k-label-weight: 480;
  --k-label-track: 0.15px;

  --k-mono-xs-size: 12px;
  --k-mono-xs-lh: 18px;
  --k-mono-xs-weight: 500;
  --k-mono-xs-track: 0.4px;

  --k-code-size: 13px;
  --k-code-lh: 20px;

  /* ---------- radius ---------- */
  --k-r-none: 0;
  --k-r-xs: 4px;
  --k-r-sm: 6px;
  --k-r-md: 8px;
  --k-r-lg: 12px;
  --k-r-xl: 16px;
  --k-r-pill: 9999px;

  /* ---------- spacing (4px base) ---------- */
  --k-sp-1: 4px;
  --k-sp-2: 8px;
  --k-sp-3: 12px;
  --k-sp-4: 16px;
  --k-sp-5: 24px;
  --k-sp-6: 32px;
  --k-sp-7: 48px;
  --k-sp-8: 64px;
  --k-sp-9: 80px;
  --k-sp-10: 96px;

  /* ---------- layout ---------- */
  --k-frame: 1280px;
  --k-rail-gap: 24px;
  --k-gutter: 20px;
  --k-nav-h: 68px;
  --k-announce-h: 43px;
  --k-band-pad: 96px;
  --k-cell-pad: 48px;
  --k-cell-pad-x: 48px;
  --k-hero-pad: 64px;
  --k-grid-size: 10px;
  --k-btn-h: 43px;
  --k-btn-sm-h: 32px;
  --k-input-h: 36px;
  --k-row-h: 44px;
  --k-panel-w: 480px;

  /* ---------- elevation (menus only) ---------- */
  --k-shadow-menu: 0 8px 24px rgba(0, 0, 0, 0.5);

  /* ---------- motion ---------- */
  --k-ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --k-ease-arrow: cubic-bezier(0.01, 0.73, 0.08, 0.93);
  --k-dur-fast: 200ms;
  --k-dur: 300ms;
  --k-dur-slow: 400ms;
  --k-tab-cycle: 6s;
  --k-marquee: 60s;
}

/* Tablet */
@media (max-width: 1023px) {
  :root {
    --k-display-size: 48px;
    --k-display-lh: 58px;
    --k-h-md-size: 24px;
    --k-h-md-lh: 31px;
    --k-band-pad: 64px;
    --k-hero-pad: 48px;
    --k-cell-pad: 40px;
    --k-cell-pad-x: 40px;
  }
}

/* Phone */
@media (max-width: 640px) {
  :root {
    --k-rail-gap: 0px;
    --k-display-size: 36px;
    --k-display-lh: 43px;
    --k-h-xl-size: 32px;
    --k-h-xl-lh: 40px;
    --k-h-lg-size: 26px;
    --k-h-lg-lh: 34px;
    --k-h-md-size: 22px;
    --k-h-md-lh: 29px;
    --k-title-lg-size: 20px;
    --k-title-lg-lh: 28px;
    --k-title-md-size: 18px;
    --k-title-md-lh: 23px;
    --k-band-pad: 48px;
    --k-hero-pad: 32px;
    --k-cell-pad: 32px;
    --k-cell-pad-x: 20px;
    --k-panel-w: 100vw;
  }
}
