/* Category archive page — hero band, sticky subcat nav, per-subcategory sections,
   editor's pick overlay, pull quote strip, more-from-category grid. */

/* ---------- HERO BAND ---------- */
.cat-hero {
  background: var(--green-700);
  color: #F6F1E8;
  padding: clamp(36px, 4.4vw, 72px) 0 clamp(32px, 3.6vw, 56px);
  position: relative;
  overflow: hidden;
}
.cat-hero::before {
  content: "";
  position: absolute; right: -120px; top: -80px;
  width: 520px; height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(212, 238, 218, .18), transparent 60%);
  pointer-events: none;
}
.cat-hero .container { position: relative; z-index: 2; }
.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(246, 241, 232, .75);
  margin-bottom: 22px;
  flex-wrap: wrap;
}
.breadcrumbs a { color: inherit; }
.breadcrumbs a:hover { color: #fff; }
.breadcrumbs .wc-icon { width: 12px; height: 12px; opacity: .6; }

.cat-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 96px);
  align-items: end;
}
.cat-hero h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(48px, 6vw, 104px);
  line-height: .95;
  letter-spacing: -.02em;
  margin: 0 0 14px;
  color: #F6F1E8;
  text-wrap: balance;
}
.cat-hero h1 em {
  font-style: italic;
  color: var(--green-100);
}
.cat-hero .dek {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(17px, 1.2vw, 21px);
  line-height: 1.4;
  color: rgba(246, 241, 232, .85);
  max-width: 52ch;
  margin: 0;
}
.cat-hero .meta {
  display: flex;
  gap: 28px;
  align-items: flex-end;
  justify-content: flex-end;
  flex-wrap: wrap;
  color: rgba(246, 241, 232, .85);
  font-size: 13px;
}
.cat-hero .meta .stat { text-align: right; }
.cat-hero .meta .n {
  font-family: var(--serif);
  font-size: 48px;
  color: #F6F1E8;
  line-height: 1;
  display: block;
  margin-bottom: 4px;
  letter-spacing: -.01em;
}
.cat-hero .meta .lbl {
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  opacity: .7;
}

/* ---------- STICKY SUBCAT NAV ---------- */
.subnav {
  position: sticky;
  top: 0;
  z-index: 18;
  background: var(--cream);
  border-bottom: 1px solid var(--rule);
  transition: box-shadow .3s var(--ease);
}
.subnav.is-stuck {
  box-shadow: 0 1px 0 var(--rule), 0 8px 20px -18px rgba(0, 0, 0, .12);
}
.subnav-inner {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 13px 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.subnav-inner::-webkit-scrollbar { display: none; }
.subnav .lbl {
  font-family: var(--serif);
  font-style: italic;
  color: var(--muted);
  margin-right: 18px;
  font-size: 15px;
  white-space: nowrap;
}
.subnav a {
  white-space: nowrap;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 13px;
  color: var(--ink-2);
  font-weight: 500;
  transition: background .2s var(--ease), color .2s var(--ease);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.subnav a .dot {
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--rule);
  transition: background .2s;
}
.subnav a:hover {
  background: var(--cream-2);
  color: var(--ink);
}
.subnav a.active {
  background: var(--ink);
  color: var(--cream);
}
.subnav a.active .dot { background: var(--green-500); }

/* ---------- SUBCAT SECTION ---------- */
.subsec {
  padding: clamp(56px, 6vw, 104px) 0 clamp(24px, 3vw, 48px);
}
.subsec + .subsec { border-top: 1px solid var(--rule); }
.subsec-head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 26px;
  margin-bottom: clamp(28px, 3vw, 48px);
}
.subsec-divider {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--green-700);
}
.subsec-divider .icon-circle {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--green-100);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.subsec-divider .icon-circle .wc-icon {
  width: 22px; height: 22px;
  color: var(--green-700);
}
.subsec-divider .num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 32px;
  color: var(--muted);
  line-height: 1;
}
.subsec-head h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(32px, 3.6vw, 56px);
  line-height: 1.02;
  letter-spacing: -.02em;
  margin: 0;
  text-wrap: balance;
}
.subsec-head h2 em {
  font-style: italic;
  color: var(--green-700);
}
.subsec-head .deck {
  font-family: var(--serif);
  font-style: italic;
  color: var(--muted);
  text-align: right;
  max-width: 36ch;
  font-size: 17px;
  line-height: 1.4;
}
.subsec-head .all-link {
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 3px;
  transition: color .2s var(--ease), border-color .2s var(--ease);
}
.subsec-head .all-link:hover {
  color: var(--pink);
  border-color: var(--pink);
}
.subsec-head .all-link .wc-icon { width: 13px; height: 13px; }

