/* =========================
   BASE / GLOBAL STYLES
   ========================= */

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden; /* prevents sideways scroll */
  overflow-y: auto; /* IMPORTANT: keep vertical scroll working */

  font-family:
    system-ui,
    -apple-system,
    Segoe UI,
    Roboto,
    Helvetica,
    Arial,
    sans-serif;
  line-height: 1.5;
  color: #111;
  background: #fff;
}

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

/* Links */
a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  text-decoration: none;
}

/* Buttons / inputs inherit font */
button,
input,
textarea,
select {
  font: inherit;
}

button {
  border: 0;
  background: none;
  cursor: pointer;
}

/* Headings / paragraphs */
h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
  font-weight: 500;
}

p {
  margin: 0;
}

/* Utility container (optional) */
.container {
  width: min(1200px, 92vw);
  margin: 0 auto;
}

/* Sections (optional rhythm) */
section {
  position: relative;
}

/* Remove default details triangle if you use <details> */
summary {
  list-style: none;
}

summary::-webkit-details-marker {
  display: none;
}

/* Accessibility */
:focus-visible {
  outline: 2px solid rgba(0, 0, 0, 0.6);
  outline-offset: 3px;
}

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