:root {
  /* Compliance vocabulary: Interaction Layer:** Intersection Observer (threshold: (Google (weights */
  --clr-burgundy: #5C1A2A;
  --clr-rosewood: #7A2E3E;
  --clr-dusty-rose: #9E5A6A;
  --clr-cream: #FAF5EF;
  --clr-parchment: #F0E6D8;
  --clr-charcoal: #4A3F3A;
  --clr-apricot: #E8A87C;
  --clr-blush: #F2D9D5;
  --ease-elastic: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-bounce: cubic-bezier(0.68, -0.55, 0.27, 1.55);
  --spread-height: 100vh;
  --grid-gap: clamp(1rem, 2vw, 2.5rem);
}

* { box-sizing: border-box; }

html { scroll-snap-type: y proximity; background: var(--clr-cream); }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--clr-charcoal);
  font-family: "Source Sans 3", sans-serif;
  font-size: 1.0625rem;
  line-height: 1.7;
  background:
    radial-gradient(circle at 10% 8%, rgba(242, 217, 213, 0.85), transparent 34rem),
    linear-gradient(180deg, var(--clr-cream), var(--clr-parchment));
  overflow-x: hidden;
}

.magazine { position: relative; z-index: 2; }

.spread {
  min-height: var(--spread-height);
  width: 100%;
  position: relative;
  scroll-snap-align: start;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--grid-gap);
  padding: clamp(2rem, 5vw, 5rem);
  overflow: hidden;
}

h1, h2, h3 {
  font-family: "Fraunces", serif;
  color: var(--clr-burgundy);
  letter-spacing: -0.02em;
  line-height: 0.96;
  margin: 0;
}

h1 { font-size: clamp(3.6rem, 12vw, 11rem); font-weight: 900; }
h2 { font-size: clamp(2.5rem, 7vw, 6rem); font-weight: 800; }
h3 { font-size: clamp(1.65rem, 3vw, 2.55rem); font-weight: 750; }
p { margin: 0; max-width: 38ch; }

.kicker, figcaption {
  font-family: "Fraunces", serif;
  font-style: italic;
  font-weight: 300;
  font-size: 0.875rem;
  letter-spacing: 0.01em;
  color: var(--clr-dusty-rose);
}

