:root {
  --bg: #fbfaf7;
  --fg: #23211d;
  --muted: #6d675d;
  --line: #e4dfd5;
  --accent: #8a5a2b;
  --max: 42rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1b1a18;
    --fg: #e9e5dc;
    --muted: #a29b8e;
    --line: #34312c;
    --accent: #d39a62;
  }
}

* { box-sizing: border-box; }

html { font-size: 17px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: Georgia, "Iowan Old Style", "Palatino Linotype", serif;
  line-height: 1.65;
}

a { color: var(--accent); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 1rem; }

header.site {
  border-bottom: 1px solid var(--line);
  padding: 1.5rem 0 1rem;
}
header.site .wrap { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .5rem 1.5rem; }
.brand { font-size: 1.25rem; font-weight: bold; color: var(--fg); text-decoration: none; letter-spacing: .02em; }
nav a { margin-left: 1rem; font-family: system-ui, -apple-system, "Segoe UI", sans-serif; font-size: .9rem; color: var(--muted); text-decoration: none; }
nav a:first-child { margin-left: 0; }
nav a:hover, nav a[aria-current] { color: var(--fg); }

main { padding: 2rem 0 3rem; }

h1, h2, h3 { line-height: 1.25; font-weight: normal; }
h1 { font-size: 2rem; margin: 0 0 .5rem; }
h2 { font-size: 1.35rem; margin: 2rem 0 .5rem; }

.meta { color: var(--muted); font-family: system-ui, -apple-system, "Segoe UI", sans-serif; font-size: .85rem; }

.posts { list-style: none; padding: 0; margin: 2rem 0 0; }
.posts li { padding: 1.25rem 0; border-top: 1px solid var(--line); }
.posts h2 { margin: .25rem 0; }
.posts h2 a { color: var(--fg); text-decoration: none; }
.posts h2 a:hover { color: var(--accent); }
.posts p { margin: .25rem 0 0; }

figure { margin: 1.75rem 0; }
figure img { display: block; width: 100%; height: auto; border-radius: 4px; }
figcaption { color: var(--muted); font-size: .85rem; margin-top: .4rem; }

blockquote { margin: 1.5rem 0; padding-left: 1rem; border-left: 3px solid var(--line); color: var(--muted); }

table { border-collapse: collapse; width: 100%; font-size: .95rem; }
th, td { text-align: left; padding: .4rem .5rem; border-bottom: 1px solid var(--line); }

footer.site { border-top: 1px solid var(--line); padding: 1.25rem 0 2rem; color: var(--muted); font-family: system-ui, -apple-system, "Segoe UI", sans-serif; font-size: .85rem; }
