:root {
  --bg: #fbfbf9;
  --fg: #2b2b2b;
  --muted: #77736c;
  --line: #e3e0d8;
  --link: #3d6b5e;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #16171a;
    --fg: #ddd9d2;
    --muted: #8b877f;
    --line: #2c2e33;
    --link: #7fb3a2;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Serif CJK SC",
               "Source Han Serif SC", Georgia, serif;
  font-size: 17px;
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: 40rem;
  margin: 0 auto;
  padding: 4rem 1.5rem 6rem;
}

header {
  border-bottom: 1px solid var(--line);
  padding-bottom: 1.4rem;
  margin-bottom: 2.6rem;
}

header h1 {
  font-size: 1.5rem;
  margin: 0 0 .3rem;
  letter-spacing: .08em;
  font-weight: 600;
}

header h1 a { color: var(--fg); text-decoration: none; }

header p {
  margin: 0;
  color: var(--muted);
  font-size: .9rem;
  letter-spacing: .02em;
}

nav { margin-top: 1rem; font-size: .9rem; }
nav a { margin-right: 1.2rem; }

a { color: var(--link); text-decoration: none; border-bottom: 1px solid transparent; }
a:hover { border-bottom-color: var(--link); }

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

ul.entries li {
  padding: .9rem 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
}

ul.entries time {
  color: var(--muted);
  font-size: .82rem;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

article h2 { font-size: 1.25rem; margin: 0 0 .2rem; font-weight: 600; }
article .meta { color: var(--muted); font-size: .84rem; margin-bottom: 2rem; }
article p { margin: 1.3rem 0; }

blockquote {
  margin: 1.6rem 0;
  padding: .2rem 0 .2rem 1.1rem;
  border-left: 2px solid var(--line);
  color: var(--muted);
}

footer {
  margin-top: 4rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .82rem;
}

.back { display: inline-block; margin-bottom: 2rem; font-size: .88rem; }
