/* ══════════════════════════════
   BLOG POST PAGE — blog-post.css
   Loaded in addition to styles.css
   on all individual blog post pages.
══════════════════════════════ */

/* ── NAV overrides for post pages ──
   The nav is always "scrolled" on post
   pages (dark logo, no transparency) */
.post-page #nav.scrolled .nav-logo { color: var(--ink); }
.post-page #nav { background: rgba(255,254,249,.97); box-shadow: 0 1px 0 rgba(0,0,0,.08); height: 64px; }
.post-page #nav .nav-links a { color: var(--ink-mid); }
.post-page #nav .ham span { background: var(--ink); }
.nav-active { color: var(--aqua) !important; }


/* ── POST HERO ── */
.post-hero {
  position: relative;
  min-height: 580px;
  display: flex;
  align-items: flex-end;
  padding: 100px 0 0;
}
.post-hero-bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
}
.post-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(2,30,80,.35) 0%,
    rgba(2,30,80,.55) 50%,
    rgba(2,30,80,.82) 100%
  );
}
.post-hero-body {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 820px;
  margin: 0 auto;
  padding: 0 40px 72px;
}
.post-back {
  display: inline-block;
  font-size: .65rem;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(255,255,255,.55);
  margin-bottom: 24px;
  transition: color .2s;
}
.post-back:hover { color: var(--aqua-light); }
.post-cat { margin-bottom: 18px; display: inline-block; }
.post-title {
  font-family: var(--font-serif);
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.1;
  letter-spacing: -.02em;
  margin-bottom: 20px;
}
.post-title em { font-style: italic; color: var(--aqua-light); }
.post-deck {
  font-size: 1.05rem;
  font-weight: 300;
  color: rgba(255,255,255,.7);
  line-height: 1.7;
  max-width: 600px;
  margin-bottom: 28px;
}
.post-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .68rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255,255,255,.45);
}
.post-dot { opacity: .4; }
.post-author { color: rgba(255,255,255,.65); }


/* ── ARTICLE BODY ── */
.post-body {
  max-width: 720px;
  margin: 0 auto;
  padding: 72px 40px 80px;
}
.post-lead {
  font-size: 1.2rem;
  line-height: 1.85;
  color: var(--ink-mid);
  margin-bottom: 32px;
  font-weight: 300;
}
.post-body p {
  font-size: 1rem;
  line-height: 1.9;
  color: #444;
  margin-bottom: 24px;
}
.post-body strong { color: var(--ink); font-weight: 500; }

/* Section headings */
.post-h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 700;
  color: var(--ink);
  line-height: 1.2;
  letter-spacing: -.015em;
  margin: 56px 0 20px;
  padding-top: 8px;
  border-top: 1px solid rgba(0,180,216,.2);
}
.post-h2 em { font-style: italic; color: var(--teal); }
.post-h2:first-of-type { margin-top: 0; }

/* Lists */
.post-list {
  margin: 0 0 28px 0;
  padding-left: 24px;
}
.post-list li {
  font-size: 1rem;
  line-height: 1.8;
  color: #444;
  margin-bottom: 10px;
  padding-left: 8px;
}
.post-list li::marker { color: var(--aqua); }

/* In-body image */
.post-figure {
  margin: 44px -40px;
}
.post-img {
  width: 100%;
  max-height: 500px;
  object-fit: cover;
  display: block;
}
.post-figure figcaption {
  font-size: .72rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #aaa;
  text-align: center;
  padding: 12px 40px 0;
}

/* Pull quote */
.post-quote {
  margin: 44px 0;
  padding: 32px 40px;
  border-left: 3px solid var(--aqua);
  background: var(--sand);
}
.post-quote p, .post-quote {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-style: italic;
  color: var(--ink);
  line-height: 1.6;
  margin-bottom: 12px;
}
.post-quote cite {
  display: block;
  font-family: var(--font-sans);
  font-style: normal;
  font-size: .68rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--aqua);
}

/* Tip / callout box */
.post-tip {
  background: rgba(0,180,216,.07);
  border: 1px solid rgba(0,180,216,.2);
  border-radius: 2px;
  padding: 24px 28px;
  margin: 36px 0;
}
.post-tip-label {
  display: inline-block;
  font-size: .58rem;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--aqua);
  background: rgba(0,180,216,.12);
  padding: 4px 10px;
  border-radius: 20px;
  margin-bottom: 12px;
}
.post-tip p {
  margin-bottom: 0;
  font-size: .92rem;
  color: var(--ink-mid);
}

/* Author bio */
.post-author-bio {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-top: 64px;
  padding-top: 40px;
  border-top: 1px solid #eee;
}
.post-author-bio-text strong {
  display: block;
  font-size: .65rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--aqua);
  margin-bottom: 10px;
}
.post-author-bio-text p {
  font-size: .9rem;
  color: #666;
  margin-bottom: 0;
}


/* ── MORE POSTS ── */
.post-more {
  background: var(--sand);
  padding: 80px 40px 100px;
}
.post-more-inner {
  max-width: 900px;
  margin: 0 auto;
}
.post-more-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 4px;
}


/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .post-hero { min-height: 460px; }
  .post-hero-body { padding: 0 24px 56px; }
  .post-body { padding: 48px 24px 64px; }
  .post-figure { margin: 36px -24px; }
  .post-figure figcaption { padding: 10px 24px 0; }
  .post-quote { padding: 24px; }
  .post-more { padding: 60px 24px 80px; }
  .post-more-grid { grid-template-columns: 1fr; }
}
