/* Shared editorial pages and storefront. */
:root {
  --paper: #faf8f2;
  --store-background: #fcfbf8;
  --store-border: #deded4;
}

body.brand-page { background: var(--paper); }
.site-header { border-bottom: 1px solid var(--line); }
.main-nav a:focus-visible, main :is(a, button, input):focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 5px;
}
.wordmark-window, .footer-name-window {
  height: auto;
  aspect-ratio: 6.7;
}
.wordmark-window img, .footer-name-window img {
  width: 100%;
  height: auto;
  transform: translateY(-62.3%);
}
.site-footer .footer-name-window img { filter: brightness(0) invert(1); }

.editorial-cover {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: end;
  min-height: clamp(32rem, 68svh, 48rem);
  overflow: hidden;
  color: var(--paper);
  background: var(--green-deep);
}
.editorial-cover > img, .editorial-cover::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
}
.editorial-cover > img { object-fit: cover; object-position: center 40%; }
.editorial-cover::after {
  content: "";
  background: linear-gradient(90deg, #091f19e6, #091f1980 44%, #091f191a 82%),
              linear-gradient(0deg, #091f1973, transparent 66%);
}
.retail-cover > img { object-position: 58% 51%; }
.collection-cover > img { object-position: 61% center; }
.cover-caption {
  position: absolute;
  right: var(--editorial-edge);
  bottom: .85rem;
  padding: .15rem .45rem;
  background: #10261fcc;
  color: var(--paper);
  font-size: .72rem;
}
.editorial-cover-copy {
  padding: clamp(4rem, 9vw, 8rem) var(--editorial-edge);
  max-width: 48rem;
}
.editorial-cover-copy h1 { --type-page: clamp(3.7rem, 8vw, 7rem); margin: 0 0 1.35rem; color: var(--paper); }
.editorial-cover-copy p:not(.eyebrow) { max-width: 36ch; margin-bottom: 1.6rem; }
.editorial-cover-copy .button { gap: 1.4rem; }

.collection-stories { padding-block: clamp(3.25rem, 8vw, 7rem); }
.collection-story {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(2rem, 7vw, 7rem);
}
.collection-story + .collection-story {
  margin-top: clamp(3.25rem, 8vw, 7rem);
  padding-top: clamp(3.25rem, 8vw, 7rem);
  border-top: 1px solid var(--line);
}
.collection-story--azul { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); }
.collection-story--azul figure { grid-column: 2; grid-row: 1; }
.collection-story--azul .collection-story-copy { grid-column: 1; grid-row: 1; }
.collection-story figure { margin: 0; }
.collection-story img { width: 100%; aspect-ratio: 3 / 1; object-fit: contain; background: #ebe6dc; }
.collection-story figcaption { margin-top: .6rem; color: var(--muted); font-size: .76rem; }
.collection-story h2, .retail-editorial h2 { color: var(--green); margin-bottom: 1.25rem; }
.collection-story .design-standfirst { margin-bottom: .75rem; }
.collection-story-copy > p:not(.eyebrow) { max-width: 43ch; }
.editorial-end, .retail-editorial {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: clamp(1.5rem, 7vw, 6rem);
  border-top: 1px solid var(--line);
  padding-block: clamp(2.75rem, 7vw, 6rem);
}
.editorial-end .button { justify-self: end; gap: 1.25rem; }
.editorial-end h2 { margin: 0; }
.retail-editorial p:not(.eyebrow) { max-width: 49ch; }
.retail-editorial .contact-address { display: inline-block; margin-bottom: 1.25rem; }
.retail-editorial .brand-link { display: flex; width: fit-content; }

body.shop-body { background: var(--store-background); }
.shop-body .main-nav a[aria-current="page"]::after { display: none; }
.shop-body .site-header { background: var(--store-background); }
.shop-body .mobile-cart { display: none; }
.shop-main .catalog-intro, .shop-main .shop-notice, .shop-main .product-grid, .shop-main .shop-links {
  width: min(100% - 2 * var(--editorial-edge), 67rem);
  max-width: none;
  margin-inline: auto;
}
.catalog-intro { padding-top: clamp(1.65rem, 3.7vw, 3rem); padding-bottom: 1rem; }
.shop-main .catalog-intro h1 { --type-page: clamp(2.6rem, 5vw, 4.4rem); margin: 0 0 .45rem; }
.catalog-intro p { margin: 0; color: var(--muted); }
.shop-main .shop-notice {
  display: block;
  padding: .85rem 1rem;
  margin-top: 0;
  margin-bottom: 1.4rem;
  background: #efeee7;
  border: 1px solid var(--store-border);
  color: var(--green);
}
.shop-main [hidden] { display: none !important; }
.shop-main .product-grid { gap: clamp(1rem, 3vw, 2.15rem); }
.shop-main .product-card { background: #fff; border: 1px solid var(--store-border); display: flex; flex-direction: column; min-width: 0; }
.shop-main .product-photo { aspect-ratio: 3 / 2; }
.shop-main .product-photo img { object-position: center; }
.shop-main .card-copy { display: flex; flex: 1; flex-direction: column; padding: clamp(1rem, 2.4vw, 1.65rem); }
.shop-main .card-heading { display: flex; justify-content: space-between; align-items: baseline; gap: .75rem; }
.shop-main .card-heading h2 { --type-card: clamp(1.28rem, 2.6vw, 1.8rem); margin: 0; }
.shop-main .card-copy > p:not(.eyebrow) { margin: .45rem 0 1rem; }
.shop-main .price { white-space: nowrap; }
.shop-main .card-actions { margin-top: auto; }
.shop-main .card-actions > .button { flex: 1 1 auto; justify-content: center; text-align: center; }
.shop-main .shop-links { margin-top: 2.75rem; }
.shop-main .shop-links a { font-weight: 600; font-size: .92rem; }
.shop-main .shop-links a > span { margin-left: auto; }
.shop-main .order-summary, .shop-main .checkout-info { background: #fff; border: 1px solid var(--store-border); }
.shop-main :is(.order-summary, .checkout-info) h2 { --type-section: 1.55rem; margin-top: 0; }
.shop-main .purchase-row { margin-block: 1rem; }
.shop-main .availability { color: var(--green); border: 0; padding: 0; }
.shop-main .purchase-row button:disabled { cursor: not-allowed; }
.shop-main .cart-layout { align-items: start; }
.shop-main .shop-toast { line-height: 1.5; }

@media (max-width: 760px) {
  .shop-body .mobile-cart {
    display: inline-flex;
    min-height: 44px;
    margin-inline: auto .35rem;
    padding-inline-start: .65rem;
    color: var(--green);
    font-size: .8125rem;
    text-decoration: none;
  }
  .shop-body .main-nav .shop-cart-link { display: none; }
  .shop-body .site-header .menu-toggle { flex-shrink: 0; }
  .editorial-cover { min-height: 29rem; }
  .retail-cover > img { object-position: 69% center; }
  .collection-cover > img { object-position: 67% center; }
  .editorial-cover::after { background: linear-gradient(0deg, #091f19e6, #091f195c 72%); }
  .editorial-cover-copy { padding: 3rem var(--editorial-edge); }
  .editorial-cover-copy h1 { --type-page: clamp(3rem, 11vw, 4.5rem); }
  .collection-story, .collection-story--azul, .editorial-end, .retail-editorial { grid-template-columns: 1fr; }
  .collection-story--azul figure, .collection-story--azul .collection-story-copy { grid-column: auto; grid-row: auto; }
  .editorial-end .button { justify-self: start; }
  .shop-main .catalog-intro, .shop-main .shop-notice, .shop-main .product-grid, .shop-main .shop-links {
    width: calc(100% - 2 * var(--editorial-edge));
  }
  .shop-main .product-photo { aspect-ratio: 5 / 4; }
  .shop-main .card-heading { flex-direction: row; align-items: baseline; }
  .shop-main .card-actions .shop-outline { padding-inline: .65rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}


.retail-cover > img { object-position: 70% center; }
.retail-cover { align-items: center; }
.collection-cover {
  grid-template-columns: minmax(0, .36fr) minmax(0, .64fr);
  align-items: center;
  min-height: 0;
  aspect-ratio: 1672 / 941;
  background: #101f19;
}
.collection-cover-scene {
  position: absolute;
  inset: 0;
  z-index: -1;
}
.collection-cover-scene img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.collection-cover::after { content: none; }
.collection-cover .editorial-cover-copy {
  grid-column: 1;
  grid-row: 1;
  padding-block: 2rem;
  padding-inline-end: 0;
}
.collection-cover h1 { --type-page: clamp(2.2rem, 4vw, 5rem); }

.scarf-view { margin: 0; min-width: 0; }
.scarf-view > a { display: block; background: #ebe6dc; }
.scarf-view img { display: block; width: 100%; height: auto; }
.scarf-view figcaption {
  display: flex;
  justify-content: space-between;
  gap: .8rem;
  padding: .65rem 0;
  color: var(--green);
  font-size: .8rem;
}
.scarf-view figcaption a { text-underline-offset: .2em; }
.design-actions { display: flex; align-items: start; flex-wrap: wrap; gap: .65rem 1.5rem; }
.design-actions .brand-link { gap: .7rem; }
.design-hero .scarf-view img,
.reverse-story .scarf-view img { aspect-ratio: 3 / 1; object-fit: contain; }
.detail-pair .scarf-view img { aspect-ratio: 2 / 1; object-fit: cover; }
.shop-main .product-photo img,
.shop-main .gallery-primary img { object-fit: contain; }
.shop-main .product-photo,
.shop-main .gallery-primary img { aspect-ratio: 3 / 1; background: #ebe6dc; }
.shop-main .gallery-thumbs img { aspect-ratio: 2 / 1; object-fit: contain; background: #ebe6dc; }
.shop-main .gallery-thumbs span {
  display: block;
  margin-top: .35rem;
  color: var(--green);
  font-size: .72rem;
  line-height: 1.2;
}
@media (max-width: 760px) {
  .retail-cover { align-items: end; }
  .collection-cover {
    grid-template-columns: 1fr;
    align-items: start;
    min-height: 0;
    aspect-ratio: 2 / 3;
  }
  .collection-cover .editorial-cover-copy {
    width: 100%;
    max-width: none;
    padding: 1.75rem var(--editorial-edge) 0;
  }
  .collection-cover h1 { --type-page: clamp(2.4rem, 10vw, 3.5rem); margin-bottom: 1.1rem; }
  .collection-cover .eyebrow { margin-bottom: .75rem; }
  .collection-cover .editorial-cover-copy p:not(.eyebrow) { max-width: 34ch; margin-bottom: 1.25rem; }
  .retail-cover > img { object-position: 77% center; }
  .design-hero .design-title { grid-row: 1; }
  .design-actions .brand-link { margin-top: .5rem; }
  .detail-pair .scarf-view:nth-child(2) { width: 100%; }
}

@media (max-width: 360px) {
  .collection-cover .editorial-cover-copy { padding-top: 1.25rem; }
  .collection-cover h1 { --type-page: 2.25rem; margin-bottom: .75rem; }
  .collection-cover .eyebrow { margin-bottom: .5rem; }
  .collection-cover .editorial-cover-copy p:not(.eyebrow) {
    --type-body: .875rem;
    margin-bottom: 1rem;
  }
  .brand-collection .collection-cover .button { min-height: 44px; padding: 12px 16px; }
}

/* Show location photos at their full frame; keep the original front/back views. */
.shop-main .product-gallery:has([data-gallery-kind="scene"][aria-pressed="true"]) .gallery-primary img {
  aspect-ratio: 3 / 2;
  object-fit: contain;
}
.shop-main .gallery-thumbs [data-gallery-kind="scene"] img { object-fit: cover; }
