:root {
  --bg: #f7f3ec;
  --surface: #fffdf9;
  --text: #2b2420;
  --muted: #74675d;
  --line: #e4dbcf;
  --accent: #9a4a24;
  --accent-soft: #f1e2d6;
  --measure: 40rem;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1b1714;
    --surface: #231e1a;
    --text: #ece4da;
    --muted: #a8998b;
    --line: #3a322b;
    --accent: #e09a6e;
    --accent-soft: #33261e;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.65 Georgia, "Times New Roman", serif;
}
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
.wrap { max-width: var(--measure); margin: 0 auto; padding: 0 16px; }
header.site {
  border-bottom: 1px solid var(--line);
  padding: 22px 0 18px;
}
header.site .wrap { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 20px; }
.brand { font-size: 1.25rem; font-weight: bold; color: var(--text); text-decoration: none; }
.brand span { color: var(--accent); }
nav a {
  font: 15px/1.4 -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--muted); text-decoration: none; margin-left: 16px;
}
nav a:first-child { margin-left: 0; }
nav a:hover, nav a[aria-current="page"] { color: var(--text); }
main { padding: 36px 0 56px; }
h1 { font-size: 2rem; line-height: 1.2; margin: 0 0 12px; }
h2 { font-size: 1.3rem; margin: 2.2em 0 .5em; }
p { margin: 0 0 1.1em; }
.lead { font-size: 1.12rem; color: var(--muted); }
.meta {
  font: 14px/1.4 -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--muted);
  margin-bottom: 20px;
}
.posts { list-style: none; padding: 0; margin: 28px 0 0; }
.posts li { border-top: 1px solid var(--line); padding: 20px 0; }
.posts h2 { margin: 4px 0 6px; font-size: 1.25rem; }
.posts h2 a { color: var(--text); text-decoration: none; }
.posts h2 a:hover { color: var(--accent); }
.posts p { margin: 0; color: var(--muted); }
table { width: 100%; border-collapse: collapse; margin: 0 0 1.4em; font: 15px/1.45 -apple-system, "Segoe UI", Roboto, sans-serif; }
th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-weight: 600; }
.table-scroll { overflow-x: auto; }
blockquote {
  margin: 0 0 1.2em; padding: 12px 16px;
  background: var(--accent-soft); border-left: 3px solid var(--accent);
}
blockquote p:last-child { margin: 0; }
ul.plain { padding-left: 1.2em; }
footer.site {
  border-top: 1px solid var(--line);
  padding: 20px 0 32px;
  font: 14px/1.5 -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--muted);
}
footer.site a { color: var(--muted); }
.notfound { text-align: center; padding: 40px 0; }
.notfound .code { font-size: 4rem; color: var(--accent); line-height: 1; margin-bottom: 12px; }
@media (max-width: 480px) {
  body { font-size: 16px; }
  h1 { font-size: 1.6rem; }
  nav a { margin-left: 12px; }
}
