/* =============================================
   DESIGN TOKENS — ElainaFarnsworth.com
   Palette derived from headshot photo:
   · Deep navy background  → surfaces
   · Royal blue (dress/bg) → primary accent
   · Warm gold (necklace)  → secondary accent / highlight
   ============================================= */

:root, [data-theme='light'] {
  /* 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(3.5rem,   1rem    + 6vw,    7rem);

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

  /* Surfaces — crisp white / light blue-gray */
  --color-bg:              #F7F9FC;
  --color-surface:         #FFFFFF;
  --color-surface-2:       #EEF3F9;
  --color-surface-offset:  #E4EBF4;
  --color-divider:         #D0DCE9;
  --color-border:          #C2D1E3;

  /* Text */
  --color-text:        #0D2B4E;
  --color-text-muted:  #4A6580;
  --color-text-faint:  #8AAAC4;
  --color-text-inverse:#F7F9FC;

  /* Primary accent — royal blue */
  --color-accent:        #1A6CC4;
  --color-accent-hover:  #1559A8;
  --color-accent-light:  #DEEAF9;

  /* Secondary accent — warm gold */
  --color-gold:          #C9963A;
  --color-gold-hover:    #A87B2A;
  --color-gold-light:    #F8EDD8;

  /* Fonts */
  --font-display: 'Instrument Serif', Georgia, serif;
  --font-body:    'Switzer', 'Helvetica Neue', sans-serif;

  /* Radius */
  --radius-sm: 0.25rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;

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

  /* Shadows — cool blue-tinted */
  --shadow-sm: 0 1px 3px oklch(0.25 0.06 230 / 0.10);
  --shadow-md: 0 4px 20px oklch(0.25 0.06 230 / 0.14);
  --shadow-lg: 0 12px 40px oklch(0.25 0.06 230 / 0.18);

  /* Layout */
  --content-narrow:  640px;
  --content-default: 960px;
  --content-wide:   1160px;
}

/* DARK MODE — navy-first */
[data-theme='dark'] {
  --color-bg:              #0A1E33;
  --color-surface:         #0D2B4E;
  --color-surface-2:       #11325C;
  --color-surface-offset:  #0F2847;
  --color-divider:         #1A3A5C;
  --color-border:          #234870;

  --color-text:        #E8F1FA;
  --color-text-muted:  #8AAAC4;
  --color-text-faint:  #4A6580;
  --color-text-inverse:#0A1E33;

  --color-accent:        #4A9AE8;
  --color-accent-hover:  #6AAFF0;
  --color-accent-light:  #162D47;

  --color-gold:          #D9A84A;
  --color-gold-hover:    #E8BC65;
  --color-gold-light:    #2A2010;

  --shadow-sm: 0 1px 3px oklch(0 0 0 / 0.30);
  --shadow-md: 0 4px 20px oklch(0 0 0 / 0.40);
  --shadow-lg: 0 12px 40px oklch(0 0 0 / 0.50);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --color-bg:              #0A1E33;
    --color-surface:         #0D2B4E;
    --color-surface-2:       #11325C;
    --color-surface-offset:  #0F2847;
    --color-divider:         #1A3A5C;
    --color-border:          #234870;
    --color-text:        #E8F1FA;
    --color-text-muted:  #8AAAC4;
    --color-text-faint:  #4A6580;
    --color-text-inverse:#0A1E33;
    --color-accent:        #4A9AE8;
    --color-accent-hover:  #6AAFF0;
    --color-accent-light:  #162D47;
    --color-gold:          #D9A84A;
    --color-gold-hover:    #E8BC65;
    --color-gold-light:    #2A2010;
    --shadow-sm: 0 1px 3px oklch(0 0 0 / 0.30);
    --shadow-md: 0 4px 20px oklch(0 0 0 / 0.40);
    --shadow-lg: 0 12px 40px oklch(0 0 0 / 0.50);
  }
}
