.blog-header .primary-nav a[aria-current="page"] {
  color: var(--text);
}

.article-language-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.68rem;
  transition: color 160ms ease;
}

.article-language-link:hover {
  color: var(--text);
}

.blog-hero {
  display: grid;
  min-height: 68vh;
  grid-template-columns: minmax(40px, 0.18fr) minmax(0, 0.82fr);
  align-content: center;
  border-bottom: 1px solid var(--line);
  padding-block: clamp(96px, 13vw, 170px);
}

.blog-hero .eyebrow {
  grid-column: 1;
  padding-top: 14px;
}

.blog-hero h1,
.empty-blog h2,
.list-heading h2,
.post-row h2,
.post-row h3,
.article-header h1,
.author-signature h2 {
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: -0.055em;
}

.blog-hero h1 {
  grid-column: 2;
  font-size: clamp(4.2rem, 10vw, 8.8rem);
  line-height: 0.84;
}

.blog-hero > p:last-child {
  max-width: 640px;
  grid-column: 2;
  margin-top: clamp(34px, 5vw, 56px);
  color: var(--muted);
  font-family: var(--display);
  font-size: clamp(1.25rem, 2.7vw, 2rem);
  letter-spacing: -0.02em;
  line-height: 1.35;
}

.blog-content {
  padding-block: clamp(76px, 10vw, 140px);
}

.featured-post {
  padding-bottom: clamp(80px, 12vw, 150px);
  border-bottom: 1px solid var(--line);
}

.featured-post > .eyebrow {
  margin-bottom: 28px;
}

.post-row--featured {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(300px, 0.92fr);
  column-gap: clamp(42px, 7vw, 90px);
}

.featured-cover {
  grid-row: 1 / 7;
  min-height: 480px;
  overflow: hidden;
  background: var(--bg-raised);
}

.featured-cover img,
.article-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.76) contrast(1.02);
}

.post-row-meta,
.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.post-row h2 {
  margin-top: 28px;
  font-size: clamp(2.5rem, 5vw, 4.6rem);
  line-height: 0.96;
}

.post-row h2 a,
.post-row h3 a {
  transition: color 160ms ease;
}

.post-row h2 a:hover,
.post-row h3 a:hover {
  color: var(--accent);
}

.post-row > p {
  margin-top: 24px;
  color: var(--muted);
  font-size: 1rem;
}

.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
  list-style: none;
}

.post-tags li {
  padding: 5px 9px;
  border: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.post-row .text-link {
  width: fit-content;
  margin-top: 28px;
}

.post-list {
  display: grid;
  grid-template-columns: minmax(200px, 0.32fr) minmax(0, 0.68fr);
  gap: clamp(42px, 7vw, 90px);
  padding-top: clamp(78px, 11vw, 140px);
}

.list-heading h2 {
  margin-top: 12px;
  font-size: clamp(2.1rem, 4vw, 3.5rem);
  line-height: 1;
}

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

.post-list-items .post-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  padding-block: 38px;
  border-bottom: 1px solid var(--line);
}

.post-list-items .post-row-meta,
.post-list-items .post-row > p,
.post-list-items .post-tags {
  grid-column: 1;
}

.post-list-items .post-row h3 {
  max-width: 620px;
  grid-column: 1;
  margin-top: 17px;
  font-size: clamp(1.8rem, 3.8vw, 3rem);
  line-height: 1.04;
}

.post-list-items .post-row .text-link {
  grid-row: 1 / 5;
  grid-column: 2;
  align-self: center;
  margin: 0 0 0 28px;
}

.empty-blog {
  min-height: 48vh;
  padding: clamp(70px, 10vw, 130px) 0;
}

.empty-blog h2 {
  max-width: 760px;
  margin-top: 22px;
  font-size: clamp(3rem, 7vw, 6rem);
  line-height: 0.95;
}

.empty-blog > p:last-child {
  max-width: 520px;
  margin-top: 32px;
  color: var(--muted);
  font-size: 1.05rem;
}

.reading-progress {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 80;
  height: 2px;
  pointer-events: none;
}

.reading-progress span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--accent);
  transform-origin: left;
}

.article-shell {
  padding-top: clamp(90px, 12vw, 150px);
  padding-bottom: clamp(90px, 12vw, 150px);
}

.article-header,
.article-body {
  width: min(100%, 760px);
  margin-inline: auto;
}

.back-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.68rem;
  transition: color 160ms ease;
}

.back-link:hover {
  color: var(--accent);
}

.article-meta {
  margin-top: 50px;
}

.article-header h1 {
  margin-top: 24px;
  font-size: clamp(3.2rem, 8vw, 7.4rem);
  line-height: 0.9;
}

.article-excerpt {
  margin-top: 36px;
  color: var(--muted);
  font-family: var(--display);
  font-size: clamp(1.35rem, 2.8vw, 2rem);
  letter-spacing: -0.02em;
  line-height: 1.4;
}

