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

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--fg2);
  font-family: var(--font-sans);
  font-weight: 400;           /* v1.1: 300 → 400; Light at small sizes is a hairline on sub-pixel screens */
  font-size: var(--fs-body);  /* v1.1: 15px → 16px */
  line-height: 1.8;
}

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

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

ul, ol {
  list-style: none;
}

button {
  cursor: pointer;
  font-family: inherit;
}

/* ── Focus states (v1.1 — F-09) ──────────────────────────────── */
/* Dark surfaces: Acid ring */
:focus-visible {
  outline: 2px solid var(--acid);
  outline-offset: 2px;
  border-radius: var(--r-sm);
}

/* Light surfaces: Pitch ring with Acid-tint halo */
.section--salt :focus-visible,
.section--bone :focus-visible,
.section--light :focus-visible {
  outline: 2px solid var(--pitch);
  outline-offset: 2px;
  border-radius: var(--r-sm);
  box-shadow: 0 0 0 4px var(--acid-tint);
}

/* ── Typography classes ───────────────────────────────────────── */

/* Tier A voice moments — Instrument Serif Italic, 24px minimum */
.display {
  font-family: var(--font-display);
  font-weight: 400;
  font-style: italic;
  font-size: var(--fs-display);
  letter-spacing: -0.028em;
  line-height: 1.05;
  color: var(--fg1);
}

.h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-style: italic;
  font-size: var(--fs-h1);
  letter-spacing: -0.025em;
  line-height: 1.1;
  color: var(--fg1);
}

.h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-style: italic;
  font-size: var(--fs-h2);
  letter-spacing: -0.022em;
  line-height: 1.2;
  color: var(--fg1);
}

.h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-style: italic;
  font-size: var(--fs-h3);
  letter-spacing: -0.018em;
  line-height: 1.25;
  color: var(--fg1);
}

/* Tier C chrome — Montserrat Medium. Eyebrow / label — uppercase, tracked */
/* Rule: uppercase + tracked ≥ 0.12em for all chrome labels */
.label,
.eyebrow-text {
  font-family: var(--font-sans);
  font-weight: 700;           /* v1.1: 600 → 700 for legibility at 12px */
  font-size: var(--fs-eyebrow);  /* v1.1: 11px → 12px */
  letter-spacing: 0.18em;
  text-transform: uppercase;
  line-height: 1.4;
}

/* Body sizes */
.body-l {
  font-family: var(--font-sans);
  font-weight: 400;           /* v1.1: 300 → 400 */
  font-size: var(--fs-lede);  /* v1.1: 17px → 18px */
  line-height: 1.75;
  color: var(--fg2);
}

.body {
  font-family: var(--font-sans);
  font-weight: 400;           /* v1.1: 300 → 400 */
  font-size: var(--fs-body);  /* v1.1: 15px → 16px */
  line-height: 1.8;
  color: var(--fg2);
}

.body-sm {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: var(--fs-body-sm);
  line-height: 1.7;
  color: var(--fg3);
}

.small {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: var(--fs-body-sm);
  line-height: 1.7;
  color: var(--fg3);
}

.caption {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: var(--fs-eyebrow);
  line-height: 1.6;
  color: var(--fg3);
}

/* Mono — code, data, hex values */
code, kbd, pre, .mono {
  font-family: var(--font-mono);
  font-size: var(--fs-mono);
  font-weight: 400;
  color: var(--fg1);
}

/* Legacy alias */
.tag {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ── Surface utility classes ──────────────────────────────────── */
.v-surface-salt   { background: var(--salt);   color: var(--fg1); }
.v-surface-bone   { background: var(--bone);   color: var(--fg1); }
.v-surface-pitch  { background: var(--pitch);  color: var(--fg-on-dark-1); }
.v-surface-carbon { background: var(--surface); color: var(--fg-on-dark-1); }
.v-surface-acid   { background: var(--acid);   color: var(--acid-deep); }
