/* Verstack design tokens - black / cream / coral. Keep in sync with BRAND.md */

@font-face {
  font-family: "Outfit";
  src: url("fonts/Outfit-Variable.ttf") format("truetype");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("fonts/Inter-Variable.ttf") format("truetype");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("fonts/JetBrainsMono-Variable.ttf") format("truetype");
  font-weight: 100 800;
  font-display: swap;
}

:root {
  /* colour - primary */
  --vs-ink: #0c0c0c;      /* Abyss Ink    */
  --vs-cream: #f4ede0;    /* Warm Cream   */
  --vs-coral: #ff5a36;    /* Sunset Coral */
  /* colour - secondary */
  --vs-taupe: #cdbfa6;    /* Driftwood    */
  --vs-smoke: #3a3733;    /* Smoke        */
  --vs-parchment: #fcf9f2;/* Parchment    */
  /* warm neutrals */
  --vs-neutral-700: #3a3733;
  --vs-neutral-500: #7a7468;
  --vs-neutral-300: #cdbfa6;
  --vs-neutral-100: #e9e0ce;
  --vs-line: rgb(12 12 12 / 0.16);
  --vs-line-strong: rgb(12 12 12 / 0.28);
  --vs-code-comment: #968d7d;

  /* semantic - light (cream) is the default */
  --bg: var(--vs-cream);
  --surface: var(--vs-parchment);
  --text: var(--vs-ink);
  --text-muted: rgb(12 12 12 / 0.6);
  --accent: var(--vs-coral);
  --on-accent: var(--vs-ink);   /* never cream on coral */
  --border: 1px solid var(--vs-line);

  /* typography */
  --font-display: "Outfit", system-ui, sans-serif;
  --font-text: "Inter", system-ui, sans-serif;
  --font-code: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --text-display: 72px/80px var(--font-display);
  --text-h1: 48px/56px var(--font-display);
  --text-h2: 32px/40px var(--font-display);
  --text-h3: 24px/32px var(--font-display);
  --text-body: 18px/28px var(--font-text);
  --text-small: 14px/20px var(--font-text);
  --text-code: 14px/22px var(--font-code);
  --tracking-display: -0.04em;
  --tracking-h1: -0.035em;

  /* spacing (4px base) */
  --space-1: 4px;  --space-2: 8px;  --space-3: 12px; --space-4: 16px;
  --space-6: 24px; --space-8: 32px; --space-12: 48px; --space-16: 64px;

  /* radius */
  --radius-sm: 8px; --radius-md: 12px; --radius-lg: 16px; --radius-xl: 24px; --radius-full: 999px;

  /* layout */
  --container: 928px;           /* narrow, single column; 1200px for wide product pages */
  --gutter: 24px;

  /* soft window shadow (macOS-style surfaces); everything else stays flat */
  --shadow-window: 0 0 0 .5px rgb(12 12 12 / .09), 0 10px 24px rgb(60 40 10 / .07), 0 28px 60px rgb(60 40 10 / .08);

  /* motion */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --dur-fast: 150ms; --dur-base: 250ms; --dur-slow: 700ms;
}

/* black theme: opt in with <html data-theme="dark"> */
:root[data-theme="dark"] {
  --bg: var(--vs-ink);
  --surface: #161412;
  --text: var(--vs-cream);
  --text-muted: rgb(244 237 224 / 0.6);
  --vs-line: rgb(244 237 224 / 0.14);
  --vs-line-strong: rgb(244 237 224 / 0.26);
  --shadow-window: 0 0 0 .5px rgb(244 237 224 / .1), 0 16px 40px rgb(0 0 0 / .4);
  color-scheme: dark;
}
