/* ══════════════════════════════════════════
   Parker Blog — shared styles
   Matches the brand system from index.html
   ══════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:        #f7f3ee;
  --bg-warm:   #efe9e0;
  --bg-dark:   #1e1a17;
  --ink:       #1a1612;
  --ink-mid:   #4a4540;
  --ink-muted: #8a837a;
  --rust:      #c04f28;
  --rust-light:#e87a52;
  --rust-pale: #f5ddd5;
  --rust-dim:  rgba(192,79,40,0.12);
  --border:    rgba(26,22,18,0.1);
  --border-warm:rgba(192,79,40,0.18);
}

html { scroll-behavior: smooth; }
body {
  font-family: 'Epilogue', sans-serif;
  background: var(--bg);
  color: var(--ink);
  overflow-x: hidden;
  line-height: 1.6;
}
a { color: var(--rust); }

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  padding: 18px 56px;
  display: flex; justify-content: space-between; align-items: center;
  background: rgba(247,243,238,0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 24px; font-weight: 700;
  color: var(--ink); letter-spacing: -0.5px; text-decoration: none;
}
.logo span { color: var(--rust); }
nav ul { display: flex; gap: 36px; list-style: none; align-items: center; }
nav ul li a { font-size: 14px; color: var(--ink-muted); text-decoration: none; transition: color 0.2s; }
nav ul li a:hover { color: var(--ink); }
nav ul li a.active { color: var(--ink); }
.nav-cta {
  background: var(--ink) !important; color: var(--bg) !important;
  padding: 9px 22px !important; border-radius: 6px !important;
  font-weight: 600 !important; font-size: 13px !important;
}
/* hamburger toggle — hidden on desktop, injected by blog.js */
.nav-toggle {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 40px; height: 40px; padding: 9px; margin: -9px -9px -9px 0;
  background: none; border: 0; cursor: pointer;
}
.nav-toggle span {
  display: block; width: 22px; height: 2px; border-radius: 2px;
  background: var(--ink); transition: transform 0.25s, opacity 0.2s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── BLOG INDEX HERO ── */
.blog-hero {
  padding: 150px 56px 60px;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}
.blog-hero .eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 11px; font-weight: 600; letter-spacing: 2.5px;
  text-transform: uppercase; color: var(--rust); margin-bottom: 22px;
}
.blog-hero .eyebrow::before { content: ''; display: block; width: 22px; height: 1px; background: var(--rust); }
.blog-hero h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(44px, 6vw, 82px); font-weight: 700;
  line-height: 0.98; letter-spacing: -2px; color: var(--ink); margin-bottom: 22px;
}
.blog-hero h1 em { font-style: italic; color: var(--rust); }
.blog-hero p { font-size: 18px; color: var(--ink-mid); max-width: 560px; font-weight: 300; line-height: 1.7; }

/* ── ARTICLE GRID ── */
.blog-grid-wrap { padding: 64px 56px 110px; }
.blog-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
  max-width: 1280px; margin: 0 auto;
}
.post-card {
  display: flex; flex-direction: column;
  background: var(--bg-warm); border: 1px solid var(--border);
  border-radius: 16px; overflow: hidden; text-decoration: none;
  transition: border-color 0.25s, transform 0.2s, box-shadow 0.25s;
}
.post-card:hover { border-color: var(--border-warm); transform: translateY(-3px); box-shadow: 0 18px 40px rgba(26,22,18,0.07); }
.post-card.feature { grid-column: span 2; }
.post-thumb {
  height: 150px; display: flex; align-items: center; justify-content: center;
  font-size: 46px; background: linear-gradient(135deg, var(--rust-dim), rgba(192,79,40,0.04));
  border-bottom: 1px solid var(--border);
}
.post-body { padding: 28px 28px 30px; display: flex; flex-direction: column; flex: 1; }
.post-cat {
  font-size: 11px; font-weight: 600; letter-spacing: 1.8px; text-transform: uppercase;
  color: var(--rust); margin-bottom: 12px;
}
.post-card h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 25px; font-weight: 700; line-height: 1.15;
  letter-spacing: -0.5px; color: var(--ink); margin-bottom: 11px;
}
.post-card.feature h2 { font-size: 32px; }
.post-card p { font-size: 14px; color: var(--ink-muted); line-height: 1.65; margin-bottom: 20px; }
.post-meta {
  margin-top: auto; font-size: 12.5px; color: var(--ink-muted);
  display: flex; align-items: center; gap: 8px;
}
.post-meta .read-link { color: var(--rust); font-weight: 600; margin-left: auto; }

