.blog-page {
  --bg: #0d0d0c;
  --text: #efe9df;
  --muted: #aaa196;
  --accent: #d5a44f;
  --accent-cool: #9db7d7;
  --line: #363128;
  --panel: #151411;
  --panel-soft: #1c1914;
  background:
    linear-gradient(180deg, rgba(213, 164, 79, 0.08) 0, transparent 280px),
    var(--bg);
  color: var(--text);
}

.blog-page .brand,
.blog-page .site-nav {
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Monaco,
    Consolas, "Liberation Mono", monospace;
}

.blog-index-main,
.post-wrap {
  width: min(calc(100% - 32px), 980px);
  margin: 0 auto;
  padding: 48px 0 80px;
}

.blog-intro {
  max-width: 760px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 34px 0 38px;
}

.blog-label,
.post .eyebrow {
  margin: 0 0 16px;
  color: var(--accent);
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Monaco,
    Consolas, "Liberation Mono", monospace;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: uppercase;
}

.blog-title,
.post h1,
.post h2 {
  font-family: "Fraunces", Georgia, "Times New Roman", serif;
  font-weight: 650;
  letter-spacing: 0;
}

.blog-title {
  margin: 0;
  font-size: 3.35rem;
  line-height: 1.02;
}

.blog-deck {
  max-width: 680px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 1.12rem;
}

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

.post-list a {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 12rem;
  gap: 24px;
  border-bottom: 1px solid var(--line);
  padding: 23px 0 25px;
  color: inherit;
  text-decoration: none;
}

.post-list a:hover h2,
.post-list a:focus-visible h2 {
  color: var(--accent);
}

.post-list a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 6px;
}

.post-list h2 {
  margin: 0;
  color: var(--text);
  font-family: "Fraunces", Georgia, "Times New Roman", serif;
  font-size: 1.42rem;
  font-weight: 650;
  line-height: 1.2;
  letter-spacing: 0;
  transition: color 160ms ease;
}

.post-list p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.98rem;
}

.post-topic {
  color: var(--accent-cool);
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Monaco,
    Consolas, "Liberation Mono", monospace;
  font-size: 0.78rem;
  line-height: 1.45;
}

.post-wrap {
  width: min(calc(100% - 32px), 900px);
}

.post {
  border-left: 1px solid var(--line);
  padding-left: 42px;
}

.post h1 {
  max-width: 800px;
  margin: 0;
  color: #fff9ef;
  font-size: 3.25rem;
  line-height: 1.04;
}

.post .deck {
  max-width: 720px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 1.15rem;
}

.post .meta {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 28px 0 0;
  color: var(--muted);
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Monaco,
    Consolas, "Liberation Mono", monospace;
  font-size: 0.78rem;
}

.post .meta span {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.025);
  padding: 6px 10px;
}

.post hr {
  height: 1px;
  margin: 42px 0;
  border: 0;
  background: var(--line);
}

.post h2 {
  margin: 42px 0 13px;
  color: #f5ebdc;
  font-size: 2rem;
  line-height: 1.16;
}

.post p {
  margin: 0 0 19px;
}

.post ul,
.post ol {
  margin: 16px 0 24px;
  padding-left: 1.28rem;
}

.post li {
  margin: 9px 0;
}

.post strong {
  color: #fff9ef;
  font-weight: 700;
}

.post code {
  border: 1px solid rgba(157, 183, 215, 0.22);
  border-radius: 5px;
  background: rgba(157, 183, 215, 0.1);
  color: #d9e7f7;
  padding: 0.13em 0.34em;
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Monaco,
    Consolas, "Liberation Mono", monospace;
  font-size: 0.9em;
}

.post pre {
  margin: 24px 0;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #12100d;
  padding: 18px;
  color: #d9e7f7;
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Monaco,
    Consolas, "Liberation Mono", monospace;
  font-size: 0.9rem;
  line-height: 1.55;
}

.post blockquote {
  margin: 28px 0;
  border-left: 3px solid var(--accent);
  background: rgba(213, 164, 79, 0.09);
  padding: 18px 20px;
  color: #eadfcf;
  font-size: 1.04rem;
}

.post .facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 28px 0;
}

.post .facts div,
.post .callout {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
}

.post .facts div {
  padding: 16px 18px;
}

.post .facts strong {
  display: block;
  color: var(--accent);
  font-size: 1rem;
}

.post .callout {
  margin: 32px 0;
  padding: 22px;
}

.post .callout h2 {
  margin-top: 0;
}

@media (max-width: 760px) {
  .blog-index-main,
  .post-wrap {
    width: min(calc(100% - 24px), 980px);
    padding: 34px 0 64px;
  }

  .blog-title {
    font-size: 2.45rem;
  }

  .post-list a {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 22px 0;
  }

  .post-topic {
    order: -1;
  }

  .post {
    border-left: 0;
    padding-left: 0;
  }

  .post h1 {
    font-size: 2.35rem;
  }

  .post h2 {
    font-size: 1.62rem;
  }

  .post .facts {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 460px) {
  .blog-title {
    font-size: 2.1rem;
  }

  .post h1 {
    font-size: 2rem;
  }

  .post .deck,
  .blog-deck {
    font-size: 1rem;
  }
}
