/* ==========================================================================
   tokens.css — design tokens (v2)

   Two surfaces carry the design: warm paper for reading, near-black for
   contrast bands. Maroon is the only accent, and it is allowed to be loud in
   exactly three places: primary buttons, the closing contact panel, and one
   word in a headline.
   ========================================================================== */

:root {
  /* ---- Light surfaces -------------------------------------------------- */
  --bg: #fafaf8;
  --bg-warm: #f5f2ed;
  --surface: #f1ede8;
  --surface-deep: #e7e1da;
  --white: #ffffff;

  /* ---- Dark bands ------------------------------------------------------ */
  --ink-deep: #0d0d0c;
  --ink-panel: #171715;
  --ink-line: rgba(255, 255, 255, 0.14);
  --ink-line-soft: rgba(255, 255, 255, 0.07);
  --ink-text: #f7f5f1;
  --ink-muted: rgba(247, 245, 241, 0.66);
  --ink-faint: rgba(247, 245, 241, 0.4);

  /* ---- Text ------------------------------------------------------------ */
  --ink: #171717;
  --ink-soft: #2b2b29;
  --muted: #6f6f6c;
  --muted-strong: #565654;

  /* ---- Accent ---------------------------------------------------------- */
  --accent: #7a263a;
  --accent-deep: #5d1b2c;
  --accent-bright: #a63a52;
  --accent-tint: rgba(122, 38, 58, 0.06);
  --accent-line: rgba(122, 38, 58, 0.26);
  --accent-wash: #f7edef;
  /* Same hue, lifted for dark surfaces — maroon is unreadable on near-black */
  --accent-rose: #e3a6b4;
  --accent-rose-dim: rgba(227, 166, 180, 0.55);

  /* ---- Lines ----------------------------------------------------------- */
  --line: #e6e5e1;
  --line-strong: #d6d5cf;
  --border-interactive: #8f8f88;

  /* ---- Status tones ---------------------------------------------------- */
  --tone-live: #2f6b52;
  --tone-pilot: #8a6114;
  --tone-packaged: #4b5563;
  --tone-progress: #7a263a;
  --tone-pending: #8a8a86;

  /* ---- Type ------------------------------------------------------------ */
  --font-display: 'Manrope Variable', 'Manrope', ui-sans-serif, system-ui, sans-serif;
  --font-sans: 'Inter Variable', 'Inter', ui-sans-serif, system-ui, sans-serif;
  --font-mono: 'JetBrains Mono Variable', 'JetBrains Mono', ui-monospace, SFMono-Regular, monospace;
  --font-serif: 'Instrument Serif', 'Iowan Old Style', Georgia, serif;

  --fs-mega: clamp(2.8rem, 6.4vw, 5.7rem);
  --fs-display: clamp(2.5rem, 5vw, 4.2rem);
  --fs-h1: clamp(2.1rem, 4vw, 3.2rem);
  --fs-h2: clamp(1.85rem, 3.1vw, 2.6rem);
  --fs-h3: clamp(1.125rem, 1.5vw, 1.375rem);
  --fs-lead: clamp(1.0625rem, 1.25vw, 1.1875rem);
  --fs-body: 1rem;
  --fs-sm: 0.875rem;
  --fs-xs: 0.8125rem;
  --fs-mono: 0.6875rem;

  /* ---- Space & layout -------------------------------------------------- */
  --container: 1240px;
  --gutter: clamp(20px, 4.4vw, 72px);
  --section-y: clamp(76px, 8vw, 132px);
  --header-h: 76px;
  --gap-md: 24px;
  --gap-lg: 40px;

  --r-xs: 4px;
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;

  /* ---- Elevation & motion --------------------------------------------- */
  --shadow-xs: 0 1px 2px rgba(13, 13, 12, 0.05);
  --shadow-sm: 0 6px 20px -12px rgba(13, 13, 12, 0.22);
  --shadow-lift: 0 30px 70px -46px rgba(13, 13, 12, 0.55);
  --shadow-glow: 0 24px 80px -40px rgba(122, 38, 58, 0.45);

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-fast: 140ms;
  --dur: 240ms;
  --dur-slow: 420ms;
}
