/* =====================================================================
 * SlasshyWispr — marketing site (digital twin)
 * base.css   tokens · reset · typography · type stack
 * ===================================================================== */

@font-face {
  font-family: "Geist Mono";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("../assets/GeistMono-Variable.woff2") format("woff2-variations"),
       url("../assets/GeistMono-Variable.woff2") format("woff2");
}

:root {
  /* ---------- surface (tinted near-black, never pure #000) --------- */
  --bg-void:        oklch(13% 0.012 250);
  --bg-rail:        oklch(16% 0.012 250);
  --bg-paper:       oklch(19% 0.010 250);
  --bg-recess:      oklch(11% 0.010 245);
  --bg-card:        oklch(22% 0.010 250);

  /* ---------- hairlines -------------------------------------------- */
  --border-line:    oklch(28% 0.008 250);
  --border-strong:  oklch(36% 0.008 250);
  --border-soft:    oklch(24% 0.006 250);

  /* ---------- ink (warm cream, never pure #fff) -------------------- */
  --ink-primary:    oklch(95% 0.012 80);
  --ink-secondary:  oklch(72% 0.015 80);
  --ink-muted:      oklch(55% 0.012 80);
  --ink-faint:      oklch(52% 0.010 80);
  --ink-veil:       oklch(32% 0.008 80);

  /* ---------- the single accent (live / recording / hot) ----------- */
  --accent-live:        oklch(74% 0.18 55);
  --accent-live-soft:   oklch(74% 0.18 55 / 0.14);
  --accent-live-faint:  oklch(74% 0.18 55 / 0.08);
  --accent-live-glow:   oklch(74% 0.18 55 / 0.35);

  /* raised accent — the warm cream used as "paper-on-paper" highlight */
  --accent-quiet:       oklch(95% 0.012 80);
  --accent-quiet-ink:   oklch(15% 0.012 80);

  /* ---------- spacing (4 px base) ---------------------------------- */
  --space-1:  4px;
  --space-2:  8px;
  --space-3:  12px;
  --space-4:  16px;
  --space-5:  20px;
  --space-6:  24px;
  --space-8:  32px;
  --space-10: 40px;
  --space-12: 56px;
  --space-16: 72px;
  --space-20: 88px;
  --space-24: 112px;

  /* ---------- radius ----------------------------------------------- */
  --radius-input:   8px;
  --radius-button:  8px;
  --radius-card:    14px;
  --radius-modal:   18px;
  --radius-pill:    999px;

  /* ---------- shadows ---------------------------------------------- */
  --shadow-card:  0 1px 0 oklch(28% 0.008 250 / 0.6) inset,
                  0 12px 32px -16px oklch(0% 0 0 / 0.5);
  --shadow-modal: 0 24px 64px -16px oklch(0% 0 0 / 0.6),
                  0 0 0 1px oklch(28% 0.008 250 / 0.5) inset;
  --shadow-pop:   0 8px 24px -8px  oklch(0% 0 0 / 0.5),
                  0 0 0 1px oklch(28% 0.008 250 / 0.6) inset;

  /* ---------- motion ----------------------------------------------- */
  --ease-out:    cubic-bezier(0.22, 1, 0.36, 1);
  --ease-soft:   cubic-bezier(0.4, 0, 0.2, 1);
  --t-hover:     140ms;
  --t-layout:    240ms;
  --t-showcase:  380ms;

  /* ---------- type families ---------------------------------------- */
  --font-display: "Fraunces", "Newsreader", "Times New Roman", serif;
  --font-sans:    "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", "Segoe UI", Roboto, sans-serif;
  --font-mono:    "Geist Mono", "JetBrains Mono", "Cascadia Code", monospace;

  /* ---------- layout ---------------------------------------------- */
  --reading-max:   74ch;
  --page-max:      1280px;

  color-scheme: dark;
}

/* =====================================================================
 * Reset (intentionally tiny — we trust browsers)
 * ===================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  background: var(--bg-void);
  color: var(--ink-primary);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.55;
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: 0.5; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--accent-live); outline-offset: 2px; border-radius: 2px; }
::selection { background: var(--accent-live-soft); color: var(--ink-primary); }
hr { border: 0; border-top: 1px solid var(--border-line); margin: 0; }

/* =====================================================================
 * Type — three-face stack, fluid with clamp()
 * ===================================================================== */

