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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--ga-cream);
  color: var(--ga-text);
  font-family: var(--ga-font-body);
  font-size: var(--ga-text-base);
  line-height: 1.6;
}

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

a {
  color: inherit;
}

.ga-container {
  width: min(calc(100% - 2rem), var(--ga-container));
  margin-inline: auto;
}

.ga-container-narrow {
  width: min(calc(100% - 2rem), var(--ga-content));
  margin-inline: auto;
}

/* ---------- Typography ---------- */

h1,
h2,
h3 {
  font-family: var(--ga-font-display);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 var(--ga-space-3);
}

h1 {
  font-size: var(--ga-text-3xl);
}

h2 {
  font-size: var(--ga-text-2xl);
}

h3 {
  font-size: var(--ga-text-xl);
}

h4,
h5,
h6 {
  font-family: var(--ga-font-body);
  font-weight: 600;
  line-height: 1.3;
  margin: 0 0 var(--ga-space-2);
}

p {
  margin: 0 0 var(--ga-space-3);
}

.lead {
  font-size: var(--ga-text-lg);
  color: var(--ga-muted);
}

.surface-dark .lead {
  color: var(--ga-surface-dark-muted);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-family: var(--ga-font-body);
  font-size: var(--ga-text-sm);
  font-weight: 600;
  letter-spacing: var(--ga-tracking-label);
  text-transform: uppercase;
  color: var(--ga-muted);
  margin: 0 0 var(--ga-space-2);
}

.eyebrow::before {
  content: "";
  display: block;
  width: 1.5em;
  height: 2px;
  flex: none;
  background: var(--ga-gold);
}

.surface-dark .eyebrow {
  color: var(--ga-surface-dark-muted);
}

/* ---------- Surfaces ---------- */

.surface-dark {
  background: var(--ga-surface-dark-bg);
  color: var(--ga-surface-dark-text);
}

.surface-light {
  background: var(--ga-surface-light-bg);
  color: var(--ga-surface-light-text);
}

.surface-alt {
  background: var(--ga-surface-alt-bg);
  color: var(--ga-surface-light-text);
}

/* ---------- Layout rhythm ---------- */

.section {
  padding-block: var(--ga-space-6);
}

.section-sm {
  padding-block: var(--ga-space-4);
}

/* ---------- Accessibility utilities ---------- */

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

.skip-link {
  position: absolute;
  top: -3rem;
  left: var(--ga-space-2);
  z-index: 100;
  padding: var(--ga-space-1) var(--ga-space-2);
  background: var(--ga-gold);
  color: var(--ga-black);
  font-family: var(--ga-font-body);
  text-decoration: none;
  border-radius: var(--ga-radius-sm);
  transition: top 0.15s ease;
}

.skip-link:focus {
  top: var(--ga-space-2);
}

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

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
