:root {
  color-scheme: light;
  --bg: #fbfaf7;
  --surface: #ffffff;
  --text: #1e2329;
  --muted: #5f6873;
  --line: #d9dde3;
  --accent: #176f70;
  --accent-dark: #0f4e4f;
  --code-bg: #eef4f4;
  --shadow: 0 16px 40px rgba(35, 45, 55, 0.08);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-size: 17px;
  line-height: 1.7;
}

a {
  color: var(--accent-dark);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

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

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

.brand {
  color: var(--text);
  font-weight: 800;
  text-decoration: none;
}

nav {
  display: flex;
  gap: 18px;
  font-size: 15px;
}

nav a {
  color: var(--muted);
  font-weight: 650;
  text-decoration: none;
}

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

.site-main {
  padding: 64px 0;
}

.hero {
  max-width: 820px;
  padding-bottom: 52px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  line-height: 1.15;
  margin: 0;
}

h1 {
  max-width: 780px;
  font-size: clamp(42px, 8vw, 78px);
}

h2 {
  margin-bottom: 22px;
  font-size: 28px;
}

h3 {
  margin: 8px 0 10px;
  font-size: 25px;
}

.lede {
  max-width: 680px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 20px;
}

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

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

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

.post-card time {
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
}

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

.post {
  max-width: 780px;
}

.post-header {
  margin-bottom: 36px;
}

.post-content h2 {
  margin-top: 42px;
}

.post-content p,
.post-content ul,
.post-content ol {
  margin: 18px 0;
}

.post-content img {
  display: block;
  width: 100%;
  height: auto;
  margin: 24px 0 32px;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

code {
  padding: 0.12em 0.3em;
  border-radius: 5px;
  background: var(--code-bg);
  font-size: 0.92em;
}

pre {
  overflow-x: auto;
  padding: 18px;
  border-radius: 8px;
  background: #172126;
  color: #f5f7f8;
}

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

.site-footer {
  padding: 32px 0 44px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

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

  .site-main {
    padding: 44px 0;
  }

  h1 {
    font-size: 40px;
  }
}
