:root {
  --bg: #fafaf8;
  --fg: #1f2328;
  --muted: #5f6770;
  --border: #e5e5e0;
  --card: #f3f3ef;
  --accent: #24577a;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141618;
    --fg: #e6e7e4;
    --muted: #98a0a8;
    --border: #2a2e33;
    --card: #1b1e22;
    --accent: #7ab3d8;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.72;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: 680px;
  margin: 0 auto;
  padding: 46px 20px 64px;
}

header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 34px;
}

.brand {
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  color: var(--fg);
  text-decoration: none;
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 0.92rem;
}

nav a {
  color: var(--muted);
  text-decoration: none;
}

nav a:hover,
nav a[aria-current="page"] {
  color: var(--accent);
}

.intro {
  margin-bottom: 36px;
}

.intro h1,
.article-head h1 {
  font-size: 1.65rem;
  line-height: 1.3;
  margin: 0 0 10px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.intro p,
.lead {
  margin: 0;
  color: var(--muted);
}

section {
  margin-bottom: 40px;
}

h2 {
  font-size: 0.84rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin: 0 0 16px;
  font-weight: 600;
}

article.note-card {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px 18px;
  margin-bottom: 14px;
  background: var(--card);
}

.note-meta {
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 4px;
}

.note-card h3 {
  margin: 0 0 6px;
  font-size: 1.08rem;
  font-weight: 600;
}

.note-card h3 a {
  color: var(--fg);
  text-decoration: none;
}

.note-card h3 a:hover {
  color: var(--accent);
}

.note-card p {
  margin: 0 0 8px;
  font-size: 0.95rem;
}

.read-link {
  font-size: 0.88rem;
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
}

.read-link:hover {
  text-decoration: underline;
}

.article-head {
  margin-bottom: 26px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
}

.prose p {
  margin: 0 0 16px;
}

.prose h2 {
  margin-top: 28px;
  margin-bottom: 10px;
  font-size: 1.05rem;
  text-transform: none;
  letter-spacing: -0.01em;
  color: var(--fg);
}

.prose blockquote {
  margin: 20px 0;
  padding: 10px 16px;
  border-left: 3px solid var(--accent);
  background: var(--card);
  color: var(--muted);
  border-radius: 0 6px 6px 0;
}

.prose ul {
  padding-left: 20px;
  margin: 0 0 18px;
}

.prose li {
  margin-bottom: 6px;
}

.pager {
  margin-top: 34px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.9rem;
}

.pager a {
  color: var(--accent);
  text-decoration: none;
}

.pager a:hover {
  text-decoration: underline;
}

ul.list {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid var(--border);
}

ul.list li {
  padding: 11px 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px 14px;
  font-size: 0.95rem;
}

ul.list a {
  color: var(--fg);
  text-decoration: none;
  font-weight: 500;
}

ul.list a:hover {
  color: var(--accent);
}

.muted {
  color: var(--muted);
  font-size: 0.88rem;
}

footer {
  margin-top: 48px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  font-size: 0.84rem;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 16px;
}

footer a {
  color: var(--muted);
  text-decoration: none;
}

footer a:hover {
  color: var(--accent);
}
