/* Ryze-published guides. The nav, footer and base tokens come from the existing
   marketing styles; this file only owns the article and listing layouts. */

.blog-page .blog-hero {
  padding: 76px 0 64px;
  border-bottom: 1px solid var(--line-soft);
}

.blog-page .blog-hero > .wrap,
.blog-page .blog-list > .wrap,
.blog-page .blog-article > .wrap {
  width: 672px;
}

.blog-page .blog-hero h1 {
  max-width: 672px;
  margin: 0;
  font-size: clamp(38px, 5.6vw, 64px);
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: -0.055em;
  text-wrap: balance;
}

.blog-page .blog-excerpt {
  max-width: 620px;
  margin-top: 24px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.6;
}

.blog-page .blog-date {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-top: 24px;
  color: var(--muted);
  font-size: 13px;
}

.blog-page .blog-featured {
  width: min(1120px, calc(100% - 48px));
  margin: 48px auto 0;
  overflow: hidden;
  border-radius: 20px;
  background: var(--paper-off);
}

.blog-page .blog-featured img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.blog-page .blog-article {
  padding: 80px 0 112px;
}

.blog-page .blog-prose {
  font-size: 17px;
  line-height: 1.75;
  color: var(--muted);
}

.blog-page .blog-prose > :first-child { margin-top: 0; }

.blog-page .blog-prose :is(h2, h3, h4) {
  color: var(--ink);
  font-weight: 400;
  text-wrap: pretty;
}

.blog-page .blog-prose h2 {
  margin: 64px 0 20px;
  font-size: clamp(28px, 4vw, 38px);
  line-height: 1.12;
  letter-spacing: -0.035em;
}

.blog-page .blog-prose h3 {
  margin: 44px 0 16px;
  font-size: 23px;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.blog-page .blog-prose h4 {
  margin: 32px 0 12px;
  font-size: 18px;
  line-height: 1.35;
}

.blog-page .blog-prose :is(p, ul, ol, blockquote, table) { margin: 20px 0 0; }
.blog-page .blog-prose :is(ul, ol) { padding-left: 24px; }
.blog-page .blog-prose ul { list-style: disc outside; }
.blog-page .blog-prose ol { list-style: decimal outside; }
.blog-page .blog-prose li + li { margin-top: 10px; }
.blog-page .blog-prose strong { color: var(--ink); font-weight: 400; }

.blog-page .blog-prose a {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.blog-page .blog-prose blockquote {
  padding: 20px 24px;
  border-left: 3px solid var(--blue);
  background: var(--paper-off);
  color: var(--ink);
}

.blog-page .blog-prose table {
  display: block;
  width: 100%;
  overflow-x: auto;
  border-collapse: collapse;
  font-size: 15px;
}

.blog-page .blog-prose :is(th, td) {
  padding: 12px 14px;
  border: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.blog-page .blog-prose th {
  color: var(--ink);
  font-weight: 400;
  background: var(--paper-off);
}

.blog-page .blog-faq-list { margin: 32px 0; }
.blog-page .blog-faq-list .faq-answer {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.75;
}

.blog-page .blog-list { padding: 24px 0 112px; }

.blog-page .blog-card {
  padding: 40px 0;
  border-bottom: 1px solid var(--line-soft);
}

.blog-page .blog-card:first-child { border-top: 1px solid var(--line-soft); }
.blog-page .blog-card-date { margin: 0 0 14px; color: var(--muted); font-size: 13px; }

.blog-page .blog-card h2 {
  margin: 0;
  color: var(--ink);
  font-size: 27px;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.025em;
}

.blog-page .blog-card h2 a { transition: color 140ms ease; }
.blog-page .blog-card h2 a:hover { color: var(--blue); }
.blog-page .blog-card > p:not(.blog-card-date) { margin: 16px 0 0; color: var(--muted); line-height: 1.65; }

.blog-page .blog-card-link {
  display: inline-block;
  margin-top: 18px;
  color: var(--blue);
  font-size: 14px;
}

.blog-page .blog-card-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.blog-page .blog-empty { padding: 48px 0; color: var(--muted); }

@media (max-width: 720px) {
  .blog-page .blog-hero { padding: 52px 0 48px; }
  .blog-page .blog-featured {
    width: calc(100% - 32px);
    margin-top: 32px;
    border-radius: 12px;
  }
  .blog-page .blog-article { padding: 56px 0 80px; }
  .blog-page .blog-prose,
  .blog-page .blog-faq-list .faq-answer { font-size: 16px; }
}
