/* ============================================================================
 *  base.css — reset, typography, focus, motion, a11y primitives.
 *  (.hp honeypot must stay hidden — forms.js relies on it.)
 * ========================================================================== */

*, *::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.65;
  color: var(--char);
  background: var(--ivory);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

/* ---- Headings: Big Shoulders Display (condensed shop-signage) ----------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 0.96;
  letter-spacing: 0.005em;
  color: var(--char);
  text-wrap: balance;
}
h1 { font-size: var(--step-6); line-height: 0.92; }
h2 { font-size: var(--step-4); }
h3 { font-size: var(--step-2); font-weight: 600; line-height: 1.0; }
h4 { font-size: var(--step-1); font-weight: 700; }

p { text-wrap: pretty; }
strong, b { font-weight: 600; }

a { color: var(--navy); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--navy-700); }

ul, ol { padding: 0; list-style: none; }

:focus-visible { outline: 2.5px solid var(--navy); outline-offset: 3px; border-radius: 4px; }
:focus:not(:focus-visible) { outline: none; }
::selection { background: var(--navy-100); color: var(--char); }

/* ---- Honeypot + a11y --------------------------------------------------- */
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0;
  clip: rect(0 0 0 0); clip-path: inset(50%); overflow: hidden; white-space: nowrap;
}
.skip-link {
  position: absolute; left: 16px; top: -48px; background: var(--char); color: var(--cream);
  padding: 10px 16px; border-radius: var(--r-sm); z-index: 100; transition: top var(--dur) var(--ease);
}
.skip-link:focus { top: 16px; color: var(--cream); }

/* ---- Layout primitives -------------------------------------------------- */
.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
.container--wide { --container: var(--container-wide); }
.section { padding-block: var(--space-3xl); }
.measure { max-width: var(--measure); }
.center { text-align: center; margin-inline: auto; }

/* ---- Eyebrow: barber-pole stripe flourish ------------------------------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.7em;
  font-family: var(--font); font-size: var(--step--1); font-weight: 700;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--navy);
}
.eyebrow::before {
  content: ""; width: 2.4rem; height: 9px; border-radius: 2px;
  background: var(--pole); box-shadow: inset 0 0 0 1px oklch(24% 0.014 264 / 0.10);
}
.eyebrow--center { justify-content: center; }
.eyebrow--center::after {
  content: ""; width: 2.4rem; height: 9px; border-radius: 2px;
  background: var(--pole); box-shadow: inset 0 0 0 1px oklch(24% 0.014 264 / 0.10);
}
.eyebrow--dark { color: var(--brass-soft); }

.lede { font-size: var(--step-1); line-height: 1.55; color: color-mix(in oklab, var(--char) 84%, var(--ivory)); }

[data-form-success] { color: var(--navy-700); font-weight: 600; }
[data-form-error]   { color: oklch(52% 0.17 25); font-weight: 500; }

/* ---- Reveal on scroll (gated on html.js so content shows without JS) ---- */
html.js [data-reveal] {
  opacity: 0; transform: translateY(18px);
  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; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}
