/* ============================================================
   FRAMELY BLOG STYLES — blog.css
   Loaded on blog.html and all /blog/*.html pages
   ============================================================ */

/* ---- Shared blog body ---- */
.blog-body { background: #fafaf8; }

/* Nav always has background on blog pages (no transparent hero behind it) */
.blog-body nav { background: rgba(247,246,242,.97); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); box-shadow: 0 1px 0 var(--border); }

/* ---- Nav tweak: active state ---- */
.nav-active { color: var(--navy) !important; font-weight: 600; }

/* ============================================================
   BLOG INDEX — blog.html
   ============================================================ */

.blog-hero {
  padding: 140px 24px 80px;
  text-align: center;
  background: #fff;
  border-bottom: 1px solid #e8e6e0;
}
.blog-hero-inner { max-width: 640px; margin: 0 auto; }

.blog-hero-label {
  display: inline-block;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold, #b08d57);
  margin-bottom: 18px;
}
.blog-hero-heading {
  font-family: 'Cormorant', serif;
  font-size: clamp(38px, 5vw, 58px);
  font-weight: 500;
  line-height: 1.1;
  color: var(--ink, #1a1a1a);
  margin-bottom: 20px;
}
.blog-hero-heading em { font-style: italic; color: var(--navy, #14213D); }
.blog-hero-sub {
  font-size: .97rem;
  color: var(--ink-2, #555);
  line-height: 1.75;
  max-width: 500px;
  margin: 0 auto;
}

.blog-index { padding: 64px 24px 100px; }
.blog-index-inner {
  max-width: 740px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.blog-card {
  background: #fff;
  border: 1px solid #e8e6e0;
  border-radius: 4px;
  padding: 36px 40px;
  margin-bottom: 20px;
  transition: box-shadow .2s, transform .2s;
}
.blog-card:hover {
  box-shadow: 0 6px 24px rgba(20,33,61,.07);
  transform: translateY(-2px);
}
.blog-card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.blog-card-date {
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink-2, #555);
}
.blog-card-tag {
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  background: var(--navy, #14213D);
  color: #fff;
  padding: 3px 10px;
  border-radius: 2px;
}
.blog-card-title {
  font-family: 'Cormorant', serif;
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 500;
  line-height: 1.25;
  margin-bottom: 12px;
}
.blog-card-title a {
  color: var(--ink, #1a1a1a);
  text-decoration: none;
  transition: color .15s;
}
.blog-card-title a:hover { color: var(--navy, #14213D); }
.blog-card-excerpt {
  font-size: .9rem;
  color: var(--ink-2, #555);
  line-height: 1.75;
  margin-bottom: 20px;
}
.blog-card-link {
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--navy, #14213D);
  text-decoration: none;
  border-bottom: 1px solid var(--navy, #14213D);
  padding-bottom: 1px;
  transition: opacity .15s;
}
.blog-card-link:hover { opacity: .6; }

/* ============================================================
   BLOG POST — /blog/*.html
   ============================================================ */

.post-wrap { min-height: 100vh; }

.post-header {
  background: #fff;
  border-bottom: 1px solid #e8e6e0;
  padding: 130px 24px 48px;
}
.post-header-inner { max-width: 720px; margin: 0 auto; }

.post-back {
  display: inline-block;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .05em;
  color: var(--navy, #14213D);
  text-decoration: none;
  margin-bottom: 28px;
  transition: opacity .15s;
}
.post-back:hover { opacity: .6; }

.post-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}
.post-date {
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink-2, #555);
}
.post-tag {
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  background: var(--navy, #14213D);
  color: #fff;
  padding: 3px 10px;
  border-radius: 2px;
}

.post-title {
  font-family: 'Cormorant', serif;
  font-size: clamp(32px, 4.5vw, 52px);
  font-weight: 500;
  line-height: 1.1;
  color: var(--ink, #1a1a1a);
  margin-bottom: 18px;
}
.post-subtitle {
  font-size: 1.05rem;
  color: var(--ink-2, #555);
  line-height: 1.75;
  max-width: 600px;
  margin-bottom: 32px;
}

.post-author {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 24px;
  border-top: 1px solid #e8e6e0;
}
.post-author-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  flex-shrink: 0;
}
.post-author-name {
  font-size: .85rem;
  font-weight: 600;
  color: var(--ink, #1a1a1a);
}
.post-author-role {
  font-size: .75rem;
  color: var(--ink-2, #555);
  margin-top: 1px;
}

/* ---- Post body ---- */
.post-body { padding: 48px 24px 100px; }
.post-body-inner {
  max-width: 680px;
  margin: 0 auto;
}

.post-body-inner p {
  font-size: 1rem;
  line-height: 1.85;
  color: #333;
  margin-bottom: 24px;
}
.post-body-inner h2 {
  font-family: 'Cormorant', serif;
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 500;
  color: var(--ink, #1a1a1a);
  margin-top: 48px;
  margin-bottom: 16px;
  line-height: 1.2;
}
.post-body-inner h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink, #1a1a1a);
  margin-top: 36px;
  margin-bottom: 12px;
  letter-spacing: .02em;
}
.post-body-inner ul,
.post-body-inner ol {
  padding-left: 24px;
  margin-bottom: 24px;
}
.post-body-inner li {
  font-size: 1rem;
  line-height: 1.85;
  color: #333;
  margin-bottom: 8px;
}
.post-body-inner strong { color: var(--ink, #1a1a1a); font-weight: 600; }
.post-body-inner blockquote {
  border-left: 3px solid var(--navy, #14213D);
  padding: 4px 0 4px 24px;
  margin: 32px 0;
}
.post-body-inner blockquote p {
  font-family: 'Cormorant', serif;
  font-size: 1.25rem;
  font-style: italic;
  color: var(--navy, #14213D);
  margin-bottom: 0;
}

/* ---- Post CTA ---- */
.post-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  background: var(--navy, #14213D);
  color: #fff;
  border-radius: 4px;
  padding: 36px 40px;
  margin-top: 60px;
}
.post-cta-text h3 {
  font-family: 'Cormorant', serif;
  font-size: 1.5rem;
  font-weight: 500;
  color: #fff;
  margin-top: 0;
  margin-bottom: 8px;
}
.post-cta-text p {
  font-size: .88rem;
  color: rgba(255,255,255,.75);
  line-height: 1.65;
  margin-bottom: 0;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 768px) {
  .blog-hero { padding: 110px 20px 60px; }
  .blog-card { padding: 28px 24px; }
  .post-header { padding: 110px 20px 48px; }
  .post-body { padding: 48px 20px 72px; }
  .post-cta {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    padding: 28px 24px;
  }
}

@media (max-width: 480px) {
  .blog-card { padding: 24px 20px; }
  .post-cta { padding: 24px 20px; }
}

/* ============================================================
   POST BANNER — full-width hero image after post header
   ============================================================ */

.post-banner {
  position: relative;
  background: #fff;
  border-bottom: 1px solid #e8e6e0;
  padding: 0 24px 48px;
}

.post-banner > .post-banner-browser {
  max-width: 860px;
  margin: 0 auto;
}

.post-banner-browser {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 12px 48px rgba(20,33,61,.15), 0 2px 8px rgba(20,33,61,.08);
  border: 1px solid #ddd;
  background: #fff;
}

.post-banner-browser img {
  display: block;
  width: 100%;
  height: auto;
}

.post-banner-badge {
  position: absolute;
  top: 10px;
  right: 14px;
  z-index: 10;
}

.post-banner-caption {
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--ink-2, #888);
  text-align: center;
  margin-top: 10px;
  margin-bottom: 0;
}

/* ---- Inline second image (inside post-body-inner) ---- */
.post-inline-mockup {
  margin: 40px 0 48px;
}

.post-inline-mockup .post-banner-browser {
  box-shadow: 0 8px 32px rgba(20,33,61,.1), 0 2px 6px rgba(20,33,61,.06);
}

.post-inline-mockup .post-banner-caption {
  font-size: .72rem;
  text-align: left;
  margin-top: 8px;
}

/* ---- Concept badge (shared) ---- */
.mockup-concept-badge {
  display: inline-block;
  background: var(--gold, #b08d57);
  color: #fff;
  font-family: 'Outfit', sans-serif;
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 2px;
  box-shadow: 0 2px 8px rgba(0,0,0,.18);
}

/* ---- Drop cap ---- */
.post-dropcap {
  float: left;
  font-family: 'Cormorant', serif;
  font-size: 5.2rem;
  font-weight: 600;
  line-height: .78;
  color: var(--navy, #14213D);
  margin-right: 6px;
  margin-top: 6px;
}

/* ---- Browser chrome (shared) ---- */
.mockup-browser-bar {
  display: flex;
  align-items: center;
  gap: 5px;
  background: #f0eeea;
  padding: 7px 12px;
  border-bottom: 1px solid #e0ddd8;
}

.mockup-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #d0cdc8;
  flex-shrink: 0;
}
.mockup-dot:nth-child(1) { background: #ff5f57; }
.mockup-dot:nth-child(2) { background: #febc2e; }
.mockup-dot:nth-child(3) { background: #28c840; }

.mockup-url {
  flex: 1;
  background: #e4e2de;
  border-radius: 3px;
  font-size: .65rem;
  font-family: 'Outfit', sans-serif;
  color: #888;
  padding: 3px 10px;
  margin-left: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ---- Responsive ---- */
@media (max-width: 680px) {
  .post-banner { padding: 0 16px; }
  .post-dropcap { font-size: 4rem; }
}