.subsec-body {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: clamp(28px, 3.2vw, 56px);
}

.sub-featured {
  display: flex;
  flex-direction: column;
}
.sub-featured .ph {
  aspect-ratio: 4/3;
  background: var(--stone);
  overflow: hidden;
  margin-bottom: 20px;
}
.sub-featured .ph img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1s var(--ease);
}
.sub-featured:hover .ph img { transform: scale(1.04); }
.sub-featured .kicker { margin-bottom: 12px; }
.sub-featured h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(26px, 2.4vw, 38px);
  line-height: 1.08;
  letter-spacing: -.015em;
  margin: 0 0 14px;
  text-wrap: balance;
  transition: color .2s var(--ease);
}
.sub-featured:hover h3 { color: var(--green-700); }
.sub-featured p {
  color: var(--ink-2);
  margin: 0 0 16px;
  max-width: 56ch;
}

.sub-support {
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.sup-card {
  display: grid;
  grid-template-columns: 1fr 140px;
  gap: 20px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--rule);
  transition: transform .4s var(--ease);
}
.sup-card:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}
.sup-card:hover { transform: translateY(-2px); }
.sup-card .ph {
  aspect-ratio: 1/1;
  background: var(--stone);
  overflow: hidden;
  order: 2;
}
.sup-card .ph img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1s var(--ease);
}
.sup-card:hover .ph img { transform: scale(1.05); }
.sup-card .kicker {
  display: block;
  margin-bottom: 8px;
}
.sup-card h4 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 20px;
  line-height: 1.15;
  letter-spacing: -.01em;
  margin: 0 0 10px;
  text-wrap: balance;
  transition: color .2s var(--ease);
}
.sup-card:hover h4 { color: var(--green-700); }

/* ---------- EDITOR'S PICK (overlaid) ---------- */
.editors-pick {
  padding: clamp(48px, 5vw, 88px) 0;
  border-top: 1px solid var(--rule);
}
.ep-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 24/11;
  overflow: hidden;
  background: #4a5a48;
  display: block;
}
.ep-frame img {
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform 1.4s var(--ease);
  filter: saturate(1.04);
  position: absolute;
  inset: 0;
}
.ep-frame:hover img { transform: scale(1.06); }
.ep-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 60, 33, 0) 0%, rgba(15, 60, 33, .15) 40%, rgba(15, 60, 33, .75) 100%);
  pointer-events: none;
}
.ep-text {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: clamp(28px, 4vw, 64px);
  color: #F6F1E8;
  z-index: 2;
}
.ep-text .tag {
  display: inline-block;
  padding: 5px 12px;
  background: var(--pink);
  color: #fff;
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  font-weight: 500;
  margin-bottom: 18px;
}
.ep-text h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(32px, 4.2vw, 72px);
  line-height: .98;
  letter-spacing: -.02em;
  margin: 0 0 18px;
  max-width: 22ch;
  text-wrap: balance;
}
.ep-text h2 em {
  font-style: italic;
  color: var(--green-100);
}
.ep-text .row {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  color: rgba(246, 241, 232, .85);
  font-size: 14px;
}
.ep-text .row .sep {
  width: 3px; height: 3px;
  background: rgba(246, 241, 232, .5);
  border-radius: 50%;
}
.ep-text .read {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  background: #F6F1E8;
  color: var(--ink);
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
}
.ep-text .read .wc-icon {
  width: 14px; height: 14px;
  transition: transform .3s var(--ease);
}
.ep-text .read:hover .wc-icon { transform: translateX(4px); }

