/* Keep the outer margins plain. The original artwork belongs inside the panels. */
.store-page {
  --rabbit-art: url("/assets/background-landscape.webp");
  --panel-wash: linear-gradient(105deg, #fffaf1f5 12%, #fffaf1e8 62%, #fffaf1c4);
  min-height: 100vh;
  background: #faf3e9;
}
.shipping-banner {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: .2rem clamp(1rem, 2.4vw, 2.5rem);
  padding: .55rem .75rem;
  border-bottom: 1px solid #db7d9f;
  background: #ffa8c7;
  color: #391c37;
  text-align: center;
  font: 700 clamp(.92rem, .88rem + .2vw, 1rem)/1.4 var(--sans);
}
.shipping-banner .banner-item { text-wrap: balance; }
html:lang(en) .shipping-banner [lang="zh-CN"],
html:lang(zh) .shipping-banner [lang="en"] { display: none; }
@media (max-width: 54rem) {
  .shipping-banner { flex-direction: column; }
}
.store-page .mast {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: clamp(.8rem, 2vw, 2.25rem);
  padding: .52rem clamp(.75rem, 1.8vw, 1.5rem);
  margin: .7rem 0 1rem;
  border-radius: 1.1rem;
  background: #fffaf1f2;
  border: 1px solid #e4d6cc;
}
.store-page .mast .wordmark {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: .65rem;
  min-width: 0;
  white-space: nowrap;
  text-decoration: none;
  color: #505078;
  font: italic 700 clamp(1.45rem, 2.45vw, 2.28rem)/1 var(--serif);
  letter-spacing: -.065em;
}
.store-page .wordmark img {
  display: block;
  width: clamp(5.8rem, 7.8vw, 7rem);
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
  border-radius: 19%;
}
.store-page .mast nav {
  justify-self: end;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(.7rem, 1.5vw, 1.75rem);
}
.store-page .mast :is(.languages, .lang) { justify-self: end; }
.store-page .mast .brand-contact {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  min-height: 44px;
  padding: .59rem 1.05rem;
  border: 1px solid #05864a;
  border-radius: 999px;
  background: #07c160;
  color: #082c1d;
  font: 750 .94rem/1.2 var(--sans);
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
}
.store-page .brand-contact:hover { background: #05ae55; }
.store-page .brand-contact:focus-visible { outline: 3px solid #254735; outline-offset: 3px; }
.wechat-mark {
  position: relative;
  display: inline-block;
  width: 1.45em;
  height: 1.16em;
  flex: none;
  color: #083724;
}
.wechat-mark::before, .wechat-mark::after {
  content: "";
  position: absolute;
  width: 1.04em;
  height: .8em;
  inset: 0 auto auto 0;
  border-radius: 52% 52% 52% 12%;
  background: radial-gradient(circle at 34% 40%, #b5f6d0 0 7%, transparent 8%),
              radial-gradient(circle at 63% 40%, #b5f6d0 0 7%, transparent 8%), currentColor;
}
.wechat-mark::after {
  inset: auto 0 0 auto;
  width: .86em;
  height: .67em;
  border-radius: 52% 52% 12% 52%;
  box-shadow: -1px -1px 0 #07c160;
}
.store-page.guide .mast nav { position: static; }
.store-page .section, .store-page .detail, .store-page .checkout,
.store-page footer, .store-page .guide-contents {
  background: #fffaf1f3;
  border: 1px solid #dfd5cb;
  border-radius: 1rem;
  padding: clamp(1.1rem, 2.9vw, 2.5rem);
}
.store-page .section { margin-top: clamp(1rem, 2.1vw, 1.9rem); }
.store-page :is(.section, .detail, .checkout, .receipt, .strip, .guide-contents),
.store-page.guide article > section {
  background-color: #fffaf1;
  background-image: var(--panel-wash), var(--rabbit-art);
  background-size: 100% 100%, min(100%, 54rem) auto;
  background-position: center, right 90%;
  background-repeat: no-repeat;
}
.store-page .trail, .store-page .back {
  background: #fffbf3;
  border-radius: 1rem;
  padding: .25rem .8rem;
}
.store-page .benefits {
  width: fit-content;
  margin: .65rem auto;
  border: 1px solid #e0d4c8;
  border-radius: 999px;
  background: #fff9eeed;
  padding: .28rem .85rem;
}
.store-page.guide .guide-contents { padding: .95rem; }

.store-page:not(.guide) .hero {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
  align-items: center;
  gap: clamp(1rem, 3vw, 3rem);
  padding: clamp(1.5rem, 3.7vw, 3.6rem);
  border: 1px solid #ded5c5;
  border-radius: 1.2rem;
}
.store-page .hero, .store-page .section.about-intro {
  background-color: #fff8ed;
  background-image: linear-gradient(90deg, #fff8ed 10%, #fff8edf5 34%, #fff8ed96 56%, #fff8ed0a 78%), var(--rabbit-art);
  background-size: 100% 100%, clamp(33rem, 78%, 69rem) auto;
  background-position: center, right 93%;
  background-repeat: no-repeat;
}
.store-page:not(.guide) .hero:has(> .hero-album[hidden]) {
  min-height: clamp(19rem, 29vw, 27rem);
}
.store-page.guide .hero-inner {
  width: min(75%, 45rem);
  background: #fffaf1ed;
  border: 1px solid #e4d9d0;
}
.hero-copy {
  min-width: 0;
}
.hero-copy h1 {
  color: var(--plum);
  font-size: clamp(3.1rem, 5.4vw, 5.7rem);
  line-height: .99;
}
.hero-copy h1 em { color: #98566e; font-weight: 500; }
.hero-copy p {
  color: #504b5c;
  max-width: 36ch;
  font-size: clamp(.98rem, 1.26vw, 1.12rem);
  margin: .85rem 0 1.25rem;
}
/* Overlapping prints show the camera and a photograph taken with that unit. */
.hero-album {
  position: relative;
  isolation: isolate;
  width: 100%;
  max-width: 35rem;
  aspect-ratio: 1.52;
  justify-self: center;
}
.hero-album figure {
  position: absolute;
  margin: 0;
  padding: clamp(.35rem, .75vw, .68rem);
  background: #fffdf9;
  border: 1px solid #d9d4c9;
  box-shadow: 0 .35rem .8rem #5147311b;
}
.hero-album a { display: block; }
.hero-album a:focus-visible { outline-offset: 0; }
.hero-album figure:focus-within { z-index: 2; }
.hero-album figure img {
  display: block;
  width: 100%;
  background: #f6f2ea;
  aspect-ratio: 4 / 3;
}
.album-camera {
  top: 5%;
  left: 2%;
  width: 69%;
  transform: rotate(-4deg);
}
.album-camera img { object-fit: contain; }
.album-sample {
  right: 2%;
  bottom: 3%;
  width: 43%;
  transform: rotate(6deg);
}
.album-sample img { object-fit: cover; }
.album-sample::before {
  content: "";
  position: absolute;
  z-index: 1;
  pointer-events: none;
  top: -.5rem;
  left: 30%;
  width: 40%;
  height: .95rem;
  background: #a7b9ccbb;
  transform: rotate(-3deg);
}
.hero-album figcaption {
  padding: .42rem .2rem .12rem;
  line-height: 1.25;
  font-size: clamp(.74rem, 1.15vw, .92rem);
  color: #534e5d;
  overflow-wrap: anywhere;
}
@media (max-width: 54rem) {
  .store-page .mast {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: .45rem .75rem;
  }
  .store-page .mast .wordmark { grid-area: 1 / 1; }
  .store-page .mast .brand-contact { grid-area: 1 / 2; }
  .store-page .mast nav {
    grid-area: 2 / 1;
    justify-self: start;
    flex-wrap: wrap;
    gap: .25rem .8rem;
  }
  .store-page .mast :is(.lang, .languages) { grid-area: 2 / 2; }
}
@media (max-width: 35rem) {
  .store-page { --rabbit-art: url("/assets/background-portrait.webp"); }
  .store-page .hero, .store-page .section.about-intro {
    background-image: linear-gradient(105deg, #fff8edf5, #fff8edeb 40%, #fff8ed85 66%, #fff8ed05 90%), var(--rabbit-art);
    background-size: 100% 100%, 100% auto;
    background-position: center, right bottom;
  }
  .store-page .wrap, .store-page .site { padding-inline: .65rem; }
  .store-page .mast {
    margin: .45rem 0 .75rem;
    padding: .42rem .55rem .55rem;
    gap: .4rem .35rem;
  }
  .store-page .wordmark img { width: clamp(4.7rem, 20vw, 5.7rem); }
  .store-page .mast .wordmark { gap: .35rem; font-size: clamp(1.12rem, 5vw, 1.6rem); }
  .store-page .mast .brand-contact { font-size: .85rem; gap: .35rem; padding-inline: .7rem; }
  .store-page .mast nav { gap: .18rem .5rem; }
  .store-page .mast nav a { font-size: .78rem; }
  .store-page .mast :is(.lang, .languages) button { padding-inline: .48rem; font-size: .78rem; }
  .store-page .section, .store-page .detail, .store-page .checkout, .store-page footer { padding: .9rem; }
  .store-page:not(.guide) .hero {
    grid-template-columns: minmax(0, 1fr);
    gap: .9rem;
    padding: clamp(1.1rem, 5vw, 1.75rem);
  }
  .store-page:not(.guide) .hero:has(> .hero-album[hidden]) { min-height: 16rem; }
  .store-page:not(.guide) .hero:has(> .hero-album[hidden]) .hero-copy { max-width: 80%; }
  .store-page.guide .hero-inner { width: 86%; }
  .hero-copy h1 { font-size: clamp(2.25rem, 9.5vw, 3.8rem); }
  .hero-copy p { margin: .55rem 0 .8rem; font-size: .9rem; }
  .hero-album { max-width: 24rem; }
}
/* Use the lettering and the rabbit from separate parts of the original artwork,
   so a panel can grow with its content without cropping its name. */
.store-page .shop-panel {
  position: relative;
  isolation: isolate;
  overflow: clip;
  background: #fff8ed;
}
.shop-panel::before {
  content: "";
  position: absolute;
  z-index: -1;
  pointer-events: none;
  right: 0;
  bottom: 0;
  width: min(80%, 60rem);
  aspect-ratio: 1440 / 608;
  max-height: 100%;
  background: var(--rabbit-art) right 0 bottom -.8rem / 100% auto no-repeat;
  --scene-fade: linear-gradient(90deg, transparent, #000 68%);
  mask-image: var(--scene-fade), linear-gradient(transparent, #000 14%);
  mask-composite: intersect;
  opacity: .22;
}
.hero.shop-panel::before { opacity: .88; }
.panel-wordmark {
  display: block;
  width: min(100%, 10rem);
  aspect-ratio: 5.55;
  margin: 0 auto .9rem;
  pointer-events: none;
  background: url("/assets/background-landscape.webp") 49.3% 21.7% / 163.64% auto no-repeat;
  filter: contrast(1.7) brightness(1.22);
  mix-blend-mode: multiply;
  mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent),
              linear-gradient(transparent, #000 8%, #000 93%, transparent);
  mask-composite: intersect;
}
.hero .panel-wordmark {
  grid-column: 1 / -1;
  width: clamp(10rem, 20vw, 17rem);
  margin: 0 auto;
}
.strip.shop-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
}
.strip .panel-wordmark { grid-column: 1 / -1; margin-bottom: 0; }
@media (min-width: 57rem) {
  .store-page .hero:has(> .hero-album[hidden]) {
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  }
  .hero:has(> .hero-album[hidden]) .panel-wordmark { grid-area: 1 / 2; }
  .hero:has(> .hero-album[hidden]) .hero-copy { grid-area: 1 / 1; }
}
@media (max-width: 35rem) {
  .shop-panel::before {
    width: 100%;
    aspect-ratio: 860 / 750;
    --scene-fade: linear-gradient(90deg, transparent, #000 90%);
  }
  .hero.shop-panel::before { opacity: .72; }
  .strip.shop-panel { grid-template-columns: minmax(0, 1fr); }
  .strip.shop-panel .btn { justify-self: start; }
}
@media print {
  .shop-panel::before, .panel-wordmark { display: none; }
  .store-page .mast .brand-contact { display: none; }
  .store-page, .store-page main * { background-image: none !important; }
  .store-page .mast { border: 0; }
}
.guide-contact {
  width: min(27rem, calc(100% - 1.6rem));
  max-height: 90dvh;
  padding: 1.25rem;
  border: 1px solid #c9c2bc;
  border-radius: 1rem;
  background: #fffaf1;
  color: #38394e;
}
.guide-contact::backdrop { background: #312a3b82; }
.contact-heading { display: flex; align-items: center; justify-content: space-between; gap: .7rem; }
.guide-contact h2 { margin: 0; }
.contact-close { min-width: 44px; min-height: 44px; border: 1px solid #bcb1bd; border-radius: .7rem; background: #fffdf8; font-size: 1.4rem; cursor: pointer; }
.guide-contact img { display: block; width: min(100%, 17rem); height: auto; margin: .8rem auto; }
.guide-contact strong { user-select: all; }
