:root {
  --bg: #fbf8f3;
  --fg: #1f1b16;
  --muted: #6b6258;
  --accent: #6b2c1f;
  --accent-soft: #b3573f;
  --rule: #e6dfd2;
  --card: #ffffff;
  --max-width: 760px;
  --serif: Georgia, "Iowan Old Style", "Palatino Linotype", Palatino, "URW Palladio L", "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

.site-header {
  border-bottom: 1px solid var(--rule);
  background: var(--bg);
  padding: 1rem 0;
  margin-bottom: 2.5rem;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.site-title {
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
  letter-spacing: 0.01em;
}
.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.1rem;
  font-family: var(--sans);
  font-size: 0.95rem;
}
.site-nav a {
  color: var(--fg);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
}
.site-nav a:hover, .site-nav a.active { color: var(--accent); border-bottom-color: var(--accent-soft); }

main.container { padding-bottom: 3rem; min-height: 60vh; }

h1, h2, h3, h4 { font-family: var(--serif); line-height: 1.25; color: var(--fg); }
h1 { font-size: 2.05rem; margin: 0.2em 0 0.4em; }
h2 { font-size: 1.5rem; margin: 1.8em 0 0.5em; }
h3 { font-size: 1.2rem; margin: 1.4em 0 0.4em; }
p, ul, ol { margin: 0 0 1.1em; }
ul, ol { padding-left: 1.4em; }
li { margin-bottom: 0.3em; }
blockquote {
  border-left: 3px solid var(--accent-soft);
  padding: 0.15em 1em;
  margin: 1.2em 0;
  color: var(--muted);
  font-style: italic;
}
hr { border: 0; border-top: 1px solid var(--rule); margin: 2em 0; }
a { color: var(--accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--accent-soft); }
code { background: #f1ece1; padding: 0.1em 0.35em; border-radius: 3px; font-size: 0.92em; }
img { max-width: 100%; height: auto; display: block; margin: 1em auto; }

.home-hero { padding: 1rem 0 2rem; border-bottom: 1px solid var(--rule); margin-bottom: 2rem; }
.home-hero h1 { font-size: 2.6rem; margin-bottom: 0.15em; color: var(--accent); }
.home-hero .lede { font-size: 1.15rem; color: var(--muted); max-width: 56ch; }

.home-sections {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
  margin: 2rem 0 3rem;
}
.section-card {
  background: var(--card);
  border: 1px solid var(--rule);
  padding: 1.25rem 1.4rem;
  border-radius: 4px;
}
.section-card h2 { margin-top: 0; font-size: 1.2rem; }
.section-card h2 a { color: var(--fg); text-decoration: none; }
.section-card h2 a:hover { color: var(--accent); }
.section-card p { margin-bottom: 0; color: var(--muted); font-size: 0.97rem; }

.home-recent h2 { font-size: 1.3rem; border-top: 1px solid var(--rule); padding-top: 2rem; margin-top: 1rem; }

.post-list { list-style: none; padding: 0; margin: 0; }
.post-item { border-bottom: 1px solid var(--rule); padding: 1.1rem 0; }
.post-item:last-child { border-bottom: 0; }
.post-link { display: block; text-decoration: none; color: inherit; }
.post-item-title { margin: 0 0 0.25em; color: var(--accent); font-size: 1.2rem; }
.post-link:hover .post-item-title { color: var(--accent-soft); }
.post-item-summary { color: var(--muted); margin: 0 0 0.4em; font-size: 0.97rem; }
.post-item-meta { font-family: var(--sans); font-size: 0.85rem; color: var(--muted); }

.post-header { border-bottom: 1px solid var(--rule); padding-bottom: 1rem; margin-bottom: 1.5rem; }
.post-title { color: var(--fg); margin-bottom: 0.3em; }
.post-meta { font-family: var(--sans); font-size: 0.88rem; color: var(--muted); }
.post-meta .dot { margin: 0 0.4em; opacity: 0.6; }
.post-meta a { color: var(--muted); }
.post-content { font-size: 1.05rem; }
.post-content p:first-child::first-line { font-variant: small-caps; letter-spacing: 0.04em; }

.post-footer { margin-top: 2.5rem; border-top: 1px solid var(--rule); padding-top: 1rem; }
.tags { font-family: var(--sans); font-size: 0.85rem; }
.tag { color: var(--muted); margin-right: 0.6em; text-decoration: none; }
.tag:hover { color: var(--accent); }

.section-list .section-header { margin-bottom: 1.5rem; padding-bottom: 0.8rem; border-bottom: 1px solid var(--rule); }
.section-list .section-header h1 { color: var(--accent); }
.section-intro { color: var(--muted); }

.not-found { text-align: center; padding: 3rem 0; }

.site-footer {
  border-top: 1px solid var(--rule);
  margin-top: 4rem;
  padding: 1.5rem 0 2rem;
  font-family: var(--sans);
  font-size: 0.85rem;
  color: var(--muted);
}
.footer-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }
.footer-nav { display: flex; gap: 1rem; }
.footer-nav a { color: var(--muted); text-decoration: none; }
.footer-nav a:hover { color: var(--accent); }

@media (max-width: 560px) {
  body { font-size: 17px; }
  h1 { font-size: 1.75rem; }
  h2 { font-size: 1.3rem; }
  .site-nav { font-size: 0.9rem; gap: 0.8rem; }
  .home-hero h1 { font-size: 2rem; }
}
