:root {
  --bg: #fbfaf7;
  --text: #1d1c1a;
  --muted: #6f6b63;
  --line: #e4e0d6;
  --accent: #a3401c;
  --code-bg: #f1eee6;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #17161a;
    --text: #e9e6df;
    --muted: #9a958a;
    --line: #2e2c33;
    --accent: #f0966c;
    --code-bg: #232128;
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 18px/1.65 Charter, "Bitstream Charter", "Iowan Old Style", Georgia, serif;
  -webkit-text-size-adjust: 100%;
}
header.site, main, footer.site { max-width: 42rem; margin: 0 auto; padding: 0 1.25rem; }
header.site { padding-top: 2.5rem; padding-bottom: 1rem; }
header.site a {
  font: 600 0.95rem/1 ui-monospace, "SF Mono", Menlo, monospace;
  color: var(--text);
  text-decoration: none;
  letter-spacing: 0.01em;
}
header.site a::before { content: "~/"; color: var(--accent); }
footer.site {
  margin-top: 4rem;
  padding-top: 1.5rem;
  padding-bottom: 3rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font: 0.8rem ui-monospace, "SF Mono", Menlo, monospace;
}
a { color: var(--accent); text-underline-offset: 0.15em; }
time {
  display: block;
  color: var(--muted);
  font: 0.8rem ui-monospace, "SF Mono", Menlo, monospace;
}
.tagline { color: var(--muted); margin: 0 0 2.5rem; }
.empty { color: var(--muted); font-style: italic; }

.entry { padding: 1.5rem 0; border-top: 1px solid var(--line); }
.entry h2 { margin: 0.3rem 0 0.4rem; font-size: 1.35rem; line-height: 1.3; }
.entry h2 a { color: var(--text); text-decoration: none; }
.entry h2 a:hover { color: var(--accent); }
.entry p { margin: 0; color: var(--muted); font-size: 1rem; }

.post { padding-top: 1.5rem; }
.post h1 { font-size: 2rem; line-height: 1.2; margin: 0.4rem 0 1.5rem; letter-spacing: -0.01em; }
.post h2 { font-size: 1.3rem; line-height: 1.3; margin: 2.4rem 0 0.6rem; }
.post h3 { font-size: 1.1rem; margin: 1.8rem 0 0.4rem; }
.post p, .post ul, .post ol { margin: 0 0 1.1rem; }
.post li { margin-bottom: 0.3rem; }
.post code {
  font: 0.85em ui-monospace, "SF Mono", Menlo, monospace;
  background: var(--code-bg);
  padding: 0.1em 0.35em;
  border-radius: 4px;
  overflow-wrap: anywhere;
}
.post pre { background: var(--code-bg); padding: 1rem; border-radius: 6px; overflow-x: auto; }
.post pre code { background: none; padding: 0; overflow-wrap: normal; }
.post blockquote { margin: 0 0 1.1rem; padding-left: 1rem; border-left: 3px solid var(--line); color: var(--muted); }
.post table { display: block; overflow-x: auto; border-collapse: collapse; font-size: 0.9rem; margin-bottom: 1.1rem; }
.post th, .post td { border-bottom: 1px solid var(--line); padding: 0.4rem 0.8rem 0.4rem 0; text-align: left; }
.post a { overflow-wrap: anywhere; }
.origin { margin-top: 2.5rem; color: var(--muted); font-size: 0.95rem; }
