.isla {
  --paper: #f9f5e7;
  --ink: #236d67;
  --accent: #d96d4f;
  --muted: #65877d;
  --line: #c7ded1;
  --serif: Georgia, "Times New Roman", serif;
  background: #d3eee4;
}
.isla h1,
.isla h2,
.isla h3 {
  font-weight: 700;
  letter-spacing: -1px;
}
.isla .invitation-content {
  background: #fcf7e7;
}
.isla .invite-button {
  border-radius: 50px;
  background: #267f76;
  border-color: #267f76;
  color: white;
  font-weight: 600;
  letter-spacing: 0.3px;
  box-shadow: 0 4px 0 #196257;
}
.isla .invite-button.secondary {
  background: transparent;
  color: #267f76;
  box-shadow: none;
}
.isla .scene-kicker {
  font-size: 8px;
  letter-spacing: 2px;
  color: #d1744e;
  font-weight: 700;
}
.island-gate {
  background:
    radial-gradient(ellipse at 50% 40%, #fbf6de, transparent 60%), #d5f0df;
  color: #2e8075;
}
.island-gate:before {
  content: "";
  position: absolute;
  inset: -30px;
  background:
    radial-gradient(ellipse at 0 110%, #78b896 0 23%, transparent 23.2%),
    radial-gradient(ellipse at 110% 108%, #98cdb0 0 24%, transparent 24.2%);
  z-index: -1;
}
.island-gate .gate-title {
  font-weight: 700;
  font-size: clamp(31px, 5vw, 49px);
  margin-bottom: 80px;
  color: #348475;
}
.island-gate .gate-kicker {
  font-size: 8px;
  letter-spacing: 2px;
  color: #759577;
}
.gift-box {
  position: relative;
  width: 175px;
  height: 170px;
  border: 0;
  background: none;
  display: block;
  padding: 0;
  transform: rotate(-5deg);
  isolation: isolate;
  animation: gift-wiggle 4s ease-in-out infinite;
}
.gift-body {
  display: block;
  position: absolute;
  inset: 22px 0 0;
  background:
    linear-gradient(90deg, transparent 40%, #f7d384 40% 57%, transparent 57%),
    linear-gradient(120deg, #ea9472, #d67656);
  border-radius: 4px 4px 14px 14px;
  box-shadow:
    0 12px 0 #216e6515,
    inset -10px -8px #d36c4c33;
  z-index: 2;
}
.gift-lid {
  position: absolute;
  top: 4px;
  left: -10px;
  right: -10px;
  height: 36px;
  background:
    linear-gradient(90deg, transparent 41%, #f9d991 41% 57%, transparent 57%),
    #efa080;
  border-radius: 5px;
  box-shadow: 0 5px 6px #b663451f;
  z-index: 4;
  transform-origin: 30% 100%;
  transition:
    transform 0.8s,
    opacity 0.7s 0.2s;
}
.gift-bow {
  position: absolute;
  top: -67px;
  left: 20px;
  font-family: Georgia, serif;
  font-size: 100px;
  font-style: normal;
  font-weight: bold;
  color: #d3a44e;
  transform: rotate(-1deg);
  z-index: 4;
  line-height: 1;
  transition:
    transform 0.8s,
    opacity 0.7s 0.2s;
  text-shadow: 0 2px #f9e7b7;
}
.gift-dragon {
  position: absolute;
  left: 10px;
  top: 40px;
  width: 150px;
  height: 170px;
  object-fit: contain;
  z-index: 1;
  transition: transform 0.8s 0.15s;
}
.island-gate .gate-instruction {
  margin-top: 33px;
  max-width: 230px;
  text-align: center;
  font-size: 11px;
  color: #658f78;
}
.opening .gift-lid {
  transform: translate(-50px, -170px) rotate(-30deg);
  opacity: 0;
}
.opening .gift-bow {
  transform: translate(-50px, -170px) rotate(-40deg);
  opacity: 0;
}
.opening .gift-dragon {
  transform: translateY(-130px) scale(1.15);
}
.opening .gift-box {
  animation: none;
}
.opening.island-gate {
  animation: island-open 0.4s 1s forwards;
}
.gate-stars {
  position: absolute;
  inset: 0;
  z-index: -1;
}
.gate-stars i {
  position: absolute;
  left: 15%;
  top: 25%;
  font-size: 40px;
  color: #d2ae58;
  font-style: normal;
  animation: twinkle 4s infinite;
}
.gate-stars i:nth-child(2) {
  left: 78%;
  top: 18%;
  font-size: 50px;
  animation-delay: 1s;
}
.gate-stars i:nth-child(3) {
  left: 80%;
  top: 60%;
  font-size: 32px;
  animation-delay: 2s;
}
.gate-stars i:nth-child(4) {
  left: 10%;
  top: 65%;
  font-size: 30px;
  animation-delay: 3s;
}
.island-hero {
  min-height: 1100px;
  padding: 100px 20px 0;
  justify-content: flex-start;
  background: #c4eee4;
}
.island-background {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 930px;
  object-fit: cover;
  object-position: center 45%;
  z-index: -2;
}
.island-hero:after {
  content: "";
  position: absolute;
  top: 760px;
  height: 210px;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, #fcf7e7 82%);
  z-index: -1;
}
.island-hero h1 {
  font-size: clamp(60px, 8vw, 92px);
  color: #237b76;
  text-shadow: 0 4px 0 #f9f2d7b5;
  margin: 18px 0 9px;
  line-height: 1.1;
  overflow-wrap: anywhere;
  max-width: 100%;
  letter-spacing: -3px;
  z-index: 1;
}
.island-subtitle {
  font-family: var(--serif);
  font-style: italic;
  font-size: 21px;
  color: #589c84;
  margin-bottom: 0;
}
.cloud {
  position: absolute;
  width: 160px;
  height: 36px;
  border-radius: 100%;
  background: #ffffeb80;
  filter: blur(2px);
  z-index: -1;
  animation: cloud-drift 15s ease-in-out infinite alternate;
  animation-play-state: paused;
}
.in-view .cloud {
  animation-play-state: running;
}
.cloud:before,
.cloud:after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: inherit;
  width: 80px;
  height: 55px;
  left: 30px;
  top: -25px;
}
.cloud:after {
  width: 60px;
  height: 40px;
  left: 85px;
  top: -15px;
}
.cloud-one {
  left: -40px;
  top: 235px;
}
.cloud-two {
  right: -50px;
  top: 90px;
  transform: scale(0.7);
  animation-delay: -6s;
}
.island-cast {
  position: relative;
  width: 100%;
  max-width: 500px;
  height: 400px;
  margin-top: 22px;
}
.hero-dragon {
  position: absolute;
  height: 375px;
  max-width: 90%;
  bottom: -5px;
  left: 0;
  object-fit: contain;
  filter: drop-shadow(0 12px 7px #23746a26);
  animation: dragon-float 4s ease-in-out infinite;
  animation-play-state: paused;
  transform-origin: 50% 100%;
}
.in-view .hero-dragon {
  animation-play-state: running;
}
.age-bubble {
  position: absolute;
  top: 75px;
  right: 0;
  border: 2px solid #f6d19a;
  border-radius: 50% 50% 48% 10%;
  background: #fff2ca;
  color: #bd6a47;
  width: 140px;
  height: 155px;
  box-shadow: 0 5px 0 #cea66c22;
  transform: rotate(8deg);
  padding: 14px 9px;
  transition: transform 0.3s;
}
.age-bubble span {
  display: block;
  font-size: 10px;
  line-height: 1.2;
}
.age-bubble b {
  font-family: var(--serif);
  display: block;
  font-size: 58px;
  line-height: 1.15;
}
.age-bubble small {
  font-size: 8px;
  letter-spacing: 0.5px;
}
.age-bubble.revealed {
  transform: rotate(0) scale(1.04);
  background: #fceac1;
}
.age-confetti {
  position: absolute;
  inset: 0;
  color: #e6a044;
  font-size: 35px;
  letter-spacing: 25px;
  opacity: 0;
  pointer-events: none;
}
.celebrate .age-confetti {
  animation: confetti-burst 0.9s forwards;
}
.celebrate .hero-dragon {
  animation: dragon-hop 0.9s ease;
}
.island-welcome {
  position: relative;
  z-index: 3;
  width: calc(100% + 40px);
  margin-top: 10px;
  background: #fcf7e7;
  padding: 40px 32px 45px;
  border-radius: 50% 50% 0 0/30px 30px 0 0;
}
.island-welcome .hero-message {
  font-size: 14px;
  color: #528477;
}
.island-welcome .scroll-note {
  display: block;
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 2px;
  color: #d48e52;
}
.island-welcome .scroll-note span {
  display: block;
  font-size: 22px;
  margin-top: 10px;
}
.birthday-photo {
  height: 180px;
  width: 180px;
  border-radius: 50%;
  border: 8px solid white;
  box-shadow: 0 7px 0 #d4c9aa33;
  margin: 0 auto 22px;
  overflow: hidden;
  transform: rotate(-4deg);
}
.birthday-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.isla .countdown-scene {
  background: #fcf7e7;
  padding-top: 30px;
}
.isla .countdown {
  gap: 10px;
  margin-top: 30px;
}
.isla .countdown > div {
  background: #f5e5bc;
  border-radius: 18px;
  padding: 18px 6px 13px;
  box-shadow: 0 5px 0 #dac98f33;
}
.isla .countdown b {
  font-weight: 700;
  font-size: 41px;
  color: #b57c47;
}
.isla .countdown i {
  display: none;
}
.isla .date-stamp {
  color: #be7754;
}
.isla .location-scene {
  background: #d6ecdb;
  border-radius: 50% 50% 0 0/45px 45px 0 0;
}
.isla .location-arch {
  border: 2px dashed #81b49a;
  border-radius: 160px 160px 22px 22px;
  background: #f8f7df;
  padding-top: 65px;
  box-shadow: 0 12px 0 #7ab59122;
}
.isla .location-arch:before {
  content: "✧";
  display: block;
  font-size: 35px;
  color: #dfab4f;
  position: absolute;
  top: 55px;
  left: 15%;
  transform: rotate(-15deg);
}
.isla .location-arch .line-icon {
  color: #4f9677;
}
.isla .location-arch h2 {
  font-size: 35px;
}
.isla .reception-scene {
  background: #d6ecdb;
}
.isla .story-scene {
  background: #e5f2df;
}
.isla .story-moment p,
.isla .story-moment h3,
.isla .story-moment small {
  background: #e5f2df;
}
.isla .story-dot {
  border: 0;
  background: #f0d69a;
  color: #b17946;
  transform: rotate(-10deg);
  border-radius: 12px;
}
.isla .story-moment:nth-child(2n) .story-dot {
  transform: rotate(10deg);
  background: #efd4bc;
}
.isla .family-scene {
  background: #f4e2c2;
  border-radius: 50% 50% 50% 50%/25px 25px 25px 25px;
  color: #966849;
}
.isla .family-names {
  font-size: 22px;
}
.isla .schedule-scene {
  background: #fcf7e7;
}
.isla .schedule article {
  padding: 22px 17px;
  margin-bottom: 13px;
  background: #edf1d9;
  border-radius: 18px;
  grid-template-columns: 48px 15px 1fr;
  gap: 12px;
}
.isla .schedule article:nth-child(2n) {
  background: #f5e0c8;
}
.isla .schedule article:before {
  display: none;
}
.isla .schedule h3 {
  font-size: 21px;
}
.isla .schedule-mark {
  color: #d2a554;
}
.isla .schedule-scene.seen .schedule-mark {
  animation: star-turn 1.2s calc(var(--order) * 0.25s) both;
}
.isla .gallery-scene {
  background: #cfebe1;
  border-radius: 50% 50% 0 0/30px 30px 0 0;
}
.isla .dress-scene {
  background: #cfebe1;
}
.isla .dress-swatches i {
  background: #edb586;
}
.isla .dress-swatches i:nth-child(2) {
  background: #89c2a8;
}
.isla .dress-swatches i:nth-child(3) {
  background: #e6c565;
}
.isla .dress-swatches i:nth-child(4) {
  background: #91c4cd;
}
.isla .gifts-scene {
  background: #f5e6bc;
}
.isla .gifts-scene:after {
  content: "✦";
  font-size: 100px;
  color: #d6b46028;
  position: absolute;
  bottom: 10px;
  right: 20px;
  z-index: -1;
  transform: rotate(15deg);
}
.isla .rsvp-scene {
  background: #fcf7e7;
}
.isla .rsvp-scene form {
  background: #e3efda;
  border: 1px solid #cfdfc4;
  padding: 25px;
  border-radius: 22px;
  box-shadow: 0 9px 0 #cedcbd22;
}
.isla .form-field input,
.isla .form-field textarea,
.isla .form-field select {
  border-radius: 10px;
  background: #fffdf1;
  border-color: #c7d9ba;
}
.isla .invitation-footer {
  background: #fcf7e7;
}
.isla .ornament {
  color: #d8ac53;
}
@keyframes gift-wiggle {
  0%,
  75%,
  100% {
    transform: rotate(-5deg);
  }
  80% {
    transform: rotate(5deg);
  }
  85% {
    transform: rotate(-7deg);
  }
  90% {
    transform: rotate(3deg);
  }
}
@keyframes island-open {
  to {
    opacity: 0;
    transform: scale(1.06);
  }
}
@keyframes twinkle {
  50% {
    transform: scale(0.75) rotate(10deg);
    opacity: 0.5;
  }
}
@keyframes cloud-drift {
  to {
    translate: 55px 5px;
  }
}
@keyframes dragon-float {
  50% {
    transform: translateY(-10px) rotate(2deg);
  }
}
@keyframes dragon-hop {
  30% {
    transform: translateY(-60px) rotate(-8deg);
  }
  65% {
    transform: translateY(4px) scaleY(0.94);
  }
  85% {
    transform: translateY(-10px);
  }
}
@keyframes confetti-burst {
  0% {
    opacity: 0;
    transform: translateY(130px) scale(0.3);
  }
  30% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translateY(-40px) scale(1.3) rotate(12deg);
  }
}
@keyframes star-turn {
  from {
    transform: rotate(-110deg) scale(0.6);
  }
  to {
    transform: rotate(0) scale(1);
  }
}
@media (min-width: 900px) {
  .island-background {
    height: 1050px;
    object-position: center 38%;
  }
  .island-cast {
    height: 470px;
  }
  .hero-dragon {
    height: 470px;
  }
  .age-bubble {
    width: 170px;
    height: 180px;
    right: -10px;
    top: 100px;
  }
  .age-bubble b {
    font-size: 70px;
  }
  .island-hero {
    padding-top: 100px;
  }
  .island-welcome {
    width: calc(100% + 120px);
  }
  .island-welcome .hero-message {
    font-size: 16px;
  }
}
@media (max-width: 400px) {
  .island-hero {
    padding-top: 86px;
    min-height: 950px;
  }
  .island-hero h1 {
    font-size: 57px;
  }
  .island-cast {
    height: 310px;
    margin-top: 22px;
  }
  .hero-dragon {
    height: 300px;
    left: -15px;
  }
  .age-bubble {
    width: 115px;
    height: 132px;
    right: -4px;
    top: 67px;
  }
  .age-bubble b {
    font-size: 47px;
  }
  .island-background {
    height: 780px;
  }
  .island-hero:after {
    top: 630px;
  }
  .island-welcome {
    margin-top: 0;
    padding: 35px 29px 30px;
  }
  .island-hero .scene-kicker {
    font-size: 7px;
    letter-spacing: 1.4px;
  }
  .isla .rsvp-scene form {
    padding: 20px;
  }
  .isla .countdown b {
    font-size: 35px;
  }
  .island-gate .gate-title {
    font-size: 32px;
    margin-bottom: 70px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .opening.island-gate {
    opacity: 0;
  }
}
.gift-dragon {
  opacity: 0;
  transition:
    transform 0.8s 0.15s,
    opacity 0.2s;
}
.opening .gift-dragon {
  opacity: 1;
}

.island-hero {
  min-height: 0;
}
.birthday-photo img {
  object-position: var(--photo-x, 50%) var(--photo-y, 40%);
}
