:root {
  --text: #1f2328;
  --muted: #59636e;
  --line: #e5e8eb;
  --bg: #ffffff;
  --accent: #0b5fff;
  --soft: #f6f8fa;
}

* { box-sizing: border-box; }

html { font-size: 17px; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: 720px;
  margin: 0 auto;
  padding: 1.25rem 1rem 0;
}

.logo {
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text);
  letter-spacing: -0.01em;
}

.site-header nav { display: flex; gap: 1.1rem; }
.site-header nav a { color: var(--muted); }
.site-header nav a[aria-current="page"] { color: var(--text); font-weight: 600; }

main {
  max-width: 720px;
  margin: 0 auto;
  padding: 2.5rem 1rem 3rem;
}

.hero h1 {
  font-size: 2.1rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0 0 0.75rem;
}

.lead { font-size: 1.15rem; color: var(--muted); margin: 0 0 2.5rem; }

h2 {
  font-size: 1.35rem;
  letter-spacing: -0.01em;
  margin: 2.5rem 0 1rem;
}

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

.notes li {
  padding: 1.1rem 0;
  border-top: 1px solid var(--line);
}

.notes li:last-child { border-bottom: 1px solid var(--line); }

.notes time {
  display: block;
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 0.2rem;
}

.notes a { font-weight: 600; font-size: 1.1rem; color: var(--text); }
.notes a:hover { color: var(--accent); text-decoration: none; }
.notes p { margin: 0.35rem 0 0; color: var(--muted); }

.prose h1 { font-size: 1.9rem; line-height: 1.25; letter-spacing: -0.02em; margin: 0 0 1.25rem; }
.prose h2 { margin-top: 2rem; }
.prose p { margin: 0 0 1rem; }
.prose ul { margin: 0 0 1rem; padding-left: 1.3rem; }
.prose li { margin-bottom: 0.35rem; }
.prose .meta { color: var(--muted); font-size: 0.9rem; margin-bottom: 0.5rem; }

.site-footer {
  max-width: 720px;
  margin: 0 auto;
  padding: 1rem 1rem 2.5rem;
  color: var(--muted);
  font-size: 0.9rem;
  border-top: 1px solid var(--line);
}

@media (max-width: 540px) {
  .hero h1 { font-size: 1.7rem; }
  .site-header { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
}

@media (prefers-color-scheme: dark) {
  :root {
    --text: #e6e8ea;
    --muted: #9aa1a9;
    --line: #2a2f35;
    --bg: #0f1114;
    --accent: #6ea8ff;
    --soft: #15181c;
  }
}
