.blog-section {
  padding-top: 60px;
  min-height: 65vh;
}
.blog-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  margin-top: 44px;
}
.blog-card {
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--card);
  overflow: hidden;
  min-width: 0;
}
.blog-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
}
.blog-card-copy {
  padding: 28px;
}
.blog-card time {
  color: var(--muted);
  font: 12px var(--font-mono);
}
.blog-card h2 {
  margin: 12px 0;
  font-size: clamp(22px, 3vw, 30px);
  line-height: 1.3;
  overflow-wrap: anywhere;
}
.blog-card h2 a:hover {
  color: var(--accent);
}
.blog-card p {
  color: var(--muted);
  margin-bottom: 22px;
}
.blog-empty {
  margin-top: 40px;
  padding: 30px;
  border: 1px solid var(--border);
  border-radius: 14px;
  color: var(--muted);
}
.blog-article {
  max-width: 850px;
  margin-inline: auto;
}
.blog-article h1 {
  font-size: clamp(34px, 6vw, 64px);
  line-height: 1.15;
  letter-spacing: -0.035em;
  overflow-wrap: anywhere;
}
.blog-article .proj-tags {
  margin: 24px 0;
}
.article-cover {
  width: 100%;
  height: auto;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: 16px;
  margin-top: 12px;
}
.article-body {
  font-size: 17px;
  line-height: 1.85;
  margin-top: 44px;
  overflow-wrap: anywhere;
}
.article-body p,
.article-body ul,
.article-body ol,
.article-body blockquote,
.article-body pre,
.article-body table {
  margin: 0 0 24px;
}
.article-body h1,
.article-body h2,
.article-body h3,
.article-body h4 {
  margin: 36px 0 16px;
  line-height: 1.35;
}
.article-body h1 {
  font-size: 32px;
}
.article-body h2 {
  font-size: 28px;
}
.article-body h3 {
  font-size: 23px;
}
.article-body ul,
.article-body ol {
  padding-left: 28px;
}
.article-body a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 4px;
}
.article-body img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
}
.article-body pre {
  overflow-x: auto;
  padding: 22px;
  border: 1px solid var(--border);
  background: var(--card);
  border-radius: 10px;
}
.article-body code {
  font-family: var(--font-mono);
  font-size: 0.85em;
}
.article-body :not(pre) > code {
  background: var(--card);
  padding: 2px 5px;
  border-radius: 4px;
}
.article-body blockquote {
  border-left: 3px solid var(--accent);
  padding-left: 22px;
  color: var(--muted);
}
.article-body table {
  display: block;
  overflow-x: auto;
  border-collapse: collapse;
}
.article-body th,
.article-body td {
  padding: 10px 14px;
  border: 1px solid var(--border);
}
.article-body hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 32px 0;
}
@media (max-width: 700px) {
  .blog-grid {
    grid-template-columns: 1fr;
  }
  .blog-card-copy {
    padding: 22px;
  }
  .blog-section {
    padding-top: 30px;
  }
}

/* Editorial archive, with the same typography and accent as the portfolio. */
.blog-section {
  padding-top: 0;
}
.blog-heading {
  max-width: 800px;
  padding-bottom: 42px;
}
.blog-heading .eyebrow {
  margin-top: 0;
}
.blog-heading h1 {
  font-size: clamp(56px, 8vw, 96px);
  line-height: 1.1;
  margin-bottom: 22px;
}
.blog-heading h1 span {
  color: var(--accent);
}
.blog-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: 26px 0;
  border-block: 1px solid var(--border);
}
.blog-path {
  font: 13px var(--font-mono);
  color: var(--muted);
  white-space: nowrap;
}
.blog-path > span {
  color: var(--accent);
  margin-left: 16px;
}
.blog-search {
  display: grid;
  gap: 8px;
  font: 11px var(--font-mono);
  color: var(--muted);
  width: min(100%, 360px);
}
.blog-search input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--card);
  color: var(--text);
  font: 14px var(--font-body, sans-serif);
}
.blog-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}
.blog-filters button {
  padding: 10px 17px;
  min-height: 44px;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  font: 13px var(--font-body, sans-serif);
}
.blog-filters button[aria-pressed="true"] {
  color: var(--accent);
  border-color: var(--accent);
  background: rgba(56, 189, 248, 0.07);
}
.blog-filters button:hover {
  border-color: var(--accent);
  color: var(--text);
}
.blog-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: 30px;
}
.blog-card {
  border-radius: 8px;
  transition: border-color 0.2s;
}
.blog-card:hover {
  border-color: var(--accent);
}
.blog-card-copy {
  padding: 24px;
}
.blog-card h2 {
  font-size: 23px;
}
.blog-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  color: var(--muted);
  font: 11px var(--font-mono);
}
.blog-meta time {
  font: inherit;
}
.blog-empty {
  margin-top: 30px;
  padding: 54px 28px;
  text-align: center;
  border-style: dashed;
  background: var(--card);
  border-radius: 8px;
}
.blog-empty-symbol {
  display: block;
  font: 26px var(--font-mono);
  color: var(--accent);
  margin-bottom: 22px;
}
.blog-empty h2 {
  font-size: 24px;
  margin-bottom: 12px;
  color: var(--text);
}
.blog-empty p {
  max-width: 520px;
  margin-inline: auto;
}
.blog-card[hidden],
.blog-empty[hidden] {
  display: none;
}
@media (max-width: 1000px) {
  .blog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 600px) {
  .blog-toolbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 20px;
  }
  .blog-search {
    width: 100%;
  }
  .blog-grid {
    grid-template-columns: 1fr;
  }
  .blog-heading {
    padding-bottom: 30px;
  }
}
