/* Art direction for the five bilingual editorial collections and industry shops.
   Only catalog sections use these rules. Copy, photography and links stay editable. */
body:is([data-editorial-edition="ledger"], [data-editorial-edition="panorama"],
        [data-editorial-edition="index"], [data-editorial-edition="folio"],
        [data-editorial-edition="press"], [data-industry-layout^="shop-"]) {
  --edition-gutter: clamp(20px, 4.6vw, 104px);
  --edition-line: color-mix(in srgb, currentColor 25%, transparent);
}
body[data-editorial-edition]:not([data-editorial-edition=""]) [data-anchor="home-hero"] .hero-copy h1 {
  max-inline-size: 18ch;
  line-height: 1.06;
  text-wrap: balance;
  overflow-wrap: anywhere;
}
body[data-editorial-edition]:not([data-editorial-edition=""]) [data-anchor^="home-"] .site-btn:focus-visible,
body[data-industry-layout^="shop-"] .product-card-link:focus-visible {
  outline: 3px solid currentColor;
  outline-offset: 4px;
}

/* Ledger — an offset photograph and a narrow, ruled editorial column. */
body[data-editorial-edition="ledger"] [data-anchor="home-hero"][data-composition="reverse"] .hero-copy {
  border: 0;
  border-inline-start: 1px solid var(--edition-line);
  padding: clamp(20px, 4vw, 80px);
}
body[data-editorial-edition="ledger"] [data-anchor="home-hero"] .eyebrow {
  display: block;
  padding-block-end: 1em;
  margin-block-end: clamp(22px, 4vw, 80px);
  border-bottom: 3px double currentColor;
}
body[data-editorial-edition="ledger"] [data-anchor="home-feature"] .content-img {
  aspect-ratio: 3 / 2;
  object-fit: cover;
}
body[data-editorial-edition="ledger"] [data-anchor="home-statement"] h2 {
  font-family: Georgia, 'Nanum Myeongjo', serif;
  font-weight: 400;
}

