/* ===========================
   BLOG — Medium-style reading
   Reuses tokens from styles.css
   =========================== */

body.blog {
  background: var(--bg-warm);
}

/* Solid header on blog (no dark hero behind it) */
body.blog #main-header {
  background: rgba(248,247,244,0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-light);
}
body.blog #main-header #main-nav a,
body.blog #main-header .logo {
  color: var(--text-dark);
}
body.blog #main-header #main-nav a::after { background: var(--gold); }
body.blog #main-header .nav-cta {
  background: var(--gold);
  color: #fff;
  border-color: var(--gold);
}
body.blog #main-header .nav-cta:hover {
  background: var(--gold-dark);
  border-color: var(--gold-dark);
}
body.blog .hamburger span { background: var(--text-dark); }

/* Footer keeps dark theme on blog pages too */

/* ===========================
   BLOG INDEX
   =========================== */
.blog-hero {
  padding: 9rem 0 3rem;
  text-align: center;
}
.blog-hero .eyebrow {
  display: inline-block;
  font-family: 'Outfit', sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.2rem;
}
.blog-hero h1 {
  font-size: clamp(2.6rem, 5.5vw, 4.4rem);
  color: var(--text-dark);
  margin-bottom: 1.2rem;
}
.blog-hero .blog-lead {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  color: var(--text-body);
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.4;
}

.blog-divider {
  width: 60px;
  height: 1px;
  background: var(--border-dark);
  margin: 3rem auto;
}

/* Featured post */
.featured-post {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 3.5rem;
  align-items: center;
  padding: 2.5rem 0 4rem;
  border-bottom: 1px solid var(--border-light);
}
.featured-post .featured-visual {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background:
    radial-gradient(circle at 20% 20%, rgba(151,86,85,0.35), transparent 60%),
    radial-gradient(circle at 80% 80%, rgba(212,0,92,0.25), transparent 60%),
    linear-gradient(135deg, #1A1A1A, #2A1A1A);
}
.featured-post .featured-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.08;
  mix-blend-mode: overlay;
}
.featured-post .featured-tag {
  position: absolute;
  top: 1.2rem;
  left: 1.2rem;
  background: rgba(11,11,11,0.5);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.5rem 0.9rem;
  border-radius: var(--radius-full);
  backdrop-filter: blur(10px);
}
.featured-post .featured-glyph {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: clamp(4rem, 10vw, 7rem);
  color: rgba(255,255,255,0.92);
  font-weight: 500;
  letter-spacing: -0.04em;
  text-align: center;
  padding: 2rem;
  line-height: 1;
}

.featured-meta {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.2rem;
  letter-spacing: 0.03em;
}
.featured-meta .dot {
  width: 3px; height: 3px;
  background: var(--text-muted);
  border-radius: 50%;
}
.featured-post h2 {
  color: var(--text-dark);
  font-size: clamp(2rem, 3.5vw, 3rem);
  margin-bottom: 1rem;
}
.featured-post h2 a {
  background: linear-gradient(currentColor, currentColor) bottom left / 0 1px no-repeat;
  transition: background-size var(--transition);
}
.featured-post h2 a:hover {
  background-size: 100% 1px;
}
.featured-post .featured-excerpt {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--text-body);
  margin-bottom: 1.5rem;
}
.featured-post .read-more {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--gold);
  letter-spacing: 0.02em;
  transition: var(--transition-fast);
}
.featured-post .read-more i { transition: transform var(--transition-fast); }
.featured-post .read-more:hover { color: var(--gold-dark); }
.featured-post .read-more:hover i { transform: translateX(4px); }

@media (max-width: 900px) {
  .featured-post { grid-template-columns: 1fr; gap: 2rem; }
}

/* Post grid */
.posts-section {
  padding: 4rem 0 6rem;
}
.posts-section .section-label {
  font-family: 'Outfit', sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.posts-section .section-label::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border-light);
}
.posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem 2rem;
}
@media (max-width: 1024px) {
  .posts-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .posts-grid { grid-template-columns: 1fr; }
}

