/* ============================================================
   roOomy blog — generated pages (/blog/). Source: /var/www/rooomy-content
   ============================================================ */

.nav__links a.is-active::after { transform: scaleX(1); }
.cta .cta__title { color: #fff; font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; margin-bottom: 1rem; }

/* ---------- Hero ---------- */
.page-hero {
  min-height: 30vh;
  display: grid; align-content: center; text-align: center;
  padding: calc(var(--nav-h) + 3.5rem) 0 3.25rem;
  background:
    radial-gradient(90rem 42rem at 50% -22rem, rgba(255, 103, 0, .25), transparent 65%),
    var(--ink);
}
.page-hero__eyebrow {
  font-family: var(--font-display); font-weight: 600; font-size: .85rem;
  letter-spacing: .18em; text-transform: uppercase; color: var(--orange);
  margin-bottom: 1rem;
}
.page-hero__eyebrow a { color: inherit; text-decoration: none; }
.page-hero__title { color: #fff; font-size: clamp(2rem, 4.6vw, 3.2rem); font-weight: 800; max-width: 900px; margin-inline: auto; }
.page-hero__meta { color: rgba(255, 255, 255, .78); margin-top: 1.1rem; font-size: .97rem; }
.page-hero__sub { color: rgba(255, 255, 255, .85); max-width: 640px; margin: 1.1rem auto 0; }

/* ---------- Article ---------- */
.blog-article { padding: 4rem 0 5.5rem; }
.blog-cover { max-width: 960px; margin: 0 auto 3.25rem; }
.blog-cover img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow); }

.prose { max-width: 760px; margin-inline: auto; }
.prose > * + * { margin-top: 1.15rem; }
.prose h2 { font-size: 1.6rem; font-weight: 700; margin-top: 2.9rem; }
.prose h3 { font-size: 1.2rem; font-weight: 700; margin-top: 2.2rem; }
.prose ul, .prose ol { padding-left: 1.4rem; }
.prose li { margin-top: .55rem; }
.prose li::marker { color: var(--orange); font-weight: 600; }
.prose a { color: var(--orange); font-weight: 500; text-decoration: underline; text-decoration-color: rgba(255, 103, 0, .35); text-underline-offset: 3px; transition: text-decoration-color .2s ease; }
.prose a:hover { text-decoration-color: var(--orange); }
.prose strong { color: var(--ink); }
.prose img { border-radius: var(--radius); margin-inline: auto; }
.prose figure { margin: 2rem 0; }
.prose figcaption { font-size: .9rem; color: var(--gray); text-align: center; margin-top: .7rem; }
.prose blockquote {
  background: var(--peach-soft); border-left: 4px solid var(--orange);
  border-radius: 0 14px 14px 0; padding: 1.35rem 1.6rem; color: var(--ink);
}
.prose blockquote > * + * { margin-top: .8rem; }
.prose hr { border: 0; border-top: 1px solid var(--border); margin: 2.6rem 0; }
.prose table { width: 100%; border-collapse: collapse; font-size: .97rem; display: block; overflow-x: auto; }
.prose th, .prose td { text-align: left; padding: .75rem .9rem; border-bottom: 1px solid var(--border); vertical-align: top; }
.prose th { font-family: var(--font-display); color: var(--ink); background: var(--bg-tint); }
.prose code { background: var(--bg-tint); padding: .1rem .35rem; border-radius: 6px; font-size: .92em; }

/* Before / after pair: <div class="ba"><figure>…</figure><figure>…</figure></div> */
.prose .ba { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 2rem 0; }
.prose .ba figure { margin: 0; }
.prose .ba img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }

.blog-back { max-width: 760px; margin: 3.5rem auto 0; padding-top: 2rem; border-top: 1px solid var(--border); }
.blog-back a { font-family: var(--font-display); font-weight: 600; color: var(--orange); text-decoration: none; }

/* ---------- Post cards (index + related) ---------- */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.75rem; }
.blog-card { display: flex; flex-direction: column; overflow: hidden; text-decoration: none; color: inherit; }
.blog-card__img { aspect-ratio: 16 / 10; overflow: hidden; }
.blog-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.blog-card:hover .blog-card__img img { transform: scale(1.04); }
.blog-card__body { padding: 1.5rem 1.6rem 1.8rem; display: flex; flex-direction: column; gap: .6rem; flex: 1; }
.blog-card__cat { font-family: var(--font-display); font-weight: 600; font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--orange); }
.blog-card__title { font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; line-height: 1.25; color: var(--ink); }
.blog-card__excerpt { font-size: .97rem; }
.blog-card__meta { margin-top: auto; padding-top: .6rem; font-size: .88rem; color: var(--gray); }
.blog-card__draft { display: inline-block; background: var(--ink); color: #fff; font-size: .72rem; font-weight: 600; letter-spacing: .1em; padding: .15rem .5rem; border-radius: 6px; margin-right: .4rem; }
.blog-empty { text-align: center; }

.blog-related .section__title { margin-bottom: 2.75rem; }

@media (max-width: 1020px) {
  .blog-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  .blog-grid { grid-template-columns: 1fr; }
  .prose .ba { grid-template-columns: 1fr; }
  .blog-article { padding-top: 2.5rem; }
}
