/* =========================================================
   Layer Nine — Foundations
   Reset, base body, typography classes, container.
   Depends on tokens.css.
   ========================================================= */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink-body);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
img, svg { display: block; max-width: 100%; }
ul, ol { margin: 0; padding: 0; list-style: none; }
p, h1, h2, h3, h4 { margin: 0; }

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

/* ---- Container ---- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}

/* ---- Type scale ---- */
.display {
  font-weight: 600;
  font-size: clamp(40px, 8vw, 80px);
  line-height: 0.98;
  letter-spacing: -0.035em;
  color: var(--ink);
}

.h2 {
  font-weight: 600;
  font-size: clamp(32px, 5.4vw, 57.15px);
  line-height: 1.04;
  letter-spacing: -0.028em;
  color: var(--ink);
  max-width: 17ch;
}
.h2--narrow { max-width: 14ch; }
.h2--invert { color: var(--on-dark); max-width: 14ch; }

.h3 {
  font-weight: 500;
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: -0.012em;
  color: var(--ink);
}

.lead {
  font-size: 18.288px;
  line-height: 1.5;
  letter-spacing: -0.004em;
  color: var(--ink-body);
  max-width: 60ch;
}
.lead--narrow { max-width: 56ch; }
.lead--invert { color: var(--on-dark-mute); }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.5;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.eyebrow--xs   { font-size: 12px; letter-spacing: 0.06em; }
.eyebrow--dark { color: var(--on-dark-faded); }
.eyebrow--dot  { display: inline-flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.eyebrow__sep   { color: var(--ink-faded); }
.eyebrow__faded { color: var(--ink-mute); }

.muted { color: var(--ink-mute); }

.dot {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--sage);
}