/* Panorama — low, cinematic horizon and a light contact-sheet collection. */
body[data-editorial-edition="panorama"] [data-anchor="home-hero"][data-composition="cover"] > .section-inner::after {
  background: linear-gradient(0deg, rgb(11 20 18 / .92), rgb(11 20 18 / .58) 37%, transparent 83%);
}
body[data-editorial-edition="panorama"] [data-anchor="home-hero"] .hero-copy {
  max-inline-size: 100%;
  border: 0;
  padding-inline-start: 0;
}
body[data-editorial-edition="panorama"] [data-anchor="home-collection"] .content-columns article {
  padding-inline: 0;
  border: 0;
  border-block-start: 1px solid var(--edition-line);
  border-radius: 0;
  box-shadow: none;
}
body[data-editorial-edition="panorama"] [data-anchor="home-collection"] .content-columns img {
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

/* Index — a high-contrast information panel, with services indexed in rows. */
body[data-editorial-edition="index"] [data-anchor="home-hero"][data-composition="split"] .hero-copy {
  border-top-color: color-mix(in srgb, var(--brand) 42%, #ffd267);
}
body[data-editorial-edition="index"] [data-anchor="home-collection"] .content-columns > article {
  margin: 0;
  padding: clamp(16px, 2vw, 36px) 0;
  border: 0;
  border-top: 1px solid var(--edition-line);
  box-shadow: none;
  border-radius: 0;
}
body[data-editorial-edition="index"] [data-anchor="home-collection"] .content-card-more {
  align-self: end;
}

/* Folio — a portrait plate and a wall of journal photographs. */
body[data-editorial-edition="folio"] [data-anchor="home-hero"][data-composition="framed"] .hero-img {
  border-radius: 0;
  border: clamp(6px, .95vw, 18px) solid white;
  box-shadow: 0 8px 30px rgb(38 24 20 / .13);
  transform: rotate(1.75deg);
}
body[data-editorial-edition="folio"] [data-anchor="home-journal"] .content-columns article {
  border: 0;
  box-shadow: none;
  padding: 0;
  background: transparent;
}
body[data-editorial-edition="folio"] [data-anchor="home-journal"] .content-columns img {
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

/* Press — a masthead cut into the campaign image, and a ruled process list. */
body[data-editorial-edition="press"] [data-anchor="home-hero"][data-composition="poster"] .hero-copy {
  border: 0;
  border-inline-start: clamp(4px, .7vw, 12px) solid var(--brand);
  padding: clamp(22px, 3.5vw, 68px);
}
body[data-editorial-edition="press"] [data-anchor="home-process"] .content-columns > article {
  border: 0;
  border-inline-start: 2px solid var(--brand);
  padding-inline-start: clamp(16px, 2vw, 32px);
  box-shadow: none;
  border-radius: 0;
}

/* Shop campaigns — fabric, product and material photography stays in the card. */
body[data-industry-layout^="shop-"] [data-anchor="home-hero"] .hero-copy .eyebrow {
  display: inline-block;
  border-block-end: 1px solid currentColor;
  padding-block-end: .5em;
  letter-spacing: .12em;
}
body[data-industry-layout^="shop-"] :is([data-anchor="home-collection"], [data-anchor="collection-products"]) .store-product {
  border: none;
  border-radius: 0;
  box-shadow: none;
  margin-block-start: 0;
  padding: 0;
  background: transparent;
}
body[data-industry-layout^="shop-"] .store-product .product-card-link {
  display: block;
  inline-size: 100%;
  color: inherit;
  text-decoration: none;
}
body[data-industry-layout^="shop-"] .store-product .product-card-link > img {
  display: block;
  inline-size: 100%;
  max-inline-size: 100%;
  aspect-ratio: 4 / 5;
  height: auto;
  object-fit: contain;
  float: none;
  background: color-mix(in srgb, var(--brand) 5%, white);
}
body[data-industry-layout^="shop-"] .store-product .product-card-link > small {
  display: inline-block;
  margin-block-start: 1rem;
  letter-spacing: .07em;
}

@media (min-width: 761px) {
  body[data-editorial-edition="ledger"] [data-anchor="home-hero"][data-composition="reverse"] > .section-inner {
    grid-template-columns: minmax(0, 1.35fr) minmax(0, .8fr);
    gap: var(--edition-gutter);
    padding-inline: var(--edition-gutter);
  }
  body[data-editorial-edition="ledger"] [data-anchor="home-hero"][data-composition="reverse"] .hero-img {
    height: clamp(420px, 67svh, 840px);
    border-radius: 0;
  }
  body[data-editorial-edition="panorama"] [data-anchor="home-hero"][data-composition="cover"] .hero-copy {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(230px, .75fr);
    column-gap: clamp(30px, 8vw, 150px);
    align-items: end;
    width: 100%;
  }
  body[data-editorial-edition="panorama"] [data-anchor="home-hero"] .eyebrow { grid-column: 1 / -1; }
  body[data-editorial-edition="panorama"] [data-anchor="home-hero"] h1 { grid-row: span 2; margin-block-end: 0; }
  body[data-editorial-edition="panorama"] [data-anchor="home-hero"] .site-btn { justify-self: start; }
  body[data-editorial-edition="index"] [data-anchor="home-collection"] .content-columns {
    display: grid;
    grid-template-columns: 1fr;
  }
  body[data-editorial-edition="index"] [data-anchor="home-collection"] .content-card-link {
    display: grid;
    grid-template-columns: minmax(130px, .85fr) minmax(0, 1fr) minmax(0, 1.5fr);
    gap: .5em var(--edition-gutter);
    align-items: center;
  }
  body[data-editorial-edition="index"] [data-anchor="home-collection"] .content-card-link > img {
    grid-row: span 2;
    width: 100%;
    max-width: none;
    height: auto;
    aspect-ratio: 2 / 1;
    object-fit: cover;
  }
  body[data-editorial-edition="folio"] [data-anchor="home-journal"] .content-columns article:nth-child(2) {
    margin-block-start: clamp(32px, 6vw, 100px);
  }
  body[data-editorial-edition="press"] [data-anchor="home-hero"][data-composition="poster"] > .section-inner {
    padding-inline-start: var(--edition-gutter);
    padding-block-end: clamp(16px, 3vw, 60px);
  }
  body[data-industry-layout="shop-editorial"] [data-anchor="home-hero"][data-composition="reverse"] > .section-inner,
  body[data-industry-layout="shop-split"] [data-anchor="home-hero"][data-composition="split"] > .section-inner {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr);
    column-gap: var(--edition-gutter);
  }
  body[data-industry-layout="shop-lookbook"] [data-anchor="home-hero"][data-composition="framed"] > .section-inner {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
    text-align: start;
  }
  body[data-industry-layout="shop-lookbook"] [data-anchor="home-hero"][data-composition="framed"] .hero-img {
    height: clamp(390px, 60svh, 770px);
    width: 100%;
    border-radius: 0;
  }
}
@media (max-width: 760px) {
  body[data-editorial-edition="ledger"] [data-anchor="home-hero"] .eyebrow { margin-block-end: 1.25em; }
  body[data-editorial-edition="folio"] [data-anchor="home-hero"][data-composition="framed"] .hero-img { width: 93%; }
  body[data-industry-layout^="shop-"] .store-product { min-inline-size: 0; }
}

/* The legacy full-width hero stacks copy and photography with !important.
   Split treatments need their native columns here, while background campaigns
   retain the provider's slider, overlay and video controls. The media wrapper
   is inserted by the editor after render, so target both markup states. */
body[data-template-width="wide"]:is([data-editorial-edition="ledger"], [data-editorial-edition="index"],
  [data-editorial-edition="folio"], [data-industry-layout^="shop-"])
  .block-hero[data-anchor="home-hero"][data-hero-layout="split"]:not(:has(.hero-video)) > .section-inner {
  padding: 0 !important;
  gap: 0;
  align-items: stretch;
}
body[data-template-width="wide"]:is([data-editorial-edition="ledger"], [data-editorial-edition="index"],
  [data-editorial-edition="folio"], [data-industry-layout^="shop-"])
  .block-hero[data-anchor="home-hero"][data-hero-layout="split"]:not(:has(.hero-video)) .hero-copy {
  box-sizing: border-box;
  align-content: center;
  margin: 0;
  padding: clamp(24px, 5.2vw, 104px);
  text-align: start;
}
body[data-template-width="wide"]:is([data-editorial-edition="ledger"], [data-editorial-edition="index"],
  [data-editorial-edition="folio"], [data-industry-layout^="shop-"])
  .block-hero[data-anchor="home-hero"][data-hero-layout="split"]:not(:has(.hero-video))
  :is(.hero-img, .canvas-media:has(> .hero-img)) {
  display: block;
  box-sizing: border-box;
  margin: 0;
  width: 100%;
  max-width: none;
  align-self: stretch;
  border-radius: 0;
}
body[data-template-width="wide"][data-editorial-edition="folio"] [data-anchor="home-hero"][data-composition="framed"] .hero-img {
  border: 0;
  box-shadow: none;
  transform: none;
  object-fit: cover;
}
body[data-template-width="wide"][data-editorial-edition="folio"] [data-anchor="home-hero"][data-composition="framed"] .hero-copy {
  margin: clamp(12px, 3vw, 56px);
  border: 1px solid var(--edition-line);
}
/* In both overlays the photograph fills the parent; only the copy is inset. */
body[data-template-width="wide"]:is([data-editorial-edition="panorama"], [data-editorial-edition="press"])
  .block-hero[data-anchor="home-hero"][data-hero-layout="overlay"] > .section-inner {
  box-sizing: border-box;
  padding: var(--edition-gutter) !important;
  align-items: flex-start !important;
  justify-content: flex-end;
  flex-direction: column;
}
body[data-template-width="wide"][data-editorial-edition="panorama"]
  .block-hero[data-anchor="home-hero"][data-hero-layout="overlay"] .hero-copy {
  max-width: none !important;
}
body[data-template-width="wide"][data-editorial-edition="press"]
  .block-hero[data-anchor="home-hero"][data-hero-layout="overlay"] .hero-copy {
  width: min(44rem, 90%) !important;
  padding: clamp(22px, 3.5vw, 68px) !important;
}
@media (min-width: 761px) {
  body[data-template-width="wide"]:is([data-editorial-edition="ledger"], [data-editorial-edition="index"],
    [data-editorial-edition="folio"], [data-industry-layout^="shop-"])
    .block-hero[data-anchor="home-hero"][data-hero-layout="split"]:not(:has(.hero-video)) > .section-inner:not(.position-canvas) {
    display: grid !important;
    min-height: clamp(440px, 72svh, 940px);
  }
  body[data-template-width="wide"]:is([data-editorial-edition="ledger"], [data-editorial-edition="index"],
    [data-editorial-edition="folio"], [data-industry-layout^="shop-"])
    .block-hero[data-anchor="home-hero"][data-hero-layout="split"]:not(:has(.hero-video)) .hero-img {
    min-height: clamp(440px, 72svh, 940px);
    height: 100%;
    object-fit: cover;
  }
}
@media (max-width: 760px) {
  body[data-template-width="wide"]:is([data-editorial-edition="ledger"], [data-editorial-edition="index"],
    [data-editorial-edition="folio"], [data-industry-layout^="shop-"])
    .block-hero[data-anchor="home-hero"][data-hero-layout="split"]:not(:has(.hero-video)) .hero-img {
    width: 100% !important;
    min-height: 0;
    height: clamp(220px, 58vw, 420px);
    aspect-ratio: auto;
    object-fit: cover;
  }
}

/* The press masthead has its own light paper surface over the image. */
body[data-template-width="wide"][data-editorial-edition="press"]
  [data-anchor="home-hero"][data-hero-layout="overlay"] .hero-copy :is(h1,p,.eyebrow) {
  color: #212323 !important;
  text-shadow: none;
}
body[data-template-width="wide"][data-editorial-edition="press"]
  [data-anchor="home-hero"] .hero-copy .site-btn {
  background: #202625;
  color: white;
}
@media (min-width: 761px) {
  body[data-template-width="wide"]:is([data-editorial-edition="index"], [data-editorial-edition="folio"], [data-editorial-edition="ledger"])
    .block-hero[data-anchor="home-hero"][data-hero-layout="split"] .hero-img {
    min-height: 0;
    height: clamp(440px, 72svh, 940px);
  }
}
