/**
 * Theme-specific page composition V1
 * Hooks: .theme-comp--{surface}--{detail} on shells; body.theme-pack--* from public layout.
 * Structural/layout deltas only — tokens stay in theme pack blocks in app.css.
 */

/* -------------------------------------------------------------------------- */
/* Editorial default — light touch (balanced baseline)                       */
/* -------------------------------------------------------------------------- */

body.theme-pack--editorial-default .theme-comp--home--classic .site-hero-zone {
  padding-top: clamp(1.25rem, 3vw, 2rem);
  padding-bottom: clamp(1.25rem, 3vw, 2rem);
}

/* -------------------------------------------------------------------------- */
/* Magazine bold — cover-like hierarchy, stacked hero + rail drama             */
/* -------------------------------------------------------------------------- */

@media (min-width: 960px) {
  body.theme-pack--magazine-bold .theme-comp--home--classic .site-hero-zone__grid {
    grid-template-columns: 1fr;
    gap: clamp(1.25rem, 3vw, 2rem);
  }

  body.theme-pack--magazine-bold .theme-comp--home--classic .site-hero-zone__rail {
    max-width: 40rem;
  }
}

body.theme-pack--magazine-bold .theme-comp--home--classic .hero-card--lead .hero-card__title {
  font-size: clamp(1.65rem, 4.2vw, 2.75rem);
  letter-spacing: -0.03em;
  line-height: 1.05;
}

@media (min-width: 980px) {
  body.theme-pack--magazine-bold .theme-comp--home--editorial_mix .home-mix-hero__grid {
    grid-template-columns: minmax(0, 2.1fr) minmax(0, 0.82fr);
    gap: clamp(1.5rem, 3.5vw, 2.75rem);
  }
}

body.theme-pack--magazine-bold .theme-comp--home--editorial_mix .mix-lead__title {
  font-size: clamp(1.65rem, 4.4vw, 2.85rem);
  line-height: 1.08;
}

@media (min-width: 900px) {
  body.theme-pack--magazine-bold .theme-comp--home--editorial_mix .mix-lead__media {
    aspect-ratio: 21 / 9;
  }
}

body.theme-pack--magazine-bold .theme-comp--home--composer .site-section:first-child {
  padding-top: clamp(1.35rem, 3.2vw, 2.25rem);
}

body.theme-pack--magazine-bold .theme-comp--article--standard .article-title,
body.theme-pack--magazine-bold .theme-comp--article--standard .article-header .article-title {
  font-size: clamp(1.85rem, 4.5vw, 3rem);
  letter-spacing: -0.03em;
  line-height: 1.06;
}

body.theme-pack--magazine-bold .theme-comp--article--standard .article-page__inner:not(.article-page__inner--presentation) .article-body {
  max-width: 40rem;
}

body.theme-pack--magazine-bold .theme-comp--listing--editorial_stream .listing-featured__link {
  flex-direction: row;
  align-items: stretch;
  gap: 0;
}

@media (min-width: 720px) {
  body.theme-pack--magazine-bold .theme-comp--listing--editorial_stream .listing-featured__media {
    flex: 0 0 44%;
    max-width: 44%;
  }

  body.theme-pack--magazine-bold .theme-comp--listing--editorial_stream .listing-featured__body {
    padding: var(--space-lg) var(--space-xl);
    justify-content: center;
  }
}

/* -------------------------------------------------------------------------- */
/* Minimal light — whitespace, restrained surfaces                             */
/* -------------------------------------------------------------------------- */

body.theme-pack--minimal-light .theme-comp--home--classic .site-section {
  padding-top: clamp(1.35rem, 3vw, 2.25rem);
  padding-bottom: clamp(1.35rem, 3vw, 2.25rem);
}

body.theme-pack--minimal-light .theme-comp--home--classic .site-hero-zone__grid {
  gap: clamp(1.35rem, 3.2vw, 2.5rem);
}

body.theme-pack--minimal-light .theme-comp--home--classic .site-hero-zone__rail {
  box-shadow: none;
  background: transparent;
  border-style: dashed;
}

body.theme-pack--minimal-light .theme-comp--home--editorial_mix .mix-lead {
  box-shadow: none;
}

