/* =============================================================================
   RESET.CSS — Bullet Website
   CSS Reset / Normalize

   Load order: 1st (before everything else)
   Based on: Andy Bell's modern CSS reset (https://piccalil.li/blog/a-more-modern-css-reset/)
   ============================================================================= */

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

/* Remove default margin and padding */
* {
  margin: 0;
  padding: 0;
}

/* Prevent font size inflation on mobile */
html {
  -moz-text-size-adjust: none;
  -webkit-text-size-adjust: none;
  text-size-adjust: none;
}

/* Smooth scrolling — respects reduced motion preference */
html:focus-within {
  scroll-behavior: smooth;
}

/* Scroll snap — slide navigation controlled in main.js; this reinforces alignment */
html {
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
  /* No top offset — slide nav aligns each section exactly at the viewport edge */
  scroll-padding-top: 0;
}

/* Pages flagged .no-snap (e.g. manifest) scroll freely */
html.no-snap {
  scroll-snap-type: none;
}

body {
  min-height: 100svh;
  line-height: 1.5;
  overflow-x: clip; /* catches stray transform/shadow overflow without blocking sticky */
}

/* Remove list styles on ul/ol with role="list" */
ul[role='list'],
ol[role='list'] {
  list-style: none;
}

/* Improve media defaults */
img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

/* Inherit fonts on form elements */
input,
button,
textarea,
select {
  font: inherit;
}

/* Avoid text overflow — no hyphenation ever */
* {
  hyphens: none !important;
  -webkit-hyphens: none !important;
  -ms-hyphens: none !important;
}

h1, h2, h3, h4, h5, h6,
p, a, li {
  overflow-wrap: break-word;
  word-break: normal;
}

/* Remove default button styles */
button {
  cursor: pointer;
  border: none;
  background: none;
}

/* Remove anchor default styles */
a {
  color: inherit;
  text-decoration: none;
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
  html:focus-within {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
