/* =========================================================
   GLOBALS — START
   Base reset and default element behavior shared by every
   page. Keep this file free of anything section-specific.
   ========================================================= */

/* Modern, minimal reset */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  height: 100%;
}

/* A column flex layout lets .hero (below) stretch to fill exactly
   whatever space is left under the header — however tall the
   header actually renders at a given breakpoint — without ever
   hardcoding a header-height number that can drift out of sync
   and cause a few pixels of unwanted page scroll. */
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  background-color: var(--color-white);
  overflow-x: hidden; /* Guards against accidental horizontal scroll on mobile */
}

/* Lets .hero's flex:1 (see hero.css) reach through <main> to fill
   the remaining viewport height below the sticky header. */
#main-content {
  display: flex;
  flex-direction: column;
  flex: 1;
}

img,
picture,
svg {
  display: block;
  max-width: 100%;
}

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

ul,
ol {
  list-style: none;
}

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

/* Consistent, visible keyboard focus for every interactive element */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--color-primary-purple);
  outline-offset: 3px;
  border-radius: var(--radius-small);
}

/* Respect reduced-motion preferences site-wide */
@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;
  }
}

/* =========================================================
   GLOBALS — END
   ========================================================= */
