/* =========================================================
   STMDESKLY V3
   DESIGN TOKENS (Light & Dark Mode)
   ========================================================= */

:root {
  color-scheme: light;

  /* Brand */
  --color-brand: #245C4F;
  --color-brand-hover: #1C493F;
  --color-brand-active: #163B33;
  --color-brand-soft: #E8F0EC;
  --color-brand-subtle: #F2F6F3;
  --color-brand-contrast: #FFFFFF;

  /* Page and surfaces (Clean Light Mode) */
  --color-page: #FFFFFF; /* True white background */
  --color-surface: #F9F8F6; /* Slightly off-white for cards */
  --color-surface-muted: #F0F0EC;
  
  /* Text */
  --color-text: #111827; /* Crisp dark text */
  --color-text-secondary: #4B5563;
  --color-text-muted: #9CA3AF;
  --color-text-inverse: #FFFFFF;

  /* Borders */
  --color-border: #E5E7EB;
  --color-border-strong: #D1D5DB;

  /* Typography */
  --font-heading: "Plus Jakarta Sans", system-ui, sans-serif;
  --font-body: "Manrope", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;

  /* Layout */
  --container-sm: 40rem;
  --container-md: 48rem;
  --page-gutter: 1.5rem;

  /* Radii */
  --radius-sm: 0.375rem;
  --radius-md: 0.625rem;
  --radius-lg: 0.875rem;
  --radius-xl: 1.125rem;
  --radius-2xl: 1.5rem;
  --radius-full: 9999px;

  /* Controls & Motion */
  --control-height: 2.75rem;
  --transition-fast: 120ms ease;
}

/* =========================================================
   DARK THEME OVERRIDES (Deep Charcoal / Slate)
   ========================================================= */
[data-theme="dark"] {
  color-scheme: dark;

  /* Brand */
  --color-brand: #3A8B7B;
  --color-brand-hover: #4CA392;
  --color-brand-soft: #1B332E;
  --color-brand-subtle: #152723;
  --color-brand-contrast: #FFFFFF;

  /* Page and surfaces */
  --color-page: #0F172A; /* Deep slate blue, standard for dark mode */
  --color-surface: #1E293B; /* Slightly lighter slate for cards */
  --color-surface-muted: #334155;

  /* Text */
  --color-text: #F8FAFC;
  --color-text-secondary: #CBD5E1;
  --color-text-muted: #94A3B8;
  --color-text-inverse: #0F172A;

  /* Borders */
  --color-border: #334155;
  --color-border-strong: #475569;
}

@media (min-width: 48rem) {
  :root { --page-gutter: 2rem; }
}