body.theme-pack--minimal-light .theme-comp--home--editorial_mix .mix-lead__body {
  padding: clamp(1.25rem, 3vw, 2.25rem);
}

body.theme-pack--minimal-light .theme-comp--article--standard .article-body,
body.theme-pack--minimal-light .theme-comp--article--longform .article-body {
  line-height: 1.72;
}

body.theme-pack--minimal-light .theme-comp--listing--standard .listing-stream__list {
  gap: clamp(1.1rem, 2.8vw, 1.85rem);
}

body.theme-pack--minimal-light .theme-comp--listing--luxury_gallery_grid .listing-luxury-lead {
  border-radius: calc(var(--radius-card) + 4px);
}

/* -------------------------------------------------------------------------- */
/* Portfolio clean — image-led rhythm, calmer “feed”, wider reading band       */
/* -------------------------------------------------------------------------- */

body.theme-pack--portfolio-clean .theme-comp--home--classic .site-container {
  max-width: 72rem;
}

body.theme-pack--portfolio-clean .theme-comp--home--classic .site-hero-zone__rail {
  border-width: 1px;
  box-shadow: none;
}

body.theme-pack--portfolio-clean .theme-comp--home--composer .rj-card__media {
  min-height: 11.5rem;
}

body.theme-pack--portfolio-clean .theme-comp--article--image_focus .article-image-focus__media,
body.theme-pack--portfolio-clean .theme-comp--article--gallery_page .article-featured__media {
  border-radius: calc(var(--radius-card) + 2px);
}

@media (min-width: 720px) {
  body.theme-pack--portfolio-clean .theme-comp--article--gallery_page .article-featured__media,
  body.theme-pack--portfolio-clean .theme-comp--article--image_focus .article-image-focus__media {
    min-height: 22rem;
  }
}

body.theme-pack--portfolio-clean .theme-comp--listing--luxury_gallery_grid .listing-luxury-lead__media {
  min-height: clamp(16rem, 42vw, 28rem);
}

body.theme-pack--portfolio-clean .theme-comp--listing--standard .listing-card__link {
  gap: 0.85rem;
}

/* -------------------------------------------------------------------------- */
/* Studio dark — flatter hero bands, cinematic listing lead                    */
/* -------------------------------------------------------------------------- */

body.theme-pack--studio-dark .theme-comp--home--editorial_mix .home-mix-hero {
  background: var(--bg-page);
  border-bottom-width: 1px;
}

body.theme-pack--studio-dark .theme-comp--home--editorial_mix .mix-lead {
  box-shadow: none;
}

body.theme-pack--studio-dark .theme-comp--home--luxury_home_showcase .luxury-hero__lead-media {
  min-height: clamp(14rem, 38vw, 26rem);
}

body.theme-pack--studio-dark .theme-comp--listing--luxury_gallery_grid .listing-luxury-lead__media {
  min-height: clamp(18rem, 48vw, 34rem);
}

body.theme-pack--studio-dark .theme-comp--article--fullscreen_showcase .article-immersive-hero,
body.theme-pack--studio-dark .theme-comp--article--immersive_hero .article-immersive-hero {
  border-radius: 0;
}

/* -------------------------------------------------------------------------- */
/* Luxury dark — showcase scale + dramatic gallery / story shells               */
/* -------------------------------------------------------------------------- */

body.theme-pack--luxury-dark .theme-comp--home--luxury_home_showcase .luxury-hero__lead-media {
  min-height: clamp(20rem, 52vw, 38rem);
}

body.theme-pack--luxury-dark .theme-comp--home--luxury_home_showcase .luxury-hero__title {
  font-size: clamp(2rem, 4.8vw, 3.35rem);
  letter-spacing: -0.02em;
}

body.theme-pack--luxury-dark .theme-comp--home--editorial_mix .mix-lead {
  border-width: 1px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.22);
}

body.theme-pack--luxury-dark .theme-comp--listing--luxury_gallery_grid .listing-luxury-lead__link {
  min-height: clamp(17rem, 44vw, 30rem);
}

@media (min-width: 900px) {
  body.theme-pack--luxury-dark .theme-comp--listing--luxury_gallery_grid .listing-luxury-lead__media {
    min-height: clamp(22rem, 50vw, 40rem);
  }
}

