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

html { scroll-behavior: smooth; }

body {
  min-height: 100%;
  font-family: var(--font);
  font-size: var(--fs-base);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: var(--indigo-700); text-decoration: none; }
a:hover { color: var(--indigo-600); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--text);
  text-wrap: balance;
}

h1 { font-size: clamp(2.25rem, 4.4vw, 3.5rem); font-weight: 700; line-height: 1.06; letter-spacing: -0.04em; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 700; line-height: 1.18; letter-spacing: -0.025em; }
h3 { font-size: var(--fs-lg); font-weight: 700; line-height: 1.3; }
h4 { font-size: var(--fs-base); font-weight: 700; }

p { color: var(--text-soft); }
ul, ol { list-style: none; }
img, svg { display: block; max-width: 100%; }
button, input, select { font: inherit; }

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

::selection { background: var(--indigo-100); color: var(--neutral-950); }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--neutral-300); border-radius: 999px; }
::-webkit-scrollbar-thumb:hover { background: var(--neutral-400); }

.skip-link {
  position: fixed;
  left: 16px;
  top: -80px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  background: var(--neutral-0);
  color: var(--neutral-950);
  font-weight: 700;
  box-shadow: var(--shadow);
}

.skip-link:focus { top: 16px; }

.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;
}

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