/* ==========================================================================
   BASE — reset, document defaults, typography primitives, layout helpers.
   Kept intentionally small; component styling lives in components.css.
   ========================================================================== */

*, *::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-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--c-text);
  background: var(--c-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
input, textarea, select { font: inherit; color: inherit; }
ul, ol { list-style: none; padding: 0; }

::selection { background: var(--c-accent); color: var(--c-ink); }

:focus-visible {
  outline: 2px solid var(--c-ink);
  outline-offset: 3px;
  border-radius: 4px;
}

/* --- Typographic primitives ------------------------------------------------ */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: var(--lh-snug);
  letter-spacing: var(--tracking-tight);
  color: var(--c-ink);
  text-wrap: balance;
}

p { text-wrap: pretty; }

strong { font-weight: 600; color: inherit; }

/* --- Layout primitives ----------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.container--wide { max-width: var(--maxw-wide); }

.section { padding-block: var(--section-y); }

/* Offset anchor targets so the fixed nav never covers a section heading. */
:where(section[id], [id].section) { scroll-margin-top: 90px; }
#top { scroll-margin-top: 0; }

/* Eyebrow: mono micro-label with a lime tick — the recurring "signature" mark */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--c-text-muted);
  font-weight: 400;
}
.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  background: var(--c-accent);
  border-radius: 2px;
  transform: rotate(45deg);
  flex: none;
}
.eyebrow--on-dark { color: var(--c-on-dark-mut); }

/* Section heading lockup */
.heading-lockup { max-width: 22ch; }
.heading-lockup__title { font-size: var(--fs-h2); }

/* Accessible-only text */
.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;
}

/* Generic utilities */
.text-accent { color: var(--c-accent-dim); }
.u-mono { font-family: var(--font-mono); }
.no-scroll { overflow: hidden; }
