:root {
  --bg:       #fafaf8;
  --text:     #1a1a1a;
  --muted:    #666;
  --accent:   #005f73;
  --border:   #e5e5e3;
  --code-bg:  #f0f0ee;
  --width:    680px;
}

*, *::before, *::after { box-sizing: border-box; }

html { font-size: 18px; }

body {
  font-family: Georgia, 'Times New Roman', serif;
  line-height: 1.75;
  color: var(--text);
  background: var(--bg);
  margin: 0;
  padding: 0 1.25rem;
}

header, main, footer {
  max-width: var(--width);
  margin-left: auto;
  margin-right: auto;
}

/* ── Header ── */
header {
  padding: 2.5rem 0 1.5rem;
  border-bottom: 1px solid var(--border);
}

.site-title {
  font-size: 1.3rem;
  font-weight: bold;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.01em;
}

.site-description {
  color: var(--muted);
  font-size: 0.95rem;
  margin: 1.5rem 0 0;
}

.site-nav {
  margin-top: 0.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
}

.site-nav a {
  font-size: 0.9rem;
  color: var(--muted);
  text-decoration: none;
  font-family: Georgia, serif;
}

.site-nav a:hover {
  color: var(--accent);
}

/* ── Post list ── */
main { padding: 2rem 0; }

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

.post-summary {
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--border);
}

.post-summary h2 {
  margin: 0 0 0.25rem;
  font-size: 1.2rem;
}

.post-summary h2 a {
  color: var(--accent);
  text-decoration: none;
}

.post-summary h2 a:hover {
  text-decoration: underline;
}

.post-summary p {
  margin: 0.5rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

nav { margin-top: 2rem; }

nav a { color: var(--accent); }

/* ── Post ── */
.cover-image {
  margin: 0 0 2rem;
  padding: 0;
}

.cover-image img {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
  border-radius: 4px;
  display: block;
}

.post-header { margin-bottom: 2rem; }

.post-header h1 {
  margin: 0 0 0.5rem;
  font-size: 1.75rem;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.post-meta {
  font-size: 0.9rem;
  color: var(--muted);
  font-family: monospace;
}

.updated { font-style: italic; }

.post-content { margin-top: 2rem; }

.post-content h2, .post-content h3 {
  margin-top: 2rem;
  letter-spacing: -0.01em;
}

.post-content a { color: var(--accent); }

.post-content pre {
  background: var(--code-bg);
  padding: 1rem 1.25rem;
  overflow-x: auto;
  border-radius: 4px;
  font-size: 0.85rem;
  line-height: 1.5;
}

.post-content code {
  font-size: 0.875em;
  background: var(--code-bg);
  padding: 0.1em 0.35em;
  border-radius: 3px;
}

.post-content pre code {
  background: none;
  padding: 0;
}

.post-content img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
  display: block;
  margin: 1.5rem auto;
}

.post-content blockquote {
  border-left: 3px solid var(--border);
  margin-left: 0;
  padding-left: 1.25rem;
  color: var(--muted);
}

.post-footer {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
}

.canonical-uri {
  color: var(--muted);
  font-size: 0.8rem;
  word-break: break-all;
}

/* ── Tags ── */
.tags {
  list-style: none;
  padding: 0;
  margin: 0.6rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.tags li {
  background: var(--code-bg);
  border-radius: 3px;
  padding: 0.1em 0.55em;
  font-size: 0.8rem;
  font-family: monospace;
  color: var(--muted);
}

/* ── Footer ── */
footer {
  padding: 2rem 0;
  border-top: 1px solid var(--border);
  color: var(--muted);
}

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

time {
  font-family: monospace;
  font-size: 0.875rem;
  color: var(--muted);
}
