/* ─────────────────────────────────────────────
   BASE · reset + typography roles
   ───────────────────────────────────────────── */

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

html {
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink-soft);
  font-family: var(--font-sans);
  font-size: var(--t-body);
  line-height: var(--leading-body);
  letter-spacing: var(--tracking-body);
}

body {
  min-height: 100dvh;
  min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--ink);
}

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

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

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

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

/* ── type roles ────────────────────────────── */

/* serif display — for headings */
.display {
  font-family: var(--font-serif);
  line-height: var(--leading-display);
  letter-spacing: var(--tracking-display);
  font-weight: 400;
  color: var(--ink);
}

/* mono — metadata only: tile captions, dates, technical labels */
.mono {
  font-family: var(--font-mono);
  font-size: var(--t-mono);
  line-height: var(--leading-mono);
  letter-spacing: var(--tracking-mono);
  font-weight: 400;
  color: var(--ink-mute);
}

.mono-lg {
  font-family: var(--font-mono);
  font-size: var(--t-body-sm);
  line-height: var(--leading-mono);
  letter-spacing: var(--tracking-mono);
  font-weight: 400;
  color: var(--ink-mute);
}

/* compat: section-label → serif now */
.section-label {
  font-family: var(--font-sans);
  font-size: var(--t-label);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-mute);
  font-weight: 500;
}

/* ── utilities ─────────────────────────────── */

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

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
