/* ══════════════════════════════════════════════════════════════
   BLOG — index, post template, author cards, pagination.
   Extends assets/site.css; uses the same tokens and type scale.
   ══════════════════════════════════════════════════════════════ */

/* ── CATEGORY FILTER CHIPS ── */
.blog-filters {
  background: #fff;
  padding: 1.75rem 4rem;
  border-bottom: 1px solid var(--cream-dark);
}
.blog-filters-title {
  font-size: 10px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}
.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  list-style: none;
}
.chip {
  display: inline-block;
  padding: .5rem 1.1rem;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-mid);
  text-decoration: none;
  background: var(--cream);
  border: 1px solid var(--cream-dark);
  border-radius: 999px;
  transition: color .2s, border-color .2s, background .2s;
}
.chip:hover { color: var(--navy); border-color: rgba(184,145,58,.5); }
.chip[aria-current="page"] {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}

/* ── POST GRID ── */
.blog-list { padding: 3.5rem 4rem 1rem; }
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
  max-width: 1180px;
}
.post-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--cream-dark);
  border-bottom: 2px solid transparent;
  text-decoration: none;
  transition: border-color .25s, box-shadow .25s, transform .25s;
}
.post-card:hover {
  border-bottom-color: var(--gold);
  box-shadow: 0 10px 28px rgba(14,27,46,.08);
  transform: translateY(-3px);
}
.post-card:focus-within { outline: 2px solid var(--gold); outline-offset: 2px; }

