/* ==========================================================================
   Entfremdung — Base layer
   Sensible element defaults wired to the tokens. Consumers get a usable page
   the moment they link styles.css.
   ========================================================================== */

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

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

body {
  margin: 0;
  background: var(--bg-page);
  color: var(--text-primary);
  font-family: var(--font-slab);
  font-weight: var(--w-regular);
  font-size: var(--t-body);
  line-height: var(--lh-body);
  font-synthesis: weight;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Headlines lean into the slab weight axis */
h1, h2, h3, h4 {
  font-family: var(--font-slab);
  font-weight: var(--w-gromkiy);
  line-height: var(--lh-head);
  letter-spacing: var(--ls-tight);
  margin: 0 0 var(--s-4);
  text-wrap: balance;
}
h1 { font-size: var(--t-h1); }
h2 { font-size: var(--t-h2); }
h3 { font-size: var(--t-h3); }

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

a {
  color: var(--accent);
  text-decoration: none;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
a:hover { text-decoration: underline; }

small { font-size: var(--t-small); }

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

hr {
  border: none;
  border-top: var(--bd-hair);
  margin: var(--s-6) 0;
}

::selection { background: var(--signal); color: var(--paper-00); }

:focus-visible {
  outline: var(--bd-signal);
  outline-offset: 2px;
}

/* ---- A few load-bearing utility classes -------------------------------- */

/* Mono archival label: "FILED №.014 / 2026" style metadata */
.e-label {
  font-family: var(--font-mono);
  font-size: var(--t-meta);
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  color: var(--text-muted);
}

/* Eyebrow / kicker above headlines */
.e-eyebrow {
  font-family: var(--font-mono);
  font-size: var(--t-micro);
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  color: var(--accent);
}

/* Marginalia — the human hand */
.e-hand {
  font-family: var(--font-hand);
  font-weight: 400;
  line-height: 1.1;
  color: var(--ink-100);
}

/* Reading column */
.e-prose { max-width: var(--measure); font-size: var(--t-body-lg); }
.e-prose p { margin-bottom: var(--s-5); }

/* Inverted "loud" surface */
.e-noir {
  background: var(--bg-invert);
  color: var(--text-invert);
}
.e-noir a, .e-noir .e-eyebrow { color: var(--signal); }