/* ── ARTICLE PAGE ── */
.article-head {
  padding: 138px 24px 48px;
  max-width: 760px; margin: 0 auto;
  border-bottom: 1px solid var(--border);
}
.breadcrumb { font-size: 13px; color: var(--ink-muted); margin-bottom: 26px; }
.breadcrumb a { color: var(--ink-muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--rust); }
.article-cat {
  font-size: 11px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase;
  color: var(--rust); margin-bottom: 18px;
}
.article-head h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(34px, 5vw, 60px); font-weight: 700;
  line-height: 1.04; letter-spacing: -1.5px; color: var(--ink); margin-bottom: 20px;
}
.article-head h1 em { font-style: italic; color: var(--rust); }
.article-lede { font-size: 19px; color: var(--ink-mid); line-height: 1.7; font-weight: 300; margin-bottom: 26px; }
.article-meta { font-size: 13px; color: var(--ink-muted); display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.article-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--ink-muted); }

.article-body { max-width: 760px; margin: 0 auto; padding: 48px 24px 40px; }
.article-body h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(26px, 3.4vw, 38px); font-weight: 700;
  line-height: 1.15; letter-spacing: -1px; color: var(--ink);
  margin: 48px 0 18px;
}
.article-body h2 em { font-style: italic; color: var(--rust); }
.article-body h3 {
  font-size: 19px; font-weight: 600; color: var(--ink); margin: 32px 0 12px;
}
.article-body p { font-size: 17px; color: var(--ink-mid); line-height: 1.8; margin-bottom: 20px; }
.article-body p strong, .article-body li strong { color: var(--ink); font-weight: 600; }
.article-body ul, .article-body ol { margin: 0 0 24px 4px; padding-left: 22px; }
.article-body li { font-size: 17px; color: var(--ink-mid); line-height: 1.7; margin-bottom: 10px; }
.article-body a { color: var(--rust); font-weight: 500; }
.article-body > em { color: var(--ink-muted); }

/* numbered task list */
.task-list { list-style: none; margin: 0 0 28px; padding: 0; display: grid; gap: 14px; }
.task-list li {
  display: flex; gap: 16px; align-items: flex-start;
  background: var(--bg-warm); border: 1px solid var(--border);
  border-radius: 12px; padding: 18px 20px; margin: 0;
}
.task-list .tn {
  flex-shrink: 0; font-family: 'Cormorant Garamond', serif;
  font-size: 22px; font-weight: 700; color: var(--rust); line-height: 1.2; min-width: 26px;
}
.task-list .tt { font-size: 16px; }
.task-list .tt strong { display: block; color: var(--ink); font-weight: 600; margin-bottom: 3px; font-size: 16px; }
.task-list .tt span { color: var(--ink-muted); font-size: 14.5px; line-height: 1.6; }

/* prompt example block */
.prompt-block {
  border-left: 3px solid var(--rust); background: var(--bg-warm);
  border-radius: 0 10px 10px 0; padding: 20px 24px; margin: 0 0 18px;
}
.prompt-block .pq {
  font-family: 'Cormorant Garamond', serif; font-style: italic;
  font-size: 20px; font-weight: 600; color: var(--ink); line-height: 1.4; margin-bottom: 8px;
}
.prompt-block .pa { font-size: 15px; color: var(--ink-mid); line-height: 1.65; }

