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

* {
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  overscroll-behavior-y: none;
  /* Burgundy canvas behind everything, so any sliver beyond body's own box
     (safe-area insets, overscroll bounce) frames the page the same way the
     password gate's background does on mobile, instead of flashing white. */
  background: var(--raw-burgundy);
}

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

/* ================= BASE ELEMENTS ================= */
body {
  font-family: var(--font-body);
  font-weight: var(--weight-body);
  font-size: var(--text-body);
  line-height: 1.5;
  color: var(--color-text);
  /* Left transparent on purpose: the fixed, negative-z-index hero photos
     (.hero__video) need body's own box to be see-through so they show
     through from behind. Every section already paints its own background
     explicitly (.section--ivory/--deep/--olive/--contact), so body itself
     doesn't need to. html's background (below) shows only in the gaps
     beyond body's box — safe-area insets, mobile overscroll bounce. */
  background: transparent;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  overscroll-behavior-y: none;
}

h1, h2 {
  font-family: var(--font-h1-h2);
  font-weight: var(--weight-h1-h2);
  color: var(--color-heading);
  line-height: 1;
}

h1 { font-size: var(--text-h1); }
h2 { font-size: var(--text-h2); margin-bottom: var(--space-3); }

h3 {
  font-family: var(--font-h3);
  font-weight: var(--weight-h3);
  font-size: var(--text-h3);
  line-height: 1;
  color: inherit;
}

h4 {
  font-family: var(--font-h4);
  font-size: var(--text-h4);
}

p {
  margin-bottom: var(--space-2);
  font-size: var(--text-body);
}

a {
  color: inherit;
}

img { max-width: 100%; display: block; }

section {
  position: relative;
  padding: var(--space-14) var(--space-3);
  overflow: hidden;
  margin-bottom: -2px;
}

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

/* ================= LAYOUT HELPERS ================= */
.container {
  max-width: var(--max-content);
  margin-inline: auto;
  position: relative;
  z-index: 1;
}

.eyebrow {
  font-family: var(--font-h3);
  font-size: var(--text-h3);
  color: inherit;
  display: block;
}

.lede {
  line-height: 1.9;
}

.copy {
  font-size: var(--text-body);
  line-height: 1.30;
  max-width: 65ch;
  margin-inline: auto;
}

@media (min-width: 768px) {
  .copy {
    font-size: var(--text-body);
    line-height: 1.6;
  }
}

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

.text-center { text-align: center; }

.is-paused { display: none !important; }