/* GENERATED COPY — source: entropy-design-site/css/reset.css
   Do not edit here. Run `npm run sync` to refresh. */

/* ============================================================
   Entropy Design — Modern CSS Reset
   Based on Andy Bell's reset (https://piccalil.li/blog/a-more-modern-css-reset/)
   with adjustments for the editorial typography system.
   ============================================================ */

/* Use a more intuitive box-sizing model */
*,
*::before,
*::after {
  box-sizing: border-box;
}

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

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

/* Lenis owns smooth scroll. Do NOT enable scroll-behavior: smooth here.
   scroll-padding-top reserves space for the fixed status bar + nav stack
   so anchor jumps don't land underneath them. */
html {
  scroll-behavior: auto;
  scroll-padding-top: calc(var(--status-bar-h, 36px) + 72px);
}

/* Allow percentage-based heights in the application */
html,
body {
  height: 100%;
}

/* Improve text rendering */
body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  line-height: 1.5;
}

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

/* Inherit fonts for inputs and buttons */
input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
}

/* Remove built-in form typography styles */
button {
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

/* Avoid text overflows */
p,
h1,
h2,
h3,
h4,
h5,
h6 {
  overflow-wrap: break-word;
}

/* Improve line wrapping for headings (Safari 17.4+, Chrome 117+, Firefox 121+) */
h1,
h2,
h3,
h4,
h5,
h6 {
  text-wrap: balance;
}

/* Create a root stacking context */
#root,
#__next,
main {
  isolation: isolate;
}

/* Lists default to no list-style — author them explicitly when needed */
ul,
ol {
  list-style: none;
  padding: 0;
}

/* Remove default link underline — author them explicitly */
a {
  color: inherit;
  text-decoration: none;
}

/* Table defaults */
table {
  border-collapse: collapse;
  border-spacing: 0;
}

/* Disable animations + transitions for prefers-reduced-motion */
@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;
  }
}
