:root {
  color-scheme: light;
  --bg: #f7f5f0;
  --paper: #ffffff;
  --text: #1f2933;
  --muted: #607080;
  --line: #ded8cd;
  --accent: #12685f;
  --accent-strong: #0a4f48;
  --shadow: 0 18px 45px rgba(31, 41, 51, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.7;
}

a {
  color: inherit;
}

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

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 0;
}

.brand {
  font-weight: 800;
  text-decoration: none;
}

.nav {
  display: flex;
  gap: 18px;
  color: var(--muted);
  font-size: 0.95rem;
}

.nav a {
  text-decoration: none;
}

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

.hero {
  padding: 72px 0 56px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.eyebrow,
.date {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 22px;
  font-size: clamp(2.5rem, 8vw, 5.25rem);
  line-height: 1.02;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 18px;
  font-size: 1.45rem;
}

h3 {
  margin-bottom: 8px;
  font-size: 1.2rem;
}

.lead {
  max-width: 680px;
  color: var(--muted);
  font-size: 1.12rem;
}

.posts {
  padding: 42px 0 70px;
}

.post-card {
  max-width: 680px;
  padding: 24px;
  background: var(--paper);
  border: 1px solid rgba(222, 216, 205, 0.9);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.post-card h3 a {
  color: var(--accent-strong);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.post-card p:last-child,
.article p:last-child,
.site-footer p {
  margin-bottom: 0;
}

.article-shell {
  padding: 48px 0 72px;
  border-top: 1px solid var(--line);
}

.article {
  max-width: 760px;
  padding: 36px;
  background: var(--paper);
  border: 1px solid rgba(222, 216, 205, 0.9);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.article h1 {
  font-size: clamp(2.25rem, 7vw, 4rem);
}

.article h2 {
  margin-top: 34px;
}

code {
  padding: 0.15em 0.35em;
  background: #eef3f2;
  border-radius: 5px;
  color: var(--accent-strong);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.site-footer {
  padding: 28px 0 36px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: 0.9rem;
}

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

  .hero {
    padding: 48px 0 40px;
  }

  .article {
    padding: 24px;
  }
}