body.theme-pack--luxury-dark .theme-comp--article--luxury_story_page .article-presentation-hero,
body.theme-pack--luxury-dark .theme-comp--article--luxury_story_page .article-image-focus__media {
  border-radius: calc(var(--radius-card) + 6px);
}

body.theme-pack--luxury-dark .theme-comp--article--gallery_page .article-featured--presentation .article-featured__media {
  min-height: clamp(18rem, 46vw, 36rem);
}

/* -------------------------------------------------------------------------- */
/* Theme-specific markup composition V1 (DOM branches + theme-markup--*)      */
/* -------------------------------------------------------------------------- */

.hero-card__link--copy-first {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
}

.hero-card__link--copy-first .hero-card__body {
  padding-bottom: var(--space-md);
}

.hero-card--theme-mag-cover .hero-card__media img {
  border-radius: 0 0 var(--radius-card) var(--radius-card);
}

/* Portfolio classic (rail + strip): keep lead image visually dominant; strip is supporting only. */
.theme-markup--pf_rail_first_strip .hero-card--lead:not(.hero-card--theme-mag-cover) .hero-card__media {
  min-height: clamp(13rem, 36vw, 26rem);
}

.theme-markup--pf_rail_first_strip .hero-card--lead:not(.hero-card--theme-mag-cover) .hero-card__media img {
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
}

.theme-pf-hero-strip {
  list-style: none;
  margin: 0 0 var(--space-lg);
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.theme-pf-hero-strip__link {
  display: block;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
}

.theme-pf-hero-strip__media img {
  display: block;
  width: 6.5rem;
  height: 4.5rem;
  object-fit: cover;
}

.theme-lux-classic-hero-frame {
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-card);
  padding: clamp(0.75rem, 2vw, 1.25rem);
  background: linear-gradient(180deg, var(--bg-surface-alt) 0%, var(--bg-page) 100%);
}

.theme-lux-mix-ornament {
  height: 4px;
  margin-bottom: var(--space-md);
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, var(--accent-primary-soft), var(--accent-primary), var(--accent-primary-soft), transparent);
}

.mix-lead__link--copy-first {
  display: flex;
  flex-direction: column;
}

.mix-lead__link--copy-first .mix-lead__body {
  padding-bottom: var(--space-sm);
}

/* Editorial mix + portfolio: lead story stays image-forward beside rail-first column. */
body.theme-pack--portfolio-clean .theme-markup--mix_rail_first .mix-lead__media {
  min-height: clamp(12rem, 32vw, 22rem);
}

body.theme-pack--portfolio-clean .theme-markup--mix_rail_first .mix-lead__media img {
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
}

.luxury-hero__masthead {
  display: block;
}

.theme-lux-prelude-rule {
  height: 1px;
  margin: var(--space-lg) 0;
  background: linear-gradient(90deg, transparent, var(--border-subtle), transparent);
}

.article-theme-opening {
  margin-bottom: var(--space-md);
}

.article-meta--theme-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.25rem 0.5rem;
  margin-top: var(--space-md);
  padding-top: var(--space-md);
  border-top: 1px solid var(--border-subtle);
}

.theme-lux-article-rule {
  height: 2px;
  margin: var(--space-md) 0 var(--space-lg);
  background: linear-gradient(90deg, var(--accent-primary-soft), transparent 55%);
}

.listing-pf-intro-strip {
  margin-bottom: var(--space-xl);
}

.listing-pf-intro-strip__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.listing-pf-intro-strip__link {
  display: block;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
}

.listing-pf-intro-strip__media img {
  display: block;
  width: 7.5rem;
  height: 5rem;
  object-fit: cover;
}

.listing-studio-cinematic-shell {
  padding: var(--space-md);
  border-radius: var(--radius-card);
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface-alt);
}

.listing-luxury-dramatic-wrap {
  position: relative;
  padding: var(--space-sm);
  border-radius: var(--radius-card);
  border: 1px solid var(--border-subtle);
}

.listing-luxury-card__link--text-first {
  display: flex;
  flex-direction: column;
}

.listing-luxury-card__link--text-first .listing-luxury-card__body {
  padding-bottom: var(--space-xs);
}
