:root {
  color-scheme: light;
  --bg: #fcfcf9;
  --ink: #1b1b19;
  --muted: #6f6f68;
  --faint: #e6e6df;
  --accent: #8a5a2b;
  --maxw: 40rem;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Charter, "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  font-size: 1.12rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

.site-header { margin: 3.2rem 0 2.6rem; }
.site-title { font-size: 1.18rem; font-weight: 600; letter-spacing: -0.01em; margin: 0; }
.site-title a { color: var(--ink); text-decoration: none; }
.site-title a:hover { color: var(--accent); }
.site-nav {
  margin-top: 0.5rem;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 0.82rem; letter-spacing: 0.04em; text-transform: uppercase;
}
.site-nav a { color: var(--muted); text-decoration: none; margin-right: 1.1rem; }
.site-nav a:hover { color: var(--accent); }

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

h1, h2, h3 { line-height: 1.25; letter-spacing: -0.015em; font-weight: 600; }
h1 { font-size: 2rem; margin: 0 0 0.4rem; }
h2 { font-size: 1.35rem; margin: 2.2rem 0 0.6rem; }

.intro { font-size: 1.22rem; line-height: 1.6; color: var(--ink); margin: 0 0 2.4rem; }
.intro .lede { color: var(--muted); }

.post-list { list-style: none; padding: 0; margin: 0; }
.post-list li { margin: 0 0 1.6rem; }
.post-list .post-link { font-size: 1.2rem; font-weight: 600; text-decoration: none; color: var(--ink); }
.post-list .post-link:hover { color: var(--accent); }
.post-meta {
  display: block;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 0.78rem; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); margin-top: 0.15rem;
}

.article-header { margin: 0 0 2rem; }
.article-header .post-meta { margin-bottom: 0.6rem; }
article p { margin: 0 0 1.3rem; }
article ul { margin: 0 0 1.3rem; padding-left: 1.2rem; }
article li { margin: 0 0 0.4rem; }
blockquote { margin: 1.6rem 0; padding-left: 1.1rem; border-left: 2px solid var(--faint); color: var(--muted); font-style: italic; }
hr { border: 0; border-top: 1px solid var(--faint); margin: 2.6rem 0; }

.back {
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 0.82rem; letter-spacing: 0.04em; text-transform: uppercase; text-decoration: none; color: var(--muted);
}
.back:hover { color: var(--accent); }

.site-footer {
  margin: 4rem 0 3rem; padding-top: 1.4rem; border-top: 1px solid var(--faint);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 0.82rem; color: var(--muted);
}
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--accent); }

.note { color: var(--muted); }

@media (max-width: 480px) {
  body { font-size: 1.06rem; }
  .site-header { margin: 2.2rem 0 2rem; }
  h1 { font-size: 1.7rem; }
}

/* Project descriptions */
.post-list .proj-desc { margin: 0.3rem 0 0; font-size: 1.02rem; line-height: 1.5; color: #57564f; }
