/* ============================================================================
 *  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; overflow-x: clip; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--font);
  font-size: var(--step-0);
  line-height: 1.66;
  color: var(--ink-1);
  background: var(--canvas);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, picture, svg, video { display: block; max-width: 100%; height: auto; }
/* Stroke icons keep their fill="none"; filled glyphs (stars, brand dot) set fill explicitly. */

/* ---- Headings: Syne display -------------------------------------------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.03;
  letter-spacing: -0.02em;
  color: var(--ink-1);
  text-wrap: balance;
}
h1 { font-size: var(--step-6); letter-spacing: -0.035em; line-height: 0.98; }
h2 { font-size: var(--step-4); letter-spacing: -0.025em; }
h3 { font-size: var(--step-2); font-weight: 600; }
h4 { font-size: var(--step-1); font-weight: 600; }

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

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

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

:focus-visible { outline: 2.5px solid var(--plum); outline-offset: 3px; border-radius: 4px; }
:focus:not(:focus-visible) { outline: none; }
::selection { background: var(--blush-deep); color: var(--ink-1); }

/* ---- 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(--plum-deep); color: #fff;
  padding: 10px 16px; border-radius: var(--r-sm); z-index: 200; transition: top var(--dur) var(--ease);
}
.skip-link:focus { top: 16px; color: #fff; }

/* ---- Layout primitives -------------------------------------------------- */
/* Full-bleed: sections use the whole screen with a slim gutter; text blocks
   stay readable via .measure. .container--wide softly caps very wide rows. */
.container { width: 100%; margin-inline: auto; padding-inline: var(--gutter); }
.container--wide { max-width: var(--container); }
.section { padding-block: var(--space-3xl); }
.measure { max-width: var(--measure); }
.center { text-align: center; margin-inline: auto; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 0.65em;
  font-family: var(--font); font-size: var(--step--1); font-weight: 700;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--bronze-ink);
}
.eyebrow::before { content: ""; width: 2.1rem; height: 2px; background: var(--bronze); border-radius: 2px; }
.eyebrow--center { justify-content: center; }
.eyebrow--center::after { content: ""; width: 2.1rem; height: 2px; background: var(--bronze); border-radius: 2px; }
.eyebrow--light { color: oklch(82% 0.07 75); }
.eyebrow--light::before, .eyebrow--light::after { background: var(--bronze); }

.lede { font-size: var(--step-1); line-height: 1.55; color: color-mix(in oklab, var(--ink-1) 80%, var(--canvas)); }

[data-form-success] { color: var(--plum-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; }
}
