:root {
  --bg: #faf7f2;
  --fg: #2b2622;
  --muted: #776d63;
  --line: #e6ddd1;
  --accent: #8a4b22;
  --card: #fffdf9;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1c1916;
    --fg: #ece5dc;
    --muted: #a3978a;
    --line: #36302a;
    --accent: #d99a66;
    --card: #231f1b;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 17px/1.65 Georgia, "Times New Roman", serif;
}
a { color: var(--accent); }
a:hover { text-decoration-thickness: 2px; }
.wrap { max-width: 720px; margin: 0 auto; padding: 0 20px; }
header.site {
  border-bottom: 1px solid var(--line);
  padding: 28px 0 18px;
  margin-bottom: 36px;
}
header.site .wrap { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; }
.brand { font-size: 26px; font-weight: bold; color: var(--fg); text-decoration: none; letter-spacing: -0.3px; }
.brand span { color: var(--accent); }
nav a { font: 15px/1 -apple-system, "Segoe UI", Roboto, Arial, sans-serif; color: var(--muted); text-decoration: none; margin-left: 18px; }
nav a:first-child { margin-left: 0; }
nav a:hover, nav a[aria-current] { color: var(--fg); }
.tagline { color: var(--muted); margin: -20px 0 36px; font-style: italic; }
h1 { font-size: 34px; line-height: 1.2; margin: 0 0 8px; letter-spacing: -0.5px; }
h2 { font-size: 24px; line-height: 1.3; margin: 40px 0 10px; }
h3 { font-size: 19px; margin: 28px 0 6px; }
.meta { font: 14px/1.4 -apple-system, "Segoe UI", Roboto, Arial, sans-serif; color: var(--muted); margin-bottom: 28px; }
.post-list { list-style: none; padding: 0; margin: 0; }
.post-list li { padding: 22px 0; border-bottom: 1px solid var(--line); }
.post-list li:first-child { padding-top: 0; }
.post-list h2 { margin: 0 0 4px; font-size: 22px; }
.post-list h2 a { color: var(--fg); text-decoration: none; }
.post-list h2 a:hover { color: var(--accent); }
.post-list p { margin: 6px 0 0; }
blockquote { margin: 24px 0; padding: 4px 0 4px 18px; border-left: 3px solid var(--accent); color: var(--muted); font-style: italic; }
table { border-collapse: collapse; width: 100%; margin: 18px 0; font-size: 15px; }
th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); }
th { font-family: -apple-system, "Segoe UI", Roboto, Arial, sans-serif; font-size: 13px; text-transform: uppercase; letter-spacing: 0.5px; color: var(--muted); }
.table-wrap { overflow-x: auto; }
.note { background: var(--card); border: 1px solid var(--line); border-radius: 6px; padding: 14px 18px; margin: 24px 0; font-size: 16px; }
ul, ol { padding-left: 22px; }
li { margin: 4px 0; }
footer.site {
  border-top: 1px solid var(--line);
  margin-top: 64px;
  padding: 24px 0 40px;
  color: var(--muted);
  font: 14px/1.5 -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}
footer.site a { color: var(--muted); }
@media (max-width: 520px) {
  body { font-size: 16px; }
  h1 { font-size: 28px; }
  nav a { margin-left: 14px; }
}
