:root {
  --bg: #fbfaf7; --fg: #1f2328; --muted: #646b73; --line: #e2dfd8; --accent: #1f5fa8; --panel: #fff;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #15181c; --fg: #e6e8ea; --muted: #99a1a9; --line: #2c3238; --accent: #84b6ee; --panel: #1c2025; }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 17px/1.65 Georgia, "Times New Roman", serif; }
.wrap { max-width: 700px; margin: 0 auto; padding: 0 20px; }
a { color: var(--accent); text-underline-offset: 2px; }
h1, h2, nav, .name, .posts time, .date, footer, label, button, .year {
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
}
h1 { font-size: 30px; line-height: 1.2; margin: 0 0 12px; }
h2 { font-size: 19px; line-height: 1.3; margin: 40px 0 10px; }
h2 a { color: inherit; }
header.top { border-bottom: 1px solid var(--line); margin-bottom: 36px; }
header.top .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-top: 14px; padding-bottom: 14px; }
.name { font-weight: 700; color: var(--fg); text-decoration: none; }
nav a { margin-left: 18px; color: var(--muted); text-decoration: none; font-size: 15px; }
nav a:hover { color: var(--accent); }
.hero { display: flex; align-items: center; gap: 20px; margin-bottom: 18px; }
.hero img { border-radius: 50%; flex: none; }
.hero h1 { margin: 0 0 4px; }
.hero p { margin: 0; }
.posts, .timeline { list-style: none; margin: 0; padding: 0; }
.posts li { display: flex; justify-content: space-between; gap: 20px; padding: 7px 0; border-bottom: 1px solid var(--line); }
.posts a { text-decoration: none; }
.posts a:hover { text-decoration: underline; }
.posts time { flex: none; color: var(--muted); font-size: 14px; padding-top: 3px; }
.timeline li { display: flex; gap: 16px; padding: 4px 0; }
.year { flex: 0 0 52px; color: var(--muted); font-size: 15px; padding-top: 2px; }
.more { margin-top: 12px; }
.date { color: var(--muted); font-size: 15px; margin-top: -6px; }
article blockquote { margin: 16px 0; padding-left: 16px; border-left: 3px solid var(--line); color: var(--muted); }
form { display: grid; gap: 12px; }
label { display: grid; gap: 4px; font-size: 14px; color: var(--muted); }
input, textarea {
  width: 100%; padding: 9px 10px; font: inherit; color: var(--fg); background: var(--panel);
  border: 1px solid var(--line); border-radius: 6px;
}
button {
  justify-self: start; padding: 9px 22px; font-size: 15px; font-weight: 600; color: #fff;
  background: #1f5fa8; border: 0; border-radius: 6px; cursor: pointer;
}
.hp { position: absolute; left: -9999px; }
.msg { padding: 9px 12px; background: var(--panel); border: 1px solid var(--line); border-radius: 6px; }
footer { margin-top: 56px; padding-top: 16px; padding-bottom: 28px; color: var(--muted); font-size: 14px; }
@media (max-width: 520px) {
  .posts li { display: block; }
  .posts time { display: block; padding-top: 0; }
  nav a { margin-left: 12px; }
}
