@font-face {
  font-family: "Computer Modern Serif";
  src: url("https://cdn.jsdelivr.net/gh/vsalvino/computer-modern@f55b094cc91a643fecde154bb7ddb6fd9fed1b54/fonts/CMUSerif-Roman.woff2") format("woff2");
  font-display: swap;
}

* { box-sizing: border-box; }

html { color-scheme: light dark; }

body {
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  display: grid;
  place-items: center;
  padding: 2rem 1.5rem;
  background: #fafafa;
  color: #232323;
  font-family: "Computer Modern Serif", "Times New Roman", serif;
  font-size: 1.125rem;
  line-height: 1.5;
}

.page {
  width: min(100%, 18rem);
  text-align: center;
}

nav {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid currentColor;
}

a {
  display: inline-block;
  padding: .5rem;
  color: inherit;
  text-underline-offset: .25em;
}

nav a { text-decoration: none; }
nav a[aria-current="page"], nav a:hover { text-decoration: underline; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }

img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 3px;
}

h1 {
  margin: 0 0 .5rem;
  font-size: 1.65rem;
  font-weight: normal;
}

img + h1 { margin-top: 1rem; }

p { margin: 0 0 .5rem; }

@media (prefers-color-scheme: dark) {
  body { background: #171717; color: #ededed; }
}
