:root {
  --bg: #fafaf7;
  --fg: #1a1a1a;
  --muted: #666;
  --accent: #c2410c;
  --rule: #e5e5e0;
  --max: 720px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", sans-serif;
  font-size: 18px;
  line-height: 1.6;
}

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

/* Header */
.site-header {
  border-bottom: 1px solid var(--rule);
  padding: 1rem 0;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.brand {
  font-weight: 700;
  font-size: 1.1rem;
  text-decoration: none;
  color: var(--fg);
}
.site-header nav a {
  margin-left: 1rem;
  text-decoration: none;
  color: var(--muted);
}
.site-header nav a:hover { color: var(--accent); }

/* Hero */
.hero {
  padding: 2.5rem 0 1.5rem;
}
.hero-image {
  width: 100%;
  height: auto;
  border-radius: 6px;
  margin-bottom: 1.5rem;
  display: block;
}
.hero h1 {
  font-size: 2rem;
  line-height: 1.2;
  margin: 0 0 0.5rem;
}
.lede {
  color: var(--muted);
  font-size: 1.15rem;
  margin: 0;
}

/* Post list */
.post-list {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--rule);
}
.post-list h2 {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  margin: 0 0 1rem;
}
.post-list ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.post-list li { margin-bottom: 0.5rem; }
.post-list a {
  display: flex;
  gap: 1rem;
  align-items: baseline;
  text-decoration: none;
  color: var(--fg);
  padding: 0.5rem 0;
  border-bottom: 1px solid transparent;
}
.post-list a:hover {
  border-bottom-color: var(--accent);
}
.post-date {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  font-size: 0.9rem;
  min-width: 6rem;
}
.post-title {
  font-weight: 500;
}

/* Article */
.post {
  padding: 2.5rem 0;
}
.post h1 {
  font-size: 2.25rem;
  line-height: 1.2;
  margin: 0.25rem 0 1.5rem;
}
.post h2 {
  margin-top: 2.5rem;
  font-size: 1.4rem;
}
.post p, .post ul, .post ol {
  margin: 1rem 0;
}
.post a {
  color: var(--accent);
}
.post img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
}
.post figure {
  margin: 2rem 0;
}
.post figcaption {
  font-size: 0.9rem;
  color: var(--muted);
  text-align: center;
  margin-top: 0.5rem;
}
.post code {
  background: #efece4;
  padding: 0.1em 0.35em;
  border-radius: 3px;
  font-size: 0.9em;
}

/* Mobile */
@media (max-width: 480px) {
  body { font-size: 17px; }
  .hero h1 { font-size: 1.6rem; }
  .post h1 { font-size: 1.75rem; }
  .post-list a { flex-direction: column; gap: 0.1rem; }
  .post-date { min-width: 0; }
}