.post-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.post-card .post-thumb {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-cream);
  display: flex;
  align-items: center;
  justify-content: center;
}
.post-card .post-thumb .glyph {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 3.2rem;
  color: var(--gold);
  opacity: 0.6;
  font-weight: 500;
}
.post-card .post-thumb.tone-rose {
  background: linear-gradient(135deg, #FFE4EA 0%, #F8D5DD 100%);
}
.post-card .post-thumb.tone-rose .glyph { color: var(--rose); }
.post-card .post-thumb.tone-dark {
  background: linear-gradient(135deg, #1C1C1C 0%, #2A1A1A 100%);
}
.post-card .post-thumb.tone-dark .glyph { color: var(--gold-light); opacity: 0.85; }
.post-card .post-thumb.tone-cream {
  background: linear-gradient(135deg, var(--bg-cream) 0%, var(--bg-warm) 100%);
}
.post-card .post-meta {
  font-size: 0.78rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  display: flex;
  gap: 0.6rem;
  align-items: center;
}
.post-card .post-tag {
  color: var(--gold);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.7rem;
}
.post-card h3 {
  font-size: 1.4rem;
  line-height: 1.25;
  color: var(--text-dark);
  margin-bottom: 0.2rem;
  font-weight: 600;
}
.post-card h3 a:hover { color: var(--gold-dark); }
.post-card p {
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--text-body);
}
.post-card .post-author {
  margin-top: auto;
  padding-top: 0.6rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ===========================
   ARTICLE (post page)
   =========================== */
.article-wrap {
  padding: 8rem 0 5rem;
}
.article-back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  letter-spacing: 0.05em;
  transition: var(--transition-fast);
}
.article-back:hover { color: var(--gold); }

.article-header {
  max-width: 760px;
  margin: 0 auto 3rem;
  text-align: left;
}
.article-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.5rem;
}
.article-header h1 {
  font-size: clamp(2.4rem, 4.5vw, 3.8rem);
  color: var(--text-dark);
  line-height: 1.1;
  margin-bottom: 1.2rem;
  letter-spacing: -0.025em;
}
.article-header .article-subtitle {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  color: var(--text-body);
  line-height: 1.4;
  margin-bottom: 2rem;
}
.article-byline {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-light);
  font-size: 0.88rem;
  color: var(--text-muted);
}
.article-byline .avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.article-byline .byline-info { display: flex; flex-direction: column; gap: 0.1rem; }
.article-byline .byline-info strong { color: var(--text-dark); font-weight: 500; }
.article-byline .byline-dot {
  width: 3px; height: 3px;
  background: var(--text-muted);
  border-radius: 50%;
  margin: 0 0.2rem;
}

/* Featured image / hero band for article */
.article-feature {
  max-width: 1080px;
  margin: 0 auto 3.5rem;
  aspect-ratio: 21 / 9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  background:
    radial-gradient(circle at 25% 30%, rgba(151,86,85,0.45), transparent 55%),
    radial-gradient(circle at 80% 70%, rgba(212,0,92,0.35), transparent 55%),
    linear-gradient(135deg, #141414 0%, #2A1A1A 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.article-feature::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.1;
  mix-blend-mode: overlay;
}
.article-feature .feature-mark {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  color: rgba(255,255,255,0.92);
  font-size: clamp(3rem, 9vw, 7rem);
  font-weight: 500;
  letter-spacing: -0.04em;
  text-align: center;
  padding: 2rem;
  line-height: 1;
  z-index: 1;
}

/* Article body — Medium-like reading */
.article-body {
  max-width: 700px;
  margin: 0 auto;
  font-family: 'Outfit', sans-serif;
}
.article-body > * + * { margin-top: 1.6rem; }
.article-body p {
  font-size: 1.15rem;
  line-height: 1.75;
  color: #2C2C2C;
  letter-spacing: 0.005em;
}
.article-body p.lead {
  font-size: 1.3rem;
  line-height: 1.55;
  color: var(--text-dark);
  font-weight: 400;
}
.article-body p.lead::first-letter {
  font-family: 'Cormorant Garamond', serif;
  font-size: 4.4rem;
  font-weight: 600;
  float: left;
  line-height: 0.85;
  padding: 0.4rem 0.8rem 0 0;
  color: var(--gold);
}
.article-body h2 {
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  color: var(--text-dark);
  font-weight: 600;
  margin-top: 3rem;
  letter-spacing: -0.02em;
}
.article-body h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-dark);
  letter-spacing: -0.01em;
  margin-top: 2.4rem;
}
.article-body a {
  color: var(--gold-dark);
  background: linear-gradient(currentColor, currentColor) bottom left / 100% 1px no-repeat;
  transition: var(--transition-fast);
}
.article-body a:hover { color: var(--gold); }
.article-body strong { color: var(--text-dark); font-weight: 600; }
.article-body em { color: var(--text-dark); }

