/* BASE — element defaults built on the tokens. */

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

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

body {
  margin: 0;
  background: var(--surface-page);
  color: var(--text-body);
  font-family: var(--font-serif);
  font-size: var(--fs-base);
  line-height: var(--lh-base);
  font-weight: var(--fw-regular);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--selection-bg); color: var(--ink); }

/* Headings — the glass-glyph display face */
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--tracking-tight);
  color: var(--ink);
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: var(--fs-3xl); line-height: var(--lh-3xl); }
h2 { font-size: var(--fs-2xl); line-height: var(--lh-2xl); }
h3 { font-size: var(--fs-xl);  line-height: var(--lh-xl); }

h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: var(--fw-semibold);
  margin: 0;
}

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

a {
  color: var(--text-link);
  text-decoration: none;
  border-bottom: 1px solid color-mix(in srgb, var(--green-forest) 35%, transparent);
  transition: border-color var(--dur-fast) var(--ease-standard),
              color var(--dur-fast) var(--ease-standard);
}
a:hover { border-bottom-color: var(--green-forest); }

/* Mono is the voice of data, labels and citations */
code, kbd, samp { font-family: var(--font-mono); font-size: 0.92em; }

/* Eyebrow / kicker utility used widely across the system */
.nxs-kicker {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--text-muted);
}

hr {
  border: 0;
  border-top: var(--border-hair);
  margin: var(--space-8) 0;
}

figure { margin: 0; }
img { max-width: 100%; display: block; }
