:root {
  --bg: #fdfdfb;
  --fg: #1a1a1a;
  --muted: #6b6b6b;
  --accent: #b45309;
  --border: #e6e2da;
  --card: #ffffff;
  --max-width: 680px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #15140f;
    --fg: #f0ede4;
    --muted: #a3a08f;
    --accent: #e0a458;
    --border: #2c2a22;
    --card: #1c1b15;
  }
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: light dark;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  line-height: 1.65;
  font-size: 18px;
}

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3rem 1.25rem 5rem;
}

header.site-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 3rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border);
}

header.site-header a.logo {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
  color: var(--fg);
  text-decoration: none;
}

header.site-header a.logo .dot {
  color: var(--accent);
}

header.site-header nav a {
  color: var(--muted);
  text-decoration: none;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.9rem;
  margin-left: 1.25rem;
}

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

h1 {
  font-size: 2rem;
  line-height: 1.2;
  margin: 0 0 0.5rem;
  letter-spacing: -0.01em;
}

h2.tagline {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 400;
  font-size: 1.05rem;
  color: var(--muted);
  margin: 0 0 3rem;
}

article.post-preview {
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border);
}

article.post-preview:last-child {
  border-bottom: none;
}

article.post-preview time {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.8rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

article.post-preview h3 {
  margin: 0.35rem 0 0.5rem;
  font-size: 1.4rem;
}

article.post-preview h3 a {
  color: var(--fg);
  text-decoration: none;
}

article.post-preview h3 a:hover {
  color: var(--accent);
}

article.post-preview p {
  color: var(--muted);
  margin: 0;
}

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

.post-body p {
  margin: 0 0 1.25rem;
}

.back-link {
  display: inline-block;
  margin-bottom: 2rem;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.9rem;
  color: var(--muted);
  text-decoration: none;
}

.back-link:hover {
  color: var(--accent);
}

.badge {
  display: inline-block;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.75rem;
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--muted);
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}

footer.site-footer {
  margin-top: 4rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.8rem;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}

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

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