:root {
  --bg: #fbfaf7;
  --fg: #1c1b19;
  --muted: #706b62;
  --rule: #e4e0d6;
  --link: #9a3412;
  --quote: #f2efe7;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #151412;
    --fg: #e8e4db;
    --muted: #9a958a;
    --rule: #2e2c28;
    --link: #f0a070;
    --quote: #1d1b18;
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 1.125rem/1.7 Georgia, "Iowan Old Style", "Palatino Linotype", serif;
}

.wrap {
  max-width: 40rem;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 4rem;
}

a { color: var(--link); text-underline-offset: 0.2em; }
a:hover { text-decoration-thickness: 2px; }

header { margin-bottom: 3rem; }
.site-title {
  display: block;
  color: var(--fg);
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1.25;
  text-decoration: none;
}
.tagline { color: var(--muted); font-style: italic; }

h1 { font-size: 2rem; line-height: 1.2; margin: 0 0 0.25rem; }
h2 { font-size: 1.35rem; line-height: 1.3; margin: 2.2rem 0 0.5rem; }
h3 { font-size: 1.15rem; margin: 1.8rem 0 0.4rem; }

.meta, time { color: var(--muted); font-size: 0.95rem; }
.meta { margin: 0 0 2rem; }

.posts { list-style: none; margin: 0; padding: 0; }
.posts li {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.25rem 1rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--rule);
}
.posts li:first-child { border-top: 1px solid var(--rule); }
.posts a { font-size: 1.25rem; font-weight: 600; text-decoration: none; }
.posts a:hover { text-decoration: underline; }

.content p { margin: 0 0 1.25rem; }
.content img, .content iframe { max-width: 100%; display: block; margin: 1.5rem auto; }
.content img { height: auto; }
.content figure { margin: 1.5rem 0; }
.content iframe { width: 100%; border: 0; border-radius: 4px; }

blockquote {
  margin: 1.5rem 0;
  padding: 0.1rem 1.25rem;
  background: var(--quote);
  border-left: 3px solid var(--link);
  font-style: italic;
}
blockquote p { margin: 0.6rem 0; }

pre, code { font: 0.9em ui-monospace, SFMono-Regular, Menlo, monospace; }
pre { overflow-x: auto; padding: 1rem; background: var(--quote); border-radius: 4px; }

.back { margin-top: 3rem; font-size: 0.95rem; }

footer {
  margin-top: 4rem;
  padding-top: 1rem;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 0.95rem;
}
footer h2 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; margin: 0 0 0.3rem; }
footer p { margin: 0; }

@media (max-width: 480px) {
  body { font-size: 1.05rem; }
  h1 { font-size: 1.7rem; }
}
