.page-main {
  background: var(--paper);
}

.page-header {
  position: relative;
  min-height: 330px;
  display: grid;
  align-items: center;
  padding: 72px 7vw 58px;
  overflow: hidden;
  border-bottom: 1px solid rgba(32, 56, 47, 0.12);
}

.page-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(90deg, rgba(251, 248, 239, 0.98) 0%, rgba(251, 248, 239, 0.88) 38%, rgba(251, 248, 239, 0.28) 70%),
    var(--page-hero-image, url("assets/hero-mountains.png")) center / cover no-repeat;
}

.page-header > * {
  position: relative;
  z-index: 1;
}

.breadcrumb {
  margin: 0 0 22px;
  color: #8c6a36;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.page-title {
  max-width: 820px;
  margin-bottom: 22px;
  font-size: clamp(3.2rem, 6vw, 6.7rem);
}

.page-copy {
  max-width: 620px;
  margin: 0;
  color: #263c34;
  font-size: 1.06rem;
}

.page-shell {
  padding: 28px 7vw 64px;
}

.toolbar {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr) auto;
  gap: 16px;
  align-items: center;
  margin-top: -62px;
  margin-bottom: 28px;
  padding: 18px 20px;
  background: rgba(251, 248, 239, 0.96);
  border: 1px solid rgba(32, 56, 47, 0.13);
  border-radius: 7px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.field,
.search-field {
  min-height: 48px;
  width: 100%;
  padding: 0 16px;
  color: #1f352d;
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(32, 56, 47, 0.15);
  border-radius: 5px;
  font: inherit;
  font-size: 0.9rem;
}

.search-field {
  padding-left: 44px;
  background-image: radial-gradient(circle at 20px 50%, transparent 0 6px, #1f352d 7px 8px, transparent 9px);
}

.page-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 28px;
}

.page-layout.research-layout {
  grid-template-columns: 270px minmax(0, 1fr);
}

.page-layout.no-sidebar {
  grid-template-columns: 1fr;
}

.content-stack {
  display: grid;
  gap: 30px;
  min-width: 0;
}

.panel {
  background: rgba(255, 255, 255, 0.48);
  border: 1px solid rgba(32, 56, 47, 0.12);
  border-radius: 8px;
}

.featured {
  display: grid;
  grid-template-columns: 260px 1fr minmax(260px, 0.7fr);
  gap: 34px;
  align-items: center;
  padding: 28px;
}

.feature-image,
.card-image,
.wide-tile,
.mini-image {
  background: var(--img) center / cover no-repeat;
}

.feature-image {
  min-height: 280px;
  border-radius: 5px;
  box-shadow: 0 18px 36px rgba(16, 35, 29, 0.18);
}

.feature-kicker,
.card-kicker {
  color: #8c6a36;
  font-size: 0.74rem;
  font-weight: 850;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.featured h2,
.section-block h2,
.side-panel h3 {
  margin: 8px 0 12px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1.08;
}

.feature-meta,
.card-meta,
.mini-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  color: #45584f;
  font-size: 0.86rem;
}

.summary-box {
  padding: 28px;
  background: linear-gradient(135deg, rgba(246, 240, 228, 0.95), rgba(255, 255, 255, 0.45));
  border: 1px solid rgba(32, 56, 47, 0.12);
  border-radius: 7px;
}

.summary-box h3 {
  margin: 0 0 12px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.8rem;
}

.metric-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  color: #fff8e9;
  background: linear-gradient(90deg, #0b241c, #14372d);
  border-radius: 8px;
  overflow: hidden;
}

.metric-strip article {
  min-height: 112px;
  display: grid;
  place-items: center;
  padding: 22px;
  text-align: center;
  border-right: 1px solid rgba(196, 155, 85, 0.35);
}

.metric-strip article:last-child {
  border-right: 0;
}

.metric-strip strong {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 2.7rem;
  font-weight: 600;
}

.section-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: end;
  margin-bottom: 16px;
}

.section-head h2 {
  margin: 0;
  font-size: clamp(2rem, 3vw, 2.7rem);
}

