/* ============================================================
   SLATE - Base layer
   Applies the system to bare HTML: dark canvas, editorial type,
   sensible element defaults, a few high-value utilities.
   ============================================================ */

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  font-weight: var(--fw-regular);
  line-height: var(--lh-body);
  letter-spacing: var(--ls-normal);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* -- Headings: Clash Display, tight, set big -------------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: var(--fw-semibold);
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-tight);
  margin: 0 0 0.4em;
  text-wrap: balance;
}
h1 { font-size: var(--fs-4xl); line-height: var(--lh-poster); letter-spacing: var(--ls-poster); }
h2 { font-size: var(--fs-3xl); }
h3 { font-size: var(--fs-2xl); }
h4 { font-size: var(--fs-xl); }
h5 { font-size: var(--fs-lg); }
h6 { font-size: var(--fs-md); }

p { margin: 0 0 1em; text-wrap: pretty; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }

strong, b { font-weight: var(--fw-semibold); }

/* -- Selection: acid on ink -------------------------- */
::selection { background: var(--acid); color: var(--acid-ink); }

/* -- Type helpers ------------------------------------- */
.display { font-family: var(--font-display); font-weight: var(--fw-semibold); line-height: var(--lh-poster); letter-spacing: var(--ls-poster); }
.display-xl { font-size: var(--fs-6xl); }
.display-lg { font-size: var(--fs-5xl); }

.eyebrow {
  font-family: var(--font-accent);
  font-size: var(--fs-xs);
  font-weight: var(--fw-medium);
  letter-spacing: var(--ls-eyebrow);
  text-transform: uppercase;
}
.accent { font-family: var(--font-accent); }
.lead { font-size: var(--fs-md); line-height: var(--lh-snug); color: var(--text-secondary); }
.meta { font-family: var(--font-util); font-size: var(--fs-xs); color: var(--text-muted); letter-spacing: var(--ls-wide); }
.mark-acid { color: var(--acid); }
.measure { max-width: var(--container-text); }

/* -- Acid highlight: the sticker / marker treatment ---------- */
.hl {
  background: var(--acid);
  color: var(--acid-ink);
  padding: 0.02em 0.22em;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

/* -- Layout helpers ----------------------------------- */
.container { max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.container-wide { max-width: var(--container-wide); margin-inline: auto; padding-inline: var(--gutter); }
.rule { border: none; border-top: var(--bw-rule) solid var(--border-strong); margin: 0; }

@media (max-width: 720px) {
  .container, .container-wide { padding-inline: var(--gutter-sm); }
  h1 { font-size: var(--fs-3xl); }
  h2 { font-size: var(--fs-2xl); }
}
