/* ============================================================
   Base: reset, typography defaults, a11y, global fallbacks
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bone);
  font-family: var(--font-body);
  color: var(--ink);
  line-height: 1.5;
  overflow-x: hidden;
}

a { color: var(--red); text-decoration: none; }
a:hover { color: var(--red-hover); }

img, svg, video { max-width: 100%; }

h1, h2, h3 { font-weight: 400; }

/* Every anchor target clears the fixed nav */
[id] { scroll-margin-top: 84px; }

/* Skip link */
.skip-link {
  position: absolute;
  top: -60px;
  left: 16px;
  z-index: 100;
  background: var(--ink);
  color: #fff;
  padding: 10px 18px;
  font-family: var(--font-display);
  letter-spacing: 0.08em;
  font-size: 14px;
  transition: top 0.2s ease;
}
.skip-link:focus-visible { top: 8px; color: #fff; }

/* Branded focus ring */
:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 2px;
}

/* Outline type — solid fallback when text-stroke is unsupported,
   otherwise transparent-fill letters would be invisible */
.stroke-white { color: transparent; -webkit-text-stroke: 2px #fff; }
.stroke-red   { color: transparent; -webkit-text-stroke: 2px var(--red); }
@supports not (-webkit-text-stroke: 1px black) {
  .stroke-white { color: #fff; }
  .stroke-red   { color: var(--red); }
}

/* Reduced motion: instant anchor jumps (module-level rules live in motion.css) */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
