:root {
  --bg: #faf8f5;
  --bg-alt: #f1ede6;
  --text: #2a2620;
  --text-muted: #6b6459;
  --accent: #6d5a4f;
  --accent-strong: #4a3c34;
  --border: #e4ddd2;
  --link: #8a5a3d;
  --max-width: 760px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1b1815;
    --bg-alt: #242019;
    --text: #ece7dd;
    --text-muted: #a89d8c;
    --accent: #cbb9a8;
    --accent-strong: #e8dcc9;
    --border: #3a332a;
    --link: #d99a6c;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.65;
}

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

.skip-link {
  position: absolute; left: -999px; top: 0;
}
.skip-link:focus { left: 1rem; top: 1rem; background: var(--bg); padding: .5rem 1rem; z-index: 10; }

.site-header {
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
}
.site-header nav { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .75rem; }
.brand { font-weight: 700; font-size: 1.15rem; color: var(--accent-strong); text-decoration: none; }
.nav-links a { color: var(--text-muted); text-decoration: none; margin-left: 1.25rem; }
.nav-links a:hover { color: var(--link); }

main { padding: 2.5rem 0 3rem; min-height: 60vh; }

h1, h2, h3 { color: var(--accent-strong); line-height: 1.3; }
h1 { font-size: 2rem; }
h2 { font-size: 1.4rem; margin-top: 2.25rem; }
h3 { font-size: 1.15rem; }

a { color: var(--link); }

.post-meta { color: var(--text-muted); font-size: .9rem; margin-top: -.5rem; }

.lede { color: var(--text-muted); font-size: 1.1rem; margin-top: -.25rem; }

table {
  width: 100%; border-collapse: collapse; margin: 1.5rem 0; font-size: .95rem;
  display: block; overflow-x: auto;
}
th, td { border: 1px solid var(--border); padding: .55rem .7rem; text-align: left; }
th { background: var(--bg-alt); }

blockquote {
  border-left: 3px solid var(--accent); margin: 1.25rem 0; padding: .25rem 1rem;
  color: var(--text-muted); background: var(--bg-alt);
}

.callout {
  background: var(--bg-alt); border: 1px solid var(--border); border-radius: 8px;
  padding: 1rem 1.25rem; margin: 1.5rem 0;
}

.post-list { list-style: none; padding: 0; }
.post-list li { padding: 1rem 0; border-bottom: 1px solid var(--border); }
.post-list h3 { margin: 0 0 .25rem; }
.post-list .excerpt { color: var(--text-muted); margin: 0; }

.site-footer {
  border-top: 1px solid var(--border);
  color: var(--text-muted); font-size: .85rem;
  padding: 1.5rem 0 2.5rem;
}
