/* ============================================================
   BLOG — blog index + blog post styles
   ============================================================ */

/* PAGE HEADER (blog index) */
.page-header {
  border-bottom: 1.5px solid var(--ink);
  padding: 64px 48px 48px;
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: end;
}

.page-eyebrow {
  font-size: 10px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--warm);
  font-weight: 500;
  margin-bottom: 16px;
}

.page-header h1 {
  font-family: 'Fraunces', serif;
  font-size: clamp(36px, 5vw, 52px);
  font-weight: 700;
  letter-spacing: -2px;
  line-height: 1;
}

.page-header h1 em { font-style: italic; color: var(--warm); }

.page-desc { font-size: 14px; color: var(--muted); line-height: 1.85; font-weight: 300; }

/* FILTER BAR */
.filter-bar {
  padding: 20px 48px;
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--rule);
}

.filter-label {
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--warm);
  font-weight: 500;
  margin-right: 4px;
}

.filter-btn {
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  font-weight: 500;
  color: var(--muted);
  border: 1px solid var(--rule);
  background: transparent;
  padding: 5px 14px;
  cursor: pointer;
  transition: all .15s;
}

.filter-btn:hover, .filter-btn.active {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

/* FEATURED POST */
.featured-wrap {
  padding: 48px 48px 0;
  max-width: 1100px;
  margin: 0 auto;
}

.featured-label {
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--warm);
  font-weight: 500;
  margin-bottom: 16px;
}

.featured-card {
  display: grid;
  grid-template-columns: 1fr 320px;
  background: var(--ink);
  text-decoration: none;
  margin-bottom: 48px;
  transition: opacity .15s;
}

.featured-card:hover { opacity: .92; }

.featured-body { padding: 40px; }

.featured-cat {
  font-size: 9px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--warm);
  font-weight: 500;
  margin-bottom: 16px;
}

.featured-title {
  font-family: 'Fraunces', serif;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -.8px;
  line-height: 1.15;
  color: var(--paper);
  margin-bottom: 16px;
}

