/* =========================================================
   News / Insights — index (/news/), archives, single article
   - editorial hero + category chips
   - featured hero card + responsive masonry-ish grid
   - article reading layout (hero, prose, share, related)
   ========================================================= */

/* ----- News index hero ----- */
.news-hero {
  position: relative;
  overflow: hidden;
  padding: calc(var(--header-h) + 72px) 0 clamp(32px, 5vw, 56px);
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-soft) 100%);
  border-bottom: 1px solid var(--line);
}
.news-hero__bg {
  position: absolute; inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.news-hero__bg-img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
/* Strong cream wash so any warm-toned stock photo blends into the page
   palette and the dark headline stays readable on top of it. */
.news-hero__shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(243, 236, 225, 0.94) 0%, rgba(243, 236, 225, 0.7) 48%, rgba(243, 236, 225, 0.4) 100%),
    linear-gradient(180deg, rgba(243, 236, 225, 0.2) 0%, rgba(233, 223, 206, 0.75) 100%);
  pointer-events: none;
}
.news-hero > .container { position: relative; z-index: 2; }
.news-hero--archive {
  padding-bottom: clamp(28px, 4vw, 44px);
}
.news-hero__title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2.4rem, 5.4vw, 4.6rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 12px 0 0;
  max-width: 20ch;
}
.news-hero__lede {
  font-size: clamp(1rem, 1.2vw, 1.18rem);
  line-height: 1.65;
  color: var(--ink-soft);
  max-width: 680px;
  margin: 22px 0 0;
}

/* ----- Category filter chips ----- */
.news-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 32px;
}
.news-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--ink);
  cursor: none;
  transition: background-color .25s ease, color .25s ease, border-color .25s ease;
}
.news-chip:hover { border-color: var(--ink); color: var(--ink); }
.news-chip.is-active {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}
.news-chip__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 18px;
  padding: 0 6px;
  font-size: 10px;
  font-weight: 600;
  color: var(--muted);
  background: rgba(21, 17, 15, 0.06);
  border-radius: 999px;
}

/* ----- Grid ----- */
.news-list-section {
  padding: clamp(48px, 7vw, 90px) 0;
  background: var(--bg);
}
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: clamp(18px, 2vw, 26px);
}

/* ----- Card ----- */
.news-card {
  position: relative;
}
.news-card__link {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  color: inherit;
  transition: transform .5s cubic-bezier(.2,.8,.2,1), box-shadow .5s ease, border-color .3s ease;
}
.news-card__link:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
  color: inherit;
}
.news-card__media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--bg-soft);
}
.news-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .8s cubic-bezier(.2,.8,.2,1);
}
.news-card__link:hover .news-card__img { transform: scale(1.05); }
.news-card__img--placeholder {
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 30% 30%, var(--accent-soft) 0%, transparent 60%),
    linear-gradient(135deg, var(--bg-soft) 0%, var(--bg) 100%);
}
.news-card__img--placeholder span {
  font-family: var(--serif);
  font-size: 1.1rem;
  letter-spacing: 0.04em;
  color: var(--muted);
  opacity: 0.7;
}
.news-card__cat {
  position: absolute;
  top: 16px; left: 16px;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
}
.news-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: clamp(16px, 1.5vw, 22px);
}
.news-card__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--muted);
  margin-bottom: 10px;
}
.news-card__title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.05rem, 1.3vw, 1.25rem);
  line-height: 1.22;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0 0 8px;
}
.news-card__excerpt {
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--ink-soft);
  margin: 0 0 16px;
}
.news-card__more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}
.news-card__more svg { transition: transform .3s ease; }
.news-card__link:hover .news-card__more svg { transform: translateX(4px); }

/* ----- Featured (first) card spans full width, side-by-side ----- */
.news-card--featured {
  grid-column: 1 / -1;
}
.news-card--featured .news-card__link {
  flex-direction: row;
}
.news-card--featured .news-card__media {
  flex: 1 1 56%;
  aspect-ratio: 16 / 10;
  min-height: 0;
  max-height: 360px;
}
.news-card--featured .news-card__body {
  flex: 1 1 44%;
  justify-content: center;
  padding: clamp(24px, 3vw, 44px);
}
.news-card--featured .news-card__title {
  font-size: clamp(1.5rem, 2.2vw, 2.1rem);
}
.news-card--featured .news-card__excerpt {
  font-size: 1rem;
}
.news-card--featured .news-card__media::after {
  content: "Featured";
  position: absolute;
  top: 16px; right: 16px;
  padding: 6px 14px;
  background: var(--ink);
  color: #fff;
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

/* ----- Pagination ----- */
.news-pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: clamp(40px, 5vw, 64px);
}
.news-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  transition: background-color .25s ease, color .25s ease, border-color .25s ease;
}
.news-pagination .page-numbers:hover { border-color: var(--ink); }
.news-pagination .page-numbers.current {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}
.news-pagination .page-numbers.dots { border-color: transparent; }

/* ----- Empty state ----- */
.news-empty {
  text-align: center;
  padding: clamp(60px, 10vw, 120px) 20px;
}
.news-empty h2 {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  color: var(--ink);
  margin: 0 0 12px;
}
.news-empty p {
  color: var(--muted);
  max-width: 460px;
  margin: 0 auto 28px;
}

/* =========================================================
   Single article reading layout
   ========================================================= */
