:root {
  color-scheme: light;
  --bg: #f7f5ef;
  --ink: #20201d;
  --muted: #68665d;
  --line: #d8d2c4;
  --accent: #1f766f;
  --accent-strong: #144f4a;
  --paper: #fffdf8;
}

* {
  box-sizing: border-box;
}

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

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

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

.site-header,
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.site-header {
  padding: 28px 0 24px;
}

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

nav {
  display: flex;
  gap: 16px;
}

nav a,
.site-footer a {
  color: var(--muted);
  font-size: 0.95rem;
  text-decoration: none;
}

.intro {
  padding: 64px 0 52px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

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

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

.intro h1 {
  max-width: 680px;
  margin: 0;
  font-size: clamp(2.4rem, 7vw, 4.8rem);
}

.post-list {
  padding: 24px 0 56px;
}

.post-list article {
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}

.post-list h2 {
  margin: 8px 0;
  font-size: clamp(1.5rem, 4vw, 2.2rem);
}

.post-list h2 a {
  color: var(--ink);
  text-decoration: none;
}

.post-list p,
.post time,
.post-list time {
  color: var(--muted);
}

.read-link {
  display: inline-block;
  margin-top: 4px;
  font-weight: 700;
}

.post-list-image {
  display: block;
  width: auto;
  max-width: min(100%, 500px);
  max-height: 460px;
  height: auto;
  margin: 18px 0;
  border-radius: 8px;
}

.post,
.page {
  max-width: 720px;
  padding: 48px 0 72px;
}

.post h1,
.page h1 {
  margin: 12px 0 28px;
  font-size: clamp(2rem, 6vw, 3.6rem);
}

.post h2,
.post h3 {
  margin-top: 36px;
}

.post p,
.post li,
.page p {
  font-size: 1.08rem;
}

.post img,
.page img {
  display: block;
  width: auto;
  max-width: min(100%, 620px);
  max-height: 82vh;
  height: auto;
  margin: 28px auto;
  border-radius: 8px;
}

.post code,
.page code {
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--paper);
  padding: 0.1rem 0.3rem;
}

pre {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  padding: 16px;
}

pre code {
  border: 0;
  padding: 0;
}

.back-link {
  display: inline-block;
  margin-bottom: 24px;
  color: var(--muted);
  text-decoration: none;
}

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

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

  .intro {
    padding: 44px 0 38px;
  }
}
