:root {
  --ink: #1c1915;
  --muted: #5c564c;
  --line: #e4ddd2;
  --paper: #f7f3ec;
  --card: #fffdf8;
  --accent: #0f6e56;
  --accent-soft: #e5f3ee;
  --code: #f0ebe3;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Iowan Old Style", Palatino, "Palatino Linotype", Georgia, serif;
  font-size: 1.125rem;
  line-height: 1.65;
}

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: #0a5341; }

.wrap { width: min(42rem, calc(100% - 2.5rem)); margin: 0 auto; }

header.site {
  border-bottom: 1px solid var(--line);
  background: var(--card);
}

header.site .wrap {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 1.1rem 0;
}

.brand { font-weight: 700; letter-spacing: -0.02em; color: var(--ink); text-decoration: none; }
.brand span { color: var(--accent); }

nav { display: flex; gap: 1rem; font-family: "Segoe UI", sans-serif; font-size: 0.92rem; }
nav a { color: var(--muted); text-decoration: none; }
nav a:hover { color: var(--ink); }

main { padding: 2.4rem 0 4rem; }

.kicker {
  margin: 0 0 0.6rem;
  font-family: "Segoe UI", sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

h1 { font-size: 2.35rem; line-height: 1.15; letter-spacing: -0.03em; margin: 0 0 0.8rem; }
h2 { font-size: 1.45rem; line-height: 1.25; margin: 2rem 0 0.6rem; }
.lede { font-size: 1.2rem; color: #3d3832; margin-top: 0; }

.post-list { list-style: none; margin: 2rem 0 0; padding: 0; }
.post-list li { padding: 1.15rem 0; border-top: 1px solid var(--line); }
.post-list a.title { color: var(--ink); font-size: 1.35rem; line-height: 1.25; text-decoration: none; letter-spacing: -0.02em; }
.post-list a.title:hover { color: var(--accent); }
.meta { margin: 0.35rem 0 0; font-family: "Segoe UI", sans-serif; font-size: 0.86rem; color: var(--muted); }

article p { margin: 0.9rem 0; }
article ul { padding-left: 1.2rem; }
article li { margin: 0.35rem 0; }

pre {
  background: var(--code);
  border: 1px solid var(--line);
  padding: 0.9rem 1rem;
  overflow-x: auto;
  font-family: Consolas, "Cascadia Mono", monospace;
  font-size: 0.86rem;
  line-height: 1.5;
}

code {
  font-family: Consolas, "Cascadia Mono", monospace;
  font-size: 0.92em;
}

p code, li code { background: var(--accent-soft); padding: 0.05em 0.28em; }

table { width: 100%; border-collapse: collapse; font-family: "Segoe UI", sans-serif; font-size: 0.95rem; margin: 1rem 0 1.4rem; }
th, td { text-align: left; padding: 0.45rem 0.4rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-weight: 600; }

@media (max-width: 640px) {
  h1 { font-size: 1.9rem; }
  header.site .wrap { flex-direction: column; align-items: flex-start; }
}
