/* Base reset and tokens */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
body { min-height: 100dvh; line-height: 1.6; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, picture, svg, video { display: block; max-width: 100%; height: auto; }
input, button, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
a { color: inherit; }
ul, ol { padding: 0; list-style: none; }
h1, h2, h3, h4 { overflow-wrap: break-word; line-height: 1.1; font-weight: 400; }
p { overflow-wrap: break-word; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

: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);

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

  /* Palette: black, charcoal, cream, antique gold */
  --black: #0a0a0a;
  --charcoal: #1c1b19;
  --charcoal-2: #262522;
  --cream: #f4efe6;
  --cream-2: #ebe4d4;
  --ink: #1c1b19;
  --ink-muted: #6b645a;
  --paper-muted: #b8b0a2;
  --gold: #c5a04e;
  --gold-deep: #a67c20;
  --line-dark: rgba(244, 239, 230, 0.14);
  --line-light: rgba(28, 27, 25, 0.14);

  --font-display: 'Cormorant Garamond', 'Iowan Old Style', 'Palatino Linotype', serif;
  --font-body: 'Lato', 'Helvetica Neue', Arial, sans-serif;

  --measure: 62ch;
  --container: 72rem;
  --gutter: clamp(1.25rem, 4vw, 3rem);
}