.article-body ul, .article-body ol {
  padding-left: 1.4rem;
  color: #2C2C2C;
}
.article-body li {
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 0.6rem;
}
.article-body li::marker { color: var(--gold); }

.article-body blockquote {
  margin: 2.5rem 0;
  padding: 0.5rem 0 0.5rem 1.5rem;
  border-left: 3px solid var(--gold);
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1.6rem;
  line-height: 1.4;
  color: var(--text-dark);
  letter-spacing: -0.01em;
}
.article-body blockquote cite {
  display: block;
  margin-top: 0.8rem;
  font-family: 'Outfit', sans-serif;
  font-style: normal;
  font-size: 0.85rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

/* Callout box */
.callout {
  margin: 2.5rem 0;
  padding: 1.6rem 1.8rem;
  background: var(--bg-cream);
  border-radius: var(--radius-md);
  border-left: 3px solid var(--gold);
}
.callout .callout-label {
  font-family: 'Outfit', sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.6rem;
}
.callout p {
  font-size: 1rem !important;
  margin: 0 !important;
  color: var(--text-body);
}

/* Funnel diagram — full-funnel post */
.funnel {
  margin: 2.5rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-family: 'Outfit', sans-serif;
}
.funnel-step {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem 1.2rem 0.9rem 1rem;
  background: var(--bg-cream);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius-sm);
}
.funnel-step .stage {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--gold);
  flex-shrink: 0;
  min-width: 2.2rem;
  text-align: center;
}
.funnel-step .body {
  flex: 1;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--text-body);
}
.funnel-step .body strong {
  display: block;
  color: var(--text-dark);
  font-weight: 600;
  margin-bottom: 0.1rem;
  font-size: 1.02rem;
}
.funnel-step .actor {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 0.3rem 0.7rem;
  border-radius: var(--radius-full);
  flex-shrink: 0;
}
.funnel-step .actor.ia { background: #111; color: var(--gold-light); }
.funnel-step .actor.human { background: var(--rose-light); color: var(--rose); }
.funnel-step .actor.system { background: rgba(151,86,85,0.15); color: var(--gold-dark); }
.funnel-arrow {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.95rem;
  letter-spacing: 0.2em;
  margin: 0 !important;
  padding: 0.1rem 0;
}
@media (max-width: 540px) {
  .funnel-step { flex-wrap: wrap; padding: 0.8rem 1rem; }
  .funnel-step .body { order: 3; flex: 1 1 100%; margin-top: 0.4rem; }
}

/* Day-in-the-life log — full-funnel post */
.timeline-log {
  margin: 2.5rem 0;
  padding: 0;
  list-style: none;
  border-left: 1px solid var(--border-light);
}
.timeline-log li {
  position: relative;
  padding: 0.4rem 0 1rem 1.4rem;
  font-size: 1rem !important;
  line-height: 1.55;
  margin: 0 !important;
}
.timeline-log li::before {
  content: "";
  position: absolute;
  left: -5px;
  top: 0.7rem;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--gold);
}
.timeline-log .time {
  font-family: 'Outfit', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--gold);
  display: block;
  margin-bottom: 0.15rem;
}

