/* ==========================================================================
   Base reset & element defaults
   ========================================================================== */

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: 0.01em;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0; }

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

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

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

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

/* ---- Screen-reader-only utility ---- */
.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;
}

.skip-link {
  position: absolute;
  left: 1rem; top: -60px;
  background: var(--gold);
  color: var(--graphite-950);
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  z-index: 1000;
  transition: top var(--duration-fast) var(--ease-standard);
}
.skip-link:focus { top: 1rem; }

/* ---- Shared layout utilities ---- */
.container {
  max-width: var(--content-max);
  margin-inline: auto;
  padding-inline: var(--space-md);
}
@media (max-width: 640px) {
  .container { padding-inline: var(--space-sm); }
}

.section {
  padding-block: var(--space-2xl);
}
@media (max-width: 900px) {
  .section { padding-block: var(--space-xl); }
}

.section--light {
  background: var(--bg-secondary);
  color: var(--text-secondary);
}

.eyebrow {
  font-family: var(--font-body);
  font-size: var(--step--1);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--accent);
  display: inline-block;
  margin-bottom: var(--space-xs);
}

.section-head {
  max-width: var(--content-narrow);
  margin-bottom: var(--space-lg);
}
.section-head h2 {
  font-size: var(--step-4);
}
.section-head p {
  margin-top: var(--space-sm);
  font-size: var(--step-1);
  color: var(--text-primary-muted);
}
.section--light .section-head p { color: var(--text-secondary-muted); }

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

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  padding: 0.95em 2em;
  font-size: var(--step--1);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 2px;
  transition: background var(--duration-fast) var(--ease-standard),
              color var(--duration-fast) var(--ease-standard),
              border-color var(--duration-fast) var(--ease-standard),
              transform var(--duration-fast) var(--ease-standard);
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }

.btn--primary {
  background: var(--gold);
  color: var(--graphite-950);
}
.btn--primary:hover { background: var(--ink-on-dark); }

.btn--outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-gold);
}
.btn--outline:hover { border-color: var(--gold); background: var(--gold-soft); }

.section--light .btn--outline {
  color: var(--text-secondary);
  border: 1px solid rgba(23,23,26,0.22);
}
.section--light .btn--outline:hover { border-color: var(--gold-strong); background: var(--gold-soft); }

/* Accessibility: base --gold (#D3B783) only clears AA contrast against the dark
   surface. Any gold used as text on the light/champagne surface must use the
   darkened --gold-strong instead (5.3:1). */
.section--light .eyebrow { color: var(--gold-strong); }

.btn--text {
  background: none;
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: var(--step--1);
  padding: 0.4em 0;
  border-bottom: 1px solid var(--border-gold);
  border-radius: 0;
}
.btn--text:hover { border-color: var(--gold); }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  align-items: center;
}

.gold-divider {
  width: 64px;
  height: 1px;
  background: var(--gold);
  margin-block: var(--space-sm);
}
.gold-divider--center { margin-inline: auto; }
