:root {
  color-scheme: light dark;
  --bg: #fbfaf7;
  --fg: #1f1d1a;
  --muted: #6c665d;
  --rule: #e2ddd3;
  --accent: #8a5a2b;
  --card: #ffffff;
  --code: #f2efe8;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14141a;
    --fg: #e6e2da;
    --muted: #9a948a;
    --rule: #2c2c35;
    --accent: #d9a066;
    --card: #1b1b23;
    --code: #23232c;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Charter, Georgia, ui-serif, serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}
.wrap { max-width: 38rem; margin: 0 auto; padding: 2.5rem 1.25rem 4rem; }
a { color: inherit; text-decoration-color: var(--accent); text-underline-offset: 0.18em; text-decoration-thickness: 0.06em; }
a:hover { color: var(--accent); }
header.site { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; align-items: baseline; border-bottom: 1px solid var(--rule); padding-bottom: 1rem; margin-bottom: 2.25rem; }
header.site .brand { font-size: 1.15rem; font-weight: 600; letter-spacing: 0.01em; text-decoration: none; }
header.site nav { margin-left: auto; font-size: 0.9rem; }
header.site nav a { margin-left: 1rem; color: var(--muted); text-decoration: none; }
header.site nav a:hover { color: var(--accent); }
.tagline { color: var(--muted); font-size: 0.95rem; margin: -1.5rem 0 2.25rem; font-style: italic; }
h1, h2, h3, h4 { line-height: 1.25; font-weight: 600; }
h1.title { font-size: 1.7rem; margin: 0 0 0.35rem; }
time.stamp, .meta { color: var(--muted); font-size: 0.85rem; font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif; letter-spacing: 0.02em; }
article.entry { margin-bottom: 3rem; }
article.entry > h1 { margin-top: 0; }
.entry-body > :first-child { margin-top: 1.4rem; }
.entry-body img { max-width: 100%; height: auto; border-radius: 4px; }
.entry-body blockquote { margin: 1.4rem 0; padding-left: 1rem; border-left: 2px solid var(--accent); color: var(--muted); font-style: italic; }
.entry-body pre { background: var(--code); padding: 0.85rem 1rem; border-radius: 6px; overflow-x: auto; font-size: 0.875rem; }
.entry-body code { background: var(--code); padding: 0.1em 0.35em; border-radius: 3px; font-size: 0.875em; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.entry-body pre code { background: none; padding: 0; font-size: inherit; }
.entry-body hr { border: 0; border-top: 1px solid var(--rule); margin: 2rem 0; }
.entry-body mark { background: color-mix(in srgb, var(--accent) 25%, transparent); color: inherit; }
ul.feed { list-style: none; padding: 0; margin: 0; }
ul.feed > li { padding: 1.15rem 0; border-bottom: 1px solid var(--rule); }
ul.feed > li:first-child { padding-top: 0; }
ul.feed h2 { font-size: 1.1rem; margin: 0.15rem 0 0.3rem; }
ul.feed h2 a { text-decoration: none; }
ul.feed h2 a:hover { text-decoration: underline; }
ul.feed p { margin: 0.3rem 0 0; color: var(--muted); font-size: 0.95rem; }
.year { margin: 2.5rem 0 0.75rem; font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); font-family: ui-sans-serif, system-ui, sans-serif; }
.tags { margin-top: 0.5rem; display: flex; flex-wrap: wrap; gap: 0.4rem; }
.tags a { font-size: 0.78rem; font-family: ui-sans-serif, system-ui, sans-serif; color: var(--muted); border: 1px solid var(--rule); border-radius: 999px; padding: 0.1rem 0.6rem; text-decoration: none; }
.tags a:hover { border-color: var(--accent); color: var(--accent); }
.random { background: var(--card); border: 1px solid var(--rule); border-radius: 8px; padding: 1.1rem 1.25rem; margin: 0 0 2.5rem; }
.random h2 { margin: 0 0 0.5rem; font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); font-family: ui-sans-serif, system-ui, sans-serif; font-weight: 600; }
.random p { margin: 0; }
.random .rnd-title { font-weight: 600; text-decoration: none; }
.random .rnd-text { color: var(--muted); }
.random button { margin-top: 0.75rem; font: inherit; font-size: 0.82rem; font-family: ui-sans-serif, system-ui, sans-serif; background: none; color: var(--muted); border: 1px solid var(--rule); border-radius: 999px; padding: 0.15rem 0.75rem; cursor: pointer; }
.random button:hover { border-color: var(--accent); color: var(--accent); }
nav.pager { display: flex; justify-content: space-between; gap: 1rem; margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid var(--rule); font-size: 0.9rem; }
nav.pager a { color: var(--muted); text-decoration: none; max-width: 45%; }
nav.pager a:hover { color: var(--accent); }
footer.site { margin-top: 3.5rem; padding-top: 1.25rem; border-top: 1px solid var(--rule); color: var(--muted); font-size: 0.82rem; font-family: ui-sans-serif, system-ui, sans-serif; display: flex; flex-wrap: wrap; gap: 0.5rem 1rem; }
footer.site a { color: inherit; }
@media (max-width: 30rem) {
  .wrap { padding: 1.75rem 1rem 3rem; }
  h1.title { font-size: 1.45rem; }
}
