:root {
  --text: #1a1a1a;
  --bg: #fbfaf7;
  --link: #1a1a1a;
  --rule: #ccc;
  --muted: #666;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  padding: 2.5rem 1.25rem 4rem;
  background: var(--bg);
  color: var(--text);
  font-family: Georgia, "Iowan Old Style", "Palatino Linotype", serif;
  font-size: 1.125rem;
  line-height: 1.6;
}

.wrap {
  max-width: 42rem;
  margin: 0 auto;
}

header.site {
  margin-bottom: 3rem;
}

header.site .title a {
  font-size: 1.15rem;
  font-weight: bold;
  text-decoration: none;
  color: var(--text);
}

nav.main {
  margin-top: 0.75rem;
  font-size: 0.95rem;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  letter-spacing: 0.02em;
}

nav.main a {
  color: var(--muted);
  text-decoration: none;
  margin-right: 1.25rem;
}

nav.main a:hover,
nav.main a.active {
  color: var(--text);
  text-decoration: underline;
}

h1, h2, h3 {
  line-height: 1.25;
  font-weight: bold;
}

h1 { font-size: 1.6rem; margin-top: 0; }
h2 { font-size: 1.3rem; }

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

p { margin: 0 0 1.25em; }

ul.entry-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

ul.entry-list li {
  margin-bottom: 1.1rem;
  padding-bottom: 1.1rem;
  border-bottom: 1px solid var(--rule);
}

ul.entry-list .date {
  display: block;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 0.15rem;
}

.page-meta {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 1.5rem;
}

footer.site {
  margin-top: 4rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--rule);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 0.85rem;
  color: var(--muted);
}

blockquote {
  margin: 1.5em 0;
  padding-left: 1em;
  border-left: 2px solid var(--rule);
  color: var(--muted);
  font-style: italic;
}

@media (prefers-color-scheme: dark) {
  :root {
    --text: #e8e6df;
    --bg: #151513;
    --link: #e8e6df;
    --rule: #3a3a38;
    --muted: #999;
  }
}
