/* ═══════════════════════════════════════
   BASE — Reset + Typography
   ═══════════════════════════════════════ */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  color: var(--n8);
  background: var(--n0);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
  font-size: 16px;
  overflow-x: hidden;
}

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

svg {
  flex-shrink: 0;
}

a {
  color: var(--pri);
  text-decoration: none;
  transition: color .15s var(--ease);
}
a:hover { color: var(--pri-h); }

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

button {
  border: none;
  cursor: pointer;
  background: none;
}

ul, ol { list-style: none; }

/* ── Typography scale ── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-brand);
  font-weight: 800;
  line-height: 1.2;
  color: var(--n9);
  letter-spacing: -.02em;
}

h1 { font-size: clamp(2.25rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 3vw, 1.5rem); }
h4 { font-size: 1.125rem; }

p {
  color: var(--n6);
  line-height: 1.7;
}

.text-sm { font-size: 0.875rem; }
.text-xs { font-size: 0.75rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }

.font-brand { font-family: var(--font-brand); }
.font-mono  { font-family: var(--mono); }

/* ── Focus ring ── */
:focus-visible {
  outline: 2px solid var(--pri);
  outline-offset: 2px;
}

/* ── Selection ── */
::selection {
  background: var(--pri-soft);
  color: var(--pri-deep);
}

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