:root {
  /* 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(3rem, 0.5rem + 7vw, 7.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: 2px; --radius-md: 4px; --radius-lg: 8px; --radius-full: 9999px;

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

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

  /* Font families */
  --font-display: 'Cormorant Garamond', 'Times New Roman', serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
}

/* LIGHT (used only if user requests) */
:root, [data-theme='light'] {
  --color-bg: #f4efe6;
  --color-surface: #ede6d8;
  --color-surface-2: #f8f3e9;
  --color-surface-offset: #e6dcc9;
  --color-divider: #d5c9b0;
  --color-border: #c9b98f;
  --color-text: #201a12;
  --color-text-muted: #6d6250;
  --color-text-faint: #a89e88;
  --color-text-inverse: #f4efe6;
  --color-primary: #8a6a2a;      /* antique brass */
  --color-primary-hover: #6f5320;
  --color-primary-active: #4d3915;
  --color-accent: #b08a3d;        /* polished brass */
  --color-copper: #b46b3c;
  --shadow-sm: 0 1px 2px rgba(30, 22, 10, 0.10);
  --shadow-md: 0 8px 24px rgba(30, 22, 10, 0.14);
  --shadow-lg: 0 24px 60px rgba(30, 22, 10, 0.22);
}

/* DARK (default — luxury) */
[data-theme='dark'] {
  --color-bg: #0e0c09;             /* obsidian */
  --color-surface: #141210;
  --color-surface-2: #1a1714;
  --color-surface-offset: #221d17;
  --color-divider: #2b2620;
  --color-border: #3a3128;
  --color-text: #ece3d0;           /* warm parchment */
  --color-text-muted: #a89e88;
  --color-text-faint: #6d6250;
  --color-text-inverse: #0e0c09;
  --color-primary: #c9a35a;        /* aged brass — CTAs */
  --color-primary-hover: #d8b775;
  --color-primary-active: #b28d43;
  --color-accent: #e6c988;         /* highlight brass */
  --color-copper: #c9814e;         /* copper reveal */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 12px 32px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 32px 80px rgba(0, 0, 0, 0.65);
}

/* Reset */
*, *::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: 88px;
}

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);
  font-weight: 400;
  overflow-x: hidden;
}

img, picture, video, 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; }
button { cursor: pointer; background: none; border: none; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
p { text-wrap: pretty; }

a { color: inherit; text-decoration: none; }
::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);
}

a, button, [role='button'], input, textarea, select {
  transition:
    color var(--transition-interactive),
    background var(--transition-interactive),
    border-color var(--transition-interactive),
    box-shadow var(--transition-interactive),
    transform var(--transition-interactive);
}

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

.container {
  width: 100%;
  max-width: var(--content-wide);
  margin: 0 auto;
  padding-inline: clamp(1.25rem, 4vw, 2.5rem);
}