.article-cover {
  width: min(100%, 1120px);
  max-height: 720px;
  margin: clamp(70px, 10vw, 120px) auto;
  overflow: hidden;
  background: var(--bg-raised);
}

.article-cover img {
  max-height: 720px;
}

.article-body {
  color: var(--text);
  font-family: var(--display);
  font-size: clamp(1.16rem, 2vw, 1.34rem);
  line-height: 1.72;
}

.article-body p + p,
.article-body p + ul,
.article-body p + ol,
.article-body ul + p,
.article-body ol + p {
  margin-top: 1.45em;
}

.article-body h2 {
  margin-top: 2.2em;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400;
  letter-spacing: -0.045em;
  line-height: 1.05;
}

.article-body h3 {
  margin-top: 2em;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 400;
  letter-spacing: -0.03em;
}

.article-body h2 + p,
.article-body h3 + p {
  margin-top: 0.8em;
}

.article-body ul,
.article-body ol {
  padding-left: 1.4em;
}

.article-body li + li {
  margin-top: 0.5em;
}

.article-body blockquote {
  margin-block: 2em;
  padding-left: 28px;
  border-left: 2px solid var(--accent);
  color: var(--muted);
  font-size: 1.16em;
  font-style: italic;
}

.article-body a {
  border-bottom: 1px solid var(--line-strong);
  color: var(--accent);
}

.article-body code {
  font-family: var(--mono);
  font-size: 0.82em;
}

.article-body :not(pre) > code {
  padding: 0.15em 0.35em;
  background: var(--bg-raised);
}

.article-body pre {
  max-width: 100%;
  overflow-x: auto;
  margin-block: 2.2em;
  padding: 24px;
  border: 1px solid var(--line);
  background: var(--bg-raised);
  font-family: var(--mono);
  font-size: 0.76rem;
  line-height: 1.65;
}

.article-image {
  margin-block: 2.4em;
}

.article-image img {
  width: 100%;
  height: auto;
}

.author-signature {
  display: grid;
  width: min(100%, 760px);
  grid-template-columns: 130px minmax(0, 1fr);
  gap: 30px;
  margin: clamp(80px, 12vw, 140px) auto 0;
  padding-block: 36px;
  border-block: 1px solid var(--line);
}

.author-signature img {
  width: 130px;
  height: 156px;
  object-fit: cover;
  filter: grayscale(1) contrast(1.04) brightness(0.86);
  mix-blend-mode: luminosity;
  opacity: 0.76;
}

.author-signature h2 {
  margin-top: 8px;
  font-size: 2rem;
}

.author-signature h2 + p {
  max-width: 500px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.9rem;
}

.author-links {
  display: flex;
  gap: 20px;
  margin-top: 18px;
  font-family: var(--mono);
  font-size: 0.64rem;
}

.article-navigation {
  display: grid;
  width: min(100%, 760px);
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 70px auto 0;
  border: 1px solid var(--line);
}

.article-navigation > * {
  min-height: 150px;
  padding: 26px;
}

.article-navigation > * + * {
  border-left: 1px solid var(--line);
}

.article-navigation span {
  display: block;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.6rem;
  text-transform: uppercase;
}

.article-navigation strong {
  display: block;
  margin-top: 18px;
  font-family: var(--display);
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1.2;
}

.article-navigation a {
  transition: background-color 160ms ease;
}

.article-navigation a:hover {
  background: var(--bg-raised);
}

.article-navigation .is-empty {
  color: var(--muted);
}

@media (max-width: 860px) {
  .blog-hero {
    grid-template-columns: 40px minmax(0, 1fr);
  }

  .blog-hero .eyebrow {
    grid-column: 2;
    padding-top: 0;
  }

  .blog-hero h1,
  .blog-hero > p:last-child {
    grid-column: 2;
  }

  .post-row--featured,
  .post-list {
    grid-template-columns: 1fr;
  }

  .featured-cover {
    min-height: 360px;
    grid-row: auto;
    margin-bottom: 38px;
  }

  .post-list {
    gap: 48px;
  }
}

@media (max-width: 560px) {
  .blog-hero {
    min-height: 62vh;
    grid-template-columns: 28px minmax(0, 1fr);
  }

  .blog-hero h1 {
    font-size: clamp(3.8rem, 18vw, 5.6rem);
  }

  .featured-cover {
    min-height: 260px;
  }

  .post-list-items .post-row {
    grid-template-columns: 1fr;
  }

  .post-list-items .post-row .text-link {
    width: fit-content;
    grid-row: auto;
    grid-column: 1;
    margin: 26px 0 0;
  }

  .article-header h1 {
    font-size: clamp(3.2rem, 15vw, 5.2rem);
  }

  .author-signature {
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 20px;
  }

  .author-signature img {
    width: 92px;
    height: 116px;
  }

  .article-navigation {
    grid-template-columns: 1fr;
  }

  .article-navigation > * + * {
    border-top: 1px solid var(--line);
    border-left: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reading-progress {
    display: none;
  }
}