.post-thumb {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--navy);
}
.post-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
/* Category-based placeholder when a post has no featured image */
.post-thumb.placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
}
.post-thumb.placeholder::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 35%, rgba(184,145,58,.18) 100%);
}
.post-thumb-mark {
  position: relative;
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 300;
  letter-spacing: .12em;
  color: var(--gold-light);
  border: 1px solid rgba(184,145,58,.35);
  border-radius: 50%;
  width: 78px;
  height: 78px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.post-card-body {
  padding: 1.5rem 1.6rem 1.75rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.post-cat {
  font-size: 10px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: .8rem;
}
.post-card h2,
.post-card h3 {
  font-family: var(--serif);
  font-size: 23px;
  font-weight: 400;
  line-height: 1.3;
  color: var(--navy);
  margin-bottom: .7rem;
}
.post-card a.post-link { color: inherit; text-decoration: none; }
.post-card a.post-link::after {
  content: '';
  position: absolute;
  inset: 0;
}
.post-card { position: relative; }
.post-card h3 a:hover { color: var(--gold); }

.post-meta {
  font-size: 11px;
  letter-spacing: .06em;
  color: var(--text-light);
  margin-bottom: .9rem;
  line-height: 1.7;
}
.post-meta .byline { color: var(--text-mid); }
.post-excerpt {
  font-size: 14px;
  font-weight: 300;
  color: var(--text-mid);
  line-height: 1.8;
  margin-bottom: 1.25rem;
}
.post-card .arrow-link { margin-top: auto; font-size: 11px; }

.guest-badge {
  display: inline-block;
  font-size: 9px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--navy);
  background: rgba(184,145,58,.18);
  border: 1px solid rgba(184,145,58,.45);
  padding: 3px 9px;
  border-radius: 999px;
  margin-left: .5rem;
  vertical-align: middle;
}
.guest-badge.on-dark {
  color: var(--gold-light);
  background: rgba(184,145,58,.12);
  margin-left: .65rem;
}

.blog-empty {
  max-width: 780px;
  font-size: 16px;
  font-weight: 300;
  color: var(--text-mid);
  line-height: 1.85;
}

/* ── PAGINATION ── */
.pagination {
  padding: 2rem 4rem 4rem;
}
.pagination ol {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  list-style: none;
  align-items: center;
}
.pagination a,
.pagination span {
  display: inline-block;
  min-width: 38px;
  text-align: center;
  padding: .5rem .85rem;
  font-size: 12px;
  letter-spacing: .08em;
  text-decoration: none;
  color: var(--text-mid);
  background: #fff;
  border: 1px solid var(--cream-dark);
  transition: color .2s, border-color .2s;
}
.pagination a:hover { color: var(--navy); border-color: rgba(184,145,58,.5); }
.pagination [aria-current="page"] {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}
.pagination .disabled { opacity: .4; }

/* ══════════════════════════════════════════════════════════════
   INDIVIDUAL POST
   ══════════════════════════════════════════════════════════════ */
.post-hero .post-cat { margin-bottom: 1rem; }
.post-hero-meta {
  font-size: 12px;
  letter-spacing: .08em;
  color: rgba(255,255,255,.55);
  line-height: 1.9;
  margin-top: 1.25rem;
}
.post-hero-meta .sep { margin: 0 .55rem; color: rgba(255,255,255,.25); }
.guest-line {
  margin-top: 1.25rem;
  padding: .9rem 1.25rem;
  border-left: 2px solid var(--gold);
  background: rgba(184,145,58,.08);
  font-family: var(--serif);
  font-size: 19px;
  font-style: italic;
  font-weight: 300;
  color: #fff;
  max-width: 620px;
}
.guest-line a { color: var(--gold-light); text-decoration: none; border-bottom: 1px solid rgba(212,168,75,.4); }

.post-featured {
  background: #fff;
  padding: 3rem 4rem 0;
}
.post-featured img {
  display: block;
  width: 100%;
  max-width: 1080px;
  height: auto;
  border: 1px solid var(--cream-dark);
}

/* ── ARTICLE BODY ── */
.post-body { padding: 3.5rem 4rem; background: #fff; }
.post-body-inner { max-width: 760px; }
.post-body-inner > *:first-child { margin-top: 0; }
.post-body-inner p {
  font-size: 16.5px;
  font-weight: 300;
  color: var(--text-mid);
  line-height: 1.9;
  margin-bottom: 1.3rem;
}
.post-body-inner p strong { font-weight: 500; color: var(--navy); }
.post-body-inner h2 {
  font-family: var(--serif);
  font-size: 31px;
  font-weight: 300;
  color: var(--text-dark);
  line-height: 1.25;
  margin: 2.75rem 0 1rem;
}
.post-body-inner h3 {
  font-family: var(--serif);
  font-size: 23px;
  font-weight: 500;
  color: var(--navy);
  line-height: 1.35;
  margin: 2rem 0 .75rem;
}
.post-body-inner h4 {
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 1.75rem 0 .6rem;
}
.post-body-inner a {
  color: var(--gold);
  text-decoration: none;
  border-bottom: 1px solid rgba(184,145,58,.35);
}
.post-body-inner a:hover { border-bottom-color: var(--gold); }
.post-body-inner ul,
.post-body-inner ol {
  margin: 0 0 1.4rem 1.2rem;
  padding-left: .6rem;
}
.post-body-inner li {
  font-size: 16px;
  font-weight: 300;
  color: var(--text-mid);
  line-height: 1.85;
  margin-bottom: .55rem;
  padding-left: .35rem;
}
.post-body-inner li::marker { color: var(--gold); }
.post-body-inner blockquote {
  border-left: 3px solid var(--gold);
  padding: .4rem 0 .4rem 1.75rem;
  margin: 2rem 0;
}
.post-body-inner blockquote p {
  font-family: var(--serif);
  font-size: 22px;
  font-style: italic;
  font-weight: 300;
  color: var(--navy);
  line-height: 1.55;
  margin: 0;
}
.post-body-inner img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 2rem 0;
  border: 1px solid var(--cream-dark);
}
.post-body-inner figure { margin: 2rem 0; }
.post-body-inner figcaption {
  font-size: 12px;
  color: var(--text-light);
  margin-top: .6rem;
}
.post-body-inner hr {
  border: none;
  border-top: 1px solid var(--cream-dark);
  margin: 2.5rem 0;
}
.post-body-inner code {
  font-family: var(--sans);
  font-weight: 400;
  color: var(--navy);
}

/* ── SHARE ── */
.post-share {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .75rem;
  max-width: 760px;
  margin-top: 3rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--cream-dark);
}
.post-share-label {
  font-size: 10px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-right: .25rem;
}
.share-btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .5rem 1rem;
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-mid);
  text-decoration: none;
  border: 1px solid var(--cream-dark);
  background: var(--cream);
  transition: color .2s, border-color .2s;
}
.share-btn:hover { color: var(--navy); border-color: rgba(184,145,58,.5); }
.share-btn svg { width: 14px; height: 14px; fill: currentColor; }