/* Prompt box — copy-ready prompts for the ChatGPT post */
.prompt-box {
  margin: 1.8rem 0;
  background: #111;
  color: #F2EFE9;
  border-radius: var(--radius-md);
  padding: 1.6rem 1.8rem;
  position: relative;
  font-family: 'JetBrains Mono', 'Fira Code', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.92rem;
  line-height: 1.65;
  letter-spacing: 0.01em;
  white-space: pre-wrap;
  overflow-x: auto;
  border: 1px solid rgba(255,255,255,0.06);
  box-shadow: 0 12px 35px rgba(0,0,0,0.08);
}
.prompt-box::before {
  content: "PROMPT";
  position: absolute;
  top: 0.9rem;
  right: 1.2rem;
  font-family: 'Outfit', sans-serif;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  color: var(--gold-light);
  opacity: 0.85;
}
.prompt-box .prompt-title {
  display: block;
  font-family: 'Outfit', sans-serif;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 0.9rem;
  padding-right: 5rem;
}
.prompt-box em {
  color: #D9CFC5;
  font-style: italic;
}
.prompt-note {
  font-family: 'Outfit', sans-serif !important;
  font-size: 0.92rem !important;
  color: var(--text-muted) !important;
  margin-top: -0.6rem !important;
  margin-bottom: 1.6rem !important;
  line-height: 1.55;
}

/* Section divider (decorative) */
.section-mark {
  text-align: center;
  margin: 3rem 0 !important;
  letter-spacing: 0.6em;
  color: var(--gold);
  font-size: 0.9rem;
}

/* Tip list (numbered with big numerals) */
.steps {
  margin: 2.5rem 0;
  padding: 0;
  list-style: none;
  counter-reset: stepc;
}
.steps li {
  counter-increment: stepc;
  position: relative;
  padding-left: 3.5rem;
  margin-bottom: 1.8rem !important;
  font-size: 1.08rem;
  line-height: 1.7;
}
.steps li::before {
  content: counter(stepc, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: -0.1rem;
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 2rem;
  font-weight: 500;
  color: var(--gold);
  line-height: 1;
}
.steps li strong { display: block; margin-bottom: 0.3rem; }

/* Article footer / CTA */
.article-cta {
  max-width: 760px;
  margin: 4rem auto 0;
  padding: 2.5rem;
  background: var(--bg-dark);
  border-radius: var(--radius-lg);
  color: #fff;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.article-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(151,86,85,0.3), transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(212,0,92,0.2), transparent 50%);
  pointer-events: none;
}
.article-cta > * { position: relative; z-index: 1; }
.article-cta h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 600;
  color: #fff;
  margin-bottom: 0.8rem;
  letter-spacing: -0.02em;
}
.article-cta p {
  color: var(--text-light-muted);
  margin-bottom: 1.6rem !important;
  font-size: 1rem !important;
}
.article-cta .btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 2rem;
  background: var(--gold);
  color: #fff;
  border-radius: var(--radius-full);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: var(--transition-fast);
}
.article-cta .btn-primary:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
}

/* Continue reading */
.continue-reading {
  max-width: 1100px;
  margin: 5rem auto 0;
  padding: 0 1.5rem;
}
.continue-reading .section-label {
  font-family: 'Outfit', sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.continue-reading .section-label::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border-light);
}

@media (max-width: 720px) {
  .article-wrap { padding: 7rem 0 3rem; }
  .article-body p { font-size: 1.05rem; }
  .article-body li { font-size: 1rem; }
  .article-body blockquote { font-size: 1.3rem; padding-left: 1rem; }
  .article-feature { aspect-ratio: 4 / 3; border-radius: var(--radius-md); }
  .article-cta { padding: 2rem 1.5rem; }
}
