:root {
  --bg: #fbfaf8;
  --fg: #23201d;
  --muted: #6b655f;
  --accent: #b8552b;
  --border: #e7e2db;
  --maxw: 42rem;
  font-size: 18px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1a1816;
    --fg: #ece7e1;
    --muted: #a49c93;
    --accent: #e0824f;
    --border: #322e2a;
  }
}

* { box-sizing: border-box; }

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

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

main, .site-header, .site-footer {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.site-header {
  padding-top: 3rem;
  padding-bottom: 1.5rem;
}

.site-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--fg);
  text-decoration: none;
  letter-spacing: -0.02em;
}

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

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

.index-heading {
  font-size: 1.1rem;
  font-weight: 650;
  letter-spacing: -0.01em;
  margin: 1.5rem 0 0;
}

.index-list {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 0;
}

.index-item {
  padding: 1.5rem 0;
  border-top: 1px solid var(--border);
}

.index-item > a {
  font-size: 1.3rem;
  font-weight: 650;
  text-decoration: none;
  color: var(--fg);
  line-height: 1.3;
}

.index-item > a:hover { color: var(--accent); }

.index-date, .article-date {
  display: block;
  color: var(--muted);
  font-size: 0.85rem;
  margin-top: 0.35rem;
}

.index-excerpt {
  color: var(--muted);
  margin: 0.5rem 0 0;
}

.post {
  padding-top: 1rem;
}

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

.post h2 {
  font-size: 1.4rem;
  margin: 2.5rem 0 0.75rem;
  letter-spacing: -0.01em;
}

.post p { margin: 1.25rem 0; }

.post blockquote {
  margin: 1.5rem 0;
  padding: 0.5rem 1.25rem;
  border-left: 3px solid var(--accent);
  color: var(--muted);
  font-style: italic;
}

.article-date {
  margin-bottom: 1.5rem;
}

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

.site-footer {
  margin-top: 4rem;
  padding-top: 1.5rem;
  padding-bottom: 3rem;
  color: var(--muted);
  font-size: 0.85rem;
}
