/* ==========================================================================
   Reset + base element styles + utilities
   ========================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

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

body {
  margin: 0;
  background: var(--ink);
  color: var(--text-1);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

body.no-scroll {
  overflow: hidden;
  height: 100dvh;
}

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

a {
  color: inherit;
  text-decoration: none;
}

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

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

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

h1,
h2,
h3,
h4,
p,
figure {
  margin: 0;
}

/* --- Focus visibility (accessibility) --- */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* --- Selection --- */
::selection {
  background: var(--gold-500);
  color: var(--navy-950);
}

/* --- Typography primitives --- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-family: var(--font-body);
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}

.eyebrow::before {
  content: "";
  width: 1.4em;
  height: 1px;
  background: currentColor;
  opacity: 0.7;
}

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

.h1 {
  font-family: var(--font-display);
  font-size: var(--fs-h1);
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: -0.01em;
}

.h2 {
  font-family: var(--font-display);
  font-size: var(--fs-h2);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.01em;
}

.h3 {
  font-family: var(--font-display);
  font-size: var(--fs-h3);
  font-weight: 600;
  line-height: 1.15;
}

.lede {
  font-size: var(--fs-body-lg);
  color: var(--text-2);
  line-height: 1.5;
}

.section-light .lede {
  color: var(--paper-ink-2);
}

.section-light,
.section-light .h1,
.section-light .h2,
.section-light .h3 {
  color: var(--paper-ink-1);
}

.text-accent {
  color: var(--accent);
}

.section-light .text-accent {
  color: var(--gold-600);
}

.serif-em {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
}

/* --- Layout primitives --- */
.container {
  width: min(100% - 2.5rem, var(--container));
  margin-inline: auto;
}

@media (min-width: 640px) {
  .container {
    width: min(100% - 4rem, var(--container));
  }
}

.container-wide {
  width: min(100% - 2.5rem, var(--container-wide));
  margin-inline: auto;
}

.section {
  position: relative;
  padding-block: var(--section-pad);
}

.section-light {
  background: var(--paper);
  color: var(--paper-ink-1);
}

.section-head {
  max-width: 42rem;
  margin-bottom: clamp(1.5rem, 1.2rem + 1.5vw, 3rem);
}

.section-head--center {
  margin-inline: auto;
  text-align: center;
}

.stack {
  display: flex;
  flex-direction: column;
}

.visually-hidden {
  position: absolute;
  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: -100px;
  left: 1rem;
  z-index: 999;
  background: var(--gold-400);
  color: var(--navy-950);
  padding: 0.75rem 1.25rem;
  border-radius: var(--r-sm);
  font-weight: 700;
  transition: top var(--dur-fast) var(--ease-out);
}

.skip-link:focus {
  top: 1rem;
}