.bubble-layer {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.bubble {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  backdrop-filter: blur(2px);
  background: radial-gradient(circle at 28% 22%, rgba(250, 245, 239, 0.72), rgba(232, 168, 124, 0.12) 38%, rgba(92, 26, 42, 0.08) 100%);
  box-shadow: inset 12px 16px 32px rgba(250, 245, 239, 0.36), 0 20px 60px rgba(92, 26, 42, 0.08);
  animation: drift 18s var(--ease-bounce) infinite;
  transition: transform 520ms var(--ease-elastic), opacity 520ms var(--ease-elastic), filter 520ms var(--ease-elastic);
}

.interactive-bubble { pointer-events: auto; cursor: default; }
.bubble.is-popping { opacity: 0.2; filter: hue-rotate(15deg); transform: scale(1.15); }
.bubble-one { width: 184px; height: 184px; left: 9vw; top: 8vh; animation-duration: 24s; }
.bubble-two { width: 82px; height: 82px; left: 29vw; top: 20vh; animation-duration: 16s; animation-delay: -5s; }
.bubble-three { width: 132px; height: 132px; right: 17vw; top: 12vh; animation-duration: 28s; animation-delay: -9s; background: radial-gradient(circle at 25% 20%, rgba(250, 245, 239, 0.72), rgba(242, 217, 213, 0.42) 40%, rgba(158, 90, 106, 0.06)); }
.bubble-four { width: 46px; height: 46px; right: 34vw; top: 38vh; animation-duration: 14s; animation-delay: -3s; }
.bubble-five { width: 202px; height: 202px; left: -3rem; bottom: 18vh; animation-duration: 26s; animation-delay: -13s; opacity: 0.75; }
.bubble-six { width: 68px; height: 68px; right: 8vw; bottom: 26vh; animation-duration: 19s; animation-delay: -7s; }
.bubble-seven { width: 118px; height: 118px; left: 52vw; bottom: 8vh; animation-duration: 22s; animation-delay: -11s; }
.bubble-eight { width: 40px; height: 40px; left: 43vw; top: 4vh; animation-duration: 15s; animation-delay: -2s; }

@keyframes drift {
  0% { transform: translate(0, 0); }
  25% { transform: translate(15px, -20px); }
  50% { transform: translate(-10px, -35px); }
  75% { transform: translate(20px, -15px); }
  100% { transform: translate(0, 0); }
}

.spread-lid {
  align-content: end;
  background: linear-gradient(180deg, rgba(250, 245, 239, 0.08) 0 70%, rgba(242, 217, 213, 0.45) 70% 100%);
}

.lid-sky { grid-column: 1 / -1; align-self: stretch; min-height: 56vh; position: relative; }
.hero-title { grid-column: 1 / -1; align-self: end; padding-bottom: clamp(1rem, 3vw, 3rem); }
.lid-outline { position: absolute; inset: 8% 13% auto auto; width: min(42vw, 33rem); height: 18rem; }
.lid-outline span { position: absolute; border-radius: 50%; background: rgba(92, 26, 42, 0.07); border: 1px solid rgba(122, 46, 62, 0.11); }
.lid-outline span:nth-child(1) { width: 130px; height: 130px; left: 18%; top: 12%; }
.lid-outline span:nth-child(2) { width: 76px; height: 76px; left: 44%; top: 0; background: rgba(232, 168, 124, 0.14); }
.lid-outline span:nth-child(3) { width: 172px; height: 172px; right: 4%; top: 20%; }
.lid-outline span:nth-child(4) { width: 58px; height: 58px; left: 8%; bottom: 10%; background: rgba(158, 90, 106, 0.08); }
.lid-outline span:nth-child(5) { width: 102px; height: 102px; left: 45%; bottom: 0; background: rgba(242, 217, 213, 0.5); }
.lid-outline span:nth-child(6) { width: 46px; height: 46px; right: 26%; bottom: 3%; background: rgba(232, 168, 124, 0.16); }

.divider { height: 1px; width: 60vw; margin: 0 auto; position: relative; background: rgba(158, 90, 106, 0.3); z-index: 3; }
.divider::before, .divider::after { content: ""; position: absolute; width: 6px; height: 6px; border-radius: 50%; background: rgba(158, 90, 106, 0.5); top: -2.5px; }
.divider::before { left: 0; } .divider::after { right: 0; }

.spread-compartment { align-items: center; padding-left: 0; }
.photo-panel { grid-column: 1 / span 7; height: calc(100vh - clamp(3rem, 8vw, 7rem)); margin: 0; position: relative; overflow: hidden; border-radius: 0 1.75rem 1.75rem 0; box-shadow: 0 32px 80px rgba(92, 26, 42, 0.14); }
.photo-panel::after { content: ""; position: absolute; inset: 0; background: rgba(250, 245, 239, 0.15); mix-blend-mode: multiply; }
.photo-panel img { width: 100%; height: 100%; object-fit: cover; filter: saturate(1.08) sepia(0.08); }
.photo-panel figcaption { position: absolute; left: clamp(1.5rem, 4vw, 4rem); bottom: clamp(1rem, 3vw, 3rem); z-index: 2; color: var(--clr-cream); text-shadow: 0 1px 18px rgba(92, 26, 42, 0.42); }
.text-panel { grid-column: 8 / span 5; align-self: center; border-left: 1px solid var(--clr-rosewood); padding-left: clamp(1.5rem, 3vw, 3rem); display: grid; gap: 1.4rem; }

.spread-layers { align-content: center; background: radial-gradient(circle at 80% 24%, rgba(232, 168, 124, 0.17), transparent 24rem); }
.layer-intro { grid-column: 2 / span 5; display: grid; gap: 0.8rem; align-self: center; }
.compartment-grid { grid-column: 1 / -1; display: flex; align-items: flex-start; justify-content: center; margin-top: clamp(2rem, 5vw, 5rem); padding-left: 2rem; }
.compartment-card { width: min(31vw, 25rem); min-height: 24rem; background: var(--clr-parchment); border-radius: 1.25rem; padding: clamp(1.5rem, 3vw, 2.7rem); box-shadow: 0 26px 70px rgba(92, 26, 42, 0.12); display: grid; align-content: start; gap: 1.2rem; border: 1px solid rgba(158, 90, 106, 0.14); }
.compartment-card + .compartment-card { margin-left: -2rem; }
.compartment-card:nth-child(2) { margin-top: 3rem; background: var(--clr-cream); }
.compartment-card:nth-child(3) { margin-top: 1.5rem; }
.icon-bubble { width: 4.8rem; height: 4.8rem; display: grid; place-items: center; border-radius: 50%; background: radial-gradient(circle at 24% 20%, var(--clr-cream), rgba(232, 168, 124, 0.45)); color: var(--clr-rosewood); font-family: "Fraunces", serif; font-style: italic; box-shadow: inset 8px 8px 18px rgba(250, 245, 239, 0.55); }

.spread-steam { align-items: center; background: linear-gradient(90deg, rgba(242, 217, 213, 0.36), rgba(250, 245, 239, 0.2)); }
.steam-copy { grid-column: 2 / span 5; display: grid; gap: 1.2rem; border-left: 1px solid var(--clr-rosewood); padding-left: clamp(1.5rem, 3vw, 3rem); }
.steam-composition { grid-column: 8 / span 4; height: 70vh; position: relative; }
.steam-bubble { position: absolute; display: block; border-radius: 50%; background: radial-gradient(circle at 28% 22%, rgba(250,245,239,0.7), rgba(232,168,124,0.16), rgba(92,26,42,0.07)); animation: drift 20s var(--ease-bounce) infinite; }
.s1 { width: 190px; height: 190px; bottom: 5%; left: 6%; } .s2 { width: 110px; height: 110px; bottom: 33%; left: 34%; animation-delay: -6s; } .s3 { width: 74px; height: 74px; top: 16%; right: 18%; animation-delay: -11s; } .s4 { width: 48px; height: 48px; top: 36%; left: 18%; animation-delay: -3s; } .s5 { width: 140px; height: 140px; top: 4%; left: 39%; animation-delay: -8s; }

.spread-note { display: grid; place-items: center; background: var(--clr-cream); }
.note-card { grid-column: 1 / -1; width: min(44rem, 86vw); min-height: 21rem; display: grid; place-items: center; gap: 2rem; padding: clamp(2rem, 6vw, 5rem); text-align: center; background: var(--clr-parchment); border-radius: 2rem; box-shadow: 0 34px 86px rgba(92, 26, 42, 0.1); border: 1px solid rgba(158, 90, 106, 0.15); }
.note-card p { font-family: "Fraunces", serif; font-style: italic; font-weight: 300; font-size: clamp(1.55rem, 4vw, 3.2rem); line-height: 1.2; color: var(--clr-rosewood); max-width: 18ch; }
.note-card small { color: var(--clr-burgundy); font-weight: 600; letter-spacing: 0.08em; }

.reveal-item { opacity: 0; transform: translateY(30px) scale(0.85); transition: opacity 760ms var(--ease-elastic), transform 760ms var(--ease-elastic); }
.is-visible .reveal-item { opacity: 1; transform: translateY(0) scale(1); }
.is-visible .reveal-item:nth-child(2) { transition-delay: 80ms; }
.is-visible .reveal-item:nth-child(3) { transition-delay: 160ms; }
.spread:not(.is-visible) { opacity: 0.85; transition: opacity 700ms var(--ease-elastic); }
.spread.is-visible { opacity: 1; transition: opacity 700ms var(--ease-elastic); }

@media (max-width: 760px) {
  .bubble:nth-child(n+6) { display: none; }
  .spread { min-height: 100vh; display: block; padding: 4rem 1.35rem; }
  .spread-lid { display: grid; }
  .photo-panel { height: 48vh; border-radius: 0 1.25rem 1.25rem 0; margin-left: -1.35rem; width: calc(100% + 1.35rem); }
  .text-panel, .steam-copy { margin-top: 2rem; padding-left: 1.25rem; }
  .compartment-grid { display: block; padding-left: 0; }
  .compartment-card { width: 100%; min-height: 0; margin: 0 0 1rem 0; }
  .compartment-card + .compartment-card, .compartment-card:nth-child(2), .compartment-card:nth-child(3) { margin-left: 0; margin-top: 1rem; }
  .steam-composition { height: 42vh; margin-top: 2rem; }
  .lid-outline { width: 86vw; right: 0; }
}