.article-hero {
  position: relative;
  overflow: hidden;
}
.article-hero--media {
  min-height: clamp(420px, 60vh, 640px);
  display: flex;
  align-items: flex-end;
  padding: calc(var(--header-h) + 40px) 0 clamp(40px, 6vw, 72px);
  color: #fff;
}
.article-hero--plain {
  padding: calc(var(--header-h) + 64px) 0 clamp(28px, 4vw, 48px);
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-soft) 100%);
  border-bottom: 1px solid var(--line);
}
.article-hero__bg {
  position: absolute; inset: 0;
  z-index: 0;
}
.article-hero__img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.article-hero__shade {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(21,17,15,0.15) 0%, rgba(21,17,15,0.35) 55%, rgba(21,17,15,0.82) 100%);
}
.article-hero > .container { position: relative; z-index: 2; }

.article-crumbs {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 20px;
  opacity: 0.9;
}
.article-hero--media .article-crumbs a:hover { color: var(--accent-soft); }
.article-hero__title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2.2rem, 5vw, 4.4rem);
  line-height: 1.06;
  letter-spacing: -0.02em;
  margin: 0;
  max-width: 22ch;
}
.article-hero--media .article-hero__title { color: #fff; }
.article-hero__meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
  font-family: var(--sans);
  font-size: 14px;
  letter-spacing: 0.02em;
}
.article-hero--media .article-hero__meta { color: rgba(255,255,255,0.85); }
.article-hero--plain .article-hero__meta { color: var(--muted); }
.article-hero__author {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
}
.article-hero__avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.6);
}
.article-hero--plain .article-hero__avatar { border-color: var(--line); }

/* ----- Prose column ----- */
.article-body {
  padding: clamp(48px, 7vw, 88px) 0;
  background: var(--bg);
}
.article-prose {
  max-width: 720px;
  margin: 0 auto;
  font-size: 1.12rem;
  line-height: 1.8;
  color: var(--ink-soft);
}
.article-prose > * { margin: 0 0 1.4em; }
.article-prose h2 {
  font-size: clamp(1.6rem, 2.6vw, 2.2rem);
  color: var(--ink);
  margin: 1.8em 0 0.6em;
}
.article-prose h3 {
  font-size: clamp(1.3rem, 2vw, 1.6rem);
  color: var(--ink);
  margin: 1.6em 0 0.5em;
}
.article-prose a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
.article-prose a:hover { color: var(--accent-hover); }
.article-prose img,
.article-prose .wp-block-image {
  border-radius: var(--radius);
  margin: 2em 0;
}
.article-prose img {
  display: block;
  max-width: 100%;
  height: auto;
}
.article-prose p:has(img) {
  display: grid;
  gap: 16px;
}
.article-prose p:has(img) img {
  margin: 0;
}
.article-prose blockquote {
  margin: 2em 0;
  padding: 8px 0 8px 28px;
  border-left: 3px solid var(--accent);
  font-family: var(--serif);
  font-size: 1.4rem;
  line-height: 1.5;
  color: var(--ink);
  font-style: normal;
}
.article-prose ul,
.article-prose ol { padding-left: 1.4em; }
.article-prose li { margin-bottom: 0.5em; }
.article-prose figcaption {
  font-size: 0.85rem;
  color: var(--muted);
  text-align: center;
  margin-top: 0.6em;
}
.article-pagelinks {
  margin-top: 2em;
  font-family: var(--sans);
  font-size: 14px;
  color: var(--muted);
}

/* ----- Tags + share ----- */
.article-tags {
  max-width: 720px;
  margin: 40px auto 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.article-tag {
  padding: 7px 14px;
  background: var(--bg-soft);
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
  transition: background-color .25s ease, color .25s ease;
}
.article-tag:hover { background: var(--ink); color: #fff; }

.article-share {
  max-width: 720px;
  margin: 32px auto 0;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 12px;
}
.article-share__label {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-right: 4px;
}
.article-share__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px; height: 42px;
  border: 1px solid var(--line);
  border-radius: 50%;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  text-transform: lowercase;
  color: var(--ink);
  transition: background-color .25s ease, color .25s ease, border-color .25s ease, transform .25s ease;
}
.article-share__btn:hover {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
  transform: translateY(-2px);
}

/* ----- Related ----- */
.article-related {
  padding: clamp(48px, 7vw, 88px) 0;
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
}
.article-related .section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: clamp(28px, 4vw, 48px);
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1100px) {
  .news-grid { grid-template-columns: repeat(2, 1fr); }
  .news-card--featured .news-card__media { min-height: 300px; }
}

@media (max-width: 720px) {
  .news-hero { padding: calc(var(--header-h) + 28px) 0 28px; }
  .news-hero__title { margin-top: 8px; max-width: none; }
  .news-hero__lede { margin-top: 16px; }
  .news-filters {
    margin-top: 22px;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 2px;
  }
  .news-filters::-webkit-scrollbar { display: none; }
  .news-chip { flex-shrink: 0; }

  /* Single-column grid; featured card stacks like a normal card */
  .news-grid { grid-template-columns: 1fr; gap: 18px; }
  .news-card--featured .news-card__link { flex-direction: column; }
  .news-card--featured .news-card__media {
    flex: none;
    aspect-ratio: 16 / 10;
    min-height: 0;
  }
  .news-card--featured .news-card__body { padding: 22px; }
  .news-card--featured .news-card__title { font-size: 1.5rem; }
  .news-card--featured .news-card__excerpt { font-size: 0.98rem; }

  /* Article */
  .article-hero--media { min-height: 360px; padding-top: calc(64px + 28px); }
  .article-prose { font-size: 1.05rem; }
  .article-prose blockquote { font-size: 1.2rem; }
  .article-related .section-head { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 420px) {
  .news-card__body { padding: 18px; }
}
