/* ------------------------------------------------------------------
   APTOS STRATEGY GROUP — Design Tokens
   Palette: Obsidian / Carbon / Deep Teal / Petroleum / Slate /
            Burnished Copper / Champagne / Cream
   ------------------------------------------------------------------ */

:root,
[data-theme='light'] {
  /* Brand palette (literal) */
  --aptos-obsidian: #141414;
  --aptos-carbon: #222222;
  --aptos-deep-teal: #0E3F45;
  --aptos-petroleum: #175E64;
  --aptos-slate: #4C5C60;
  --aptos-copper: #B46A3C;
  --aptos-copper-deep: #8E4F26;
  --aptos-champagne: #E8D8B8;
  --aptos-champagne-soft: #F1E5CB;
  --aptos-cream: #F8F4EA;
  --aptos-cream-2: #FBF8F1;

  /* Semantic surfaces — light is the default UI */
  --color-bg: var(--aptos-cream);
  --color-surface: var(--aptos-cream-2);
  --color-surface-2: #ffffff;
  --color-surface-offset: #F0EBDC;
  --color-surface-deep: var(--aptos-deep-teal);
  --color-surface-night: var(--aptos-obsidian);
  --color-divider: rgba(20, 20, 20, 0.10);
  --color-border: rgba(20, 20, 20, 0.16);

  /* Text */
  --color-text: var(--aptos-obsidian);
  --color-text-muted: #4F4A3F;
  --color-text-faint: #7C7566;
  --color-text-inverse: var(--aptos-cream);

  /* Accents */
  --color-primary: var(--aptos-petroleum);
  --color-primary-hover: var(--aptos-deep-teal);
  --color-accent: var(--aptos-copper);
  --color-accent-hover: var(--aptos-copper-deep);

  /* Type scale */
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1rem + 0.75vw, 1.5rem);
  --text-xl: clamp(1.5rem, 1.2rem + 1.25vw, 2.25rem);
  --text-2xl: clamp(2rem, 1.2rem + 2.5vw, 3.5rem);
  --text-3xl: clamp(2.5rem, 1rem + 4vw, 5rem);
  --text-hero: clamp(2.75rem, 0.5rem + 6vw, 6.5rem);

  /* Spacing 4px base */
  --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;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Shadows tone-matched to warm cream */
  --shadow-sm: 0 1px 2px rgba(20,20,20,0.06);
  --shadow-md: 0 4px 18px rgba(14,63,69,0.08);
  --shadow-lg: 0 14px 40px rgba(14,63,69,0.14);

  /* Transitions */
  --transition-interactive: 220ms cubic-bezier(0.16, 1, 0.3, 1);

  /* Layout */
  --content-narrow: 720px;
  --content-default: 1080px;
  --content-wide: 1240px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);

  /* Font families */
  --font-display: 'Cormorant Garamond', 'Source Serif 4', Georgia, serif;
  --font-body: 'Inter Tight', 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-eyebrow: 'Inter Tight', 'Inter', system-ui, sans-serif;
}

/* DARK MODE — obsidian surfaces, champagne text, copper accent retained */
[data-theme='dark'] {
  --color-bg: var(--aptos-obsidian);
  --color-surface: var(--aptos-carbon);
  --color-surface-2: #1c1c1c;
  --color-surface-offset: #2a2a2a;
  --color-surface-deep: var(--aptos-deep-teal);
  --color-divider: rgba(232, 216, 184, 0.10);
  --color-border: rgba(232, 216, 184, 0.18);

  --color-text: #F1E9D6;
  --color-text-muted: #C9C2B0;
  --color-text-faint: #8C8674;
  --color-text-inverse: var(--aptos-obsidian);

  --color-primary: #4FA8B0;            /* lighter teal for contrast */
  --color-primary-hover: var(--aptos-petroleum);
  --color-accent: #D08552;             /* lighter copper */
  --color-accent-hover: var(--aptos-copper);

  --shadow-sm: 0 1px 2px rgba(0,0,0,0.3);
  --shadow-md: 0 4px 18px rgba(0,0,0,0.4);
  --shadow-lg: 0 14px 40px rgba(0,0,0,0.55);
}

/* System preference fallback */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --color-bg: var(--aptos-obsidian);
    --color-surface: var(--aptos-carbon);
    --color-surface-2: #1c1c1c;
    --color-surface-offset: #2a2a2a;
    --color-divider: rgba(232, 216, 184, 0.10);
    --color-border: rgba(232, 216, 184, 0.18);
    --color-text: #F1E9D6;
    --color-text-muted: #C9C2B0;
    --color-text-faint: #8C8674;
    --color-text-inverse: var(--aptos-obsidian);
    --color-primary: #4FA8B0;
    --color-primary-hover: var(--aptos-petroleum);
    --color-accent: #D08552;
    --color-accent-hover: var(--aptos-copper);
  }
}
