/* base.css — reset, root typography, utilities */

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, picture, svg, video { display: block; max-width: 100%; height: auto; }
input, button, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: none; }
a { color: var(--link); text-decoration: none; }
ul, ol { list-style: none; padding: 0; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: var(--lh-heading);
  letter-spacing: -0.015em;
  color: var(--heading);
  font-optical-sizing: auto;
}
h1 { font-size: var(--fs-h1); font-weight: 500; }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
h4 { font-size: var(--fs-h4); font-weight: 600; }

p { max-width: var(--measure); }

/* ---- Focus ---- */
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 2px;
}
:where(section, main) { scroll-margin-top: calc(var(--header-h) + 16px); }

/* ---- Skip link ---- */
.skip-link {
  position: absolute; left: var(--s-4); top: -60px;
  background: var(--ink-900); color: #fff;
  padding: var(--s-3) var(--s-4); border-radius: var(--radius-btn);
  z-index: 200; transition: top var(--dur-fast) var(--ease-out);
}
.skip-link:focus { top: var(--s-4); }

/* ---- Utilities ---- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-y); }
.section--sm { padding-block: var(--section-y-sm); }
.section--dark { background: var(--ink-900); color: var(--text-on-dark); }
.section--dark h1, .section--dark h2, .section--dark h3, .section--dark h4 { color: #fff; }

.eyebrow {
  display: inline-flex; align-items: center; gap: var(--s-3);
  font-family: var(--font-body);
  font-size: var(--fs-eyebrow); font-weight: 600;
  text-transform: uppercase; letter-spacing: var(--track-eyebrow);
  color: var(--gold-deep); margin-bottom: var(--s-4);
}
.eyebrow::before { content: ""; width: 24px; height: 2px; background: var(--gold); display: inline-block; }
.section--dark .eyebrow { color: var(--gold-bright); }

.lead { font-size: var(--fs-lead); line-height: 1.55; color: var(--text-muted); max-width: 60ch; }
.section--dark .lead { color: #D7DEE8; }
.hero--dark .lead { color: #DDE3EC; }
.hero--image .lead { color: rgba(255,255,255,.94); text-shadow: 0 1px 3px rgba(0,0,0,.4); }
.hero--dark .hero__content, .hero--image .hero__content { text-shadow: 0 1px 2px rgba(0,0,0,.28); }
.muted { color: var(--text-muted); }
.measure { max-width: var(--measure); }
.center { text-align: center; margin-inline: auto; }
.center .eyebrow { justify-content: center; }

.stack > * + * { margin-top: var(--s-4); }
.stack-lg > * + * { margin-top: var(--s-8); }

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

.text-serif { font-family: var(--font-display); }
.gold { color: var(--gold-deep); }
.section--dark .gold { color: var(--gold-bright); }
