:root {
  --bg: #fbfaf7;
  --fg: #22211f;
  --muted: #6d6a63;
  --rule: #e4e0d8;
  --accent: #9a4b1c;
  --code-bg: #f1eee8;
  --max: 42rem;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #171614;
    --fg: #e8e5df;
    --muted: #9b968c;
    --rule: #2e2c28;
    --accent: #e08a52;
    --code-bg: #22201d;
  }
}
* { box-sizing: border-box; }
html { font-size: 17px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 1rem; }

header.site {
  border-bottom: 1px solid var(--rule);
  padding: 1.6rem 0 1.2rem;
  margin-bottom: 2.4rem;
}
header.site .wrap { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.brand { font-weight: 700; font-size: 1.15rem; color: var(--fg); text-decoration: none; letter-spacing: .01em; }
.brand svg { width: 1.05rem; height: 1.05rem; vertical-align: -2px; margin-right: .35rem; }
nav a { color: var(--muted); text-decoration: none; margin-left: 1.1rem; font-size: .95rem; }
nav a:first-child { margin-left: 0; }
nav a:hover, nav a[aria-current] { color: var(--fg); }

h1, h2, h3 { line-height: 1.25; font-weight: 700; }
h1 { font-size: 1.9rem; margin: 0 0 .4rem; }
h2 { font-size: 1.3rem; margin-top: 2.2rem; }
.lede { color: var(--muted); font-size: 1.05rem; margin-top: 0; }
.meta { color: var(--muted); font-size: .88rem; font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; }

ul.posts { list-style: none; padding: 0; margin: 1.5rem 0; }
ul.posts li { padding: .9rem 0; border-top: 1px solid var(--rule); }
ul.posts li:last-child { border-bottom: 1px solid var(--rule); }
ul.posts a { font-size: 1.1rem; text-decoration: none; color: var(--fg); }
ul.posts a:hover { color: var(--accent); }
ul.posts p { margin: .2rem 0 0; color: var(--muted); font-size: .95rem; }

code, pre { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: .86rem; }
code { background: var(--code-bg); padding: .1em .3em; border-radius: 3px; }
pre { background: var(--code-bg); padding: .9rem 1rem; overflow-x: auto; border-radius: 4px; line-height: 1.5; }
pre code { background: none; padding: 0; }
blockquote { margin: 1.4rem 0; padding-left: 1rem; border-left: 3px solid var(--rule); color: var(--muted); }
hr { border: 0; border-top: 1px solid var(--rule); margin: 2.5rem 0; }
table { border-collapse: collapse; width: 100%; font-size: .93rem; }
th, td { text-align: left; padding: .4rem .6rem; border-bottom: 1px solid var(--rule); }

footer.site {
  margin-top: 4rem;
  padding: 1.5rem 0 2.5rem;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: .88rem;
}
footer.site a { color: var(--muted); }
