/* CANDY page – page-specific styles (shell comes from site.css) */
/* ---------- hero ---------- */
.hero img { width: 100%; height: min(66.6vw, 100vh); object-fit: cover; }
.stripe { height: 120px; background: var(--orange); }

/* ---------- gallery ---------- */
.intro { display: grid; grid-template-columns: auto 1fr; height: 100vh; min-height: 560px; }
.slideshow { position: relative; height: 100%; aspect-ratio: 3 / 4; background: var(--bg); overflow: hidden; }
.slide {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity .6s ease;
}
.slide.is-active { opacity: 1; }
.arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 56px; height: 56px; border: 0; background: none; cursor: pointer; color: #fff;
  filter: drop-shadow(0 0 6px rgba(0,0,0,.35));
}
.arrow svg { width: 34px; height: 34px; }
.arrow.prev { left: 6px; } .arrow.next { right: 6px; }
.count { position: absolute; bottom: 14px; left: 0; right: 0; text-align: center; color: #fff; font-family: var(--small); font-size: 12px; letter-spacing: .1em; filter: drop-shadow(0 0 4px rgba(0,0,0,.5)); }

.intro-text { align-self: stretch; justify-self: center; padding: 0 40px; max-width: 680px; position: relative; display: flex; flex-direction: column; justify-content: center; }
.title { font-family: "Monoton", cursive; font-weight: 400; font-size: clamp(56px, 7vw, 100px); line-height: 1; margin: 0 0 .35em; letter-spacing: .02em; }
.lead { font-size: clamp(17px, 1.5vw, 22px); line-height: 1.55; margin: 0; }
/* three coatCANDY that spin at different speeds on hover */
.candies { display: flex; align-items: center; justify-content: flex-end; gap: 17px; margin: 0; position: absolute; right: 40px; bottom: 36px; }
.candy { width: var(--s); height: var(--s); border-radius: 50%; overflow: hidden; flex: none; animation: spin var(--t) linear infinite var(--d); animation-play-state: paused; }
.candy img { width: 152%; max-width: none; height: 152%; margin: -26%; }
.candy:hover, .candy:active { animation-play-state: running; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .candy { animation: none; } }
.credit { font-family: var(--small); font-size: 12px; line-height: 1.6; margin: 2.2em 0 0; }
.credit.right { text-align: right; }
.credit a { text-underline-offset: 2px; }

/* ---------- stories ---------- */
.story { position: relative; width: 100%; aspect-ratio: var(--ar); }
.story .copy { position: absolute; left: var(--tx); top: var(--ty); width: var(--tw); }
.story h2 { font-family: "SB Sub", "SB Text", sans-serif; font-weight: 400; font-size: clamp(26px, 2.8vw, 40.5px); line-height: 1.2; margin: 0 0 .9em; }
.story p { margin: 0 0 1em; }
.story .pic { position: absolute; left: var(--x); top: var(--y); width: var(--w); height: var(--h); object-fit: cover; }

/* pictures with a photo credit underneath */
.story figure.pic { margin: 0; }
.story figure.pic img { width: 100%; height: 100%; object-fit: cover; }
.story figure.pic figcaption.credit { position: absolute; left: 0; top: 100%; margin: 6px 0 0; white-space: nowrap; }

/* ---------- big photo ---------- */
.feature { margin-top: 100px; }
.feature img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.feature .credit { margin: 8px var(--gutter) 0; }

/* ---------- products ---------- */
.shop { padding: 110px var(--gutter) 40px; }
.shop h2 { font-family: "Monoton", cursive; font-weight: 400; font-size: clamp(36px, 4vw, 56px); margin: 0 0 40px; word-spacing: .45em; max-width: 1152px; margin-left: auto; margin-right: auto; }
.shop .status { font-family: var(--small); font-size: 14px; }

@media (max-width: 900px) {
  .stripe { height: 60px; }
  .intro { grid-template-columns: 1fr; height: auto; min-height: 0; }
  .slideshow { width: 100%; height: auto; }
  .intro-text { padding: 36px 18px 0; }
  .credit.right { text-align: left; }
  .intro-text { display: block; }
  .candies { position: static; justify-content: flex-start; margin: 34px 0 0; }
  .story { aspect-ratio: auto; padding: 70px 18px 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .story .copy { position: static; width: auto; grid-column: 1 / -1; order: -1; margin-bottom: 16px; }
  .story .pic { position: static; width: 100%; height: auto; aspect-ratio: 1; order: var(--o, 0); }
  .story figure.pic { aspect-ratio: auto; }
  .story figure.pic img { height: auto; aspect-ratio: 1; }
  .story figure.pic figcaption.credit { position: static; }
  .feature { margin-top: 80px; }
  .shop { padding: 80px 18px 20px; }
}
/* cut-out candy pictures (transparent PNG/WebP) show whole, no zoom */
.candy img[src^="/assets/candies/"], .candy img.cut { width: 100%; height: 100%; margin: 0; }
/* a section pulled up into the one above must not block clicks on it */
.story.pulled { pointer-events: none; }
.story.pulled > * { pointer-events: auto; }
