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

html {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  color: var(--foreground);
  background-color: var(--background);
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow-x: clip;
  max-width: 100%;
}

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

input, button, textarea, select {
  font: inherit;
  color: inherit;
}

input, textarea, select {
  font-size: 1rem;
}

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

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--navy);
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2rem, 5vw + 1rem, 4.2rem);
}

h2 {
  font-size: clamp(1.5rem, 2.5vw + 0.8rem, 2.5rem);
}

h3 {
  font-size: clamp(1.25rem, 1.5vw + 0.75rem, 1.75rem);
}

h4 {
  font-size: clamp(1.1rem, 1vw + 0.75rem, 1.35rem);
}

p {
  font-size: clamp(0.95rem, 0.5vw + 0.85rem, 1.1rem);
  line-height: 1.6;
  color: var(--muted-foreground);
}

.site-container {
  width: 100%;
  padding-left: clamp(1rem, 4vw, 3rem);
  padding-right: clamp(1rem, 4vw, 3rem);
  margin-left: auto;
  margin-right: auto;
  max-width: 1400px;
}

.site-main {
  flex: 1 0 auto;
}

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

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