:root {
  color-scheme: light;
  --background: #f7f7f4;
  --surface: #ffffff;
  --text: #1f2933;
  --muted: #667085;
  --border: #d8dde4;
  --accent: #0f766e;
  --accent-strong: #115e59;
  --code-bg: #eef2f5;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 18px;
  line-height: 1.65;
}

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

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

.site-header,
.site-footer,
.page-content {
  width: min(100% - 32px, 920px);
  margin: 0 auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 0 18px;
  border-bottom: 1px solid var(--border);
}

.site-title {
  color: var(--text);
  font-weight: 700;
  text-decoration: none;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 14px;
  font-size: 0.9rem;
}

.site-nav a {
  text-decoration: none;
}

.page-content {
  padding: 56px 0 72px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 0 36px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.9rem;
}

.hero {
  max-width: 760px;
  margin-bottom: 48px;
}

.eyebrow,
.post-meta {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  line-height: 1.2;
}

h1 {
  margin: 0 0 18px;
  font-size: clamp(2rem, 6vw, 4rem);
}

h2 {
  margin-top: 44px;
  font-size: 1.7rem;
}

h3 {
  margin-top: 32px;
  font-size: 1.25rem;
}

.lede {
  color: var(--muted);
  font-size: 1.2rem;
}

.post-list,
.series-list {
  display: grid;
  gap: 18px;
  padding: 0;
  list-style: none;
}

.post-list li,
.series-list li {
  padding: 18px 0;
  border-top: 1px solid var(--border);
}

.post-list a,
.series-list a {
  font-size: 1.1rem;
  font-weight: 700;
  text-decoration: none;
}

.post-header {
  max-width: 760px;
  margin-bottom: 40px;
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 12px;
}

.post-body {
  max-width: 760px;
}

.post-figure {
  margin: 32px 0;
}

.post-figure img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
}

.post-figure figcaption {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.9rem;
}

code {
  padding: 0.12em 0.28em;
  border-radius: 4px;
  background: var(--code-bg);
  font-size: 0.9em;
}

pre {
  overflow-x: auto;
  padding: 18px;
  border-radius: 8px;
  background: var(--code-bg);
}

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

blockquote {
  margin-left: 0;
  padding-left: 18px;
  border-left: 4px solid var(--accent);
  color: var(--muted);
}

@media (max-width: 720px) {
  .site-header,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-nav {
    justify-content: flex-start;
  }

  .page-content {
    padding-top: 40px;
  }
}
