/* ============================================================
   DESIGN TOKENS — Black & White + Gray palette
   ============================================================ */

:root,
[data-theme="light"] {
  /* Surfaces */
  --color-bg:             #f5f5f5;
  --color-surface:        #ffffff;
  --color-surface-2:      #f0f0f0;
  --color-border:         #d8d8d8;
  --color-divider:        #e4e4e4;

  /* Text */
  --color-text:           #111111;
  --color-text-muted:     #555555;
  --color-text-faint:     #999999;
  --color-text-inverse:   #f5f5f5;

  /* Accent — pure white on dark, or near-black on light */
  --color-accent:         #111111;
  --color-accent-hover:   #333333;

  /* Photo overlay */
  --overlay-start:        rgba(0,0,0,0.55);
  --overlay-end:          rgba(0,0,0,0.10);

  /* Type scale — fluid */
  --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-hero:  clamp(2.5rem,   1rem + 5vw,       5rem);

  /* 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;

  /* Radius */
  --radius-sm:   0.25rem;
  --radius-md:   0.5rem;
  --radius-full: 9999px;

  /* Transition */
  --transition: 180ms cubic-bezier(0.16, 1, 0.3, 1);

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.10);

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

  /* Content widths */
  --content-narrow:  560px;
  --content-default: 900px;
}

[data-theme="dark"],
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --color-bg:           #0e0e0e;
    --color-surface:      #161616;
    --color-surface-2:    #1e1e1e;
    --color-border:       #2c2c2c;
    --color-divider:      #242424;
    --color-text:         #e8e8e8;
    --color-text-muted:   #888888;
    --color-text-faint:   #555555;
    --color-text-inverse: #0e0e0e;
    --color-accent:       #e8e8e8;
    --color-accent-hover: #ffffff;
    --overlay-start:      rgba(0,0,0,0.72);
    --overlay-end:        rgba(0,0,0,0.20);
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.4);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.5);
  }
}

[data-theme="dark"] {
  --color-bg:           #0e0e0e;
  --color-surface:      #161616;
  --color-surface-2:    #1e1e1e;
  --color-border:       #2c2c2c;
  --color-divider:      #242424;
  --color-text:         #e8e8e8;
  --color-text-muted:   #888888;
  --color-text-faint:   #555555;
  --color-text-inverse: #0e0e0e;
  --color-accent:       #e8e8e8;
  --color-accent-hover: #ffffff;
  --overlay-start:      rgba(0,0,0,0.72);
  --overlay-end:        rgba(0,0,0,0.20);
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.4);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.5);
}
