:root {
  color-scheme: light;
  --bg: #f7f5ef;
  --paper: #fffdf8;
  --text: #1c2224;
  --muted: #5d686b;
  --line: #d8d2c5;
  --accent: #b8322b;
  --accent-2: #176b72;
  --code-bg: #182124;
  --code-text: #eef5f3;
  --max: 880px;
}

* {
  box-sizing: border-box;
}

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

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

img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 6px;
}

.site-header,
.site-footer {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.site-header {
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.site-header nav {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

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

.intro,
.page-heading,
.post-list,
.article {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
}

.intro {
  padding: 56px 0 28px;
}

.intro h1,
.page-heading h1,
.article h1 {
  max-width: 780px;
  margin: 0;
  line-height: 1.1;
  font-size: clamp(2.1rem, 5vw, 4.6rem);
  letter-spacing: 0;
}

.intro p:last-child {
  max-width: 660px;
  color: var(--muted);
  font-size: 1.1rem;
}

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

.post-list {
  padding: 16px 0 64px;
}

.post-list h2 {
  margin: 0 0 18px;
}

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

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

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

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

.post-card time,
.meta {
  color: var(--muted);
  font-size: 0.92rem;
}

.article {
  padding: 42px 0 64px;
}

.article-header {
  margin-bottom: 34px;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-top: 16px;
}

.meta span:not(:last-child)::after {
  content: "";
}

.cover {
  margin-top: 28px;
  width: 100%;
  background: var(--paper);
}

.content {
  font-size: 1.05rem;
}

.content h2 {
  margin: 2.2em 0 0.6em;
  line-height: 1.2;
  font-size: 1.8rem;
}

.content p,
.content ul,
.content ol {
  margin: 0 0 1.05em;
}

.content li + li {
  margin-top: 0.28em;
}

.content pre {
  overflow-x: auto;
  padding: 18px;
  border-radius: 6px;
  background: var(--code-bg);
  color: var(--code-text);
  line-height: 1.45;
}

.content code {
  font-family: "Cascadia Code", "JetBrains Mono", Consolas, monospace;
  font-size: 0.92em;
}

.content :not(pre) > code {
  padding: 0.12em 0.32em;
  border-radius: 4px;
  background: rgba(23, 107, 114, 0.12);
}

.content img {
  margin: 1.4em 0;
  border: 1px solid var(--line);
}

.article-footer {
  margin-top: 44px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-top: 14px;
}

.tags a {
  color: var(--muted);
}

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

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

  .intro {
    padding-top: 36px;
  }
}

