/* ==========================================================================
   tabkhan.fyi — Design Tokens ("Editorial Ledger")
   Dual-mode Warm Ivory Light & Obsidian Graphite Dark
   ========================================================================== */

:root {
  color-scheme: light dark;

  /* Typography */
  --font-serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  /* Fluid Type Scale */
  --text-xs: 0.75rem;      /* 12px */
  --text-sm: 0.875rem;     /* 14px */
  --text-base: 1rem;       /* 16px */
  --text-lg: 1.125rem;     /* 18px */
  --text-xl: 1.375rem;     /* 22px */
  --text-2xl: clamp(1.75rem, 2.5vw, 2.25rem);
  --text-hero: clamp(2.85rem, 6.2vw, 4.75rem);

  /* Layout & Spacing */
  --max-width: 1040px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --section-gap: clamp(4rem, 8vw, 6.5rem);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;

  /* Motion */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --dur-fast: 150ms;
  --dur-med: 240ms;
  --dur-slow: 420ms;

  /* Warm Ivory Light Palette (default) */
  --bg: #FAF8F5;
  --bg-glass: rgba(250, 248, 245, 0.86);
  --surface: #FFFFFF;
  --surface-subtle: #F2EFE9;
  --surface-hover: #EDE9E1;
  --border: #E6E2DA;
  --border-strong: #C9C3B7;
  --ink: #141413;
  --ink-secondary: #48453F;
  --ink-muted: #6C675F;
  --btn-bg: #141413;
  --btn-ink: #FAF8F5;
  --btn-hover: #292826;
  --accent: #1D4ED8;
  --accent-hover: #1E40AF;
  --accent-soft: rgba(29, 78, 216, 0.08);
  --status-live: #0F766E;
  --status-live-soft: rgba(15, 118, 110, 0.1);
  --shadow-card: 0 1px 2px rgba(20, 20, 19, 0.04), 0 8px 24px -16px rgba(20, 20, 19, 0.12);
  --shadow-modal: 0 24px 64px -12px rgba(20, 20, 19, 0.24), 0 0 0 1px var(--border);
}

[data-theme="dark"] {
  color-scheme: dark;

  --bg: #0F1012;
  --bg-glass: rgba(15, 16, 18, 0.86);
  --surface: #16181C;
  --surface-subtle: #1D2026;
  --surface-hover: #252932;
  --border: #262930;
  --border-strong: #3C414E;
  --ink: #F2F0EB;
  --ink-secondary: #B6BAC4;
  --ink-muted: #8B909C;
  --btn-bg: #F2F0EB;
  --btn-ink: #0F1012;
  --btn-hover: #E2DFD7;
  --accent: #60A5FA;
  --accent-hover: #93C5FD;
  --accent-soft: rgba(96, 165, 250, 0.12);
  --status-live: #2DD4BF;
  --status-live-soft: rgba(45, 212, 191, 0.12);
  --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.25), 0 12px 32px -18px rgba(0, 0, 0, 0.6);
  --shadow-modal: 0 28px 72px -12px rgba(0, 0, 0, 0.72), 0 0 0 1px var(--border-strong);
}
