/* base.css — reset, typography, layout primitives */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--fs-400);
  line-height: 1.65;
  color: var(--charcoal);
  background: var(--surface);
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--gold-dark); text-underline-offset: 0.2em; }
a:hover { color: var(--charcoal); }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.25em; }

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-variant-numeric: lining-nums;
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
  color: var(--pewter-solid);
}
h1 { font-size: var(--fs-800); }
h2 { font-size: var(--fs-700); }
h3 { font-size: var(--fs-600); }
h4 { font-size: var(--fs-500); }

/* Metallic headings — h1/h2 get pewter on light, platinum on navy */
h1, h2 {
  background: var(--pewter);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.on-navy h1, .on-navy h2 { background-image: var(--platinum); }
.on-navy h3, .on-navy h4 { color: var(--platinum-solid); }
@media (forced-colors: active) {
  h1, h2 { background: none; -webkit-text-fill-color: currentColor; }
}

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

/* Layout */
.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.section { padding-block: var(--space-section); }
.section--alt { background: var(--surface-alt); }
.on-navy { background: var(--navy-900); color: var(--text-on-navy); }
.on-navy a { color: var(--gold-light); }
.on-navy a:hover { color: #fff; }
.on-navy p { color: var(--text-on-navy); }
.muted { color: var(--text-muted); }
.on-navy .muted { color: var(--text-on-navy-muted); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75em;
  font-size: var(--fs-300);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 1rem;
}
.eyebrow::before { content: ""; width: 2.5rem; height: 1px; background: currentColor; }
.on-navy .eyebrow { color: var(--gold-light); }

.lead { font-size: var(--fs-500); line-height: 1.55; max-width: 40em; }

.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: absolute; left: 1rem; top: -4rem; z-index: 1000;
  padding: 0.75rem 1rem; background: var(--gold); color: var(--navy-950);
  font-weight: 600; text-decoration: none; border-radius: var(--radius);
}
.skip-link:focus { top: 1rem; }

body.menu-open { overflow: hidden; }

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

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.panel__num, .loader__count, .next-title, .info-title { font-variant-numeric: lining-nums; }
[hidden] { display: none !important; }