/* ---------- PULL QUOTE STRIP ---------- */
.pq-strip {
  background: var(--cream-2);
  padding: clamp(60px, 7vw, 120px) 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.pq-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 var(--gutter);
  text-align: center;
}
.pq-mark {
  font-family: var(--serif);
  font-style: italic;
  font-size: 96px;
  line-height: 1;
  color: var(--green-700);
  margin-bottom: 4px;
}
.pq-strip blockquote {
  font-family: var(--serif);
  font-weight: 400;
  font-style: italic;
  font-size: clamp(26px, 3vw, 44px);
  line-height: 1.18;
  letter-spacing: -.015em;
  margin: 0 0 28px;
  color: var(--ink);
  text-wrap: balance;
}
.pq-strip blockquote em {
  color: var(--green-700);
  font-style: italic;
}
.pq-cite {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: .06em;
}
.pq-cite .avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--stone);
  overflow: hidden;
}
.pq-cite .avatar img { width: 100%; height: 100%; object-fit: cover; }
.pq-cite strong {
  color: var(--ink);
  font-weight: 500;
  letter-spacing: .02em;
}
.pq-cite a {
  color: var(--green-700);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

/* ---------- MORE FROM CATEGORY ---------- */
.more {
  padding: clamp(56px, 6vw, 96px) 0;
}
.more-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: clamp(24px, 3vw, 40px);
  padding-bottom: 18px;
  border-bottom: 1px solid var(--ink);
}
.more-head h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(28px, 2.6vw, 42px);
  margin: 0;
  letter-spacing: -.015em;
}
.more-head h2 em {
  font-style: italic;
  color: var(--green-700);
}
.more-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(24px, 2.4vw, 40px);
}
.more-card {
  display: flex;
  flex-direction: column;
  transition: transform .4s var(--ease);
}
.more-card:hover { transform: translateY(-4px); }
.more-card .ph {
  aspect-ratio: 5/4;
  background: var(--stone);
  overflow: hidden;
  margin-bottom: 16px;
}
.more-card .ph img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1s var(--ease);
}
.more-card:hover .ph img { transform: scale(1.05); }
.more-card .kicker { margin-bottom: 10px; }
.more-card h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 20px;
  line-height: 1.14;
  letter-spacing: -.01em;
  margin: 0 0 10px;
  text-wrap: balance;
  transition: color .2s var(--ease);
}
.more-card:hover h3 { color: var(--green-700); }

.more-footer { text-align: center; padding: 40px 0 0; }
.more-footer .btn-outline {
  padding: 14px 28px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .02em;
  transition: all .2s var(--ease);
  display: inline-block;
}
.more-footer .btn-outline:hover {
  background: var(--ink);
  color: var(--cream);
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1200px) {
  .more-grid { grid-template-columns: repeat(3, 1fr); }
  .more-grid > *:nth-child(n+10) { display: none; }
  .subsec-head { grid-template-columns: auto 1fr; gap: 18px; }
  .subsec-head .deck { display: none; }
}
@media (max-width: 960px) {
  .cat-hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .cat-hero .meta { justify-content: flex-start; }
  .subsec-body { grid-template-columns: 1fr; }
  .subsec-head { grid-template-columns: 1fr; gap: 14px; }
  .subsec-head .all-link { justify-self: start; }
  .more-grid { grid-template-columns: repeat(2, 1fr); }
  .ep-text h2 { font-size: clamp(28px, 7vw, 48px); }
  .ep-text .read { margin-left: 0; margin-top: 16px; }
}
@media (max-width: 560px) {
  .sup-card { grid-template-columns: 1fr 100px; }
  .more-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
}
