/* LeadersAI base layer — the reset and the text utilities every page needs.
 *
 * Loaded by build.js immediately after tokens.css, so it lands before any page's
 * own <style>. Tokens say what the brand is; this says what a bare page looks like
 * before a single page-specific rule runs.
 *
 * The bar for living here is "every page wants this and wants it identically". A
 * rule that two pages want differently belongs in the page, and a rule that is a
 * component belongs in the component layer (not built yet — see HANDOVER.md).
 * Nothing here defines a colour, a size or a family directly; it all comes from
 * tokens.css, so this file survives a rebrand untouched.
 */

/* ---------- reset ----------
 * Both pages carried this twice over: once as an "artifact runtime" block and
 * again at the top of their own stylesheet. Four copies across two pages.
 */
*, *::before, *::after { box-sizing: border-box }

html {
  -webkit-text-size-adjust: 100%;
  /* Every page is one column of anchors — #book, #booking, #week, #questions.
     Jumping is disorienting on a long page; the reduced-motion block below
     turns it off for anyone who has asked for that. */
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--surface-page);
  color: var(--ink);
  font: var(--fw-body) var(--fs-body)/var(--lh-body) var(--font-sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

h1, h2, h3, h4, p { margin: 0 }

/* ---------- links and focus ----------
 * accent-ink, never accent: #f2481c on the paper ground is 3.28:1 and fails.
 * The focus ring is 2px at 2px offset and is never removed. Both are system rules,
 * not page taste, which is exactly why they belong here.
 */
a {
  color: var(--accent-ink);
  text-decoration: none;
  transition: color var(--t-fast) var(--ease);
}
a:hover { color: var(--accent-hover) }

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
  border-radius: var(--radius-xs);
}

/* ---------- text utilities ----------
 * The named roles from the type scale, as classes. Sizes and colours are tokens;
 * only the line-heights are literal, because the scale's --lh-* values are the
 * desktop figures and these are the tuned ones both pages had already converged on.
 */
.lead  { font-size: var(--fs-lead);  line-height: 1.5;  color: var(--ink-muted) }
.small { font-size: var(--fs-small); line-height: 1.55; color: var(--ink-muted) }
.fine  { font-size: var(--fs-small); line-height: 1.55; color: var(--ink-subtle) }
.fine strong { color: var(--ink-muted); font-weight: 600 }

/* Labels: eyebrows, field keys, hour counts. Never body copy. Manrope, like
 * everything else — weight and tracking are what separate a label from small
 * prose now that there is no second family. The class was .mono, then briefly a
 * serif; no page used it by name, so it was renamed rather than aliased. */
.label {
  font: var(--fw-label) var(--fs-label)/1.45 var(--font-sans);
  color: var(--ink-subtle);
}
.overline {
  font: var(--fw-overline) var(--fs-overline)/var(--lh-overline) var(--font-sans);
  letter-spacing: var(--ls-overline);
  text-transform: uppercase;
  color: var(--ink-subtle);
}

.measure { max-width: 64ch }
.num { font-variant-numeric: tabular-nums }

/* ---------- reduced motion ----------
 * tokens.css already zeroes --t-fast and --t-enter. This catches what does not run
 * through a token: keyframes, smooth scrolling, and any hand-written duration.
 */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
