/* ============================================================
   BASE — minimal ecosystem reset + element defaults.
   Kept separate from token files; imported last by styles.css.
   ============================================================ */

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

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

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--text-strong);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  margin: 0 0 var(--space-4);
  text-wrap: balance;
}
h1 { font-size: var(--type-h1); font-weight: var(--weight-semibold); }
h2 { font-size: var(--type-h2); font-weight: var(--weight-semibold); }
h3 { font-size: var(--type-h3); font-weight: var(--weight-medium); }

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

a { color: var(--link); text-decoration: none; transition: color var(--dur-fast) var(--ease-standard); }
a:hover { color: var(--link-hover); }

/* Mono eyebrow / metadata utility */
.eyebrow {
  font-family: var(--font-mono);
  font-size: var(--type-meta);
  letter-spacing: var(--tracking-meta);
  text-transform: uppercase;
  color: var(--text-muted);
}

/* Visible focus — never sacrifice accessibility for mystique */
:where(a, button, input, select, textarea, [tabindex]):focus-visible {
  outline: var(--ring-width) solid var(--focus-ring);
  outline-offset: 2px;
  border-radius: 2px;
}

::selection { background: var(--highlight); color: var(--eco-obsidian); }
