/*
 * Session 31 Step 7 / Step 8 — Magazine homepage and article reader
 * cinematic refinements.
 *
 * Layered after /css/magazine.css. Additive: extends the existing magazine
 * shell with full-bleed featured hero, magazine-grade grid varied card sizes,
 * gold thin section dividers, more prominent contributor avatars, refined
 * Cormorant hierarchy, pull quote treatment with gold rules above and below,
 * reading progress bar, embedded photography that breathes, hotel-link
 * subtle treatment.
 */

/* -------------------------------------------------------------------------- */
/* Tokens (mirror base.css in case magazine.css redefines them)               */
/* -------------------------------------------------------------------------- */

.mz {
  --mz-gold: #C4A052;
  --mz-gold-pale: #E5D4A0;
  --mz-rule: rgba(196, 160, 82, 0.25);
}

/* -------------------------------------------------------------------------- */
/* Magazine homepage — refined featured hero                                  */
/* -------------------------------------------------------------------------- */

.mz-home-featured {
  position: relative;
  min-height: 75vh;
  margin-bottom: 5rem;
  overflow: hidden;
}

.mz-home-featured__photo {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: brightness(0.65);
}

.mz-home-featured__veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8,10,13,0) 35%, rgba(8,10,13,0.85) 100%);
}

.mz-home-featured__inner {
  position: relative;
  z-index: 2;
  padding: 8rem 2rem 4rem;
  max-width: 1100px;
}

.mz-home-featured__category {
  font-family: 'Jost', sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--mz-gold-pale);
  margin-bottom: 1.5rem;
}

.mz-home-featured__title {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400;
  font-size: clamp(2.5rem, 5.5vw, 4.5rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: #FAF8F5;
  margin-bottom: 1.5rem;
  max-width: 22ch;
}

.mz-home-featured__subtitle {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: clamp(1.25rem, 1.8vw, 1.625rem);
  line-height: 1.45;
  color: var(--mz-gold-pale);
  max-width: 48ch;
  margin-bottom: 2rem;
}

.mz-home-featured__byline {
  font-family: 'Jost', sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(245, 240, 232, 0.7);
}

/* Magazine homepage — varied card sizes for visual rhythm */

.mz-home-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 2.5rem;
  padding: 2rem;
  max-width: 1280px;
  margin: 0 auto;
}

.mz-home-grid > .mz-home-card.is-large { grid-column: span 4; }
.mz-home-grid > .mz-home-card.is-medium { grid-column: span 3; }
.mz-home-grid > .mz-home-card.is-small { grid-column: span 2; }

@media (max-width: 1100px) {
  .mz-home-grid { grid-template-columns: repeat(2, 1fr); }
  .mz-home-grid > .mz-home-card.is-large,
  .mz-home-grid > .mz-home-card.is-medium,
  .mz-home-grid > .mz-home-card.is-small { grid-column: span 2; }
}

@media (max-width: 600px) {
  .mz-home-grid { grid-template-columns: 1fr; }
  .mz-home-grid > .mz-home-card.is-large,
  .mz-home-grid > .mz-home-card.is-medium,
  .mz-home-grid > .mz-home-card.is-small { grid-column: span 1; }
}

.mz-home-card {
  display: block;
}

.mz-home-card .mz-home-card__photo {
  aspect-ratio: 4 / 5;
  margin-bottom: 1.5rem;
  background-size: cover;
  background-position: center;
}

.mz-home-card.is-large .mz-home-card__photo {
  aspect-ratio: 16 / 11;
}

.mz-home-card .mz-home-card__category {
  font-family: 'Jost', sans-serif;
  font-size: 0.65rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--mz-gold);
  margin-bottom: 0.75rem;
}

.mz-home-card .mz-home-card__title {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400;
  line-height: 1.15;
  color: #FAF8F5;
  margin-bottom: 0.5rem;
}

.mz-home-card.is-large .mz-home-card__title { font-size: clamp(2rem, 3vw, 2.75rem); }
.mz-home-card.is-medium .mz-home-card__title { font-size: clamp(1.5rem, 2vw, 2rem); }
.mz-home-card.is-small .mz-home-card__title { font-size: clamp(1.25rem, 1.5vw, 1.5rem); }

.mz-home-card .mz-home-card__subtitle {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  color: rgba(232, 224, 212, 0.7);
  line-height: 1.5;
}

.mz-home-card.is-large .mz-home-card__subtitle { font-size: 1.125rem; }

.mz-home-card .mz-home-card__byline {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1rem;
  font-family: 'Jost', sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(232, 224, 212, 0.55);
}

.mz-home-card .mz-home-card__avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-size: cover;
  background-position: center;
  background-color: #1B1509;
  border: 1px solid rgba(196, 160, 82, 0.25);
}

/* Section dividers across magazine homepage */

.mz-section-divider {
  max-width: 1280px;
  margin: 5rem auto;
  padding: 0 2rem;
}

.mz-section-divider hr {
  border: 0;
  border-top: 1px solid var(--mz-rule);
  margin: 0;
}

.mz-section-eyebrow {
  text-align: center;
  font-family: 'Jost', sans-serif;
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--mz-gold);
  margin: 4rem 0 2rem;
}

/* -------------------------------------------------------------------------- */
/* Article reader — refined hero + body                                       */
/* -------------------------------------------------------------------------- */

.mz-article-hero--cinematic {
  position: relative;
  min-height: 80vh;
  margin-bottom: 4rem;
  overflow: hidden;
}