.section-link {
  color: #8c6a36;
  font-weight: 750;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.card-grid.six {
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.content-card {
  min-width: 0;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid rgba(32, 56, 47, 0.13);
  border-radius: 8px;
  box-shadow: 0 16px 34px rgba(16, 35, 29, 0.06);
}

.card-image {
  height: 150px;
}

.card-body {
  padding: 18px;
}

.content-card h3 {
  margin: 8px 0 9px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.6rem;
  line-height: 1.1;
}

a.content-card {
  color: inherit;
}

.content-card p,
.summary-box p,
.side-panel p {
  color: #3c5148;
  font-size: 0.92rem;
}

.side-panel {
  display: grid;
  gap: 22px;
  align-content: start;
}

.side-card {
  padding: 26px;
  background: rgba(255, 255, 255, 0.52);
  border: 1px solid rgba(32, 56, 47, 0.12);
  border-radius: 8px;
}

.topic-list {
  display: grid;
  gap: 11px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.topic-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.92rem;
}

.category-nav {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  margin-top: -42px;
  margin-bottom: 28px;
  background: rgba(251, 248, 239, 0.96);
  border: 1px solid rgba(32, 56, 47, 0.13);
  border-radius: 7px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.category-nav button {
  min-height: 84px;
  padding: 12px;
  color: #2b4038;
  background: transparent;
  border: 0;
  border-right: 1px solid rgba(32, 56, 47, 0.12);
  cursor: pointer;
  font: inherit;
}

.category-nav button:last-child {
  border-right: 0;
}

.category-nav .active {
  color: #fff8e9;
  background: linear-gradient(135deg, #0d271f, #14372d);
}

.book-cover {
  display: grid;
  height: 230px;
  place-items: center;
  padding: 24px;
  color: #f4dfad;
  background: linear-gradient(145deg, #153d32, #0e241d);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 2rem;
  line-height: 1.05;
  text-align: center;
}

.book-cover.photo {
  background: linear-gradient(180deg, rgba(13, 39, 31, 0.1), rgba(13, 39, 31, 0.35)), var(--img) center / cover no-repeat;
}

.book-cover.cover-contain {
  min-height: 330px;
  background:
    linear-gradient(180deg, rgba(13, 39, 31, 0.03), rgba(13, 39, 31, 0.12)),
    var(--img) center / contain no-repeat,
    #f6f1e7;
}

a.book-cover {
  color: inherit;
}

.publication-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  margin-top: 16px;
}

.section-link.muted {
  color: #6f7d76;
}

.unavailable-cover {
  opacity: 0.86;
}

.approach-grid,
.mini-columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.wide-tile {
  min-height: 190px;
  padding: 28px;
  display: grid;
  align-content: end;
  color: #fff8e9;
  border-radius: 8px;
  overflow: hidden;
  background-blend-mode: multiply;
  background-color: rgba(10, 32, 25, 0.42);
}

.issue-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
}

.issue-card,
.mini-row {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 16px;
  align-items: center;
}

.issue-thumb,
.mini-image {
  height: 120px;
  border-radius: 5px;
  box-shadow: 0 12px 26px rgba(16, 35, 29, 0.12);
}

.issue-thumb {
  background: var(--img) center / cover no-repeat;
}

.issue-thumb.cover-contain {
  background-size: contain;
  background-color: #f6f1e7;
}

.mini-list {
  display: grid;
  gap: 16px;
}

.newsletter-card {
  display: grid;
  grid-template-columns: auto 1fr minmax(300px, 0.8fr);
  gap: 28px;
  align-items: center;
  padding: 34px;
  color: #fff8e9;
  background: linear-gradient(90deg, #0b241c, #14372d);
  border-radius: 8px;
}

.newsletter-card input {
  width: 100%;
  min-height: 48px;
  padding: 0 16px;
  color: #fff8e9;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(196, 155, 85, 0.55);
  border-radius: 5px 0 0 5px;
  font: inherit;
}

.newsletter-card form {
  display: grid;
  grid-template-columns: 1fr auto;
}

.newsletter-card button {
  border-radius: 0 5px 5px 0;
  color: #0b241c;
  background: var(--gold);
}

.quote-footer {
  display: grid;
  grid-template-columns: auto minmax(220px, 1fr) auto auto;
  gap: 28px;
  align-items: center;
  padding: 32px 7vw;
  color: #fff8e9;
  background: linear-gradient(90deg, #0b241c, #14372d);
}

.quote-footer img {
  width: 82px;
  filter: invert(1) sepia(1) saturate(0.35) hue-rotate(350deg) brightness(1.18);
}

.quote-footer blockquote {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.5rem;
  text-align: center;
}

.footer-contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  justify-content: flex-end;
  font-size: 0.92rem;
}

.footer-contact-links a {
  color: #fff7e8;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 247, 232, 0.45);
}

.footer-contact-links a:hover {
  color: #d5a94f;
  border-color: #d5a94f;
}

.active-link {
  color: var(--gold);
}

@media (max-width: 1200px) {
  .toolbar,
  .featured,
  .page-layout,
  .page-layout.research-layout,
  .newsletter-card,
  .quote-footer {
    grid-template-columns: 1fr;
  }

  .card-grid,
  .card-grid.six,
  .issue-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-contact-links {
    justify-content: center;
  }

  .category-nav {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 700px) {
  .page-header,
  .page-shell {
    padding-inline: 22px;
  }

  .page-title {
    font-size: clamp(2.7rem, 13vw, 4rem);
  }

  .toolbar,
  .category-nav {
    margin-top: -28px;
  }

  .card-grid,
  .card-grid.six,
  .metric-strip,
  .approach-grid,
  .mini-columns,
  .issue-row,
  .category-nav {
    grid-template-columns: 1fr;
  }

  .page-layout > *,
  .featured {
    min-width: 0;
  }

  .featured {
    grid-template-columns: 1fr !important;
  }

  .tabs {
    max-width: 100%;
    overflow-x: auto;
  }

  .metric-strip article {
    border-right: 0;
    border-bottom: 1px solid rgba(196, 155, 85, 0.35);
  }

  .metric-strip article:last-child {
    border-bottom: 0;
  }

  .newsletter-card form {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .newsletter-card input,
  .newsletter-card button {
    border-radius: 5px;
  }
}
