/* Home campaign, product comparison and service entrances. */
:root {
  --home-space: clamp(3.75rem, 7.2vw, 7.25rem);
  --home-gutter: clamp(1rem, 2.9vw, 2.75rem);
}
.wrap { max-width: 78rem; }
.contact-bar .wrap { justify-content: center; min-height: 1.65rem; }
.contact-bar .contact-email[href="#contact-maccun"] { display: none; }

.collection-mast {
  position: relative; isolation: isolate; overflow: hidden;
  background: #7d260c; color: #fff8eb;
}
.mast-amber {
  position: absolute; z-index: -2; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 56% 52%;
}
.collection-mast::after {
  content: ""; position: absolute; z-index: -1; inset: 0;
  background: linear-gradient(92deg, rgb(33 7 3 / 71%) 0%, rgb(46 7 0 / 31%) 43%, transparent 74%);
}
.mast-copy {
  min-height: clamp(24rem, 34vw, 37rem); display: grid; align-content: center; justify-items: start;
  padding-block: clamp(3.15rem, 5.7vw, 6.25rem);
}
.mast-copy h1 { color: #fff8eb; font-size: clamp(4.3rem, 7vw, 7.8rem); line-height: .9; letter-spacing: -.07em; }
.mast-copy h1 em { display: inline-block; font: italic 400 .96em/.95 var(--serif); letter-spacing: -.055em; }
.mast-copy p { max-width: 32ch; margin-top: clamp(1.1rem, 2vw, 1.7rem); font-size: clamp(1rem, 1.32vw, 1.3rem); line-height: 1.48; }
.mast-collection-link {
  display: inline-flex; align-items: center; justify-content: space-between; gap: 1.75rem;
  margin-top: 1.6rem; min-height: 3rem; padding: .7rem 1.15rem;
  border-radius: 1px; background: #fff8ec; color: #291d16;
}
.mast-collection-link:hover { background: white; text-decoration: underline; text-underline-offset: .25em; }
.collection-mast a:focus-visible { outline-color: #ffe9d7; }

.compare-section { padding-block: var(--home-space); scroll-margin-top: .65rem; }
.compare-heading { display: flex; align-items: end; justify-content: space-between; flex-wrap: wrap; gap: 1rem 2rem; }
.compare-heading h2, .home-trade h2 { font-size: clamp(2.65rem, 5.1vw, 5.15rem); line-height: 1; }
.compare-heading em { color: var(--accent-ink); }
.compare-switch { display: inline-flex; gap: 1.45rem; border-bottom: 1px solid #cdbfb0; }
.compare-switch a {
  display: inline-flex; align-items: center; min-height: 2.85rem; margin-bottom: -1px; padding: .38rem 0;
  border-bottom: 2px solid transparent; color: #5d534b; font-weight: 650;
}
.compare-switch a[aria-current] { color: #261f1a; border-color: #bd3e13; }
.compare-group { scroll-margin-top: .7rem; }
.compare-delivery { margin: 1.1rem 0 0; line-height: 1.5; font-size: .95rem; color: var(--ink); }
.compare-spec { margin: 1rem 0 1.45rem; color: #645950; }
.compare-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--home-gutter); }
.compare-card { min-width: 0; display: flex; flex-direction: column; }
.compare-image-space {
  position: relative; isolation: isolate;
  background: radial-gradient(ellipse at 50% 35%, #fffdf9 0%, #f6efe6 70%, #f0e5d8 100%);
}
.compare-product {
  display: grid; grid-template: minmax(0, 1fr) / minmax(0, 1fr); place-items: center;
  width: 100%; aspect-ratio: 1.55; overflow: hidden;
}
.compare-photo, .compare-jar { display: block; min-height: 0; width: 100%; height: 90%; object-fit: contain; mix-blend-mode: multiply; }
.compare-jar { height: 74%; }
.compare-product:focus-visible, .compare-enlarge:focus-visible { outline-offset: -3px; }
.compare-enlarge {
  position: absolute; top: .6rem; right: .6rem; display: grid; place-items: center;
  width: 44px; height: 44px; font: 400 1.3rem/1 var(--sans);
}
.compare-enlarge span { width: 1.65rem; height: 1.65rem; display: grid; place-items: center; border: 1px solid #c5b7a7; border-radius: 50%; background: #fffbf5; }
.compare-enlarge:hover { text-decoration: none; }
.compare-name { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: .35rem .75rem; margin-top: 1.15rem; }
.compare-name h3 { font: 800 clamp(1.5rem, 2.7vw, 2.75rem)/1.04 var(--display); letter-spacing: -.055em; }
.compare-name strong { white-space: nowrap; font-size: clamp(.98rem, 1.23vw, 1.22rem); }
.compare-taste { margin: .6rem 0 1.12rem; color: #554a40; line-height: 1.5; }
.compare-buy {
  min-height: 2.85rem; align-self: flex-start; margin-top: auto; padding: .65rem 1.35rem;
  color: #fff8ef; background: #211b17; font-weight: 650;
}
.compare-buy:hover { background: #463023; }
.compare-details, .compare-foot a, .story-all { display: inline-flex; align-items: center; min-height: 44px; gap: .6rem; color: #3b3027; text-decoration: underline; text-underline-offset: .24em; }
.compare-details { margin-top: 1.25rem; }
.compare-foot {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .75rem 2rem;
  margin-top: 1.15rem; border-top: 1px solid var(--line); padding-top: 1.1rem; color: var(--muted); font-size: .93rem;
}
.compare-foot nav { display: flex; flex-wrap: wrap; column-gap: 1.4rem; }
.compare-group + .compare-group:not([hidden]) { margin-top: 2.2rem; }
#case-lightbox { inset: 0; margin: auto; width: min(94vw, 64rem); max-width: 94vw; max-height: 94vh; padding: .8rem; background: white; }
#case-lightbox::backdrop { background: rgb(20 14 9 / 82%); }
#case-lightbox form { display: flex; justify-content: flex-end; margin: 0; padding: .15rem; }
#case-lightbox button { min-height: 2.75rem; padding: .5rem 1rem; background: #241c17; color: white; }
.case-lightbox-content img { display: block; width: 100%; max-height: 78vh; object-fit: contain; }
.home-trade { background: #fffaf1; }
.home-trade-inner {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap;
  gap: 1.6rem 2.5rem; padding-block: clamp(3.5rem, 6vw, 6rem);
}
.home-trade h2 { font-size: clamp(2.5rem, 4.4vw, 4.5rem); }
.home-trade h2 em { color: #7c351c; }
.home-trade p { max-width: 46ch; margin-top: 1rem; color: #584a3d; }
.home-trade .btn { display: inline-flex; align-items: center; gap: 1.2rem; border-radius: 1px; }
@media (prefers-reduced-motion: no-preference) and (hover: hover) {
  .compare-photo, .compare-jar { transition: transform .3s ease-out; }
  .compare-product:hover img { transform: scale(1.035); }
}
@media (max-width: 700px) {
  .contact-bar .wrap { width: 100%; min-height: 1.6rem; font-size: .75rem; gap: 0; }
  .mast-copy { min-height: clamp(19rem, 46svh, 24rem); padding-block: 2.6rem; }
  .mast-copy h1 { font-size: clamp(3.5rem, 12vw, 5.4rem); }
  .mast-copy p { max-width: 23ch; font-size: 1rem; margin-top: 1.05rem; }
  .mast-amber { object-position: 62% center; }
  .mast-collection-link { margin-top: 1.3rem; }
  .compare-heading { align-items: flex-start; flex-direction: column; gap: .8rem; }
  .compare-spec { margin: .9rem 0 1.1rem; }
  .compare-product { aspect-ratio: 1.06; }
  .compare-enlarge { right: 0; top: 0; }
  .compare-enlarge span { width: 1.45rem; height: 1.45rem; }
  .compare-name { align-items: flex-start; flex-direction: column; margin-top: .85rem; }
  .compare-taste { margin: .4rem 0 .85rem; font-size: .93rem; }
  .compare-buy { width: 100%; font-size: .9rem; padding-inline: .25rem; }
  .compare-foot { display: block; }
  .compare-foot nav { margin-top: .3rem; column-gap: 1rem; }
  .comparing-formats .wa-bubble { visibility: hidden; }
}
