/* ========================================================================== */
/* Kashish V6 — homepage colour direction                                    */
/* Modern Poetry typography is provided by v6-fonts.css. This file changes   */
/* only homepage surfaces and decorative details; interactions and layout     */
/* remain owned by the inherited V4 styles and scripts.                       */
/* ========================================================================== */

body[data-page="home"] {
  --v6-home-page: var(--v6-page-neutral, #fbfaf6);
  --v6-home-mint-wash: var(--v6-surface-soft, #f4efe7);
  --v6-home-mint-soft: var(--v6-ivory, #f8f4ec);
  --v6-home-teal-readable: var(--v6-teal-ink, #447a76);
  --v6-home-rakhi-wash: var(--v6-rakhi, #f3ece3);
  --v6-home-bronze: var(--v6-brand-bronze, #987d5c);
  --v6-home-bronze-line: var(--v6-line-warm, rgba(152, 125, 92, 0.3));
  background-color: var(--v6-home-page);
}

/* The white collection chapter becomes a soft, calm canvas. Its positioning
   remains untouched so the existing hero/Bridal Atelier reveal still works. */
body[data-page="home"] .v4-opening-stack,
body[data-page="home"] .v4-collection-bridal-stage {
  background-color: var(--v6-home-page);
}

body[data-page="home"] .v4-collection-bridal-stage > .home-collection-edits {
  background-color: var(--v6-rakhi);
  box-shadow: 0 -20px 48px rgba(73, 103, 97, 0.08);
}

body[data-page="home"] .home-collection-edits .collection-edit-card {
  background: transparent !important;
}

body[data-page="home"] .home-collection-edits .collection-edit-copy {
  gap: 3px;
  padding-top: 12px;
}

/* Product metadata belongs to The Kashish Edit (the collection cards above do
   not carry prices). Retain a two-line allowance while removing empty space. */
body[data-page="home"] #homeProductRail .product-card-info {
  display: grid;
  grid-template-rows: auto auto auto;
  row-gap: 3px;
  padding-top: 12px;
}

body[data-page="home"] #homeProductRail .product-card-info h3 {
  display: block;
  min-height: 0;
  margin: 0;
  overflow: hidden;
  line-height: 1.16;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body[data-page="home"] #homeProductRail .product-card-info h3 a {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body[data-page="home"] #homeProductRail .product-card-subtitle {
  display: block;
  min-height: 0;
  margin: 0;
  overflow: hidden;
  font-size: 12px;
  line-height: 1.25;
  letter-spacing: .015em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body[data-page="home"] #homeProductRail .product-card-info .money {
  margin: 2px 0 0;
  line-height: 1.2;
}

body[data-page="home"] .home-collection-edits .section-heading > p,
body[data-page="home"] .community-heading > p,
body[data-page="home"] .newsletter p,
body[data-page="home"] .roots-intro {
  color: var(--v6-muted);
}

body[data-page="home"] .collection-edit-media,
body[data-page="home"] .product-media-wrap,
body[data-page="home"] .community-card figure {
  background-color: var(--v6-home-mint-wash);
}

body[data-page="home"] .collection-edit-copy small,
body[data-page="home"] .eyebrow,
body[data-page="home"] .craft-point > span,
body[data-page="home"] .story-timeline li > span {
  color: var(--v6-bronze-ink);
}

body[data-page="home"] .collection-edit-copy strong,
body[data-page="home"] .section-heading .display,
body[data-page="home"] .craft-copy .display,
body[data-page="home"] .roots-copy .display {
  color: var(--v6-ink);
}

/* The second hero is a light brand interlude rather than another dark field. */
body[data-page="home"] .hero-brand-slide {
  color: var(--v6-ink) !important;
  background:
    radial-gradient(circle at 18% 18%, rgba(222, 210, 194, 0.38), transparent 34%),
    linear-gradient(135deg, var(--v6-porcelain), var(--v6-home-rakhi-wash)) !important;
}

body[data-page="home"] .hero-brand-slide .hero-brand-content > p {
  color: var(--v6-muted) !important;
}

body[data-page="home"] .hero-brand-slide .hero-brand-content > img {
  filter: none;
}

/* Preserve high contrast wherever copy sits directly on campaign media. */
body[data-page="home"] :is(
  .hero-slide:not(.hero-brand-slide),
  .feature-banner-copy,
  .accessories-banner-copy,
  .v4-story-panel__copy--overlay,
  .stores-banner-copy
) .eyebrow {
  color: var(--v6-porcelain) !important;
}

body[data-page="home"] .hero-v2:has(.hero-brand-slide.is-active) .hero-slider-controls,
body[data-page="home"] .hero-v2:has(.hero-brand-slide.is-active) .hero-arrow {
  color: var(--v6-home-teal-readable);
}

body[data-page="home"] .hero-v2:has(.hero-brand-slide.is-active) .hero-arrow {
  border-color: rgba(68, 122, 118, 0.42);
  background-color: rgba(255, 253, 248, 0.46);
}

body[data-page="home"] .hero-v2:has(.hero-brand-slide.is-active) .hero-dots button {
  background-color: rgba(68, 122, 118, 0.28);
}

body[data-page="home"] .hero-v2:has(.hero-brand-slide.is-active) .hero-dots button.is-active {
  background-color: var(--v6-home-teal-readable);
}

/* Use the Rakhi panel's warm tint as a recurring, recognisable story surface. */
body[data-page="home"] .craft-feature {
  background-color: var(--v6-home-rakhi-wash);
}

body[data-page="home"] .v4-story-panel--rakhi .v4-story-panel__copy {
  background: var(--v6-action) !important;
  border-top-color: var(--v6-bronze-soft, #d9cbbb);
}

body[data-page="home"] .v4-story-panel--rakhi .v4-story-panel__copy > p:not(.eyebrow),
body[data-page="home"] .craft-point p {
  color: var(--v6-muted);
}

body[data-page="home"] .v4-story-panel__product {
  background-color: var(--v6-porcelain);
  border-color: var(--v6-home-bronze-line);
  box-shadow: 0 20px 50px rgba(89, 74, 58, 0.08);
}

body[data-page="home"] .v4-story-panel--darbar .focus-product-panel {
  background: #fff !important;
}

body[data-page="home"] .v4-story-panel--darbar .v4-story-panel__copy--overlay > p:not(.eyebrow) {
  color: var(--v6-porcelain) !important;
}

body[data-page="home"] .craft-feature {
  border-color: var(--v6-home-bronze-line);
}

body[data-page="home"] .craft-copy {
  background:
    linear-gradient(145deg, rgba(255, 253, 248, 0.26), transparent 58%),
    var(--v6-home-rakhi-wash);
}

body[data-page="home"] .craft-signature {
  max-width: 430px;
  margin: -22px 0 32px;
  color: var(--v6-bronze-ink);
  font-family: var(--font-display);
  font-size: clamp(18px, 1.55vw, 24px);
  font-style: italic;
  line-height: 1.35;
}

body[data-page="home"] .craft-point {
  padding-top: 18px;
  border-top: 1px solid var(--v6-home-bronze-line);
}

body[data-page="home"] .craft-point:first-child {
  padding-top: 0;
  border-top: 0;
}

body[data-page="home"] .craft-point h3 {
  color: var(--v6-ink);
}

body[data-page="home"] .craft-video {
  background-color: var(--v6-bronze-soft, #d9cbbb);
  box-shadow: inset 0 0 0 1px rgba(152, 125, 92, 0.12);
}

/* Community stays light and tactile; cards retain strong image contrast. */
body[data-page="home"] .v4-community {
  background-color: var(--v6-ivory);
  border-color: var(--v6-home-bronze-line);
}

body[data-page="home"] .v4-community-tabs {
  border-color: var(--v6-home-bronze-line);
}

body[data-page="home"] .v4-testimonial {
  background-color: var(--v6-porcelain);
  border-color: var(--v6-home-bronze-line);
}

body[data-page="home"] .v4-testimonial__body,
body[data-page="home"] .community-card figcaption {
  color: var(--v6-ink);
}

/* A quiet brand pause with one low-opacity bird mnemonic. */
body[data-page="home"] .manifesto-v4 {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background:
    linear-gradient(120deg, rgba(255, 253, 248, 0.72), rgba(238, 230, 218, 0.78)),
    var(--v6-ivory) !important;
}

body[data-page="home"] .manifesto-v4::before {
  content: "";
  width: clamp(72px, 8vw, 122px);
  aspect-ratio: 859 / 1189;
  position: absolute;
  top: clamp(18px, 3vw, 42px);
  left: clamp(18px, 4vw, 72px);
  z-index: -1;
  opacity: 0.12;
  background-color: var(--v6-home-teal-readable);
  -webkit-mask: url("../v6/bird-in-flight.png") center / contain no-repeat;
  mask: url("../v6/bird-in-flight.png") center / contain no-repeat;
  pointer-events: none;
}

body[data-page="home"] .manifesto-v4 .shell {
  position: relative;
  z-index: 1;
}

body[data-page="home"] .manifesto-v4 p {
  color: var(--v6-muted) !important;
}

/* Our Story carries the second bird, smaller and quieter than a campaign mark. */
body[data-page="home"] .roots-timeline .roots-copy {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--v6-action) !important;
}

body[data-page="home"] .roots-feature {
  background: var(--v6-action) !important;
}

body[data-page="home"] .roots-feature .story-timeline,
body[data-page="home"] .roots-feature .story-timeline li {
  background: transparent !important;
}

body[data-page="home"] .roots-timeline .roots-copy::after {
  content: "";
  width: clamp(38px, 4.2vw, 68px);
  aspect-ratio: 539 / 1160;
  position: absolute;
  right: clamp(20px, 3.5vw, 60px);
  bottom: clamp(18px, 3vw, 46px);
  z-index: -1;
  opacity: 0.1;
  background-color: var(--v6-home-bronze);
  -webkit-mask: url("../v6/bird-perched.png") center / contain no-repeat;
  mask: url("../v6/bird-perched.png") center / contain no-repeat;
  pointer-events: none;
}

body[data-page="home"] .roots-copy > div {
  position: relative;
  z-index: 1;
}

body[data-page="home"] .story-timeline,
body[data-page="home"] .story-timeline li {
  border-color: var(--v6-home-bronze-line) !important;
}

body[data-page="home"] .story-timeline h3 {
  color: var(--v6-bronze-ink) !important;
}

body[data-page="home"] .story-timeline p {
  color: var(--v6-muted) !important;
}

body[data-page="home"] .newsletter {
  background-color: var(--v6-home-rakhi-wash);
  border-color: var(--v6-home-bronze-line);
}

body[data-page="home"] .newsletter input {
  background-color: rgba(255, 253, 248, 0.66);
  border-color: var(--v6-home-bronze-line);
}

/* These two story CTAs deliberately reverse the local aqua/beige surfaces.
   Their default and interaction states remain identical to one another. */
html[data-theme="v6-modern-poetry"] body[data-page="home"] :is(
  .v4-story-panel--rakhi .v4-story-panel__copy,
  .roots-feature .roots-copy
) .button:not(:disabled):not([aria-disabled="true"]) {
  color: var(--v6-ink) !important;
  background: var(--v6-rakhi) !important;
  border-color: var(--v6-bronze-soft) !important;
}

html[data-theme="v6-modern-poetry"] body[data-page="home"] :is(
  .v4-story-panel--rakhi .v4-story-panel__copy,
  .roots-feature .roots-copy
) .button:not(:disabled):not([aria-disabled="true"]):is(:hover, :focus-visible) {
  color: var(--v6-ink) !important;
  background: var(--v6-bronze-wash) !important;
  border-color: var(--v6-brand-bronze) !important;
}

@media (max-width: 900px) {
  body[data-page="home"] .v4-opening-stack,
  body[data-page="home"] .v4-collection-bridal-stage {
    background-color: var(--v6-home-page);
  }

  body[data-page="home"] .v4-collection-bridal-stage > .home-collection-edits {
    background-color: var(--v6-rakhi);
  }

  body[data-page="home"] .manifesto-v4::before {
    left: 20px;
    opacity: 0.09;
  }
}

@media (max-width: 680px) {
  body[data-page="home"] .manifesto-v4::before {
    width: 62px;
    top: 16px;
    left: 12px;
    opacity: 0.075;
  }

  body[data-page="home"] .roots-timeline .roots-copy::after {
    width: 34px;
    right: 16px;
    bottom: 16px;
    opacity: 0.07;
  }

  body[data-page="home"] .craft-point {
    padding-top: 15px;
  }
}

@media (prefers-reduced-motion: reduce) {
  body[data-page="home"] .collection-edit-media img,
  body[data-page="home"] .v4-testimonial__media img {
    transition: none;
  }
}
