:root {
  color-scheme: light;
  --bg: #f7f5ef;
  --surface: #fffdf8;
  --text: #232323;
  --muted: #67645d;
  --line: #ded8cb;
  --accent: #2f7d62;
  --accent-soft: #dceee6;
}

* {
  box-sizing: border-box;
}

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

a {
  color: inherit;
}

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

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

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

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

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

.hero {
  padding: 86px 0 70px;
}

.eyebrow {
  color: var(--accent);
  font-weight: 700;
  margin: 0 0 12px;
}

.hero h1 {
  max-width: 720px;
  margin: 0;
  font-size: clamp(40px, 7vw, 76px);
  line-height: 1.08;
}

.hero-copy {
  max-width: 640px;
  color: var(--muted);
  font-size: 20px;
  margin: 24px 0 0;
}

.section {
  padding: 36px 0 72px;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
  margin-bottom: 18px;
}

.section-header h2,
.page-heading h1 {
  margin: 0;
}

.page-heading {
  padding: 56px 0 28px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 24px;
}

.post-list {
  display: grid;
  gap: 14px;
}

.post-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.post-card a {
  display: block;
  padding: 22px;
  text-decoration: none;
}

.post-card time,
.article-header time {
  color: var(--accent);
  font-size: 14px;
  font-weight: 700;
}

.post-card h2,
.post-card h3 {
  margin: 8px 0;
  line-height: 1.3;
}

.post-card p,
.muted {
  color: var(--muted);
  margin: 0;
}

.article {
  max-width: 760px;
  margin: 0 auto;
  padding: 58px 0 80px;
}

.article-header {
  border-bottom: 1px solid var(--line);
  padding-bottom: 24px;
  margin-bottom: 36px;
}

.article-header h1 {
  margin: 10px 0 0;
  font-size: clamp(34px, 6vw, 58px);
  line-height: 1.12;
}

.article-body {
  font-size: 18px;
}

.article-body h2 {
  margin-top: 42px;
}

.article-body code {
  background: var(--accent-soft);
  border-radius: 5px;
  padding: 2px 6px;
}

.site-footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  padding: 24px 0 40px;
}

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

  .hero {
    padding-top: 54px;
  }
}
