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

:root {
  --text: light-dark(#333, #ddd);
  --link: #999;
  --background: light-dark(#fff, #111);
  --image-placeholder: light-dark(#eee, #222);
}

body {
  box-sizing: border-box;
  font-family:
    Iowan Old Style,
    Apple Garamond,
    Baskerville,
    Times New Roman,
    Droid Serif,
    Times,
    Source Serif Pro,
    serif,
    Apple Color Emoji,
    Segoe UI Emoji,
    Segoe UI Symbol;
  text-align: center;
  color: var(--text);
  background: var(--background);
  padding: 1rem;
  text-wrap: balance;
  text-wrap: pretty;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

header {
  display: flex;
  flex-direction: column;
}

header img {
  max-width: 16rem;
  width: 100%;
  aspect-ratio: 1;
  border-radius: 3%;
  display: block;
  margin: auto;
  background: var(--image-placeholder);
  margin-bottom: 0.5rem;
}

@media (width >= 16rem) {
  header img {
    margin-top: 0.5rem;
  }
}

@media (prefers-color-scheme: dark) {
  header img {
    filter: brightness(1.25) contrast(0.9);
  }
}

main {
  max-width: 24rem;
  margin: auto;
  flex: 1;
}

h1,
p,
a {
  font-size: 1rem;
  font-weight: normal;
  line-height: 1.33rem;
  padding: 0;
  margin: 0;
  margin-top: 1rem;
}

footer {
  margin-top: 4rem;
}

footer a {
  font-size: 0.9rem;
  color: var(--link);
  text-decoration: underline;
}
