/* ─────────────────────────────────────────────
   Design Tokens — Lis De La Valle
   Warm boutique palette: ivory + burgundy
   ───────────────────────────────────────────── */

:root, [data-theme="light"] {
  /* Surfaces — warm ivory / champagne */
  --color-bg:               #fdfaf4;
  --color-surface:          #f8f2e7;
  --color-surface-2:        #fffdf8;
  --color-surface-offset:   #f1e8d6;
  --color-surface-offset-2: #e8dcc5;
  --color-divider:          #e3d6bd;
  --color-border:           #d3c2a4;

  /* Text — deep warm charcoal */
  --color-text:         #2a1f17;
  --color-text-muted:   #6b5a48;
  --color-text-faint:   #a89a85;
  --color-text-inverse: #fdfaf4;

  /* Primary — Deep Bordeaux / Wine */
  --color-primary:           #6b1f30;
  --color-primary-hover:     #581826;
  --color-primary-active:    #45121d;
  --color-primary-highlight: #e8d4d8;

  /* Accent — Antique Gold */
  --color-gold:        #b78c4a;
  --color-gold-hover:  #9c7438;
  --color-gold-soft:   #d9bd8b;

  /* Type */
  --font-display: 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
  --font-body:    'Inter', 'Helvetica Neue', system-ui, sans-serif;

  /* 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.5rem,   0.5rem  + 6vw,    6.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;
  --space-32: 8rem;

  /* Radius */
  --radius-sm: 0.25rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1.25rem;
  --radius-full: 9999px;

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

  /* Shadows — warm */
  --shadow-sm: 0 1px 2px rgba(60, 40, 20, 0.06);
  --shadow-md: 0 6px 20px rgba(60, 40, 20, 0.08);
  --shadow-lg: 0 18px 50px rgba(60, 40, 20, 0.14);

  /* Content widths */
  --content-narrow:  640px;
  --content-default: 1080px;
  --content-wide:    1280px;
}

[data-theme="dark"] {
  --color-bg:               #1a1410;
  --color-surface:          #221a14;
  --color-surface-2:        #271e17;
  --color-surface-offset:   #2d231b;
  --color-surface-offset-2: #382c21;
  --color-divider:          #3a2f25;
  --color-border:           #50412f;

  --color-text:         #f0e6d4;
  --color-text-muted:   #b3a48a;
  --color-text-faint:   #7a6c56;
  --color-text-inverse: #1a1410;

  --color-primary:           #c46a7d;
  --color-primary-hover:     #d68094;
  --color-primary-active:    #b35669;
  --color-primary-highlight: #3a242a;

  --color-gold:       #d9b176;
  --color-gold-hover: #e9c692;
  --color-gold-soft:  #5c4928;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 6px 20px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 18px 50px rgba(0, 0, 0, 0.6);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --color-bg:               #1a1410;
    --color-surface:          #221a14;
    --color-surface-2:        #271e17;
    --color-surface-offset:   #2d231b;
    --color-surface-offset-2: #382c21;
    --color-divider:          #3a2f25;
    --color-border:           #50412f;
    --color-text:         #f0e6d4;
    --color-text-muted:   #b3a48a;
    --color-text-faint:   #7a6c56;
    --color-primary:           #c46a7d;
    --color-primary-hover:     #d68094;
    --color-primary-highlight: #3a242a;
    --color-gold:       #d9b176;
  }
}

/* ─────────────────────────────────────────────
   Base
   ───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  min-height: 100dvh;
  line-height: 1.6;
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--color-text);
  background-color: var(--color-bg);
}

img, picture, video, canvas, svg { display: block; max-width: 100%; height: auto; }
ul[role="list"], ol[role="list"] { list-style: none; }
input, button, textarea, select { font: inherit; color: inherit; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.1;
  text-wrap: balance;
  color: var(--color-text);
}

p, li, figcaption { text-wrap: pretty; }

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition-interactive);
}
a:hover { color: var(--color-primary-hover); }

::selection {
  background: var(--color-primary);
  color: var(--color-text-inverse);
}

:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

button { cursor: pointer; background: none; border: none; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.container {
  width: 100%;
  max-width: var(--content-wide);
  margin: 0 auto;
  padding-inline: var(--space-5);
}
@media (min-width: 768px) {
  .container { padding-inline: var(--space-8); }
}
@media (min-width: 1200px) {
  .container { padding-inline: var(--space-12); }
}
