:root {
  --bg: #fbfaf7;
  --fg: #2b2b28;
  --muted: #6b6b66;
  --accent: #1f5e46;
  --border: #e3e1da;
  --code-bg: #f1efe9;
  --max: 46rem;
}

* { box-sizing: border-box; }

html { font-size: 16px; }

body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  line-height: 1.65;
}

a { color: var(--accent); text-decoration-color: color-mix(in srgb, var(--accent) 40%, transparent); }
a:hover { text-decoration-color: var(--accent); }

header.site {
  border-bottom: 1px solid var(--border);
  padding: 1.2rem 0;
}

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

header.site .shell {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.brand {
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--fg);
  text-decoration: none;
}

nav a {
  margin-left: 1rem;
  color: var(--muted);
  font-size: 0.95rem;
}

main { padding: 2.2rem 0 3.5rem; }

h1, h2, h3 { line-height: 1.25; letter-spacing: -0.01em; }
h1 { font-size: 2rem; margin: 0 0 1rem; }
h2 { font-size: 1.35rem; margin: 2rem 0 0.7rem; }
h3 { font-size: 1.05rem; margin: 1.5rem 0 0.5rem; }

p, ul, ol { margin: 0 0 1rem; }

time, .muted { color: var(--muted); font-size: 0.9rem; }

hr { border: 0; border-top: 1px solid var(--border); margin: 2.5rem 0; }

article { margin-bottom: 2.2rem; }
article h2 { margin-top: 0; }
article h2 a { color: var(--fg); text-decoration: none; }
article h2 a:hover { color: var(--accent); }

pre {
  background: var(--code-bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.85rem 1rem;
  overflow-x: auto;
  font-size: 0.88rem;
  line-height: 1.5;
}

code {
  font-family: "SF Mono", ui-monospace, Menlo, Consolas, monospace;
  font-size: 0.88em;
}

pre code { font-size: inherit; }

blockquote {
  margin: 0 0 1rem;
  padding: 0.2rem 0 0.2rem 1rem;
  border-left: 3px solid var(--border);
  color: var(--muted);
}

table { border-collapse: collapse; width: 100%; font-size: 0.92rem; }
th, td { border: 1px solid var(--border); padding: 0.45rem 0.7rem; text-align: left; }
th { background: var(--code-bg); }

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

img { max-width: 100%; height: auto; }
