@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,600;9..144,700&family=Newsreader:opsz,wght@6..72,400;6..72,500;6..72,600&display=swap');

:root {
  --bg: #faf6f1;
  --text: #292524;
  --muted: #78716c;
  --accent: #c2410c;
  --border: #d6d3d1;
  --soft: #f5f0ea;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1c1917;
    --text: #e7e5e4;
    --muted: #a8a29e;
    --accent: #fb923c;
    --border: #44403c;
    --soft: #292524;
  }
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Newsreader", Georgia, "Times New Roman", serif;
  font-size: 1.125rem;
  line-height: 1.75;
}

.strip {
  background: var(--bg);
  color: var(--muted);
  border-bottom: 1px solid var(--border);
  font-family: system-ui, sans-serif;
}
.strip a { color: var(--accent); text-decoration: none; }
.strip a:hover { text-decoration: underline; }

.masthead {
  padding-top: 3.5rem;
  padding-bottom: 2rem;
  margin-bottom: 2.5rem;
  border-bottom: 3px double var(--border);
}
.avatar {
  width: 6rem;
  height: 6rem;
  border-radius: 1rem;
  box-shadow: 0 4px 14px rgba(0,0,0,0.18);
  margin-bottom: 1.2rem;
}
.blog-title {
  font-family: "Fraunces", Georgia, serif;
  font-size: 2.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0;
}
.blog-title a { color: var(--text); text-decoration: none; }
.blog-title a:hover { color: var(--accent); }
.tagline {
  font-family: "Fraunces", Georgia, serif;
  font-style: italic;
  font-size: 1.15rem;
  color: var(--muted);
  margin: 0.6rem 0 0;
}

a { color: var(--accent); }
a:hover { text-decoration-thickness: 2px; }

h1, h2, h3, h4 {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  line-height: 1.25;
  color: var(--text);
}
h1 { font-size: 2rem; margin: 2.5rem 0 0.4rem; }
h2 {
  font-size: 1.5rem;
  margin: 2.2rem 0 0.6rem;
  padding-bottom: 0.3rem;
  border-bottom: 1px solid var(--border);
}
h3 { font-size: 1.2rem; margin: 1.8rem 0 0.5rem; }
h4 { font-size: 1.05rem; margin: 1.5rem 0 0.5rem; }

.post-list li {
  border-bottom: 1px solid var(--border);
  transition: background 0.15s ease;
}
.post-list li:hover { background: var(--soft); }
.post-link { text-decoration: none; font-weight: 500; }
.post-link:hover { text-decoration: underline; }

blockquote {
  margin: 1.2rem 0;
  padding: 0.8rem 1.2rem;
  border-left: 4px solid var(--accent);
  background: var(--soft);
  border-radius: 0 0.5rem 0.5rem 0;
  font-style: italic;
}

pre {
  background: var(--soft);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  padding: 0.9rem 1.1rem;
  overflow-x: auto;
}
code {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.88em;
  background: var(--soft);
  padding: 0.1em 0.35em;
  border-radius: 0.25rem;
}
pre code { background: none; padding: 0; }

time { color: var(--muted); }
.empty, .notice, .receipt, .colophon { color: var(--muted); }
.receipt a { color: var(--accent); }
.colophon { border-top: 1px solid var(--border); }

@media (max-width: 600px) {
  body { font-size: 1.05rem; }
  .blog-title { font-size: 2.2rem; }
  .masthead { padding-top: 2rem; }
  .avatar { width: 4.5rem; height: 4.5rem; }
}
