/* ============================================================
   2NIGHT — blog.css  (SCOPED add-on)
   Loaded AFTER /v3/css/styles.css. Reuses the v3 design tokens
   (--gold, --black-deep, --maxw, --gutter, --radius, --ease …)
   and the shared .nav / .footer / .page / .btn-gold / .gold-text
   chrome. Only blog-specific layout lives here so we never touch
   the shared stylesheet.
   ============================================================ */

/* ---------- blog wrapper (overrides .page max width for prose) ---------- */
.blog-wrap {
  position: relative;
  z-index: 2;
  max-width: 820px;
  margin: 0 auto;
  padding: clamp(120px, 18vh, 200px) var(--gutter) clamp(72px, 11vh, 120px);
}

.blog-index-wrap {
  max-width: 1100px;
}

/* ---------- shared header block ---------- */
.blog-kicker {
  font-size: 12px;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}

.blog-index-head h1 {
  font-size: clamp(38px, 6.5vw, 76px);
  font-weight: 800;
  letter-spacing: -.035em;
  line-height: 1;
  margin-bottom: 18px;
}

.blog-index-head p {
  font-size: clamp(16px, 2vw, 20px);
  color: #D4D4D4;
  max-width: 620px;
  line-height: 1.6;
  margin-bottom: clamp(40px, 6vh, 64px);
}

/* ---------- article cards (index) ---------- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: clamp(20px, 3vw, 32px);
}

.blog-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(15,15,18,.6);
  backdrop-filter: blur(8px);
  overflow: hidden;
  transition: transform .4s var(--ease), border-color .4s var(--ease), box-shadow .4s var(--ease);
}
.blog-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255,215,0,.4);
  box-shadow: 0 24px 60px -28px rgba(255,215,0,.25);
}
.blog-card a.blog-card-link { position: absolute; inset: 0; z-index: 3; }

.blog-card-media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #0a0a0c;
  border-bottom: 1px solid var(--border);
}
.blog-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
  transition: transform .6s var(--ease);
}
.blog-card:hover .blog-card-media img { transform: scale(1.05); }

.blog-card-body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.blog-card-tag {
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold);
}
.blog-card-body h2 {
  font-size: clamp(19px, 2.2vw, 23px);
  font-weight: 700;
  letter-spacing: -.01em;
  line-height: 1.22;
  color: var(--text);
}
.blog-card-body p {
  font-size: 15px;
  color: #B6B6B6;
  line-height: 1.6;
  margin: 0;
}
.blog-card-more {
  margin-top: auto;
  padding-top: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--gold);
}

/* ---------- single article ---------- */
.blog-article header.blog-article-head { margin-bottom: clamp(28px, 5vh, 44px); }
.blog-article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  align-items: center;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 18px;
}
.blog-article-meta .dot { color: var(--gold); }

.blog-article h1 {
  font-size: clamp(32px, 5.4vw, 60px);
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.04;
  margin-bottom: 22px;
}

.blog-lead {
  font-size: clamp(17px, 2vw, 21px);
  color: #DADADA;
  line-height: 1.6;
  margin-bottom: clamp(28px, 4vh, 40px);
}

