/* ═══════════════════════════════════════════
   articles.css — posts-only styles
   Enqueued on is_home() / is_archive() / is_single()
   ═══════════════════════════════════════════ */


/* ═══════════════════════════════════════════
   ARTICLE CONTENT — Gutenberg output styling
   ═══════════════════════════════════════════ */
.article-content {
  max-width: var(--prose-width);
}

.article-content>*+* {
  margin-top: var(--space-m);
}

.article-content>h2 {
  margin-top: var(--space-l);
}

.article-content li+li {
  margin-top: calc(var(--space-s) * 0.5);
}

.article-content blockquote {
  border-left: 2px solid var(--gold);
  padding: var(--space-s) var(--space-m);
  margin: var(--space-m) 0;
  font-style: italic;
  font-size: var(--step-1);
  line-height: 1.6;
}

.article-content img {
  max-width: 100%;
  height: auto;
  display: block;
}

.article-content figcaption {
  font-size: var(--step--2);
  margin-top: calc(var(--space-s) * 0.5);
}

.article-content a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 0.15em;
  text-decoration-color: var(--gold);
  transition: color 0.3s ease;
}

.article-content a:hover {
  color: var(--gold-text);
}



/* Strip-band link styles */
.strip__item a {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-underline-offset: 0.2em;
  transition: color 0.2s ease-out, text-decoration-color 0.2s ease-out;
}

.strip__item a:hover,
.strip__item a:focus-visible {
  color: var(--gold-text);
}

/* Author bio box */
.author-box {
  display: flex;
  gap: var(--space-m);
  align-items: center;
  padding: var(--space-m) 0;
  border-top: 1px solid var(--gold-dim);
  max-width: var(--prose-width);
}

.author-box__photo {
  width: var(--space-l);
  height: var(--space-l);
  border-radius: 50%;
  object-fit: cover;
  object-position: center 15%;
  flex-shrink: 0;
}

.author-box__name {
  font-family: var(--font-signature);
  margin: 0;
}

.author-box__name a {
  color: var(--primary);
  text-decoration: none;
}

.author-box__name a:hover,
.author-box__name a:focus-visible {
  color: var(--gold-text);
}

.author-box .kicker {
  margin-bottom: 0;
  margin-top: calc(var(--space-s) * 0.2);
}

.author-box__bio {
  margin: calc(var(--space-s) * 0.3) 0 0;
}

.author-box__bio a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.3s ease;
}

.author-box__bio a:hover,
.author-box__bio a:focus-visible {
  color: var(--gold-text);
}

/* Related articles — bento grid (uses shared .bento-card) */
.related-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(0.75rem, 1.5vw, 1rem);
}

.related-grid .list-item {
  min-height: 260px;
}

.related-grid .list-item:first-child {
  grid-row: 1 / 3;
}

/* Category filter bar */
.filter-bar {
  display: flex;
  gap: var(--space-s);
  flex-wrap: wrap;
  padding: var(--space-s) 0;
  margin-bottom: var(--space-m);
}

.filter-bar button {
  font-family: var(--font-body);
  font-size: var(--step--2);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text);
  padding: calc(var(--space-s) * 0.4) var(--space-s);
  border: 1px solid transparent;
  background: none;
  cursor: pointer;
  transition: color 0.3s ease, border-color 0.3s ease;
}

.filter-bar button:hover {
  color: var(--primary);
}

.filter-bar button.is-active {
  color: var(--primary);
  border-color: rgba(var(--primary-rgb), 0.2);
}

/* Filter animation */
.article-list .list-item {
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
}

.article-list .list-item.is-hidden {
  display: none;
}

/* ═══════════════════════════════════════════
   BENTO CARD — shared image-background treatment
   ═══════════════════════════════════════════ */
.bento-card {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  border: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  transition: transform 0.3s ease;
}

.bento-card:hover {
  transform: scale(1.02);
}

.bento-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
  margin: 0;
  z-index: 0;
}

.bento-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.5) 40%, rgba(0,0,0,0.15) 100%);
  z-index: 1;
}

.bento-card .kicker,
.bento-card .list-item__meta {
  position: relative;
  z-index: 2;
  color: var(--gold);
  font-size: var(--step--2);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: calc(var(--space-s) * 0.25);
  padding: 0 clamp(1rem, 2vw, 1.5rem);
  text-shadow: 0 0 20px rgba(213, 177, 57, 0.6), 0 2px 8px rgba(0, 0, 0, 0.9);
}

.bento-card .list-item__title {
  position: relative;
  z-index: 2;
  color: var(--cream-90);
  padding: 0 clamp(1rem, 2vw, 1.5rem) clamp(1rem, 2vw, 1.5rem);
  margin-bottom: 0;
  line-height: 1.3;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.8), 0 1px 4px rgba(0, 0, 0, 0.6);
}

.bento-card .list-item__desc {
  display: none;
}

/* Article listing — typography-led grid */
.article-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-l) var(--space-m);
}

.article-list .list-item {
  display: flex;
  flex-direction: column;
  gap: calc(var(--space-s) * 0.6);
  padding: 0;
  border: none;
  text-decoration: none;
  color: inherit;
}

.article-list .list-item .img-wrap {
  overflow: hidden;
  border-radius: 4px;
  margin-bottom: calc(var(--space-s) * 0.4);
}

.article-list .list-item img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  transition: transform 3s ease-out;
}

.article-list .list-item:hover img {
  transform: scale(1.12) translate(-1%, -1%);
}

.article-list .list-item .kicker {
  margin-bottom: 0;
}

.article-list .list-item__title {
  font-size: var(--step-1);
  line-height: 1.25;
  margin: 0;
  transition: color 0.3s ease;
}

.article-list .list-item:hover .list-item__title {
  color: var(--gold-text);
}

.article-list .list-item__desc {
  font-size: var(--step--1);
  line-height: 1.6;
  color: var(--text);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-list .list-item__meta {
  font-size: var(--step--2);
  letter-spacing: 0.04em;
  color: var(--text-faint);
  margin-top: auto;
  padding-top: calc(var(--space-s) * 0.4);
  border-top: 1px solid var(--gold-dim);
}

/* Pagination */
.nav-links {
  display: flex;
  justify-content: center;
  gap: var(--space-s);
  padding: var(--space-l) 0;
}

.nav-links a,
.nav-links span {
  font-size: var(--step--2);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--text);
  padding: calc(var(--space-s) * 0.4) var(--space-s);
  border: 1px solid var(--border);
  transition: color 0.3s ease, border-color 0.3s ease;
}

.nav-links a:hover {
  color: var(--primary);
  border-color: var(--gold);
}

.nav-links .current {
  color: var(--primary);
  border-color: var(--primary);
}