.featured-excerpt { font-size: 13px; color: #9a9a92; line-height: 1.8; font-weight: 300; margin-bottom: 24px; }
.featured-meta { display: flex; gap: 16px; align-items: center; }
.featured-date { font-size: 11px; color: #555550; }
.featured-read { font-size: 11px; color: var(--warm); font-weight: 500; }

.featured-panel {
  background: #111110;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 36px;
  border-left: 1.5px solid #2a2a28;
}

.fp-label { font-size: 9px; letter-spacing: 2px; text-transform: uppercase; color: #444441; font-weight: 500; margin-bottom: 12px; }
.fp-tag { font-size: 11px; color: #5a5a58; padding: 4px 10px; border: 1px solid #2a2a28; display: inline-block; margin: 3px 3px 0 0; }

/* ARTICLES LIST */
.articles-wrap {
  padding: 0 48px 48px;
  max-width: 1100px;
  margin: 0 auto;
}

.articles-hd {
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--warm);
  font-weight: 500;
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--rule);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.post-count { font-size: 11px; color: var(--rule); letter-spacing: 0; text-transform: none; font-weight: 400; }

.article-list { display: flex; flex-direction: column; }

.article-row {
  display: grid;
  grid-template-columns: 90px 1fr auto;
  gap: 24px;
  align-items: start;
  padding: 22px 0;
  border-bottom: 1px solid var(--rule);
  text-decoration: none;
  color: inherit;
  transition: background .15s;
}

.article-row:hover { background: var(--surface); margin: 0 -16px; padding-left: 16px; padding-right: 16px; }
.article-row:last-child { border-bottom: none; }

.ar-date { font-size: 11px; color: var(--warm); font-weight: 500; padding-top: 3px; }
.ar-cat { font-size: 9px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); font-weight: 500; margin-bottom: 6px; }
.ar-title { font-family: 'Fraunces', serif; font-size: 17px; font-weight: 700; letter-spacing: -.4px; line-height: 1.25; margin-bottom: 7px; color: var(--ink); }
.ar-excerpt { font-size: 12px; color: var(--muted); line-height: 1.65; font-weight: 300; }
.ar-read { font-size: 11px; color: var(--warm); font-weight: 500; white-space: nowrap; padding-top: 3px; }

/* PAGINATION */
.bottom-bar {
  padding: 0 48px 64px;
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.pagination { display: flex; gap: 4px; }

.page-btn {
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  font-weight: 500;
  padding: 7px 13px;
  border: 1.5px solid var(--rule);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: all .15s;
}

.page-btn:hover { border-color: var(--ink); color: var(--ink); }
.page-btn.active { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* Thumbnail in featured card */
.featured-img {
  width: 100%;
  display: block;
  margin-bottom: 24px;
  max-height: 200px;
  object-fit: cover;
}

/* ============================================================
   BLOG POST PAGE
   ============================================================ */

.article-wrap { max-width: 720px; margin: 0 auto; padding: 0 32px; }

/* Featured cover image between post hero and body */
.post-featured-image {
  padding-top: 40px;
  padding-bottom: 0;
}
.post-featured-image img {
  width: 100%;
  display: block;
}

/* Inline images inserted via CKEditor Image button */
.post-body figure { margin: 32px 0; }
.post-body figure img { width: 100%; display: block; }
.post-body figure figcaption {
  font-size: 11px;
  color: var(--muted);
  text-align: center;
  padding: 10px 0 0;
  font-style: italic;
  font-weight: 300;
}
/* Images inserted without a figure wrapper */
.post-body img {
  max-width: 100%;
  display: block;
  margin: 32px auto;
}

/* POST HERO */
.post-hero {
  padding: 64px 32px 48px;
  max-width: 720px;
  margin: 0 auto;
  border-bottom: 1.5px solid var(--ink);
}

.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 11px; color: var(--muted); margin-bottom: 24px; }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--ink); }
.breadcrumb-sep { color: var(--rule); }

.post-cat { font-size: 9px; letter-spacing: 2.5px; text-transform: uppercase; color: var(--warm); font-weight: 500; margin-bottom: 16px; }
.post-title { font-family: 'Fraunces', serif; font-size: clamp(28px, 4vw, 42px); font-weight: 700; letter-spacing: -1.5px; line-height: 1.1; margin-bottom: 20px; }
.post-meta { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.post-author { font-size: 13px; font-weight: 500; color: var(--ink); }
.post-date { font-size: 12px; color: var(--muted); }
.post-read { font-size: 12px; color: var(--muted); }
.meta-dot { width: 3px; height: 3px; background: var(--rule); border-radius: 50%; }

/* POST BODY */
.post-body { padding: 48px 32px 64px; max-width: 720px; margin: 0 auto; }
.post-body p { font-size: 16px; line-height: 1.85; color: #2a2a28; font-weight: 300; margin-bottom: 24px; }
.post-body h2 { font-family: 'Fraunces', serif; font-size: 24px; font-weight: 700; letter-spacing: -.5px; color: var(--ink); margin: 48px 0 16px; padding-top: 16px; border-top: 1px solid var(--rule); }
.post-body h3 { font-family: 'Fraunces', serif; font-size: 18px; font-weight: 700; color: var(--ink); margin: 32px 0 12px; }
.post-body ul, .post-body ol { margin: 0 0 24px 20px; }
.post-body li { font-size: 15px; line-height: 1.8; color: #2a2a28; font-weight: 300; margin-bottom: 6px; }
.post-body strong { font-weight: 500; color: var(--ink); }

.callout { background: var(--surface); border-left: 3px solid var(--warm); padding: 20px 24px; margin: 32px 0; }
.callout p { margin: 0; font-size: 14px; font-style: italic; color: var(--muted); }
.callout strong { color: var(--ink); font-style: normal; }

.code-block { background: var(--ink); color: #c0d0c8; font-family: monospace; font-size: 13px; line-height: 1.7; padding: 20px 24px; margin: 24px 0; overflow-x: auto; }
.code-label { font-size: 9px; letter-spacing: 2px; text-transform: uppercase; color: var(--warm); font-weight: 500; margin-bottom: 8px; }
.c-comment { color: #555550; }
.c-key { color: #8ab4a0; }
.c-val { color: #c09060; }

.takeaway-box { background: var(--ink); color: var(--paper); padding: 32px; margin: 48px 0; }
.tb-label { font-size: 9px; letter-spacing: 2px; text-transform: uppercase; color: var(--warm); font-weight: 500; margin-bottom: 16px; }
.tb-title { font-family: 'Fraunces', serif; font-size: 20px; font-weight: 700; margin-bottom: 16px; }
.tb-list { list-style: none; margin: 0; padding: 0; }
.tb-list li { font-size: 13px; color: #9a9a92; padding: 8px 0; border-bottom: 1px solid #2a2a28; font-weight: 300; padding-left: 16px; position: relative; }
.tb-list li:last-child { border-bottom: none; }
.tb-list li::before { content: '→'; position: absolute; left: 0; color: var(--warm); }

/* AUTHOR BIO */
.author-bio {
  border-top: 1.5px solid var(--ink);
  padding: 32px;
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.author-avatar {
  width: 52px;
  height: 52px;
  background: var(--ink);
  color: var(--paper);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Fraunces', serif;
  font-size: 18px;
  font-weight: 700;
  flex-shrink: 0;
}

.author-name { font-size: 14px; font-weight: 500; color: var(--ink); margin-bottom: 4px; }
.author-desc { font-size: 13px; color: var(--muted); line-height: 1.65; font-weight: 300; }

/* PREV / NEXT NAV */
.post-nav {
  border-top: 1.5px solid var(--rule);
  max-width: 720px;
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.post-nav-item {
  padding: 28px 0;
  text-decoration: none;
  color: inherit;
  display: block;
  transition: background .15s;
}

.post-nav-item:hover { background: var(--surface); }
.post-nav-item + .post-nav-item { border-left: 1px solid var(--rule); padding-left: 28px; }

.nav-dir { font-size: 9px; letter-spacing: 2px; text-transform: uppercase; color: var(--warm); font-weight: 500; margin-bottom: 8px; }
.nav-title { font-family: 'Fraunces', serif; font-size: 15px; font-weight: 700; line-height: 1.25; color: var(--ink); }

/* RESPONSIVE — blog */
@media (max-width: 768px) {
  .page-header { grid-template-columns: 1fr; padding: 40px 20px 32px; }
  .filter-bar, .featured-wrap, .articles-wrap, .bottom-bar { padding-left: 20px; padding-right: 20px; }
  .featured-card { grid-template-columns: 1fr; }
  .featured-panel { display: none; }
  .article-row { grid-template-columns: 1fr; gap: 4px; }
  .ar-read { display: none; }
  .post-hero, .article-wrap, .post-body, .author-bio, .post-nav { padding-left: 20px; padding-right: 20px; }
  .post-nav { grid-template-columns: 1fr; }
  .post-nav-item + .post-nav-item { border-left: none; border-top: 1px solid var(--rule); padding-left: 0; }
}