/* prose */
.blog-prose h2 {
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 700;
  letter-spacing: -.012em;
  line-height: 1.2;
  margin: clamp(38px, 5.5vh, 56px) 0 14px;
  color: var(--text);
}
.blog-prose h3 {
  font-size: clamp(18px, 2.2vw, 21px);
  font-weight: 700;
  margin: 30px 0 10px;
  color: #EDEDED;
}
.blog-prose p {
  color: #C4C4C4;
  line-height: 1.78;
  margin-bottom: 16px;
  font-size: 16.5px;
}
.blog-prose ul, .blog-prose ol { margin: 4px 0 20px; padding-left: 0; }
.blog-prose li {
  position: relative;
  color: #C4C4C4;
  line-height: 1.7;
  margin-bottom: 11px;
  padding-left: 26px;
  font-size: 16.5px;
}
.blog-prose ul li::before {
  content: "";
  position: absolute;
  left: 4px; top: 11px;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--gold);
}
.blog-prose ol { counter-reset: bl; }
.blog-prose ol li { counter-increment: bl; }
.blog-prose ol li::before {
  content: counter(bl);
  position: absolute;
  left: 0; top: 1px;
  font-size: 13px;
  font-weight: 700;
  color: var(--gold);
}
.blog-prose strong { color: #ECECEC; font-weight: 700; }
.blog-prose a.inline {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  transition: opacity .2s var(--ease);
}
.blog-prose a.inline:hover { opacity: .75; }

.blog-prose blockquote {
  margin: 30px 0;
  padding: 4px 0 4px 22px;
  border-left: 2px solid var(--gold);
  font-size: clamp(19px, 2.4vw, 24px);
  font-weight: 600;
  letter-spacing: -.01em;
  line-height: 1.35;
  color: #F0F0F0;
}

/* article figure (app screenshot) */
.blog-figure {
  margin: clamp(30px, 5vh, 48px) auto;
  text-align: center;
}
.blog-figure .blog-phone {
  display: inline-block;
  max-width: 300px;
  width: 70%;
  border-radius: 30px;
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 40px 90px -40px rgba(0,0,0,.9), 0 0 0 1px rgba(255,215,0,.08);
  overflow: hidden;
  background: #000;
}
.blog-figure .blog-phone img { width: 100%; height: auto; display: block; }
.blog-figure figcaption {
  margin-top: 16px;
  font-size: 13px;
  color: var(--muted);
}

/* key-takeaway / callout panel reuses .panel but left-aligned variant */
.blog-callout {
  margin: clamp(34px, 5vh, 52px) 0;
  padding: 28px 30px;
  border: 1px solid rgba(255,215,0,.28);
  border-radius: var(--radius);
  background: rgba(16,15,12,.6);
  backdrop-filter: blur(8px);
}
.blog-callout h2 { margin-top: 0 !important; font-size: 20px !important; }
.blog-callout p { color: #CFCFCF; margin-bottom: 0; }

/* in-article CTA */
.blog-cta {
  margin: clamp(40px, 6vh, 64px) 0 8px;
  padding: 36px 32px;
  text-align: center;
  border: 1px solid rgba(255,215,0,.25);
  border-radius: var(--radius);
  background: radial-gradient(120% 140% at 50% 0%, rgba(255,215,0,.08), rgba(13,13,18,.62) 60%);
  backdrop-filter: blur(8px);
}
.blog-cta h2 { margin-top: 0 !important; }
.blog-cta p { color: var(--muted); max-width: 540px; margin: 8px auto 22px; }

/* read-next */
.blog-readnext { margin-top: clamp(40px, 6vh, 64px); }
.blog-readnext h2 { font-size: 16px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 18px; }
.blog-readnext-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.blog-readnext-grid a {
  display: block;
  padding: 18px 20px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(15,15,18,.5);
  transition: border-color .3s var(--ease), transform .3s var(--ease);
}
.blog-readnext-grid a:hover { border-color: rgba(255,215,0,.4); transform: translateY(-2px); }
.blog-readnext-grid span { display: block; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); margin-bottom: 7px; }
.blog-readnext-grid strong { font-weight: 700; color: var(--text); line-height: 1.3; font-size: 15.5px; }

.blog-back { display: inline-block; margin-top: clamp(40px, 6vh, 60px); color: var(--muted); font-size: 14px; transition: color .25s var(--ease); }
.blog-back:hover { color: var(--gold); }

@media (max-width: 620px) {
  .blog-readnext-grid { grid-template-columns: 1fr; }
  .blog-figure .blog-phone { width: 78%; }
}

/* RTL niceties */
[dir="rtl"] .blog-prose li { padding-left: 0; padding-right: 26px; }
[dir="rtl"] .blog-prose ul li::before { left: auto; right: 4px; }
[dir="rtl"] .blog-prose ol li::before { left: auto; right: 0; }
[dir="rtl"] .blog-prose blockquote { border-left: none; border-right: 2px solid var(--gold); padding: 4px 22px 4px 0; }