/* ── AUTHOR BIO CARD ── */
.author-card-section { padding: 3.5rem 4rem; }
.author-card {
  display: grid;
  grid-template-columns: 82px 1fr;
  gap: 1.5rem;
  align-items: start;
  max-width: 760px;
  background: #fff;
  border: 1px solid var(--cream-dark);
  border-left: 3px solid var(--navy);
  padding: 1.75rem;
}
.author-card.guest {
  border-left-color: var(--gold);
  background: rgba(184,145,58,.06);
  border-color: rgba(184,145,58,.25);
}
.author-avatar {
  width: 82px;
  height: 82px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  border: 1px solid var(--cream-dark);
}
.author-initial {
  width: 82px;
  height: 82px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 300;
  letter-spacing: .06em;
  color: var(--gold-light);
  background: var(--navy);
}
.author-card.guest .author-initial {
  color: var(--navy);
  background: rgba(184,145,58,.22);
  border: 1px solid rgba(184,145,58,.45);
}
.author-eyebrow {
  font-size: 10px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: .5rem;
}
.author-name {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 400;
  color: var(--navy);
  line-height: 1.3;
}
.author-title {
  font-size: 12px;
  letter-spacing: .06em;
  color: var(--text-light);
  margin-bottom: .75rem;
}
.author-bio {
  font-size: 14px;
  font-weight: 300;
  color: var(--text-mid);
  line-height: 1.85;
}
.author-card .arrow-link { font-size: 11px; margin-top: .9rem; }

/* ── RELATED POSTS ── */
.related-posts { background: var(--navy); padding: 4rem; }
.related-posts .section-label { margin-bottom: .5rem; }
.related-posts h2 {
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 300;
  color: #fff;
  margin-bottom: 2rem;
}
.related-posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.related-post-card {
  display: block;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.09);
  border-bottom: 2px solid transparent;
  padding: 1.5rem;
  text-decoration: none;
  transition: background .25s, border-color .25s, transform .25s;
}
.related-post-card:hover {
  background: rgba(255,255,255,.07);
  border-color: rgba(184,145,58,.4);
  border-bottom-color: var(--gold);
  transform: translateY(-2px);
}
.related-post-card:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.related-post-date {
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: .6rem;
}
.related-post-title {
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 400;
  color: #fff;
  line-height: 1.3;
  margin-bottom: .5rem;
}
.related-post-excerpt {
  font-size: 12px;
  font-weight: 300;
  color: rgba(255,255,255,.45);
  line-height: 1.7;
}

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .related-posts-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .blog-filters { padding: 1.25rem 1.5rem; }
  .blog-list { padding: 2.5rem 1.5rem .5rem; }
  .pagination { padding: 1.5rem 1.5rem 3rem; }
  .post-featured { padding: 2rem 1.5rem 0; }
  .post-body { padding: 2.5rem 1.5rem; }
  .post-body-inner h2 { font-size: 26px; }
  .post-body-inner h3 { font-size: 21px; }
  .author-card-section { padding: 2.5rem 1.5rem; }
  .author-card { grid-template-columns: 1fr; gap: 1rem; padding: 1.5rem; }
  .related-posts { padding: 2.75rem 1.5rem; }
  .guest-line { font-size: 17px; }
}
@media (max-width: 600px) {
  .blog-grid { grid-template-columns: 1fr; }
  .related-posts-grid { grid-template-columns: 1fr; }
}
