/* ============================================================================
 *  base.css — reset, document type, a11y primitives, layout primitives.
 * ========================================================================== */

*, *::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);
  font-size: var(--step-0);
  line-height: 1.62;
  color: var(--ink);
  background: var(--char);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: 'kern' 1;
  overflow-x: hidden;
}
body.nav-open { overflow: hidden; }

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }

a { color: var(--red-bright); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

button, input, select, textarea { font: inherit; color: inherit; }

::selection { background: var(--red); color: var(--on-red); }

:focus-visible {
  outline: 2.5px solid var(--red-bright);
  outline-offset: 2px;
  border-radius: 3px;
}

/* ---- Headings: condensed industrial display ---------------------------- */
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: 0.005em;
  text-transform: uppercase;
  color: var(--ink);
  text-wrap: balance;
}
h1 { font-size: var(--step-6); }
h2 { font-size: var(--step-4); }
h3 { font-size: var(--step-1); letter-spacing: 0.01em; }

p { text-wrap: pretty; }

/* ---- Shared text accents ---------------------------------------------- */
.eyebrow {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: var(--step--1);
  color: var(--red-bright);
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  margin-bottom: var(--space-xs);
}
.eyebrow::before {
  content: "";
  width: 1.8rem; height: 2px;
  background: var(--red);
  display: inline-block;
}
.eyebrow--center { justify-content: center; }

.lede {
  font-size: var(--step-1);
  line-height: 1.5;
  color: color-mix(in oklch, var(--ink) 88%, var(--char));
  max-width: var(--measure);
}

.hl { color: var(--red-bright); }

/* ---- Layout primitives (full-bleed with readable measure) -------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--wide { max-width: var(--container-wide); }

.section { padding-block: var(--space-2xl); }

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

/* ---- Honeypot (must stay visually hidden) ------------------------------ */
.hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px; height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

/* ---- A11y helpers ------------------------------------------------------ */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute;
  left: 0.75rem; top: -3.5rem;
  z-index: 200;
  background: var(--red);
  color: var(--on-red);
  padding: 0.6rem 1rem;
  border-radius: var(--r);
  font-weight: 700;
  transition: top var(--dur) var(--ease);
}
.skip-link:focus { top: 0.75rem; text-decoration: none; }

/* ---- Form status colors ----------------------------------------------- */
[data-form-success] { color: oklch(82% 0.15 150); font-weight: 600; }
[data-form-error]   { color: var(--red-bright); font-weight: 600; }

/* ---- Reveal on scroll (only when JS on + motion allowed) --------------- */
html.js [data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity var(--dur-slow) var(--ease), transform var(--dur-slow) var(--ease);
  will-change: opacity, transform;
}
html.js [data-reveal].is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html.js [data-reveal] { opacity: 1; transform: none; transition: none; }
}
