*,
*::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.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

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

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
  font-weight: 400;
  color: var(--color-text);
}

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

p:last-child {
  margin-bottom: 0;
}

a {
  color: var(--color-text);
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-out);
}

a:hover {
  color: var(--color-accent);
}

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

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

input,
textarea,
select {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

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

/* On dark surfaces, the brighter gold has sufficient contrast and reads better.
   The nav overlay is a LIGHT surface, so it keeps the default gold-on-light ring. */
.section--dark *:focus-visible,
.footer *:focus-visible {
  outline-color: var(--color-gold);
}

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

.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--color-charcoal);
  color: var(--color-bg);
  padding: var(--space-3) var(--space-5);
  z-index: 1000;
  text-decoration: none;
  font-family: var(--font-sans);
  font-size: 0.875rem;
}

.skip-link:focus {
  top: 0;
  color: var(--color-bg);
}

.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;
}

/* Typography */
.eyebrow {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-gold-on-light);
  margin: 0 0 var(--space-5);
  display: block;
}

.h1,
h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 2.75rem;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

@media (min-width: 768px) {
  .h1,
  h1 {
    font-size: 4rem;
    letter-spacing: -0.02em;
    line-height: 1.08;
  }
}

.display,
h1.display {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 2.875rem;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

@media (min-width: 500px) {
  .display,
  h1.display {
    font-size: 3.25rem;
  }
}

@media (min-width: 768px) {
  .display,
  h1.display {
    font-size: 5.5rem;
    letter-spacing: -0.025em;
  }
}

@media (min-width: 1200px) {
  .display,
  h1.display {
    font-size: 6.25rem;
  }
}

.h2,
h2 {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 1.75rem;
  line-height: 1.25;
  letter-spacing: -0.005em;
}

@media (min-width: 768px) {
  .h2,
  h2 {
    font-size: 2rem;
  }
}

.h2--lg,
h2.h2--lg {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 2.25rem;
  line-height: 1.2;
  letter-spacing: -0.015em;
}

@media (min-width: 768px) {
  .h2--lg,
  h2.h2--lg {
    font-size: 2.75rem;
  }
}

.h3,
h3 {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 1.25rem;
  line-height: 1.3;
}

.h4,
h4 {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 1.05rem;
  line-height: 1.35;
}

.lead {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--color-text-secondary);
  max-width: 56ch;
}

@media (min-width: 768px) {
  .lead {
    font-size: 1.3125rem;
    line-height: 1.55;
  }
}

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

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