/* ============================================================
   ATREE — Base element layer & utility primitives.
   Light-touch resets + a few brand helpers (.eyebrow, .display,
   .lede, .prose). Components rely on tokens, not these classes.
   ============================================================ */

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: var(--fw-book);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  color: var(--text-body);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-strong);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  margin: 0 0 var(--space-4);
  font-weight: var(--fw-bold);
  text-wrap: balance;
}
h1 { font-size: var(--text-4xl); font-weight: var(--fw-heavy); }
h2 { font-size: var(--text-3xl); }
h3 { font-size: var(--text-2xl); }
h4 { font-size: var(--text-xl); }

p { margin: 0 0 var(--space-4); text-wrap: pretty; }

a { color: var(--text-link); text-decoration: none; }
a:hover { text-decoration: underline; }

small { font-size: var(--text-sm); }
strong, b { font-weight: var(--fw-bold); }

code, pre { font-family: var(--font-mono); font-size: 0.92em; }

::selection { background: var(--atree-lime); color: var(--atree-forest-900); }

:focus-visible { outline: none; box-shadow: var(--focus-ring); border-radius: var(--radius-xs); }

img { max-width: 100%; display: block; }
hr { border: 0; border-top: 1px solid var(--border); margin: var(--space-8) 0; }

/* ---- Brand helpers ---- */
.eyebrow {
  font-family: var(--font-eyebrow);
  font-weight: var(--fw-bold);
  font-size: var(--text-sm);
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: var(--brand-primary);
}
.display {
  font-family: var(--font-display);
  font-weight: var(--fw-heavy);
  font-size: var(--text-5xl);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  color: var(--text-strong);
}
.lede {
  font-size: var(--text-lg);
  line-height: var(--leading-relaxed);
  color: var(--text-muted);
}
.editorial {
  font-family: var(--font-editorial);
  line-height: var(--leading-relaxed);
}
