/* Reset — minimal, opinionated */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 72px; /* Offset for fixed nav height */
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: var(--weight-normal);
  line-height: var(--leading-normal);
  color: var(--color-text-primary);
  background-color: var(--color-bg);
  /* Bottom padding on mobile prevents content hiding behind sticky footer */
  padding-bottom: 0;
}

@media (max-width: 767px) {
  body {
    padding-bottom: var(--sticky-footer-height);
  }
}

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

a {
  color: var(--color-teal-primary);
  text-decoration: none;
}

a:hover {
  color: var(--color-teal-hover);
}

ul, ol {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: var(--weight-semi);
  line-height: var(--leading-tight);
  color: var(--color-text-primary);
}

button {
  font-family: var(--font-heading);
  cursor: pointer;
  border: none;
  background: none;
}

input, textarea, select {
  font-family: var(--font-body);
  font-size: var(--text-base);
}

/* Focus visible — accessibility */
:focus-visible {
  outline: 2px solid var(--color-teal-primary);
  outline-offset: 2px;
}

/* Skip to main content — accessibility */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-4);
  background: var(--color-teal-primary);
  color: var(--color-text-on-teal);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-md);
  font-weight: var(--weight-medium);
  z-index: 200;
}

.skip-link:focus {
  top: var(--space-4);
}
