/*
 * Landing page design system (Home).
 * One typographic scale, one spacing rhythm and one surface rhythm for every
 * section below the hero. Loaded last on index.php so the tokens win.
 */
body.page-home {
  --ls-h2: clamp(22px, .9vw + 16px, 28px);
  --ls-eyebrow: 11px;
  --ls-intro: 14px;
  --ls-section-y: clamp(40px, 4.5vw, 68px);
  --ls-head-gap: clamp(20px, 2.4vw, 32px);
  --ls-brand: #351018;
  --ls-gold: #94702f;
  --ls-muted: #6d6366;
  --ls-surface-a: #ffffff;
  --ls-surface-b: #f8f5ef;
}

/* Section spacing */
html body.page-home.page-storefront :is(.mkt-discovery-home, #featured, #curated-collections, .mkt-trust-home, .mkt-testimonials) {
  padding-block: var(--ls-section-y) !important;
}

/* Surface rhythm: white / warm / white / warm / white */
html:not([data-site-theme=dark]) body.page-home.page-storefront .mkt-discovery-home { background: var(--ls-surface-a) !important; }
html:not([data-site-theme=dark]) body.page-home.page-storefront #featured { background: var(--ls-surface-b) !important; }
html:not([data-site-theme=dark]) body.page-home.page-storefront #curated-collections { background: var(--ls-surface-a) !important; }
html:not([data-site-theme=dark]) body.page-home.page-storefront .mkt-trust-home { background: var(--ls-surface-b) !important; }
html:not([data-site-theme=dark]) body.page-home.page-storefront .mkt-testimonials { background: var(--ls-surface-a) !important; }

/* Section headings (H2) */
html body.page-home.page-storefront :is(.mkt-discovery-home, #featured, #curated-collections, .mkt-trust-home, .mkt-testimonials) h2 {
  margin: 0 !important;
  color: var(--ls-brand);
  font-size: var(--ls-h2) !important;
  font-weight: 600 !important;
  letter-spacing: -.01em;
  line-height: 1.2 !important;
  text-wrap: balance;
}

html[data-site-theme=dark] body.page-home.page-storefront :is(.mkt-discovery-home, #featured, #curated-collections, .mkt-trust-home, .mkt-testimonials) h2 {
  color: #f6eef0;
}

html body.page-home.page-storefront main > section:not(.hbx) h2:not(#x):not(#y):not(#z):not(#w) {
  font-weight: 600 !important;
}

/* Eyebrows */
html body.page-home.page-storefront :is(.mkt-discovery-home__eyebrow, .mkt-head__eyebrow, .ltd-curated__eyebrow, .mkt-trust-home__eyebrow, .mkt-testimonials__eyebrow) {
  margin: 0 0 8px !important;
  color: var(--ls-gold) !important;
  font-size: var(--ls-eyebrow) !important;
  font-weight: 700 !important;
  letter-spacing: .14em !important;
  line-height: 1.3 !important;
  text-transform: uppercase;
}

/* Section introductions */
html body.page-home.page-storefront :is(.mkt-discovery-home__intro, .mkt-head__intro, .ltd-curated__heading-copy > p:not(.ltd-curated__eyebrow), .mkt-trust-home__intro > p:not(.mkt-trust-home__eyebrow), .mkt-testimonials > .mkt-wrap > header p:not(.mkt-testimonials__eyebrow)) {
  max-width: 62ch;
  margin: 10px 0 0 !important;
  color: var(--ls-muted) !important;
  font-size: var(--ls-intro) !important;
  font-weight: 400 !important;
  line-height: 1.6 !important;
}

html[data-site-theme=dark] body.page-home.page-storefront :is(.mkt-discovery-home__intro, .mkt-head__intro, .ltd-curated__heading-copy > p:not(.ltd-curated__eyebrow), .mkt-trust-home__intro > p:not(.mkt-trust-home__eyebrow)) {
  color: #cdbfc3 !important;
}

/* Gap between a section header and its content */
html body.page-home.page-storefront :is(.mkt-discovery-home, #featured, #curated-collections) :is(.mkt-head, .ltd-curated__heading, .mkt-discovery-home__head) {
  margin-bottom: var(--ls-head-gap) !important;
}

