/* ============================================================
   skeleton.css — reset + type rhythm + a few primitives.
   NO layout, NO components — build those fresh per ART-DIRECTION.md.
   Depends on tokens.css being loaded first.
   ============================================================ */
*, *::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 {
  background: var(--c-bg);
  color: var(--c-ink);
  font-family: var(--f-text);
  font-size: var(--step-0);
  line-height: var(--lh-body);
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;          /* parallax/marquee safety */
}

img, picture, svg, video { display: block; max-width: 100%; height: auto; }
input, button, textarea, select { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }

h1, h2, h3 {
  font-family: var(--f-display);
  line-height: var(--lh-tight);
  letter-spacing: var(--tracking-display);
  font-weight: 500;
  text-wrap: balance;          /* no orphans in headlines */
}
h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-2); line-height: var(--lh-snug); }
p  { max-width: var(--maxw-prose); text-wrap: pretty; }

::selection { background: var(--c-accent); color: var(--c-accent-ink); }
:focus-visible { outline: 2px solid var(--c-accent); outline-offset: 3px; }

/* — Primitives only (shell, not skin) ----------------------------- */
.wrap   { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section{ padding-block: var(--sp-3xl); }            /* generous vertical music */
.eyebrow{
  font-size: var(--step--1); letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase; color: var(--c-accent); font-weight: 600;
}
.flow > * + * { margin-top: var(--sp-s); }
.visually-hidden{
  position:absolute; width:1px; height:1px; padding:0; margin:-1px;
  overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; border:0;
}

/* Reveal hooks for motion.js — hidden until JS adds .is-in.
   If JS fails / is off, content is shown (no-JS safe). */
[data-reveal] { opacity: 0; transform: translateY(24px); }
[data-reveal].is-in { opacity: 1; transform: none;
  transition: opacity var(--dur) var(--ease-out-soft),
              transform var(--dur) var(--ease-out-expo); }
.no-js [data-reveal], html:not(.has-motion) [data-reveal] { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1 !important; transform: none !important; }
}
