:root {
  --paper: #f7f5ef;
  --ink: #20241f;
  --muted: #666b62;
  --line: #ded9cf;
  --accent: #0f6b5c;
  --accent-soft: #e4eee9;
  --code: #f0ece2;
}

* {
  box-sizing: border-box;
}

html {
  font-size: 17px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: ui-serif, Georgia, "Times New Roman", serif;
  line-height: 1.72;
  text-rendering: optimizeLegibility;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  text-decoration-thickness: 2px;
}

.wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 26px;
}

.site-header {
  border-bottom: 1px solid var(--line);
  background: rgba(247, 245, 239, 0.92);
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(8px);
}

.site-header .wrap {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding-top: 18px;
  padding-bottom: 18px;
}

.brand {
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 650;
  font-size: 1.02rem;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-decoration: none;
}

.brand span {
  color: var(--muted);
  font-weight: 450;
  margin-left: 10px;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.nav {
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.88rem;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
}

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

main {
  padding: 56px 0 80px;
}

.eyebrow {
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 18px;
}

h1 {
  font-size: clamp(2rem, 5vw, 2.7rem);
  line-height: 1.12;
  letter-spacing: -0.022em;
  margin: 0 0 22px;
  font-weight: 600;
}

.lede {
  font-size: 1.18rem;
  color: #3d433b;
  margin: 0 0 50px;
}

.post-list {
  border-top: 1px solid var(--line);
}

.post-card {
  padding: 30px 0 34px;
  border-bottom: 1px solid var(--line);
}

.meta {
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.8rem;
  color: var(--muted);
  margin: 0 0 10px;
}

.post-card h2 {
  font-size: 1.5rem;
  line-height: 1.28;
  letter-spacing: -0.012em;
  margin: 0 0 12px;
  font-weight: 600;
}

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

.post-card h2 a:hover {
  color: var(--accent);
}

.post-card p {
  margin: 0 0 14px;
  color: #3d433b;
}

.read {
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.88rem;
  text-decoration: none;
}

.post {
  max-width: 700px;
}

.breadcrumb {
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.84rem;
  color: var(--muted);
  margin-bottom: 30px;
}

.breadcrumb a {
  color: var(--muted);
  text-decoration: none;
}

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

.post h2 {
  font-size: 1.42rem;
  line-height: 1.3;
  letter-spacing: -0.01em;
  margin: 2.6rem 0 0.9rem;
  font-weight: 600;
}

.post h3 {
  font-size: 1.08rem;
  margin: 2rem 0 0.6rem;
  font-weight: 650;
}

.post p {
  margin: 0 0 1.15em;
}

.post ul,
.post ol {
  margin: 0 0 1.3em;
  padding-left: 1.3em;
}

.post li {
  margin: 0.35em 0;
}

.post code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.84em;
  background: var(--code);
  padding: 0.12em 0.32em;
  border-radius: 3px;
}

.post pre {
  background: var(--code);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 16px 18px;
  overflow-x: auto;
  line-height: 1.55;
  margin: 0 0 1.4em;
}

.post pre code {
  background: none;
  padding: 0;
  font-size: 0.8rem;
}

.post blockquote {
  margin: 1.6em 0;
  padding: 0.2em 0 0.2em 20px;
  border-left: 3px solid var(--accent);
  color: #4b5147;
}

.post hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 2.5em 0;
}

.note {
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.9rem;
  background: var(--accent-soft);
  border-radius: 6px;
  padding: 16px 18px;
  margin: 1.6em 0;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 26px 0 34px;
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.8rem;
  color: var(--muted);
}

.site-footer .wrap {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.site-footer a {
  color: var(--muted);
  text-decoration: none;
}

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

@media (max-width: 620px) {
  html {
    font-size: 16px;
  }

  main {
    padding-top: 38px;
  }

  .site-header .wrap {
    padding-top: 14px;
    padding-bottom: 14px;
  }

  .brand span {
    display: none;
  }

  h1 {
    font-size: 1.9rem;
  }

  .post-card h2 {
    font-size: 1.28rem;
  }
}
