:root {
  --bg: #fffefa;
  --fg: #2d2d2d;
  --muted: #777;
  --link: #3b5bdb;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1d1f21;
    --fg: #c9cacc;
    --muted: #888;
    --link: #8ca9ff;
  }
}

body {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.05rem;
  line-height: 1.6;
  max-width: 34rem;
  margin: 4rem auto;
  padding: 0 1rem;
  background: var(--bg);
  color: var(--fg);
}

h1 {
  font-size: 1.7rem;
  font-weight: normal;
  letter-spacing: 0.01em;
  text-align: center;
  margin-bottom: 0.8rem;
}

h1 a {
  color: inherit;
  text-decoration: none;
}

.tagline {
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  margin: 0 0 1.6rem;
}

nav {
  text-align: center;
  margin-bottom: 3.5rem;
  font-size: 0.9rem;
  letter-spacing: 0.03em;
}

nav a {
  color: var(--muted);
  text-decoration: none;
  padding-bottom: 2px;
}

nav a:hover {
  color: var(--fg);
}

nav a.active {
  color: var(--fg);
  border-bottom: 1px solid var(--fg);
}

nav a + a {
  margin-left: 1.4rem;
}

.posts {
  list-style: none;
  padding-left: 0;
}

.posts .date {
  color: var(--muted);
  font-size: 0.85rem;
  margin-left: 0.6rem;
}

h2 {
  font-size: 1.15rem;
  margin-top: 2.5rem;
}

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

ul {
  padding-left: 1.2rem;
}

li {
  margin-bottom: 0.9rem;
}

footer {
  margin-top: 4rem;
  color: var(--muted);
  font-size: 0.9rem;
  text-align: center;
}

.links {
  margin-top: 2rem;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
}

.links a {
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}

.links a:hover {
  color: var(--link);
  border-bottom-color: var(--link);
}

.links a + a {
  margin-left: 1.1rem;
}
