/* Editorial layouts for the bakery's collection and house pages. */
:root {
  --house-paper: #fffaf2;
  --house-rule: #d9c7b0;
  --house-section-space: clamp(56px, 7vw, 110px);
  --house-panel-space: clamp(22px, 3.4vw, 50px);
}

.collection-hero,
.gifting-hero,
.visit-hero {
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
  align-items: center;
  gap: clamp(28px, 5vw, 90px);
  padding-bottom: clamp(42px, 6vw, 92px);
  border-bottom: 1px solid var(--house-rule);
}

.collection-hero > .collection-copy,
.visit-hero > div:first-child {
  min-width: 0;
  padding: var(--house-panel-space);
  background: var(--house-paper);
  border: 1px solid var(--house-rule);
}

.collection-hero .collection-copy h1,
.visit-hero h1 {
  font-size: clamp(46px, 5.8vw, 86px);
  line-height: 1.02;
  text-wrap: balance;
}

.collection-hero .collection-image,
.gifting-hero figure {
  min-width: 0;
  margin: 0;
  padding: clamp(12px, 1.4vw, 22px);
  border: 1px solid var(--house-rule);
  border-radius: 2px;
  background: var(--house-paper);
  box-shadow: none;
}

.collection-hero .collection-image > img,
.gifting-hero figure > img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 560px;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  border-radius: 0;
}

.collection-hero .collection-image .circle-seal {
  left: auto;
  right: 12px;
  bottom: 12px;
}

.gifting-hero .gifting-collection-caption {
  color: var(--muted);
}

.bakery-page .bakery-intro {
  border-bottom: 1px solid var(--house-rule);
}

@media (min-width: 901px) {
  .bakery-page .bakery-intro {
    display: grid;
    grid-template-columns: minmax(0, .84fr) minmax(0, 1.16fr);
    grid-template-rows: auto auto auto;
    align-content: center;
    column-gap: clamp(32px, 6vw, 95px);
  }

  .bakery-page .bakery-intro > :is(.eyebrow, h1, .intro-bottom) {
    grid-column: 1;
  }

  .bakery-page .bakery-intro h1 {
    font-size: clamp(60px, 6.1vw, 104px);
    line-height: 1;
  }

  .bakery-page .bakery-intro .intro-bottom {
    display: block;
    margin-top: 24px;
  }

  .bakery-page .bakery-intro .intro-bottom > p {
    margin-bottom: 22px;
  }

  .bakery-page .bakery-hero-image {
    grid-column: 2;
    grid-row: 1 / 4;
    align-self: stretch;
    height: auto;
    min-height: 350px;
    margin: 0;
  }
}

.bakery-page .bakery-hero-image {
  border: 1px solid var(--house-rule);
}

:is(.christmas-page #collection, .bakery-page .store-menu, .curated-gifting, .heritage-album, .heritage-after) {
  padding-block: var(--house-section-space);
}

:is(.christmas-page #collection, .bakery-page .store-menu, .curated-gifting, .related) > .section-heading,
.heritage-album > .archive-heading {
  padding-bottom: clamp(19px, 2.6vw, 34px);
  border-bottom: 1px solid var(--house-rule);
}

.christmas-page .christmas-group > h3 {
  margin-bottom: clamp(20px, 3vw, 34px);
  padding-bottom: 13px;
  border-bottom-color: var(--house-rule);
  letter-spacing: .12em;
}

:is(.christmas-page #collection, .related) .quick-shop-card .product-visual,
.bakery-page .store-visual {
  aspect-ratio: 1;
  border: 1px solid var(--house-rule);
  border-radius: 2px;
}

:is(.christmas-page #collection, .related) .quick-shop-card .product-action {
  border-top: 1px solid var(--house-rule);
}

.bakery-page .store-tools {
  padding-block: 17px;
  border-bottom: 1px solid var(--house-rule);
}

.curated-gifting .collection-choice,
.curated-gifting .gift-personalisation,
.curated-gifting .gift-message-fields :is(input, textarea),
.visit-hero .address-card,
.enquiry-section .contact-route,
.enquiry-section .enquiry-form {
  border-radius: 2px;
}

.curated-gifting .collection-choice,
.curated-gifting .gift-personalisation {
  border: 1px solid var(--house-rule);
}

.curated-gifting .gift-personalisation,
.enquiry-section .enquiry-form {
  background: var(--house-paper);
}

.curated-gifting .gift-letter {
  transform: none;
  box-shadow: none;
}

.visit-hero .address-card {
  min-height: clamp(335px, 37vw, 510px);
  width: 100%;
  max-width: none;
}

.visit-routes {
  padding-top: clamp(34px, 5vw, 72px);
}

.heritage-album .archive-grid img {
  border-width: clamp(5px, .7vw, 10px);
  border-radius: 0;
  box-shadow: none;
}

.heritage-album .archive-caption {
  padding-top: 17px;
}

.bakery-story {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr);
  gap: clamp(28px, 6vw, 95px);
  padding-block: var(--house-section-space);
  background: var(--house-paper);
  border-block: 1px solid var(--house-rule);
}

.bakery-story-heading h2 {
  margin: 0;
  font-size: clamp(38px, 5.3vw, 76px);
  line-height: 1.05;
  text-wrap: balance;
}

.bakery-story-copy {
  max-width: 66ch;
  font-size: clamp(16px, 1.38vw, 19px);
  line-height: 1.65;
}

.bakery-story-copy > p { margin: 0 0 18px; }
.bakery-story-copy > p:last-child { margin-bottom: 0; }

.bakery-story-values {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px 28px;
  margin: 20px 0;
  padding-block: 18px;
  border-block: 1px solid var(--house-rule);
}

.bakery-story-values dt { font-weight: 700; }
.bakery-story-values dd { margin: 3px 0 0; }

@media (max-width: 760px) {
  .bakery-story { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 430px) {
  .bakery-story-values { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 900px) {
  .collection-hero .collection-copy h1,
  .visit-hero h1 {
    font-size: clamp(38px, 6.5vw, 58px);
  }
}

@media (max-width: 700px) {
  .collection-hero,
  .gifting-hero,
  .visit-hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .collection-hero .collection-image > img,
  .gifting-hero figure > img {
    max-height: 340px;
  }

  .visit-hero .address-card {
    min-height: 290px;
  }
}

@media (max-width: 600px) {
  :is(.christmas-page #collection, .related) .quick-shop-card
    > :is(.product-visual, h3, .product-desc, .pack-visual, .quick-shop-form, .product-action) {
    order: 0;
  }

  :is(.christmas-page #collection, .related) .quick-shop-card h3 {
    margin-top: 16px;
  }
}
