/* ============================================================
   LAYER 3 — GLOBAL
   Reset, base elements, typography, layout primitives.
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background: var(--cream);
  color: var(--text);
  font-size: var(--fs-body);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a   { color: inherit; text-decoration: none; }
ul  { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

h1,h2,h3,h4 { font-family: var(--font-serif); color: var(--navy); line-height: 1.15; }
h1 { font-size: clamp(2.6rem, 5vw, 4.5rem); font-weight: 400; }
h2 { font-size: clamp(2rem, 4vw, 3.4rem);   font-weight: 400; }
h3 { font-size: clamp(1.4rem, 2.5vw, 2rem); font-weight: 400; }

p { color: var(--muted); }

/* Cap line length everywhere so text stays readable */
p, li, blockquote { max-width: var(--measure); }

em.gold { font-style: italic; color: var(--gold); font-family: var(--font-serif); }

.serif { font-family: var(--font-serif); }

.eyebrow {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-text);
  margin-bottom: 24px;
}

.gold-line { display: block; width: 40px; height: 1.5px; background: var(--gold); margin: 20px 0 32px; }

.container { max-width: var(--container-max); margin: 0 auto; padding: 0 var(--container-pad); }
section    { padding: var(--space-section) 0; }

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

/* Keyboard focus — visible on every interactive element */
:focus-visible {
  outline: 2px solid var(--gold-text);
  outline-offset: 3px;
  border-radius: 2px;
}
#hero :focus-visible,
#why :focus-visible,
#risks :focus-visible,
#contact :focus-visible,
#navbar.dark :focus-visible,
.mobile-menu :focus-visible {
  outline-color: var(--gold-light);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}
