/* Modern CSS reset -- sensible defaults, no opinionated styling */
/* Inspired by Andy Bell's modern CSS reset */

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

/* Zero margins on common elements */
body,
h1,
h2,
h3,
h4,
p,
figure,
blockquote,
dl,
dd {
  margin: 0;
}

/* Prevent text size adjustment on orientation change */
html {
  -moz-text-size-adjust: none;
  -webkit-text-size-adjust: none;
  text-size-adjust: none;
}

/* Full height body with comfortable line height */
body {
  min-height: 100svh;
  line-height: 1.5;
}

/* Balanced text wrapping for headings */
h1,
h2,
h3,
h4 {
  text-wrap: balance;
}

/* Prettier text wrapping for prose */
p,
li,
figcaption {
  text-wrap: pretty;
}

/* Responsive images by default */
img,
picture,
video,
canvas,
svg {
  max-width: 100%;
  display: block;
}

/* Form elements inherit fonts */
input,
button,
textarea,
select {
  font: inherit;
}

/* Scroll margin for anchor links */
:target {
  scroll-margin-block: 5ex;
}
