/* ==========================================================================
   Base reset & global type
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  margin: 0;
}

a { color: inherit; }

::selection {
  background: var(--navy-deep);
  color: var(--white);
}

/* consistent, visible focus ring for keyboard users across every interactive element */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--gold);
  color: var(--ink);
  padding: 10px 16px;
  z-index: 1000;
}
.skip-link:focus { left: 0; }

main { display: block; }

/* sections with an id are jumped to via nav anchors — keep them clear of the sticky header */
section[id] { scroll-margin-top: 96px; }

/* scroll-reveal: sections fade/rise into place once, then stay (JS toggles .is-visible) */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
