/* ==========================================================================
   Base layer — resets, typography, global element defaults
   ========================================================================== */


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

html { scroll-behavior: smooth; }

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.7;
  color: var(--color-ink-soft);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

/* `html hN` (specificity 0,0,2) so these beat Tailwind CDN's Preflight reset
   (`h1..h6 { font-size: inherit; font-weight: inherit }`), which is injected
   after this file at runtime — while still losing to utility classes like
   .text-base / .font-semibold / .text-white (0,1,0). */
html h1, html h2, html h3, html h4 {
  font-family: var(--font-display);
  color: var(--color-ink);
  line-height: 1.2;
  margin: 0;
  font-weight: 700;
  letter-spacing: -0.02em;
}

html h1 { font-size: var(--fs-h1); }
html h2 { font-size: var(--fs-h2); }
html h3 { font-size: var(--fs-h3); font-weight: 500; letter-spacing: 0; }

p { margin: 0; color: var(--color-ink-soft); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }

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

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--space-3);
}
@media (min-width: 768px) {
  .container { padding-inline: var(--space-4); }
}
