/* ==========================================================================
   Base - design tokens, resets, typography
   ========================================================================== */

:root {
  /* Palette */
  --color-charcoal: #111111;
  --color-charcoal-soft: #1a1d1c;
  --color-deep-green: #062f2d;
  --color-deep-green-dark: #04211f;
  --color-deep-green-soft: #0a3f3c;
  --color-gold: #c9972b;
  --color-gold-soft: #d8a93f;
  --color-cream: #f7f2e8;
  --color-cream-warm: #efe7d6;
  --color-white: #ffffff;
  --color-line: rgba(247, 242, 232, 0.16);
  --color-line-dark: rgba(17, 17, 17, 0.12);

  /* Text */
  --text-light: #f7f2e8;
  --text-light-muted: rgba(247, 242, 232, 0.72);
  --text-dark: #14201f;
  --text-dark-muted: #56615f;

  /* Typography */
  --font-serif: "Cormorant Garamond", "Playfair Display", Georgia, "Times New Roman", serif;
  --font-sans: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-mono: "SF Mono", Menlo, Consolas, monospace;

  --tracking-tight: -0.01em;
  --tracking-wide: 0.18em;
  --tracking-xwide: 0.32em;

  /* Spacing */
  --space-3xs: 4px;
  --space-2xs: 8px;
  --space-xs: 12px;
  --space-sm: 16px;
  --space-md: 24px;
  --space-lg: 40px;
  --space-xl: 64px;
  --space-2xl: 96px;
  --space-3xl: 128px;

  /* Layout */
  --container-max: 1440px;
  --container-pad: clamp(20px, 4vw, 56px);
  --radius-sm: 2px;
  --radius-md: 4px;
  --radius-lg: 8px;

  /* Motion */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-fast: 180ms;
  --dur-base: 320ms;
  --dur-slow: 600ms;

  /* Elevation */
  --shadow-sm: 0 2px 12px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 12px 36px rgba(0, 0, 0, 0.16);
  --shadow-lg: 0 24px 80px rgba(0, 0, 0, 0.32);
}

/* Reset */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-dark);
  background: var(--color-cream);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: var(--tracking-tight);
  margin: 0 0 var(--space-sm);
  color: inherit;
}

h1 { font-size: clamp(2.8rem, 6vw, 5.2rem); }
h2 { font-size: clamp(2rem, 4vw, 3.4rem); }
h3 { font-size: clamp(1.5rem, 2.4vw, 2rem); }
h4 { font-size: clamp(1.15rem, 1.6vw, 1.35rem); font-family: var(--font-sans); font-weight: 500; letter-spacing: 0; }
h5 { font-size: 1rem; font-family: var(--font-sans); font-weight: 500; }

p {
  margin: 0 0 var(--space-sm);
  color: inherit;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease-out);
}

a:hover { color: var(--color-gold); }

img, picture, video, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

input, textarea, select {
  font: inherit;
  color: inherit;
}

ul, ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

::selection {
  background: var(--color-gold);
  color: var(--color-deep-green-dark);
}

/* Utility text */
.eyebrow {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: var(--tracking-xwide);
  color: var(--color-gold);
  margin-bottom: var(--space-md);
}

.eyebrow--light { color: var(--color-gold-soft); }

.lead {
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  line-height: 1.65;
  color: var(--text-dark-muted);
  max-width: 56ch;
}

.lead--light { color: var(--text-light-muted); }

/* Section title block */
.section-head {
  max-width: 720px;
  margin: 0 auto var(--space-xl);
  text-align: center;
}

.section-head--left {
  margin-left: 0;
  margin-right: auto;
  text-align: left;
}

.section-head p {
  font-size: 1.05rem;
  color: var(--text-dark-muted);
}

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

:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 3px;
}

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