/* =========================================================
   OVERRIDES + CUSTOMIZATIONS
   Applied AFTER base.css. Tunes the design tokens to match
   Troy's editorial decisions (2026-05-23):
     - sharper logo (527x90 src, displayed crisp at hi-DPI)
     - bold scenic background on hero + magazine detail pages
     - clean magazine cover (no card decoration around the JPG)
     - slide-in animations on hero entrance
   ========================================================= */

/* =========================================================
   LOGO — image replaces text brand, displayed sharp
   ========================================================= */
.brand__logo {
  display: block;
  height: 38px;
  width: auto;
  max-width: 320px;
  /* source is 527x90 → display at 38px high = ~222px wide; downscaled = sharp on hi-DPI */
}
.brand__logo--footer {
  height: 44px;
  /* footer logo is white-on-dark — source `KlamathLiving_white_large.png` is already white. No filter needed. */
}
.brand__title,
.brand__sub {
  display: none !important; /* legacy text — fully replaced by logo image */
}

/* =========================================================
   HERO — bold scenic background, magazine cover floats clean
   =========================================================
   The hero now has a full-bleed scenic photo behind the cover
   thumbnail + headline + teaser. The cover image itself is
   shown clean (no border, no shadow card), just the magazine
   cover photograph as designed by BVM.
   ========================================================= */
.hero {
  position: relative;
  padding-block: 96px 96px;
  overflow: hidden;
  isolation: isolate;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    /* dim + warm-tone the photo so cream + gold pop on top */
    linear-gradient(135deg, rgba(19, 52, 60, 0.65) 0%, rgba(26, 24, 20, 0.55) 100%),
    url('/assets/img/hero/link-river-park.jpg') center / cover no-repeat;
  z-index: -1;
}
.hero__inner {
  position: relative;
  z-index: 1;
}
.hero__cover {
  /* portrait column for the magazine cover — bumped 2026-05-23 per Troy's feedback */
  max-width: 460px;
}
.hero__inner {
  grid-template-columns: minmax(320px, 460px) 1fr;
  gap: clamp(32px, 5vw, 72px);
}
@media (max-width: 880px) {
  .hero__inner {
    grid-template-columns: 1fr;
  }
  .hero__cover {
    max-width: 380px;
    margin: 0 auto;
  }
}
.hero__cover-link {
  display: block;
  text-decoration: none;
  animation: kl-slide-up 800ms cubic-bezier(0.2, 0.7, 0.2, 1) 200ms both;
}
.hero__cover-img {
  display: block;
  width: 100%;
  height: auto;
  border: none;
  border-radius: 0;
  box-shadow: 0 32px 64px -28px rgba(0, 0, 0, 0.55), 0 4px 12px rgba(0, 0, 0, 0.2);
  background: transparent;
  transition: transform 0.4s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.4s ease;
}
.hero__cover-link:hover .hero__cover-img {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 40px 72px -28px rgba(0, 0, 0, 0.65), 0 6px 16px rgba(0, 0, 0, 0.3);
}
.hero__copy {
  color: var(--white);
  animation: kl-slide-right 800ms cubic-bezier(0.2, 0.7, 0.2, 1) 350ms both;
}
.hero__title {
  color: var(--white);
}
.hero__byline {
  color: var(--gold-soft);
}
.hero__teaser {
  color: rgba(251, 247, 238, 0.92);
}
.hero__eyebrow .eyebrow {
  color: var(--gold-soft);
}
.hero__eyebrow .dot {
  background: var(--gold-soft);
}
.hero .btn {
  background: var(--gold);
  color: var(--ink);
}
.hero .btn:hover {
  background: var(--gold-soft);
}

@keyframes kl-slide-up {
  from { opacity: 0; transform: translateY(48px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes kl-slide-right {
  from { opacity: 0; transform: translateX(-48px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes kl-fade {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .hero__cover-link,
  .hero__copy {
    animation: none;
  }
}

/* =========================================================
   ARCHIVE GRID — clean cover images, no faux background
   ========================================================= */
.archive-grid .issue {
  background: transparent;
  border: none;
}
.archive-grid .issue__cover {
  background: transparent;
  background-image: none;
  padding: 0;
  border: none;
  border-radius: 0;
  overflow: visible;
  aspect-ratio: 3 / 4;
  display: block;
  position: relative;
  box-shadow: 0 18px 36px -20px rgba(0, 0, 0, 0.35);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.archive-grid .issue__cover::before,
.archive-grid .issue__cover::after {
  display: none !important;
}
.archive-grid .issue__cover .issue__masthead,
.archive-grid .issue__cover .issue__date,
.archive-grid .issue__cover .issue__art,
.archive-grid .issue__cover .issue__story {
  display: none;
}
.archive-grid .issue__cover-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  background: var(--paper-deep);
  border-radius: 0;
}
.archive-grid .issue__meta {
  margin-top: 14px;
  padding: 0 4px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  font-family: var(--font-sans);
  font-size: var(--fs-meta);
  color: var(--ink-soft);
}
.archive-grid .issue__meta strong {
  color: var(--ink);
  font-weight: 600;
}
.archive-grid .issue:hover .issue__cover {
  transform: translateY(-6px);
  box-shadow: 0 28px 48px -20px rgba(0, 0, 0, 0.45);
}

/* TOC card mini-cover — also clean */
.toc-card__cover-img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border: none;
  border-radius: 0;
  box-shadow: 0 18px 36px -20px rgba(0, 0, 0, 0.4);
  background: var(--paper-deep);
}

/* =========================================================
   MAGAZINE DETAIL PAGE — scenic background behind whole page
   ========================================================= */
body.is-magazine-detail {
  background:
    /* dim overlay so cream content panel reads on top */
    linear-gradient(180deg, rgba(244, 236, 220, 0.7) 0%, rgba(244, 236, 220, 0.95) 60%),
    url('/assets/img/hero/link-river-park.jpg') center top / cover no-repeat fixed;
}
body.is-magazine-detail .hero::before {
  background:
    linear-gradient(135deg, rgba(19, 52, 60, 0.78) 0%, rgba(26, 24, 20, 0.66) 100%),
    url('/assets/img/hero/link-river-park.jpg') center / cover no-repeat;
}
body.is-magazine-detail .section {
  background: rgba(244, 236, 220, 0.96);
  backdrop-filter: blur(6px);
}

/* =========================================================
   ToC tag visual hierarchy — "Read on Web" (gold) vs "Coming to Web" (muted gold) vs "In Print" (paper edge)
   ========================================================= */
.toc-item__tag--web {
  background: var(--gold-soft);
  color: var(--ink);
  font-weight: 600;
}
/* "Coming to Web" — same shape as "Read on Web" but visually quieter (no link yet) */
.toc-item:not(:has(a)) .toc-item__tag--web {
  background: transparent;
  color: var(--gold);
  border: 1px solid var(--gold-soft);
  font-weight: 500;
}

/* =========================================================
   NAV scaling — keep all 11 items on one line at common widths
   ========================================================= */
@media (max-width: 1440px) { .nav a { font-size: 0.85rem; padding-inline: 7px; } }
@media (max-width: 1280px) { .nav a { font-size: 0.8rem;  padding-inline: 5px; letter-spacing: 0; } }
