/* ==========================================================================
   Theme Tokens (LSP & DIP: Complete, interchangeable token contract)
   Light mode (:root) and Dark mode (html.dark)
   ========================================================================== */

:root {
  /* Surfaces */
  --tg-surface-base: #ffffff;
  --tg-surface-tinted: #edf2fc;
  --tg-surface-muted: #f6f7f9;
  --tg-surface-elevated: #ffffff;
  --tg-surface-subtle: #f8fafc;
  --tg-header-bg: rgba(255, 255, 255, 0.96);

  /* Text */
  --tg-text-primary: #343f52;
  --tg-text-strong: #21262c;
  --tg-text-secondary: #60697b;
  --tg-text-muted: #94a3b8;

  /* Borders & Dividers */
  --tg-border-subtle: #e2e8f0;
  --tg-border-card: #eef2f6;

  /* Brand & Accents */
  --tg-accent: #e31e24;
  --tg-accent-hover: #c4191f;

  /* Interactive Controls */
  --tg-control-bg: rgba(255, 255, 255, 0.9);
  --tg-control-text: #343f52;
  --tg-control-border: rgba(148, 163, 184, 0.35);
  --tg-soft-ash-bg: #eef2f6;
  --tg-soft-ash-text: #343f52;

  /* Bento & Card Cutouts */
  --tg-bento-bg: rgb(246, 247, 249);
  --tg-card-surface: #ffffff;
}

html.dark {
  /* Surfaces */
  --tg-surface-base: #0f172a;
  --tg-surface-tinted: #131c31;
  --tg-surface-muted: #131c31;
  --tg-surface-elevated: #1e293b;
  --tg-surface-subtle: rgba(15, 23, 42, 0.45);
  --tg-header-bg: rgba(15, 23, 42, 0.96);

  /* Text */
  --tg-text-primary: #f8fafc;
  --tg-text-strong: #ffffff;
  --tg-text-secondary: #e2e8f0;
  --tg-text-muted: #cbd5e1;

  /* Borders & Dividers */
  --tg-border-subtle: #334155;
  --tg-border-card: #334155;

  /* Brand & Accents */
  --tg-accent: #e31e24;
  --tg-accent-hover: #ef4444;

  /* Interactive Controls */
  --tg-control-bg: rgba(30, 41, 59, 0.92);
  --tg-control-text: #fbbf24;
  --tg-control-border: #334155;
  --tg-soft-ash-bg: #334155;
  --tg-soft-ash-text: #f1f5f9;

  /* Bento & Card Cutouts */
  --tg-bento-bg: #131c31;
  --tg-card-surface: #1e293b;
}

