/* Reset + base typography + layout primitives. */

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
[hidden] { display: none !important; }

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

body {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: var(--lh);
  color: var(--text);
  background: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
  overflow-x: clip; /* prevent h-scroll without making body a scroll container (keeps window scroll + IO working) */
}

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

/* ---- Headings ---- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: var(--lh-tight);
  font-weight: 800;
  letter-spacing: -.01em;
}
h1 { font-size: var(--fs-4xl); }
h2 { font-size: var(--fs-3xl); }
h3 { font-size: var(--fs-xl); }
h4 { font-size: var(--fs-lg); }
p { max-width: 68ch; }

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

/* ---- Skip link ---- */
.skip-link {
  position: absolute;
  left: var(--s-4);
  top: -120%;
  z-index: 200;
  background: var(--gold);
  color: var(--on-gold);
  padding: var(--s-3) var(--s-4);
  border-radius: var(--r);
  font-weight: 700;
}
.skip-link:focus { top: var(--s-4); }

/* ---- Layout ---- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--s-5); }
.container--wide { max-width: var(--maxw-wide); }
.section { padding-block: clamp(var(--s-7), 8vw, var(--s-9)); }
.section--tight { padding-block: var(--s-7); }

.stack > * + * { margin-top: var(--s-4); }
.grid { display: grid; gap: var(--s-5); }

/* ---- Eyebrow / section heads ---- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  font-family: var(--font-display);
  font-size: var(--fs-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: var(--tracking-cap);
  color: var(--gold);
}
.eyebrow::before {
  content: "";
  width: 28px; height: 2px;
  background: var(--gold);
}
.section-head { margin-bottom: var(--s-6); }
.section-head h2 { margin-top: var(--s-2); }
.section-head p { color: var(--text-dim); margin-top: var(--s-3); }

.lead { font-size: var(--fs-md); color: var(--text-dim); }
.text-gold { color: var(--gold); }
.text-dim { color: var(--text-dim); }

/* ---- Buttons ---- */
.btn {
  --btn-bg: var(--surface-2);
  --btn-fg: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  padding: var(--s-3) var(--s-5);
  min-height: 48px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-sm);
  letter-spacing: .02em;
  text-transform: uppercase;
  background: var(--btn-bg);
  color: var(--btn-fg);
  border-radius: var(--r);
  border: 1px solid var(--line-strong);
  transition: transform var(--dur-1) var(--ease), box-shadow var(--dur-2) var(--ease), background var(--dur-1) var(--ease);
  will-change: transform;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--primary {
  --btn-bg: linear-gradient(135deg, var(--crimson) 0%, var(--crimson-600) 100%);
  --btn-fg: var(--on-crimson);
  border-color: transparent;
}
.btn--primary:hover { box-shadow: var(--glow-crimson); }
.btn--gold {
  --btn-bg: linear-gradient(135deg, var(--gold-300) 0%, var(--gold) 100%);
  --btn-fg: var(--on-gold);
  border-color: transparent;
}
.btn--gold:hover { box-shadow: var(--glow-gold); }
.btn--ghost { --btn-bg: transparent; }
.btn--ghost:hover { background: var(--surface-2); }
.btn--lg { min-height: 56px; padding-inline: var(--s-6); font-size: var(--fs-base); }
.btn--block { width: 100%; }

/* ---- Visually hidden ---- */
.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;
}

/* ---- Page lock when an overlay is open ---- */
body.is-locked { overflow: hidden; }
