:root {
  --bg: #fdfcf9; --fg: #1d1d1b; --muted: #6b6a66; --rule: #e6e3dc; --accent: #b4441c;
  --serif: "Iowan Old Style", "Charter", "Sitka Text", Cambria, Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --measure: 38rem;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #161615; --fg: #e9e6df; --muted: #9a978f; --rule: #2e2d2a; --accent: #f08a5d; }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 1.1875rem/1.65 var(--serif); }
main, .site-header, .site-footer { max-width: var(--measure); margin: 0 auto; padding: 0 1.25rem; }
a { color: inherit; text-decoration-color: var(--accent); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--accent); }

.site-header { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: .5rem 1.5rem; padding-top: 2.5rem; padding-bottom: 3rem; font-family: var(--sans); }
.site-title { font-weight: 650; text-decoration: none; letter-spacing: -.01em; font-size: 1.05rem; }
.site-header nav { display: flex; gap: 1.1rem; font-size: .95rem; }
.site-header nav a { text-decoration: none; color: var(--muted); }
.site-header nav a:hover { color: var(--accent); }

.intro p { font-size: 1.35rem; line-height: 1.4; margin: 0 0 3rem; color: var(--muted); font-style: italic; }
h1, h2, h3 { line-height: 1.2; letter-spacing: -.015em; font-weight: 600; }
.year h2, .cats h2 { font: 600 .8rem/1 var(--sans); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 2.5rem 0 .75rem; }
.post-list { list-style: none; margin: 0; padding: 0; }
.post-list li { display: flex; justify-content: space-between; gap: 1rem; padding: .35rem 0; border-bottom: 1px solid var(--rule); }
.post-list a { text-decoration: none; }
.post-list a:hover { text-decoration: underline; }
.post-list time, .count { font: .85rem var(--sans); color: var(--muted); white-space: nowrap; padding-top: .3rem; }
.cats p { font-size: 1rem; }

.post header h1, .page-title { font-size: clamp(1.9rem, 5vw, 2.6rem); margin: 0 0 .5rem; }
.meta { font: .9rem var(--sans); color: var(--muted); margin: 0 0 2.5rem; }
.prose img, .prose video, .prose iframe { max-width: 100%; height: auto; display: block; margin: 1.5rem auto; border-radius: 3px; }
.prose blockquote { margin: 1.5rem 0; padding-left: 1.25rem; border-left: 3px solid var(--accent); color: var(--muted); font-style: italic; }
.prose h2 { font-size: 1.5rem; margin-top: 2.5rem; }
.prose h3 { font-size: 1.2rem; margin-top: 2rem; }
.prose pre { overflow-x: auto; font-size: .85rem; background: var(--rule); padding: 1rem; border-radius: 4px; }
.prose code { font-size: .9em; }
.prose hr { border: 0; border-top: 1px solid var(--rule); margin: 2.5rem 0; }
.prose table { border-collapse: collapse; width: 100%; font: .9rem var(--sans); display: block; overflow-x: auto; }
.prose td, .prose th { border-bottom: 1px solid var(--rule); padding: .4rem .6rem; text-align: left; }
.post-nav { display: flex; justify-content: space-between; gap: 1rem; margin: 4rem 0 0; padding-top: 1.5rem; border-top: 1px solid var(--rule); font: .95rem var(--sans); }
.post-nav a { text-decoration: none; color: var(--muted); max-width: 48%; }
.post-nav a:last-child { text-align: right; }
.site-footer { padding-top: 4rem; padding-bottom: 3rem; font: .85rem var(--sans); color: var(--muted); }
