/* ─── Reset ─── */
*, *::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: auto; /* Lenis handles smooth scroll */
}

body {
  background-color: var(--color-bg);
  color: var(--color-text-primary);
  font-family: var(--font-body);
  font-size: var(--text-body);
  font-weight: var(--weight-regular);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ─── Global ─── */
a {
  color: inherit;
  text-decoration: none;
}

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

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

/* ─── Typography ─── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: var(--weight-bold);
  line-height: 1.05;
  letter-spacing: var(--tracking-tight);
}

/* Mono labels — DM Mono */
.label, .tag, .mono {
  font-family: var(--font-mono);
  font-weight: 400;
}

p {
  line-height: 1.65;
}

/* ─── Tag / Label ─── */
.tag {
  font-family: var(--font-body);
  font-size: var(--text-label);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--color-text-muted);
  border: 1px solid var(--color-border);
  padding: 4px 10px;
  border-radius: 100px;
  display: inline-block;
}

/* ─── Divider ─── */
.divider {
  width: 100%;
  height: 1px;
  background: var(--color-border);
}

/* ─── Container ─── */
.container {
  width: 100%;
  max-width: var(--grid-max);
  margin: 0 auto;
  padding: 0 var(--space-container);
}

/* ─── Loading state ─── */
body.is-loading {
  overflow: hidden;
}

/* Hide page content (hero, sections) + nav until loader finishes — prevents FOUC */
body.is-loading [data-barba="container"],
body.is-loading #nav {
  visibility: hidden;
}

/* ─── Utility ─── */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}