.mz-article-hero--cinematic .mz-article-hero__photo {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: brightness(0.6);
}

.mz-article-hero--cinematic .mz-article-hero__veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8,10,13,0) 30%, rgba(8,10,13,0.85) 100%);
}

.mz-article-hero--cinematic .mz-article-hero__inner {
  position: relative;
  z-index: 2;
  padding: 9rem 2rem 4rem;
  max-width: 880px;
  margin: 0 auto;
  text-align: center;
}

.mz-article-hero--cinematic .mz-article-hero__category {
  font-family: 'Jost', sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--mz-gold-pale);
  margin-bottom: 2rem;
}

.mz-article-hero--cinematic .mz-article-hero__title {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400;
  font-size: clamp(2.5rem, 5.5vw, 4.5rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: #FAF8F5;
  margin-bottom: 1.5rem;
}

.mz-article-hero--cinematic .mz-article-hero__subtitle {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: clamp(1.25rem, 2vw, 1.625rem);
  line-height: 1.45;
  color: var(--mz-gold-pale);
  max-width: 36ch;
  margin: 0 auto 2.5rem;
}

.mz-article-hero--cinematic .mz-article-hero__byline {
  font-family: 'Jost', sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(245, 240, 232, 0.7);
}

/* Body — generous typography */

.mz-article-body {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 2rem;
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.125rem, 1.25vw, 1.25rem);
  line-height: 1.7;
  color: #E8E2D5;
}

.mz-article-body p {
  margin: 0 0 1.5em;
}

.mz-article-body p:first-of-type::first-letter {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400;
  font-size: 4.5em;
  line-height: 0.85;
  float: left;
  margin: 0.05em 0.12em 0 -0.04em;
  color: var(--mz-gold);
}

/* Pull quote with gold rule above and below */

.mz-article-body blockquote.is-pullquote,
.mz-block--pullquote {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.625rem, 2.5vw, 2.25rem);
  line-height: 1.4;
  text-align: center;
  color: #FAF8F5;
  max-width: 36ch;
  margin: 4rem auto;
  padding: 2.5rem 0;
  position: relative;
}

.mz-article-body blockquote.is-pullquote::before,
.mz-article-body blockquote.is-pullquote::after,
.mz-block--pullquote::before,
.mz-block--pullquote::after {
  content: '';
  display: block;
  width: 64px;
  height: 1px;
  background: var(--mz-gold);
  margin: 0 auto;
  opacity: 0.65;
}

.mz-article-body blockquote.is-pullquote::before,
.mz-block--pullquote::before { margin-bottom: 2rem; }

.mz-article-body blockquote.is-pullquote::after,
.mz-block--pullquote::after { margin-top: 2rem; }

/* Embedded photography — full-bleed within reading width, breathes */

.mz-article-body figure,
.mz-block--photo {
  margin: 4rem -2rem;
  text-align: center;
}

.mz-article-body figure img,
.mz-block--photo img {
  width: 100%;
  height: auto;
}

.mz-article-body figure figcaption,
.mz-block--photo .mz-photo-caption {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: rgba(232, 224, 212, 0.55);
  margin-top: 0.875rem;
  padding: 0 2rem;
}

/* Hotel hyperlink within article body — subtle but clear */

.mz-article-body a.hotel-link,
.mz-article-body a[data-hotel-link] {
  font-weight: 500;
  color: inherit;
  border-bottom: 1px solid var(--mz-gold);
  padding-bottom: 1px;
  transition: color 200ms ease, background 200ms ease;
}

.mz-article-body a.hotel-link:hover,
.mz-article-body a[data-hotel-link]:hover {
  color: var(--mz-gold);
  background: rgba(196, 160, 82, 0.08);
}

/* Author bio at end of article */

.mz-article-author-bio {
  max-width: 720px;
  margin: 5rem auto 0;
  padding: 3rem 2rem;
  border-top: 1px solid var(--mz-rule);
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 1.5rem;
  align-items: start;
}

.mz-article-author-bio__avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background-size: cover;
  background-position: center;
  background-color: #1B1509;
  border: 1px solid var(--mz-rule);
}

.mz-article-author-bio__name {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
  font-size: 1.5rem;
  color: #FAF8F5;
  margin-bottom: 0.5rem;
}

.mz-article-author-bio__bio {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: #B0AEAB;
}

@media (max-width: 600px) {
  .mz-article-author-bio { grid-template-columns: 1fr; text-align: center; }
  .mz-article-author-bio__avatar { margin: 0 auto; }
}

/* Related articles surfaced editorially */

.mz-related-articles {
  max-width: 1280px;
  margin: 5rem auto;
  padding: 0 2rem;
}

.mz-related-articles__heading {
  font-family: 'Jost', sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--mz-gold);
  margin-bottom: 2rem;
  text-align: center;
}

.mz-related-articles__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}

@media (max-width: 900px) {
  .mz-related-articles__grid { grid-template-columns: 1fr; }
}

/* Reading progress bar (article reader only) — gold thin (3px) at top */

.mz-reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: transparent;
  z-index: 100;
  pointer-events: none;
}

.mz-reading-progress__bar {
  height: 100%;
  background: linear-gradient(90deg, #8A7038 0%, #C4A052 50%, #E5D4A0 100%);
  transform: scaleX(0);
  transform-origin: left center;
}

/* -------------------------------------------------------------------------- */
/* Reduced motion                                                             */
/* -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  .mz-home-featured__photo,
  .mz-article-hero--cinematic .mz-article-hero__photo {
    animation: none !important;
  }
}
