:root {
  --bg: #fafaf7;
  --fg: #1a1a1a;
  --muted: #6b6b6b;
  --rule: #e5e5e0;
  --link: #1a1a1a;
  --accent: #b35900;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: "Iowan Old Style", "Charter", "Palatino", Georgia, serif;
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  max-width: 38rem;
  margin: 0 auto;
  padding: 4rem 1.5rem 6rem;
}

header.site {
  margin-bottom: 3rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--rule);
}

header.site a.title {
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
  color: var(--fg);
}


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

a:hover { color: var(--accent); }

h1, h2, h3 {
  letter-spacing: -0.01em;
  line-height: 1.25;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

h1 { font-size: 1.75rem; }
h2 { font-size: 1.3rem; }
h3 { font-size: 1.1rem; }

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

article ul, article ol { padding-left: 1.4rem; }

blockquote {
  border-left: 2px solid var(--rule);
  padding-left: 1rem;
  color: var(--muted);
  font-style: italic;
}

code {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.9em;
  background: #f0efe9;
  padding: 0.1em 0.35em;
  border-radius: 3px;
}

pre {
  background: #f0efe9;
  padding: 1rem;
  border-radius: 4px;
  overflow-x: auto;
  font-size: 0.88rem;
  line-height: 1.5;
}

pre code { background: none; padding: 0; }

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

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

.post-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.post-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--rule);
}

.post-list a {
  text-decoration: none;
  flex: 1;
}

.post-list a:hover { color: var(--accent); }

.post-list time {
  color: var(--muted);
  font-size: 0.85rem;
  font-style: italic;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

article header.post {
  margin-bottom: 2rem;
}

article header.post h1 {
  margin-top: 0;
  margin-bottom: 0.4rem;
}

article header.post time {
  color: var(--muted);
  font-size: 0.9rem;
  font-style: italic;
}

footer.site {
  margin-top: 4rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--rule);
  font-size: 0.85rem;
  color: var(--muted);
  font-style: italic;
}

footer.site a {
  color: var(--muted);
  text-decoration: none;
}

footer.site a:hover { color: var(--accent); }
