/* Blog-only styles. Colours, fonts, nav, buttons, .section, .post cards and footer all come from css/site.css. */

.blog-page main { padding-top: 96px; }

/* hero */
.bp-hero { padding: clamp(28px, 6vh, 64px) clamp(20px, 6vw, 96px) clamp(32px, 5vh, 48px);
  background: radial-gradient(60% 80% at 50% 0%, color-mix(in srgb, var(--el, var(--gold)) 12%, transparent), transparent 70%), var(--void); }
.bp-hero .wrap { max-width: 900px; }
.bp-hero--index .wrap { max-width: 1180px; }
.bp-hero .eyebrow { color: var(--el, var(--gold)); }
.bp-hero h1 { margin: 0 0 18px; font: 700 clamp(32px, 2.6vw + 18px, 56px)/1.1 var(--display); color: var(--ink); text-wrap: balance; }
.bp-hero--index h1 { font-size: var(--step-5); line-height: 1; }
.bp-lede { margin: 0; max-width: 44rem; font-size: var(--step-1); color: var(--muted); }
.bp-banner { display: block; width: 100%; height: auto; margin-top: 36px; border-radius: 14px;
  border: 1px solid color-mix(in srgb, var(--el, var(--gold)) 35%, transparent);
  box-shadow: 0 40px 90px -50px color-mix(in srgb, var(--el, var(--gold)) 60%, transparent); }

.bp-crumbs { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 22px; font: 500 12px/1 var(--ui); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.bp-crumbs a { color: var(--muted); text-decoration: none; }
.bp-crumbs a:hover { color: var(--gold); }

/* article layout */
.bp-body { border-top: 0; }
.bp-grid { display: grid; grid-template-columns: 220px minmax(0, 720px); gap: 64px; justify-content: center; }
.bp-toc { position: sticky; top: 96px; align-self: start; padding-left: 18px; border-left: 1px solid var(--line); }
.bp-toc .eyebrow { margin-bottom: 14px; color: var(--el, var(--gold)); }
.bp-toc ol { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.bp-toc a { display: block; font: 500 13px/1.4 var(--ui); color: var(--muted); text-decoration: none; }
.bp-toc a:hover { color: var(--ink); }

.bp-prose { font-size: 18px; line-height: 1.75; }
.bp-prose > :first-child { margin-top: 0; }
.bp-prose p { margin: 0 0 22px; }
.bp-prose strong { color: #fff; font-weight: 500; }
.bp-prose em { font-style: normal; color: var(--gold); }
.bp-prose h2 { margin: 56px 0 18px; font: 700 clamp(26px, 1.4vw + 18px, 36px)/1.15 var(--display); color: var(--ink); scroll-margin-top: 96px; }
.bp-prose h2::before { content: ""; display: block; width: 9px; height: 9px; margin-bottom: 18px; transform: rotate(45deg);
  border: 1px solid color-mix(in srgb, var(--el, var(--gold)) 70%, transparent); box-shadow: 0 0 12px color-mix(in srgb, var(--el, var(--gold)) 60%, transparent); }
.bp-prose h3 { margin: 34px 0 10px; font: 600 21px/1.3 var(--display); color: var(--gold); }
.bp-prose ul, .bp-prose ol { display: grid; gap: 10px; margin: 0 0 24px; padding: 0; list-style: none; }
.bp-prose li { position: relative; padding-left: 28px; }
.bp-prose ul li::before { content: ""; position: absolute; left: 4px; top: .72em; width: 7px; height: 7px; transform: rotate(45deg); background: var(--el, var(--gold)); }
.bp-prose ol { counter-reset: n; }
.bp-prose ol li { counter-increment: n; }
.bp-prose ol li::before { content: counter(n); position: absolute; left: 0; top: 0; font: 600 16px var(--ui); color: var(--gold); }

.bp-table { overflow-x: auto; margin: 0 0 28px; border: 1px solid rgba(239, 230, 214, 0.12); border-radius: 14px; background: var(--void-2); }
.bp-table table { width: 100%; border-collapse: collapse; font-size: 16px; }
.bp-table th, .bp-table td { padding: 12px 18px; text-align: left; border-bottom: 1px solid rgba(239, 230, 214, 0.08); }
.bp-table th { font: 600 12px var(--ui); letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
.bp-table tr:last-child td { border-bottom: 0; }

.bp-cta { margin-top: 64px; padding: clamp(26px, 3vw, 40px); border-radius: 20px;
  border: 1px solid color-mix(in srgb, var(--el, var(--gold)) 34%, transparent);
  background: radial-gradient(90% 60% at 50% 0%, color-mix(in srgb, var(--el, var(--gold)) 14%, transparent), transparent 70%), linear-gradient(180deg, #0f101d, #08090f); }
.bp-cta h2 { margin: 0 0 12px; }
.bp-cta h2::before { display: none; }
.bp-cta p:not(.eyebrow) { color: var(--muted); }
.bp-cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }

/* cards: real banner in place of the orb art */
.post-img { display: block; width: 100%; height: auto; aspect-ratio: 1200 / 630; object-fit: cover; border-bottom: 1px solid rgba(239, 230, 214, 0.08); }
.blog .post-grid { row-gap: 22px; }
.post[hidden] { display: none; }

/* index: featured post + filters */
.bp-feature { border-top: 0; padding-top: 0; }
.bp-feature-card { display: grid; grid-template-columns: 1.6fr 1fr; align-items: center; overflow: hidden; text-decoration: none;
  border: 1px solid color-mix(in srgb, var(--el) 35%, transparent); border-radius: 20px; background: var(--void-2); transition: border-color .2s, transform .2s; }
.bp-feature-card:hover { border-color: color-mix(in srgb, var(--el) 70%, transparent); transform: translateY(-2px); }
.bp-feature-card img { display: block; width: 100%; height: auto; }
.bp-feature-card .post-body { padding: clamp(22px, 3vw, 40px); }
.bp-feature-card .post-meta { color: var(--el); }
.bp-feature-card h2 { margin: 0; font: 700 clamp(24px, 1.2vw + 16px, 34px)/1.2 var(--display); color: var(--ink); text-wrap: balance; }
.bp-feature-card .ex { margin: 0; color: var(--muted); }

.bp-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.bp-chip { min-height: 40px; padding: 10px 16px; border-radius: 10px; cursor: pointer;
  font: 600 12px/1 var(--ui); letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink); background: transparent; border: 1px solid rgba(239, 230, 214, 0.2); transition: border-color .2s, color .2s, background .2s; }
.bp-chip:hover { border-color: var(--el, var(--gold)); }
.bp-chip[aria-pressed="true"] { color: #1a0f08; background: var(--el, var(--gold)); border-color: var(--el, var(--gold)); }
.bp-chip:focus-visible, .bp-toc a:focus-visible, .bp-feature-card:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

@media (max-width: 980px) {
  .bp-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .bp-toc { position: static; }
  .bp-feature-card { grid-template-columns: 1fr; }
  .blog .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .blog-page main { padding-top: 76px; }
  .bp-prose { font-size: 17px; }
  .blog .post-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .bp-feature-card, .bp-chip { transition: none; }
  .bp-feature-card:hover { transform: none; }
}
