/* =========================================================
   DEXTERLABS // TYPOGRAPHY + BASE RESET
   Depends on: tokens.css
   ========================================================= */

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

html, body { margin: 0; padding: 0; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--t-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img, svg, video { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 0;
}

p, h1, h2, h3, h4, h5, h6 { overflow-wrap: break-word; margin: 0; }

/* ── Headings ────────────────────────────────────────────── */
.h1 {
  font-family: var(--sans);
  font-weight: 500;
  font-size: var(--t-h1);
  letter-spacing: -0.03em;
  line-height: 1;
}

.h2 {
  font-family: var(--sans);
  font-weight: 500;
  font-size: var(--t-h2);
  letter-spacing: -0.01em;
  line-height: 1.1;
}

.h3 {
  font-family: var(--sans);
  font-weight: 500;
  font-size: var(--t-h3);
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.hero-heading {
  font-family: var(--sans);
  font-weight: 500;
  font-size: var(--t-hero);
  letter-spacing: -0.02em;
  line-height: 1;
}

.display-heading {
  font-family: var(--sans);
  font-weight: 500;
  font-size: var(--t-display);
  letter-spacing: -0.04em;
  line-height: 0.9;
}

/* ── Body text ───────────────────────────────────────────── */
.body-lede {
  font-family: var(--sans);
  font-size: var(--t-lede);
  line-height: 1.5;
  letter-spacing: -0.01em;
  color: var(--ink-dim);
}

.body-text {
  font-family: var(--sans);
  font-size: var(--t-body);
  line-height: 1.65;
}

/* ── Mono labels ─────────────────────────────────────────── */
.mono-label {
  font-family: var(--mono);
  font-size: var(--t-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-dim);
}

.eyebrow {
  font-family: var(--mono);
  font-size: var(--t-mono);
  letter-spacing: 0.12em;
  color: var(--ink-faint);
  text-transform: uppercase;
}

/* ── Code ────────────────────────────────────────────────── */
code {
  font-family: var(--mono);
  font-size: var(--t-mono);
  background: var(--bg-elev);
  padding: 1px 5px;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  color: var(--cyan);
}

pre {
  font-family: var(--mono);
  font-size: var(--t-mono);
  background: var(--bg-sunken);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 16px 20px;
  overflow-x: auto;
  line-height: 1.6;
}

/* ── Blockquote ──────────────────────────────────────────── */
blockquote {
  margin: 28px 0;
  padding: 4px 0 4px 16px;
  border-left: 2px solid var(--amber);
  color: var(--ink-dim);
}

/* ── Table ───────────────────────────────────────────────── */
table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--mono);
  font-size: var(--t-mono);
}

th {
  text-align: left;
  padding: 8px 0;
  border-bottom: 1px solid var(--rule-strong);
  color: var(--ink-faint);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 500;
}

td {
  padding: 8px 0;
  border-bottom: 1px dashed var(--rule);
  color: var(--ink-dim);
}
