.content-page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background:
    radial-gradient(circle at 78% 4%, rgba(116, 98, 236, 0.08), transparent 24rem),
    radial-gradient(circle at 18% 10%, rgba(48, 181, 240, 0.1), transparent 28rem),
    var(--canvas);
}

.content-page > main {
  flex: 1;
}

.content-shell {
  width: min(calc(100% - 48px), var(--section-width));
  margin-inline: auto;
}

.content-header {
  border-bottom: 1px solid rgba(203, 215, 223, 0.75);
  background: rgba(238, 243, 247, 0.88);
  backdrop-filter: blur(18px);
}

.content-header__inner {
  display: flex;
  min-height: 76px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.content-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.05rem;
  font-weight: 760;
  letter-spacing: -0.02em;
}

.content-navigation,
.content-footer nav {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 0.88rem;
  font-weight: 650;
}

.content-navigation > a:not(.button):hover,
.content-footer a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.blog-index {
  padding-block: clamp(72px, 10vw, 128px);
}

.blog-index__header {
  max-width: 810px;
  margin-bottom: 64px;
}

.blog-index__header h1,
.article-header h1 {
  margin-bottom: 24px;
  font-size: clamp(2.8rem, 6vw, 5.7rem);
}

.blog-index__header > p:last-child,
.article-header__excerpt {
  max-width: 680px;
  margin-bottom: 0;
  font-size: clamp(1.08rem, 2vw, 1.28rem);
}

.post-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}

.post-card {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.post-card > a img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.post-card__body {
  padding: 30px;
}

.post-card h2 {
  margin: 16px 0 14px;
  font-size: clamp(1.65rem, 3vw, 2.15rem);
}

.post-card h2 a:hover {
  color: var(--cobalt);
}

.post-card__body > p {
  margin-bottom: 22px;
}

.post-card__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--cobalt-dark);
  font-size: 0.9rem;
  font-weight: 740;
}

.blog-empty {
  max-width: 660px;
  padding: 36px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.72);
}

.blog-empty h2 {
  margin-bottom: 12px;
  font-size: 1.7rem;
}

.blog-empty p {
  margin: 0;
}

.article {
  padding-block: clamp(72px, 9vw, 118px);
}

.article-header {
  max-width: 880px;
  margin-inline: auto;
}

.article-header .article-meta {
  margin-top: 28px;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  color: var(--ink-faint);
  font-size: 0.78rem;
  font-weight: 650;
}

.article-meta > * + *::before {
  margin-right: 18px;
  color: var(--border-strong);
  content: "•";
}

.article-hero {
  width: 100%;
  max-height: 680px;
  margin: 56px auto 64px;
  border-radius: var(--radius-lg);
  object-fit: cover;
  box-shadow: var(--shadow-md);
}

.article-body {
  max-width: 760px;
  margin: 60px auto 0;
  color: var(--ink);
  font-size: clamp(1.04rem, 1.5vw, 1.14rem);
  line-height: 1.82;
}

.article-hero + .article-body {
  margin-top: 0;
}

.article-body h2,
.article-body h3,
.article-body h4 {
  scroll-margin-top: 24px;
  color: var(--ink);
}

.article-body h2 {
  margin: 2.8em 0 0.75em;
  font-size: clamp(1.9rem, 4vw, 2.65rem);
}

.article-body h3 {
  margin: 2.35em 0 0.7em;
  font-size: clamp(1.45rem, 3vw, 1.9rem);
}

.article-body h4 {
  margin: 2em 0 0.65em;
  font-size: 1.2rem;
}

.article-body p,
.article-body ul,
.article-body ol,
.article-body blockquote,
.article-body pre,
.article-body figure {
  margin-bottom: 1.5em;
}

.article-body p,
.article-body li {
  color: var(--ink-muted);
}

.article-body ul,
.article-body ol {
  display: grid;
  gap: 0.6em;
  padding-left: 1.4em;
}

.article-body a {
  color: var(--cobalt-dark);
  text-decoration: underline;
  text-decoration-color: rgba(32, 92, 140, 0.35);
  text-underline-offset: 3px;
}

.article-body blockquote {
  margin-inline: 0;
  padding: 18px 24px;
  border-left: 4px solid var(--prism-blue);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: rgba(255, 255, 255, 0.7);
}

.article-body blockquote > :last-child {
  margin-bottom: 0;
}

.article-body code {
  padding: 0.15em 0.38em;
  border: 1px solid var(--border);
  border-radius: 5px;
  background: var(--surface-soft);
  font-size: 0.9em;
}

.article-body pre {
  overflow-x: auto;
  padding: 22px;
  border-radius: var(--radius-md);
  color: #e9f1f8;
  background: #0d2035;
}

.article-body pre code {
  padding: 0;
  border: 0;
  color: inherit;
  background: transparent;
}

.article-body img {
  width: auto;
  height: auto;
  margin: 2.2em auto;
  border-radius: var(--radius-md);
}

.article-body hr {
  margin: 3em 0;
  border: 0;
  border-top: 1px solid var(--border-strong);
}

.article-cta {
  padding: 0 24px 96px;
}

.article-cta__inner {
  width: min(100%, 880px);
  margin-inline: auto;
  padding: clamp(34px, 7vw, 64px);
  border-radius: var(--radius-xl);
  color: white;
  background:
    radial-gradient(circle at 88% 12%, rgba(116, 98, 236, 0.5), transparent 18rem),
    #0d2035;
  box-shadow: var(--shadow-md);
}

.article-cta .eyebrow {
  color: var(--signal);
}

.article-cta h2 {
  max-width: 650px;
  margin-bottom: 18px;
  font-size: clamp(2rem, 5vw, 3.5rem);
}

.article-cta p:not(.eyebrow) {
  max-width: 620px;
  margin-bottom: 28px;
  color: #b7c8d6;
}

.article-cta .button {
  color: var(--ink);
  background: white;
}

.content-footer {
  padding: 42px 0;
  color: #9eb2c2;
  background: #0d2035;
}

.content-footer__inner {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 30px;
}

.content-footer .content-brand {
  color: white;
}

.content-footer p {
  margin: 0;
  color: #829aad;
  font-size: 0.78rem;
}

.content-footer small {
  color: #607a90;
  font-size: 0.7rem;
}

@media (max-width: 760px) {
  .content-shell {
    width: min(calc(100% - 32px), var(--section-width));
  }

  .content-header__inner {
    min-height: 68px;
  }

  .content-navigation {
    gap: 14px;
  }

  .content-navigation .button {
    min-height: 38px;
    padding: 8px 12px;
  }

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

  .post-card__body,
  .blog-empty {
    padding: 24px;
  }

  .article-meta {
    display: grid;
    gap: 4px;
  }

  .article-meta > * + *::before {
    content: none;
  }

  .article-hero {
    margin-block: 40px 48px;
    border-radius: var(--radius-md);
  }

  .article-body {
    margin-top: 46px;
  }

  .content-footer__inner {
    grid-template-columns: 1fr;
    gap: 18px;
  }
}

@media (max-width: 440px) {
  .content-navigation > a:first-child {
    display: none;
  }
}