/* Display — Fraunces, editorial, optical sizing */
.t-display-1 {
  font-family: var(--font-display);
  font-variation-settings: "opsz" 144, "wght" 460, "SOFT" 30;
  font-weight: 460;
  font-size: clamp(48px, 6vw + 8px, 72px);
  line-height: 1.02;
  letter-spacing: -0.022em;
  color: var(--ink-primary);
}
.t-display-2 {
  font-family: var(--font-display);
  font-variation-settings: "opsz" 72, "wght" 440, "SOFT" 20;
  font-weight: 440;
  font-size: clamp(36px, 3vw + 14px, 56px);
  line-height: 1.15;
  letter-spacing: -0.018em;
  color: var(--ink-primary);
}
.t-display-3 {
  font-family: var(--font-display);
  font-variation-settings: "opsz" 36, "wght" 460, "SOFT" 10;
  font-weight: 460;
  font-size: clamp(22px, 1vw + 18px, 32px);
  line-height: 1.2;
  letter-spacing: -0.012em;
  color: var(--ink-primary);
}

/* Display italic — surgical use, the "spoken word" moment */
.t-display-italic {
  font-family: var(--font-display);
  font-style: italic;
  font-variation-settings: "opsz" 72, "wght" 420, "SOFT" 60;
  font-style: italic;
  font-weight: 420;
  font-size: clamp(36px, 3vw + 14px, 56px);
  line-height: 1.15;
  letter-spacing: -0.018em;
  color: var(--ink-primary);
}

/* Body */
.t-lede {
  font-size: clamp(17px, 0.4vw + 15px, 19px);
  line-height: 1.5;
  letter-spacing: -0.005em;
  color: var(--ink-secondary);
  font-weight: 450;
}
.t-body { font-size: 15px; line-height: 1.55; color: var(--ink-secondary); font-weight: 450; }
.t-small { font-size: 13.5px; line-height: 1.55; color: var(--ink-muted); font-weight: 450; }
.t-caption { font-size: 12px; line-height: 1.5; color: var(--ink-muted); font-weight: 500; }

/* Mono — the structural ink */
.t-mono {
  font-family: var(--font-mono);
  font-variation-settings: "wght" 480;
  font-weight: 480;
  font-size: 13px;
  letter-spacing: 0;
  color: var(--ink-secondary);
  font-variant-numeric: tabular-nums;
}
.t-mono-sm {
  font-family: var(--font-mono);
  font-weight: 480;
  font-size: 12.5px;
  letter-spacing: 0.01em;
  color: var(--ink-muted);
  font-variant-numeric: tabular-nums;
}
.t-mono-lg {
  font-family: var(--font-mono);
  font-weight: 480;
  font-size: 16px;
  color: var(--ink-primary);
  font-variant-numeric: tabular-nums;
}

/* Eyebrow — small caps row above a heading */
.t-eyebrow {
  font-family: var(--font-mono);
  font-weight: 480;
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

/* Hairline text separator */
.t-rule::before {
  content: "";
  display: inline-block;
  width: 24px;
  height: 1px;
  background: var(--border-strong);
  vertical-align: middle;
  margin-right: 12px;
  transform: translateY(-2px);
}

/* Hotkey chip — used in titles and inline */
.t-hotkey-inline {
  font-family: var(--font-mono);
  font-weight: 480;
  font-size: 0.85em;
  padding: 1px 6px;
  border: 1px solid var(--border-strong);
  border-radius: 4px;
  background: var(--bg-recess);
  color: var(--ink-secondary);
  letter-spacing: 0.02em;
  white-space: nowrap;
}

/* Numerals tabular */
.num-tabular { font-variant-numeric: tabular-nums; }

/* =====================================================================
 * Surfaces — five layers, hairline-separated
 * ===================================================================== */
.surface-void  { background: var(--bg-void);  }
.surface-rail  { background: var(--bg-rail);  }
.surface-paper { background: var(--bg-paper); }
.surface-recess { background: var(--bg-recess); }
.surface-card  { background: var(--bg-card);  border: 1px solid var(--border-line); }

/* =====================================================================
 * Reduced motion
 * ===================================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
