/* Newsreader (SIL OFL), variable weight + optical size, latin subset, self-hosted */
@font-face {
  font-family: "Newsreader";
  src: url("fonts/newsreader-latin.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Newsreader";
  src: url("fonts/newsreader-italic-latin.woff2") format("woff2");
  font-weight: 200 800;
  font-style: italic;
  font-display: swap;
}

:root {
  --bg: #f0eee6;
  --text: #1f1e1d;
  --muted: #5e5d59;
  --rule: #dcd9ce;
  --measure: 38.75rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1f1e1d;
    --text: #f0eee6;
    --muted: #a3a29c;
    --rule: #3d3d3a;
  }
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Newsreader", "Iowan Old Style", Georgia, serif;
  font-size: 1.25rem;
  line-height: 1.6;
  font-optical-sizing: auto;
  text-rendering: optimizeLegibility;
}

.container {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 0 1.25rem;
}

header { padding-top: 4rem; padding-bottom: 2.5rem; }

.name {
  font-size: 1.6rem;
  font-weight: 600;
  text-decoration: none;
}

main section { margin-bottom: 3rem; }

h2 {
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 0.75rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--rule);
}

p { margin: 0 0 1em; }

ul { list-style: none; margin: 0; padding: 0; }
li { margin-bottom: 0.9rem; }

.note {
  display: block;
  color: var(--muted);
  font-size: 0.9em;
}

a {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.12em;
  transition: color 0.2s linear;
}
a:hover { color: var(--muted); }

footer {
  padding-bottom: 4rem;
  color: var(--muted);
  font-size: 0.9em;
}

@media (max-width: 479px) {
  body { font-size: 1.125rem; }
  header { padding-top: 2.5rem; }
}
