@font-face {
  font-family: "ArchitectsDaughter";
  src: url("../fonts/ArchitectsDaughter-Regular.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #f8f7f4;
  --fg: #1a1a1a;
  --muted: #6b6b6b;
  --link: #1a4f8a;
  --link-hover: #0d3060;
  --border: #ddd;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111110;
    --fg: #e8e6e1;
    --muted: #999591;
    --link: #7eb3f0;
    --link-hover: #a8ccf7;
    --border: #333;
  }
}

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

html {
  font-size: 18px;
  line-height: 1.6;
}

body {
  background-color: var(--bg);
  color: var(--fg);
  font-family: Georgia, "Times New Roman", serif;
  margin: 0;
  padding: 2rem 1rem;
  max-width: 640px;
  margin-inline: auto;
  transition: background-color 0.15s, color 0.15s;
}

h1, h2, h3, h4, h5, h6 {
  font-family: "ArchitectsDaughter", system-ui, sans-serif;
  line-height: 1.25;
  margin-top: 0;
  color: var(--fg);
}

h1 {
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.5rem;
}

a {
  color: var(--link);
  text-decoration: underline;
  text-underline-offset: 2px;
}

a:hover {
  color: var(--link-hover);
}

ul {
  padding-left: 1.25rem;
}

li {
  margin-bottom: 0.4rem;
}

p {
  margin-top: 0;
  margin-bottom: 1rem;
}
