:root {
  --bg: #ffffff;
  --fg: #1a1a1a;
  --muted: #6b6b6b;
  --link: #1a1a1a;
  --accent: #c2410c;
  --rule: #e6e6e6;
  --code-bg: #f5f5f4;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --serif: Charter, "Bitstream Charter", "Iowan Old Style", Georgia, serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14110f;
    --fg: #ece8e3;
    --muted: #a09a93;
    --link: #ece8e3;
    --accent: #fb923c;
    --rule: #2c2724;
    --code-bg: #211d1a;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 1.25rem/1.65 var(--serif);
}
.wrap { max-width: 42rem; margin: 0 auto; padding: 0 1.25rem; }
a { color: var(--link); text-decoration-color: var(--rule); text-underline-offset: 0.2em; }
a:hover { text-decoration-color: var(--accent); }
img { max-width: 100%; height: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Masthead */
.masthead { text-align: center; padding: 3rem 0 1.5rem; font-family: var(--sans); }
.site-title {
  display: inline-block;
  font: 700 clamp(1.9rem, 6vw, 2.6rem)/1.15 var(--sans);
  letter-spacing: -0.02em;
  text-decoration: none;
}
.tagline { margin: 0.5rem 0 1.25rem; color: var(--muted); font-size: 1.05rem; }
.masthead nav {
  display: flex; justify-content: center; align-items: center; gap: 0.5rem 1.5rem;
  padding: 0.75rem 0; border-block: 1px solid var(--rule);
  font-size: 0.95rem;
}
.masthead nav a { color: var(--muted); text-decoration: none; }
.masthead nav a:hover { color: var(--fg); }
.masthead nav a[aria-current="page"] { color: var(--fg); font-weight: 600; }
.subscribe {
  color: #fff !important; background: var(--accent); padding: 0.35rem 0.9rem;
  border-radius: 999px; font-weight: 600;
}
@media (prefers-color-scheme: dark) { .subscribe { color: #14110f !important; } }

/* Post list */
.post-list { list-style: none; padding: 0; margin: 2rem 0 0; }
.post-list li { padding: 1.75rem 0; border-bottom: 1px solid var(--rule); }
.post-list li:last-child { border-bottom: 0; }
.post-list .p-name {
  display: block; font: 700 1.55rem/1.25 var(--sans); letter-spacing: -0.01em; text-decoration: none;
}
.post-list .p-name:hover { color: var(--accent); }
.post-list .p-summary { margin: 0.4rem 0 0.6rem; color: var(--muted); font-size: 1.1rem; line-height: 1.5; }
.post-list time, .meta, .tags, .syndication, .reply-hint, .feed-description {
  color: var(--muted); font: 0.9rem/1.5 var(--sans);
}
.post-list time { display: block; margin-top: 0.4rem; }

/* Article */
article header { margin: 2rem 0 2rem; }
article h1 { font: 700 clamp(2rem, 6vw, 2.75rem)/1.15 var(--sans); letter-spacing: -0.02em; margin: 0 0 0.6rem; }
article .p-summary { font: 400 1.3rem/1.4 var(--sans); color: var(--muted); margin: 0 0 1.25rem; }
article .meta { margin: 0; }
article .meta a { color: inherit; }
.e-content { font-size: 1.25rem; }
.e-content p, .e-content ul, .e-content ol { margin: 0 0 1.35em; }
.e-content h2, .e-content h3 { font-family: var(--sans); line-height: 1.25; margin: 2em 0 0.6em; letter-spacing: -0.01em; }
.e-content a { text-decoration-color: var(--accent); }
.e-content blockquote { margin: 1.5em 0; padding-left: 1.25rem; border-left: 3px solid var(--fg); font-style: italic; }
.e-content hr { border: 0; text-align: center; margin: 2.5em 0; }
.e-content hr::after { content: "•••"; letter-spacing: 0.5em; color: var(--muted); }
pre, code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.85em; }
code { background: var(--code-bg); padding: 0.1em 0.3em; border-radius: 3px; }
pre { overflow-x: auto; padding: 1rem; background: var(--code-bg); border-radius: 6px; }
pre code { background: none; padding: 0; }
article footer { margin-top: 2.5rem; padding-top: 1rem; border-top: 1px solid var(--rule); }

.webmentions { margin-top: 3rem; padding-top: 1rem; border-top: 1px solid var(--rule); }
.webmentions h2 { font: 700 1.1rem var(--sans); }

/* Author blurb */
.h-card { font-family: var(--sans); color: var(--muted); font-size: 0.95rem; text-align: center; margin: 1.5rem 0 0; }
.h-card .p-name { color: var(--fg); font-weight: 600; text-decoration: none; }
.h-card .p-note { margin: 0.25rem 0 0; }
.h-card img.u-photo { border-radius: 50%; display: block; margin: 0 auto 0.5rem; }
.elsewhere { list-style: none; padding: 0; display: flex; justify-content: center; flex-wrap: wrap; gap: 0.25rem 1rem; }

.site-footer { margin: 4rem 0 3rem; padding-top: 1.5rem; border-top: 1px solid var(--rule); color: var(--muted); font: 0.85rem var(--sans); text-align: center; }
