:root {
  --bg: #faf7f1; --fg: #1f1d1a; --muted: #6b665d; --rule: #e3ddd1;
  --accent: #b5502a; --accent-soft: #f3e4dc; --card: #f3efe6; --code: #efeae0;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #17161a; --fg: #e7e2d8; --muted: #9c968b; --rule: #2e2c33;
    --accent: #e8926b; --accent-soft: #2e2320; --card: #201f24; --code: #232228;
  }
}
* { box-sizing: border-box; }
html { font: 18px/1.65 var(--sans); background: var(--bg); color: var(--fg); -webkit-text-size-adjust: 100%; }
body { max-width: 44rem; margin: 0 auto; padding: 2rem 1.2rem 3rem; }
a { color: var(--accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }

header { margin-bottom: 2.5rem; padding-bottom: 1.2rem; border-bottom: 2px solid var(--accent); }
.site-title { font-family: var(--serif); font-size: 2.1rem; font-weight: 600; line-height: 1.15; letter-spacing: -.01em; color: var(--fg); text-decoration: none; display: inline-block; }
.site-title::before { content: "◍"; color: var(--accent); margin-right: .45rem; }
.tagline { margin: .3rem 0 .9rem; color: var(--muted); font-style: italic; font-family: var(--serif); font-size: 1.05rem; }
nav { display: flex; flex-wrap: wrap; gap: .3rem 1.2rem; font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; }
nav a { color: var(--muted); text-decoration: none; white-space: nowrap; }
nav a:hover { color: var(--accent); }
nav a.ext { margin-left: auto; }
nav a.ext::after { content: " ↗"; }

h1 { font-family: var(--serif); font-size: 2rem; line-height: 1.2; margin: 0 0 .5rem; letter-spacing: -.01em; }
h2 { font-family: var(--serif); font-size: 1.4rem; margin: 2.2rem 0 .6rem; }
h3 { font-size: 1.05rem; margin: 1.6rem 0 .4rem; }
p, li { max-width: 40rem; }
.meta { color: var(--muted); font-size: .92rem; margin: 0 0 1.2rem; }
.meta time { font-family: var(--mono); }
.meta .tags::before { content: " · "; }
.meta .author { color: var(--fg); }
pre.ascii { font-size: .8rem; line-height: 1.4; }
.hl pre { margin: 0; }

.promoted { background: var(--accent-soft); padding: .7rem 1rem; border-radius: 6px; font-size: .92rem; }

ul.posts { list-style: none; padding: 0; margin: 0; }
ul.posts li { padding: .9rem 0; border-bottom: 1px solid var(--rule); }
ul.posts time { display: block; font-family: var(--mono); font-size: .8rem; color: var(--muted); margin-bottom: .15rem; }
ul.posts a { font-family: var(--serif); font-size: 1.25rem; text-decoration: none; color: var(--fg); }
ul.posts a:hover { color: var(--accent); }
.summary { display: block; color: var(--muted); font-size: .95rem; margin-top: .2rem; }
ul.tags { columns: 2; list-style: none; padding: 0; }

table { border-collapse: collapse; margin: 1.2rem 0; font-size: .92rem; width: 100%; }
th { text-align: left; border-bottom: 2px solid var(--accent); padding: .4rem .6rem; }
td { border-bottom: 1px solid var(--rule); padding: .4rem .6rem; vertical-align: top; }
code { font-family: var(--mono); font-size: .86em; background: var(--code); padding: .1rem .35rem; border-radius: 4px; }
pre { background: var(--code); padding: .9rem 1rem; overflow-x: auto; border-radius: 6px; line-height: 1.45; }
pre code { background: none; padding: 0; font-size: .84rem; }
blockquote { margin: 1.2rem 0; padding: .2rem 1rem; border-left: 3px solid var(--rule); color: var(--muted); }
em { font-style: italic; }
hr { border: 0; border-top: 1px solid var(--rule); margin: 2rem 0; }
img { max-width: 100%; height: auto; border-radius: 6px; }

footer { margin-top: 3.5rem; padding-top: 1.2rem; border-top: 1px solid var(--rule); color: var(--muted); font-size: .9rem; }
footer .small { font-size: .8rem; }
footer .small a { color: var(--muted); }
@media (max-width: 40rem) {
  html { font-size: 17px; }
  body { padding-top: 1.2rem; }
  header { margin-bottom: 1.8rem; }
  .site-title { font-size: 1.6rem; }
  .tagline { font-size: .98rem; }
  nav { gap: .2rem .9rem; font-size: .8rem; }
  nav a.ext { margin-left: 0; }
    }

.quote { font-family: var(--serif); font-style: italic; font-size: 1rem; color: var(--fg); margin: 0 0 1.2rem; }
.quote .who { display: block; font-style: normal; font-size: .82rem; color: var(--muted); margin-top: .2rem; }
.rfcs { margin: 2rem 0 0; padding: .6rem 1rem; border: 1px solid var(--rule); border-radius: 6px; font-size: .9rem; }
.rfcs .label { display: block; font-family: var(--mono); font-size: .72rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin-bottom: .2rem; }
.rfcs ul { margin: 0; padding-left: 1.2rem; columns: 2; }
