/* Haven T2 Home Editorial (T2 Home Editorial.dc.html). Only what _home.css does not already
   provide: .hvn-kicker, .hvn-btn, .hvn-home-section, .hvn-home-headrow, .hvn-product-rail and
   the responsive gutters on .hvn-home-section are shared as-is. */

.hvn-page-t2 .page-main,
.hvn-page-t2 .columns .column.main {
  max-width: none;
  padding: 0;
  margin: 0;
}

/* ---- 1. Hero: one full-bleed slide, copy centred over the image ---- */
.hvn-t2-hero { position: relative; }
.hvn-t2-hero-media {
  aspect-ratio: 21 / 8;
  width: 100%;
  border-radius: 4px;
  object-fit: cover;
  display: block;
}
.hvn-t2-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 4px;
  background: color-mix(in oklab, var(--hvn-overlay-scrim) 35%, transparent);
  pointer-events: none;
}
.hvn-t2-hero-copy {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  text-align: center;
  padding: 0 24px;
}
.hvn-t2-hero-copy .hvn-t2-hero-eyebrow { color: var(--hvn-band-text-muted); }
.hvn-t2-hero-title {
  font-family: var(--hvn-font-display);
  font-weight: 400;
  line-height: 1.2;
  margin: 0;
  font-size: 54px;
  text-wrap: balance;
  color: var(--hvn-band-text);
}
.hvn-t2-hero-copy .hvn-btn { width: fit-content; }

/* ---- 2. Story grid: The Reading Corner / Bedroom, Rebuilt ---- */
.hvn-t2-stories {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  padding: 48px 40px 0;
  max-width: var(--hvn-container);
  margin-inline: auto;
}
.hvn-t2-story {
  text-decoration: none;
  color: var(--hvn-text);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.hvn-t2-story-media {
  aspect-ratio: 4 / 3;
  width: 100%;
  border-radius: 4px;
  object-fit: cover;
}
.hvn-t2-story-foot {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.hvn-t2-story-title {
  font-family: var(--hvn-font-display);
  font-weight: 400;
  line-height: 1.2;
  font-size: 22px;
  text-wrap: balance;
}
.hvn-t2-story-more {
  color: var(--hvn-text);
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: var(--hvn-accent);
  font-size: 14px;
}

/* ---- 3. Curated: centred kicker + heading, 3-up rail (desktop only) ---- */
.hvn-t2-curated { padding-top: 56px; }
.hvn-t2-curated .hvn-home-headrow {
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 26px;
}
.hvn-t2-curated .hvn-home-headrow > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.hvn-t2-curated .hvn-home-headrow h2 { font-size: 30px; font-weight: 400; }
@media (min-width: 1024px) {
  .hvn-t2-curated .hvn-product-rail {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-width: 1080px;
    margin-inline: auto;
  }
}

/* ---- 4. Room gallery + "Browse the journal ->" ---- */
.hvn-t2-gallery { padding: 64px 0 0; }
.hvn-t2-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
}
.hvn-t2-gallery-media {
  aspect-ratio: 4 / 5;
  width: 100%;
  border-radius: 4px;
  object-fit: cover;
}
.hvn-t2-gallery-cta {
  text-align: center;
  padding: 28px 0 0;
  margin: 0;
}
.hvn-t2-gallery-cta a {
  color: var(--hvn-text);
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: var(--hvn-accent);
  font-size: 14px;
}

@media (max-width: 1023px) {
  .hvn-t2-stories { padding-left: 24px; padding-right: 24px; }
}

@media (max-width: 767px) {
  /* 21:8 at 375 is ~140px tall, shorter than the centred copy; matches Home's own phone-hero fix (measured). */
  .hvn-t2-hero-media { aspect-ratio: 4 / 5; }
  .hvn-t2-hero-title { font-size: 32px; }
  .hvn-t2-stories {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 32px 16px 0;
  }
  .hvn-t2-gallery-grid { grid-template-columns: 1fr; gap: 8px; }
}
