:root { color-scheme: light dark; }

* { box-sizing: border-box; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  max-width: 42rem;
  margin: 0 auto;
  padding: 0 1.5rem 4rem;
  line-height: 1.65;
  color: #222;
}

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2rem 0 1.5rem;
  border-bottom: 1px solid #eee;
  margin-bottom: 2.5rem;
}

header a.brand {
  font-weight: 600;
  font-size: 1.1rem;
  color: inherit;
  text-decoration: none;
}

nav a {
  color: #555;
  text-decoration: none;
  margin-left: 1.25rem;
  font-size: .92rem;
}

nav a:hover { color: #222; text-decoration: underline; }

h1 { font-size: 1.6rem; margin: 0 0 .3rem; }
h2 { font-size: 1.15rem; margin: 0 0 .3rem; }

.meta { color: #888; font-size: .85rem; margin-bottom: 2rem; }

article.entry { margin-bottom: 2.4rem; }
article.entry p { margin: 0; color: #444; }
article.entry .date { color: #999; font-size: .8rem; display: block; margin-bottom: .2rem; }

a.more { font-size: .88rem; }

.post-body p { color: #333; margin: 0 0 1.1rem; }
.post-body { margin-top: 1.5rem; }

footer {
  margin-top: 4rem;
  padding-top: 1.5rem;
  border-top: 1px solid #eee;
  color: #999;
  font-size: .8rem;
}

form.contact { margin-top: 1.5rem; display: grid; gap: .9rem; max-width: 26rem; }
form.contact label { font-size: .85rem; color: #555; display: block; margin-bottom: .3rem; }
form.contact input, form.contact textarea {
  width: 100%;
  padding: .55rem .65rem;
  border: 1px solid #ddd;
  border-radius: 6px;
  font: inherit;
  background: #fff;
  color: #222;
}
form.contact button {
  justify-self: start;
  padding: .55rem 1.2rem;
  border: none;
  border-radius: 6px;
  background: #222;
  color: #fff;
  font: inherit;
  cursor: pointer;
}

@media (prefers-color-scheme: dark) {
  body { color: #ddd; }
  header { border-color: #2a2a2a; }
  nav a { color: #999; }
  nav a:hover { color: #eee; }
  article.entry p, .post-body p { color: #bbb; }
  .meta, footer, article.entry .date { color: #777; }
  footer { border-color: #2a2a2a; }
  form.contact input, form.contact textarea { background: #1a1a1a; border-color: #333; color: #ddd; }
  form.contact button { background: #eee; color: #111; }
}
