/* ===========================================================
   Base / Reset / Typography
   =========================================================== */

*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; overflow-x: hidden; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
@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;
    scroll-behavior: auto !important;
  }
}

body, h1, h2, h3, h4, p, figure, blockquote, dl, dd{ margin: 0; }
ul, ol{ margin: 0; padding: 0; list-style: none; }
img{ max-width: 100%; display: block; }
a{ color: inherit; text-decoration: none; }
button{ font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, textarea, select{ font: inherit; color: inherit; }
svg{ display: block; }

html, body{ height: 100%; }
body{
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

::selection{ background: var(--gold); color: var(--ink); }

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

/* ---- Typography scale ---- */
h1, h2, h3, h4{
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.h-display{
  font-size: clamp(3.1rem, 3vw + 2rem, 6.4rem);
  line-height: 0.94;
  font-weight: 480;
}

.h-1{ font-size: clamp(2.2rem, 1.6vw + 1.8rem, 3.6rem); font-weight: 480; }
.h-2{ font-size: clamp(1.6rem, 1vw + 1.3rem, 2.35rem); font-weight: 500; }
.h-3{ font-size: clamp(1.25rem, .5vw + 1.1rem, 1.55rem); font-weight: 500; }

.eyebrow{
  display: inline-flex;
  align-items: center;
  gap: .65em;
  font-family: var(--font-body);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold-dim);
}
.eyebrow::before{
  content: "";
  width: 22px;
  height: 1px;
  background: currentColor;
  flex: none;
}
.eyebrow.on-dark{ color: var(--gold); }

.lede{
  font-size: clamp(1rem, .3vw + .95rem, 1.15rem);
  line-height: 1.65;
  color: var(--muted);
  max-width: 46ch;
}
.on-dark .lede, .lede.on-dark{ color: var(--muted-dark); }

p.copy{
  max-width: 62ch;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.75;
}

.serif-italic{ font-style: italic; font-weight: 400; }

/* ---- Layout helpers ---- */
.container{
  width: 100%;
  max-width: var(--container-w);
  margin-inline: auto;
  padding-inline: var(--pad-x);
}

.section{ padding-block: var(--sp-9); }
.section--tight{ padding-block: var(--sp-8); }
.section--dark{ background: var(--charcoal); color: var(--paper); }

.hr{
  border: 0;
  border-top: 1px solid var(--line);
  margin: 0;
}
.hr.on-dark{ border-top-color: var(--line-dark); }

.gold-rule{
  width: 46px;
  height: 2px;
  background: var(--gold);
  border: 0;
}

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

.skip-link{
  position: fixed;
  top: -60px; left: 12px;
  background: var(--ink);
  color: var(--paper);
  padding: .75em 1.25em;
  z-index: 999;
  transition: top .2s var(--ease-editorial);
  font-size: .85rem;
  letter-spacing: .04em;
}
.skip-link:focus{ top: 12px; }