/* workflow steps */
.flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 8px 0 28px; }
.flow-step { background: var(--bg-warm); border: 1px solid var(--border); border-radius: 12px; padding: 20px 18px; }
.flow-step .fn { font-size: 12px; font-weight: 700; letter-spacing: 1px; color: var(--rust); margin-bottom: 8px; }
.flow-step .fh { font-family: 'Cormorant Garamond', serif; font-size: 19px; font-weight: 700; color: var(--ink); margin-bottom: 6px; }
.flow-step .fp { font-size: 13px; color: var(--ink-muted); line-height: 1.55; }

/* comparison table inside article */
.a-compare { border: 1px solid var(--border); border-radius: 14px; overflow: hidden; margin: 8px 0 28px; background: var(--bg-warm); }
.a-compare .ar { display: grid; grid-template-columns: 1fr 1fr 1.2fr; }
.a-compare .ar + .ar { border-top: 1px solid var(--border); }
.a-compare .ac { padding: 16px 18px; font-size: 14.5px; color: var(--ink-mid); line-height: 1.5; }
.a-compare .head .ac { font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--ink-muted); background: rgba(26,22,18,0.025); }
.a-compare .parker { background: var(--rust-dim); color: var(--ink); font-weight: 500; }
.a-compare .head .parker { background: var(--rust); color: #fff; }

.callout {
  background: var(--rust-dim); border: 1px solid var(--border-warm);
  border-radius: 12px; padding: 22px 26px; margin: 8px 0 28px;
}
.callout p { margin: 0; font-size: 16px; color: var(--ink); line-height: 1.7; }
.callout strong { color: var(--rust); }

/* three-product comparison (Cowork · Eve · Parker) */
.bcmp { border: 1px solid var(--border); border-radius: 14px; margin: 8px 0 14px; }
.bcmp-scroll { border-radius: 14px; overflow: hidden; }
.bcmp-row { display: grid; grid-template-columns: 0.8fr 1fr 1fr 1.1fr; }
.bcmp-row + .bcmp-row { border-top: 1px solid var(--border); }
.bcmp-cell { padding: 14px 16px; font-size: 14px; line-height: 1.5; color: var(--ink-mid); }
.bcmp-cell.dim { font-weight: 600; color: var(--ink); font-size: 13px; display: flex; align-items: center; }
.bcmp-head .bcmp-cell {
  font-family: 'Cormorant Garamond', serif; font-size: 19px; font-weight: 700;
  color: var(--ink); background: rgba(26,22,18,0.03); padding: 16px;
}
.bcmp-head .bcmp-prod { display: flex; align-items: center; gap: 8px; }
.bcmp-head .bcmp-prod img { width: 16px; height: 16px; border-radius: 4px; }
.bcmp-head .dim { background: transparent; }
.bcmp-parker { background: var(--rust-dim); color: var(--ink); border-left: 1px solid var(--border-warm); border-right: 1px solid var(--border-warm); }
.bcmp-row .bcmp-cell.bcmp-parker { font-weight: 500; }
.bcmp-head .bcmp-parker { background: var(--rust); color: #fff; }
.bcmp-head .bcmp-parker sup { font-size: 0.55em; vertical-align: super; opacity: 0.85; }
.bcmp-note { font-size: 12.5px; color: var(--ink-muted); margin: 0 0 28px; line-height: 1.6; }
@media (max-width: 600px) {
  .bcmp-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .bcmp-row { min-width: 680px; }
}

/* ── ARTICLE CTA ── */
.article-cta {
  background: var(--bg-dark); color: #f7f3ee; text-align: center;
  padding: 90px 24px; position: relative; overflow: hidden; margin-top: 40px;
}
.article-cta::before {
  content: ''; position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(192,79,40,0.1) 0%, transparent 62%); pointer-events: none;
}
.article-cta h2 {
  font-family: 'Cormorant Garamond', serif; font-size: clamp(30px, 4.5vw, 52px);
  font-weight: 700; letter-spacing: -1.5px; line-height: 1.05;
  max-width: 620px; margin: 0 auto 18px; color: #f7f3ee; position: relative;
}
.article-cta h2 em { font-style: italic; color: var(--rust-light); }
.article-cta p { font-size: 17px; color: rgba(247,243,238,0.5); max-width: 420px; margin: 0 auto 36px; font-weight: 300; position: relative; }
.btn-primary {
  background: var(--rust); color: #fff; padding: 16px 38px; border-radius: 6px;
  font-size: 15px; font-weight: 600; text-decoration: none; display: inline-block;
  transition: background 0.2s, transform 0.15s; position: relative;
}
.btn-primary:hover { background: #a8401e; transform: translateY(-1px); }
.cta-note { font-size: 13px; color: rgba(247,243,238,0.32); margin-top: 16px; position: relative; }

/* related */
.related { max-width: 760px; margin: 0 auto; padding: 56px 24px 0; }
.related .sec-label { font-size: 11px; font-weight: 600; letter-spacing: 3px; text-transform: uppercase; color: var(--rust); margin-bottom: 22px; }
.related-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.related-card {
  background: var(--bg-warm); border: 1px solid var(--border); border-radius: 12px;
  padding: 22px 24px; text-decoration: none; transition: border-color 0.2s, transform 0.2s;
}
.related-card:hover { border-color: var(--border-warm); transform: translateY(-2px); }
.related-card .rc-cat { font-size: 10.5px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; color: var(--rust); margin-bottom: 8px; }
.related-card .rc-title { font-family: 'Cormorant Garamond', serif; font-size: 20px; font-weight: 700; color: var(--ink); line-height: 1.2; }

/* ── FOOTER ── */
footer {
  background: #141210; padding: 36px 56px;
  border-top: 1px solid rgba(247,243,238,0.06);
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px;
  margin-top: 80px;
}
/* no cream gap when the footer follows the dark CTA */
.article-cta + footer { margin-top: 0; }
.footer-logo { font-family: 'Cormorant Garamond', serif; font-size: 20px; font-weight: 700; color: #f7f3ee; text-decoration: none; }
.footer-logo span { color: var(--rust-light); }
.footer-links { display: flex; gap: 26px; list-style: none; }
.footer-links li a { font-size: 13px; color: rgba(247,243,238,0.3); text-decoration: none; transition: color 0.2s; }
.footer-links li a:hover { color: rgba(247,243,238,0.65); }
.footer-copy { font-size: 13px; color: rgba(247,243,238,0.2); }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  nav { padding: 16px 24px; }
  .nav-toggle { display: flex; }
  nav ul {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px 24px 18px;
    background: rgba(247,243,238,0.97); backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
    display: none;
  }
  nav ul.open { display: flex; }
  nav ul li a {
    display: block; padding: 14px 0; font-size: 15px; color: var(--ink);
    border-bottom: 1px solid var(--border);
  }
  nav ul li:last-child a { border-bottom: 0; }
  .nav-cta {
    display: block !important; text-align: center; margin-top: 12px;
    padding: 13px 22px !important; font-size: 14px !important;
  }
  .blog-hero { padding: 120px 24px 50px; }
  .blog-grid-wrap { padding: 48px 24px 80px; }
  .blog-grid { grid-template-columns: 1fr 1fr; }
  .post-card.feature { grid-column: span 2; }
  .flow { grid-template-columns: 1fr 1fr; }
  .a-compare .ar { grid-template-columns: 1fr 1fr 1.2fr; }
  footer { padding: 32px 24px; flex-direction: column; align-items: flex-start; gap: 20px; }
}
@media (max-width: 600px) {
  nav { padding: 14px 20px; }
  .blog-hero { padding: 110px 20px 44px; }
  .blog-grid-wrap { padding: 40px 20px 64px; }
  .blog-grid { grid-template-columns: 1fr; }
  .post-card.feature { grid-column: span 1; }
  .post-card.feature h2 { font-size: 26px; }
  .article-head { padding: 120px 20px 40px; }
  .article-body { padding: 40px 20px 32px; }
  .flow { grid-template-columns: 1fr; }
  .a-compare { overflow-x: auto; }
  .a-compare .ar { min-width: 520px; }
  .related-grid { grid-template-columns: 1fr; }
  .article-cta { padding: 72px 20px; }
}
