*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100vh;
  line-height: 1.5;
}

/* DM Serif Display ships a single weight (400) — Google Fonts rejects any
   weight-range request for it. The UA default of bold on h1-h6 therefore has
   no real face to bind to, so the browser synthesizes one by smearing the
   outlines, which reads as a blurry, badly-drawn serif. Pinning the weight
   keeps every heading on the drawn face. Headings set in --font-body override
   this by class, as they should. */
h1, h2, h3, h4, h5, h6 {
  font-weight: 400;
  font-synthesis-weight: none;
}

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

input, button, textarea, select {
  font: inherit;
}

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

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

/* Text selection — matches roserocket.com (--selection-background-color: #000,
   --selection-color: #fff). Without this the browser default (translucent blue)
   fights the brand palette. */
::selection {
  background-color: #000;
  color: #fff;
}
