.blog-body {
  background-attachment: fixed;
}

.blog-main {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: clamp(1.4rem, 3vw, 2.6rem);
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding: clamp(1.25rem, 3.5vw, 2.5rem) clamp(1rem, 4vw, 2.5rem) clamp(3rem, 7vw, 5rem);
}

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 0.75rem;
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.section-eyebrow::before {
  content: "";
  width: 24px;
  height: 1px;
  background: var(--accent);
}

.blog-hero {
  display: grid;
  gap: clamp(1.6rem, 4vw, 3rem);
  align-items: end;
}

.blog-hero h1 {
  max-width: 18ch;
  margin-bottom: 0.8rem;
  font-size: clamp(2.1rem, 1.4rem + 3.4vw, 4rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
}

.blog-hero-lead {
  max-width: 62ch;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1rem, 0.96rem + 0.3vw, 1.16rem);
}

.blog-hero-tags {
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tag-list a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.65rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(143, 179, 217, 0.06);
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 500;
  line-height: 1.3;
  text-decoration: none;
  transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.tag-list a:hover {
  border-color: var(--line-strong);
  background: rgba(143, 179, 217, 0.14);
  color: var(--text);
}

.tag-list a span {
  color: var(--accent);
  font-size: 0.68rem;
}

.tag-list-large a {
  padding: 0.4rem 0.8rem;
  font-size: 0.82rem;
}

.blog-section {
  min-width: 0;
}

.blog-section-head {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.blog-section-head h2 {
  margin: 0;
  font-size: clamp(1.3rem, 1.1rem + 1vw, 1.9rem);
}

.blog-section-head p {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.blog-featured {
  margin-bottom: clamp(1rem, 2.4vw, 1.6rem);
}

.post-grid {
  display: grid;
  gap: clamp(0.9rem, 2vw, 1.3rem);
  grid-template-columns: 1fr;
}

.post-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: clamp(14px, 2vw, 20px);
  background: linear-gradient(160deg, rgba(25, 34, 46, 0.92), rgba(12, 18, 26, 0.96));
  box-shadow: 0 24px 50px -38px rgba(0, 0, 0, 0.95);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.post-card:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
  box-shadow: 0 30px 64px -36px rgba(0, 0, 0, 1), 0 0 32px -18px rgba(143, 179, 217, 0.55);
}

.post-card-media {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: linear-gradient(145deg, rgba(143, 179, 217, 0.16), rgba(27, 36, 48, 0.8));
}

.post-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.post-card:hover .post-card-media img {
  transform: scale(1.035);
}

.post-card-placeholder {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  background:
    radial-gradient(280px 180px at 80% 10%, rgba(195, 219, 245, 0.22), transparent 70%),
    linear-gradient(145deg, rgba(143, 179, 217, 0.18), rgba(15, 22, 32, 0.9));
}

.post-card-placeholder span {
  color: rgba(244, 247, 250, 0.55);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.post-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 0.6rem;
  padding: clamp(1rem, 2.4vw, 1.35rem);
}

.post-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0;
  color: var(--muted);
  font-size: 0.74rem;
  letter-spacing: 0.02em;
}

.post-card-body h3 {
  margin: 0;
  font-size: clamp(1.12rem, 1rem + 0.45vw, 1.35rem);
  line-height: 1.25;
}

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

.post-card-body h3 a:hover {
  color: var(--accent-bright);
}

.post-card-body > p {
  display: -webkit-box;
  overflow: hidden;
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.post-card-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 0.5rem;
}

.post-card-link {
  color: var(--accent-bright);
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.post-card-featured {
  display: grid;
  grid-template-columns: 1fr;
}

.post-card-featured .post-card-media {
  aspect-ratio: 16 / 10;
}

.post-card-featured .post-card-body {
  padding: clamp(1.2rem, 3vw, 2.2rem);
}

.post-card-featured .post-card-body h3 {
  font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2.3rem);
}

.post-card-featured .post-card-body > p {
  font-size: 0.95rem;
  -webkit-line-clamp: 4;
}

.blog-breadcrumbs {
  margin-bottom: 1rem;
}

.blog-breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 0.76rem;
}

.blog-breadcrumbs li {
  display: inline-flex;
  gap: 0.35rem;
  align-items: center;
}

.blog-breadcrumbs li:not(:last-child)::after {
  content: "/";
  color: rgba(183, 196, 210, 0.45);
}

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

.blog-breadcrumbs a:hover {
  color: var(--text);
  text-decoration: underline;
}

.post-hero h1 {
  max-width: 22ch;
  margin-bottom: 0.7rem;
  font-size: clamp(2rem, 1.4rem + 3vw, 3.7rem);
  line-height: 1.04;
  letter-spacing: -0.035em;
}