/* Section action links (View all / Explore all) share one look */
html body.page-home.page-storefront :is(.mkt-head > a, .mkt-discovery-home__all, .ltd-curated__heading > a) {
  font-size: 13px;
  font-weight: 600;
}

@media (max-width: 575.98px) {
  body.page-home {
    --ls-h2: 22px;
    --ls-section-y: 36px;
  }
}

/* Hero H1 stays the strongest heading */
html body.page-home.page-storefront .hbx-title {
  font-weight: 600 !important;
  letter-spacing: -.015em;
}

/* Consistent keyboard focus across landing interactive elements */
html body.page-home.page-storefront :is(.mkt-discovery-card, .mkt-card a, .ltd-collection-card, .mkt-trust-tile, .mkt-head > a, .mkt-discovery-home__all, .mkt-discovery-home button):focus-visible {
  outline: 2px solid var(--ls-gold);
  outline-offset: 3px;
}

/* Consistent soft hover lift on card families (pointer devices only) */
@media (hover: hover) {
  body.page-home.page-storefront :is(.mkt-discovery-card, .ltd-collection-card, .mkt-trust-tile) {
    transition: transform .25s ease, box-shadow .25s ease;
  }
  body.page-home.page-storefront :is(.mkt-trust-tile):hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 30px rgba(44, 18, 24, .1);
  }
}

@media (prefers-reduced-motion: reduce) {
  body.page-home *,
  body.page-home *::before,
  body.page-home *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}
/* Section CTAs: one primary pill, one outline pill */
html body.page-home.page-storefront #featured .mkt-head > a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: 999px;
  background: linear-gradient(135deg, #7a1a2b, #4d0f1b);
  box-shadow: 0 10px 22px rgba(77, 15, 27, .22);
  color: #fff !important;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease;
}
html body.page-home.page-storefront #featured .mkt-head > a:hover {
  box-shadow: 0 14px 26px rgba(77, 15, 27, .3);
  transform: translateY(-2px);
}
html body.page-home.page-storefront :is(.mkt-trust-home__link, .mkt-discovery-home__all) {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border: 1px solid rgba(100, 21, 34, .28);
  border-radius: 999px;
  color: #641522;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
html body.page-home.page-storefront :is(.mkt-trust-home__link, .mkt-discovery-home__all):hover {
  border-color: #641522;
  background: #641522;
  color: #fff;
}
html[data-site-theme=dark] body.page-home.page-storefront :is(.mkt-trust-home__link, .mkt-discovery-home__all) {
  border-color: rgba(217, 182, 108, .45);
  color: #f3e8ea;
}
html[data-site-theme=dark] body.page-home.page-storefront :is(.mkt-trust-home__link, .mkt-discovery-home__all):hover {
  background: #d9b66c;
  color: #2a1218;
}
/* Collections header aligned like the other sections */
html body.page-home.page-storefront .ltd-curated__header {
  justify-content: flex-start;
  margin-bottom: var(--ls-head-gap) !important;
  text-align: left;
}
html body.page-home.page-storefront .ltd-curated__heading-copy {
  text-align: left !important;
}
html body.page-home.page-storefront .ltd-curated__heading-copy > p {
  margin-inline: 0 !important;
}
/* Trust header aligned like the other sections */
html body.page-home.page-storefront .mkt-trust-home__intro {
  max-width: 720px;
  margin-inline: 0 !important;
  padding-left: 0;
  border-left: 0;
  text-align: left !important;
}
html body.page-home.page-storefront .mkt-trust-home__intro::after {
  display: none;
}
html body.page-home.page-storefront .mkt-trust-home__eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px !important;
}
html body.page-home.page-storefront .mkt-trust-home__eyebrow span {
  display: grid;
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 50%;
  color: #7a3541;
  background: #f0e5df;
  font-size: 17px;
}
html[data-site-theme=dark] body.page-home.page-storefront .mkt-trust-home__eyebrow span {
  color: #f0d7c3;
  background: #543339;
}
html body.page-home.page-storefront .mkt-trust-home__intro > p {
  margin-inline: 0 !important;
}
html body.page-home.page-storefront .mkt-trust-home__link {
  margin-top: 16px;
}