/* Minimal reset + base typography/color application. */

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

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

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--color-background);
  color: var(--color-text);
  font-family: var(--font-sans);
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* Pins .site-footer to the bottom of the viewport on pages shorter than the
   screen (e.g. an empty Subject page) by letting the page's <main> grow to
   fill any leftover space, while pages taller than the viewport are
   completely unaffected - main simply grows past 100% as it always did. */
body > main {
  flex: 1 0 auto;
}

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

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

h1,
h2,
h3,
h4 {
  font-family: var(--font-sans);
  font-weight: 500;
  margin: 0;
}

p {
  margin: 0;
}

/* Editorial/serif text — used selectively, not site-wide */
.editorial-text {
  font-family: var(--font-serif);
  font-weight: 400;
  line-height: 1.6;
}

button,
input {
  font-family: inherit;
}