.post-kicker {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0 0 0.9rem;
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.post-subtitle {
  max-width: 58ch;
  margin: 0;
  color: var(--muted);
  font-family: var(--font-body);
  font-size: clamp(1.05rem, 1rem + 0.55vw, 1.35rem);
  font-weight: 400;
  line-height: 1.55;
  letter-spacing: 0;
}

.post-hero-media {
  width: 100%;
  max-height: 680px;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: clamp(16px, 2.4vw, 24px);
  background: var(--steel);
  box-shadow: var(--shadow);
}

.post-hero-media img {
  width: 100%;
  max-height: 680px;
  object-fit: cover;
}

.post-layout {
  display: grid;
  gap: clamp(1.4rem, 4vw, 2.6rem);
}

.post-content {
  max-width: 760px;
  min-width: 0;
  color: #dbe5ef;
  font-size: clamp(1rem, 0.98rem + 0.18vw, 1.08rem);
  line-height: 1.8;
}

.post-content > :first-child {
  margin-top: 0;
}

.post-content h3 {
  margin: 2em 0 0.65em;
  color: var(--text);
  font-size: clamp(1.25rem, 1.12rem + 0.55vw, 1.55rem);
  line-height: 1.25;
}

.post-content p,
.post-content ul,
.post-content ol,
.post-content blockquote,
.post-content figure {
  margin-bottom: 1.2em;
}

.post-content ul,
.post-content ol {
  padding-left: 1.3rem;
}

.post-content li {
  margin-bottom: 0.4rem;
}

.post-content a {
  color: var(--accent-bright);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

.post-content blockquote {
  margin-inline: 0;
  padding: 1rem 1.2rem;
  border-left: 3px solid var(--accent);
  border-radius: 0 12px 12px 0;
  background: rgba(143, 179, 217, 0.08);
  color: var(--text);
  font-size: 1.04em;
}

.post-content blockquote p:last-child {
  margin-bottom: 0;
}

.post-content figure {
  margin-inline: 0;
}

.post-content img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  border-radius: 12px;
}

.post-content figcaption {
  margin-top: 0.45rem;
  color: var(--muted);
  font-size: 0.8rem;
  text-align: center;
}

.post-aside {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  align-self: start;
}

.post-aside-card {
  padding: 1.15rem;
  border-radius: 16px;
}

.post-aside-card .section-eyebrow {
  margin-bottom: 0.65rem;
  font-size: 0.66rem;
}

.post-author {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 0.9rem;
}

.post-author img {
  width: 48px;
  height: 48px;
  padding: 3px;
  border-radius: 12px;
  background: linear-gradient(160deg, #f7fbff, #cfdeee);
}

.post-author strong {
  display: block;
  font-family: var(--font-display);
  font-size: 0.92rem;
}

.post-author span {
  display: block;
  color: var(--muted);
  font-size: 0.74rem;
}

.post-back {
  color: var(--muted);
  font-size: 0.82rem;
  text-decoration: none;
}

.post-back:hover {
  color: var(--text);
  text-decoration: underline;
}

.post-adjacent {
  display: grid;
  gap: 0.8rem;
  margin-top: clamp(1.5rem, 4vw, 3rem);
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
}

.post-adjacent a {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 1rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(143, 179, 217, 0.04);
  color: var(--text);
  text-decoration: none;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.post-adjacent a:hover {
  border-color: var(--line-strong);
  background: rgba(143, 179, 217, 0.09);
}

.post-adjacent span {
  color: var(--accent);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.post-adjacent strong {
  font-family: var(--font-display);
  font-size: 0.95rem;
  line-height: 1.3;
}

.post-adjacent-next {
  text-align: right;
}

.blog-pagination {
  display: flex;
  gap: 0.8rem;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
}

.blog-pagination-status {
  color: var(--muted);
  font-size: 0.8rem;
}

.blog-cta {
  display: grid;
  gap: 1.2rem;
  align-items: center;
}

.blog-cta h2 {
  margin-bottom: 0.45rem;
  font-size: clamp(1.4rem, 1.2rem + 1.2vw, 2.1rem);
}

.blog-cta p {
  max-width: 62ch;
  margin: 0;
  color: var(--muted);
}

.blog-cta .btn {
  justify-self: start;
}

.blog-empty,
.blog-404,
.blog-hero,
.tag-hero {
  border-radius: var(--radius);
}

.blog-empty h2,
.blog-404 h1 {
  margin-bottom: 0.5rem;
}

.blog-empty p,
.blog-404 p {
  max-width: 58ch;
  margin-bottom: 1.2rem;
  color: var(--muted);
}

.blog-empty-text {
  color: var(--muted);
}

.tag-hero h1 {
  margin-bottom: 0.6rem;
  font-size: clamp(1.8rem, 1.4rem + 2vw, 2.8rem);
}

.tag-hero > p:last-child {
  max-width: 60ch;
  margin: 0;
  color: var(--muted);
}

@media (min-width: 640px) {
  .post-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .post-adjacent {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 920px) {
  .blog-hero {
    grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.65fr);
  }

  .post-card-featured {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  }

  .post-card-featured .post-card-media {
    min-height: 340px;
    aspect-ratio: auto;
  }

  .post-layout {
    grid-template-columns: minmax(0, 1fr) 280px;
  }

  .post-aside {
    position: sticky;
    top: 118px;
  }

  .blog-cta {
    grid-template-columns: minmax(0, 1fr) auto;
  }
}

@media (min-width: 1040px) {
  .post-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 639px) {
  .post-card-featured .post-card-body h3 {
    font-size: 1.45rem;
  }

  .blog-pagination-status {
    text-align: center;
  }

  .blog-pagination .btn {
    padding-inline: 0.8rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .post-card,
  .post-card-media img {
    transition: none;
  }

  .post-card:hover {
    transform: none;
  }

  .post-card:hover .post-card-media img {
    transform: none;
  }
}
