:root {
  --cream: #f7f0e3;
  --paper: #fffaf0;
  --ink: #172d35;
  --orange: #f26b3a;
  --yellow: #f4bd35;
  --sea: #2d7a78;
  --rose: #c75066;
  --shadow: 0 24px 70px rgb(23 45 53 / 15%);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: "DM Sans", sans-serif;
  overflow-x: hidden;
}

button, a { font: inherit; }
a { color: inherit; }

.welcome-screen {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  color: var(--ink);
  background:
    radial-gradient(circle at 20% 20%, rgb(255 255 255 / 45%), transparent 25%),
    var(--yellow);
  transition: opacity .55s, visibility .55s;
}
.welcome-screen.is-gone { opacity: 0; visibility: hidden; pointer-events: none; }
.welcome-card {
  width: min(680px, 100%);
  padding: clamp(2.5rem, 7vw, 5rem);
  text-align: center;
  background: var(--paper);
  border-radius: 30px;
  box-shadow: 18px 20px 0 rgb(23 45 53 / 18%);
  transform: rotate(-.5deg);
}
.welcome-card h2 {
  margin: 0 0 1rem;
  font-size: clamp(2.5rem, 7vw, 5rem);
  line-height: .98;
  letter-spacing: -.04em;
}
.welcome-card > p:not(.eyebrow) { margin: 0 auto 2rem; max-width: 490px; line-height: 1.6; }
.enter-button, .quiet-button { border: 0; cursor: pointer; font-weight: 700; }
.enter-button {
  padding: 1rem 1.35rem;
  color: white;
  background: var(--orange);
  border-radius: 99px;
  box-shadow: 0 8px 0 #b84925;
  transition: transform .2s, box-shadow .2s;
}
.enter-button:hover { transform: translateY(-2px); box-shadow: 0 10px 0 #b84925; }
.quiet-button { display: block; margin: 1.5rem auto 0; color: rgb(23 45 53 / 60%); background: transparent; }
.music-toggle {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 50;
  padding: .65rem .9rem;
  display: flex;
  align-items: center;
  gap: .45rem;
  border: 1px solid rgb(255 255 255 / 35%);
  border-radius: 99px;
  color: white;
  background: rgb(23 45 53 / 88%);
  box-shadow: 0 8px 25px rgb(23 45 53 / 18%);
  cursor: pointer;
  font-size: .8rem;
  font-weight: 700;
}
.music-toggle[hidden] { display: none; }
.music-toggle[aria-pressed="false"] { opacity: .65; }

.hero {
  min-height: 100svh;
  padding: 6rem 1.5rem clamp(8rem, 14vh, 11rem);
  display: grid;
  place-content: center;
  justify-items: center;
  position: relative;
  text-align: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 35%, rgb(255 255 255 / 40%), transparent 30%),
    var(--yellow);
}

.hero::after {
  content: "";
  position: absolute;
  bottom: -1px;
  width: 100%;
  height: 7vw;
  min-height: 50px;
  z-index: 1;
  background: var(--cream);
  clip-path: polygon(0 58%, 12% 68%, 27% 30%, 41% 63%, 59% 35%, 75% 68%, 88% 38%, 100% 55%, 100% 100%, 0 100%);
}

.sun {
  position: absolute;
  width: 24rem;
  aspect-ratio: 1;
  border: 2px solid rgb(23 45 53 / 12%);
  border-radius: 50%;
}
.sun::before, .sun::after {
  content: "";
  position: absolute;
  inset: 18%;
  border: inherit;
  border-radius: inherit;
}
.sun::after { inset: 36%; }
.sun-one { left: -10rem; top: -8rem; }
.sun-two { right: -12rem; bottom: 0; }

.hero > :not(.sun) {
  position: relative;
  z-index: 2;
}

.eyebrow {
  margin: 0 0 1rem;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
}

h1, h2, h3 { font-family: "Fraunces", serif; }
h1 {
  margin: 0;
  max-width: 1000px;
  font-size: clamp(4rem, 11vw, 9rem);
  line-height: .94;
  letter-spacing: -.06em;
}
h1 span {
  display: inline-block;
  padding-top: .06em;
  color: var(--orange);
}
.hero-copy {
  max-width: 570px;
  margin: 2rem auto 2.5rem;
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  line-height: 1.6;
}
.scroll-cue {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .9rem 1.2rem;
  border: 1px solid rgb(23 45 53 / 35%);
  border-radius: 99px;
  font-weight: 600;
  text-decoration: none;
  transition: transform .2s, background .2s;
}
.scroll-cue:hover { background: rgb(255 255 255 / 30%); transform: translateY(-2px); }

section { padding: clamp(5rem, 10vw, 9rem) 1.5rem; }
.section-heading { max-width: 650px; margin: 0 auto 3.5rem; text-align: center; }
.section-heading h2, .note h2 {
  margin: 0 0 1rem;
  font-size: clamp(2.7rem, 6vw, 5rem);
  line-height: 1;
  letter-spacing: -.04em;
}
.section-heading > p:last-child { font-size: 1.1rem; line-height: 1.7; }

.carousel {
  max-width: 1050px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(.5rem, 2vw, 1.5rem);
}
.carousel-window { overflow: hidden; border-radius: 24px; box-shadow: var(--shadow); }
.carousel-track { display: flex; transition: transform .55s cubic-bezier(.22, .75, .25, 1); }
.memory-card {
  flex: 0 0 100%;
  min-width: 0;
  display: grid;
  grid-template-columns: 1.45fr .85fr;
  background: var(--paper);
}
.memory-card.commentator-left { grid-template-columns: .85fr 1.45fr; }
.memory-card.commentator-left .chef-commentary { grid-column: 1; grid-row: 1; }
.memory-card.commentator-left .memory-photo { grid-column: 2; grid-row: 1; }
.memory-photo {
  width: 100%;
  height: 540px;
  display: block;
  object-fit: contain;
  background: #e7ddcf;
}

.photo-placeholder {
  min-height: 500px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, var(--color-one), var(--color-two));
}
.photo-placeholder span {
  padding: .7rem 1rem;
  color: white;
  border: 1px solid rgb(255 255 255 / 55%);
  border-radius: 99px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.tone-sunrise { --color-one: #f5bd38; --color-two: #ed7050; }
.tone-sea { --color-one: #63b7aa; --color-two: #24586d; }
.tone-citrus { --color-one: #d7cf4c; --color-two: #ef803b; }
.tone-rose { --color-one: #e48882; --color-two: #913954; }
.tone-night { --color-one: #315768; --color-two: #172d35; }

.memory-caption { align-self: end; padding: clamp(2rem, 5vw, 4rem); }
.memory-number { color: var(--orange); font-weight: 700; }
.memory-caption h3 { margin: .5rem 0 1rem; font-size: 2rem; line-height: 1.05; }
.memory-caption p:last-child { line-height: 1.6; color: rgb(23 45 53 / 70%); }
.chef-commentary {
  min-width: 0;
  padding: 1.5rem 1.5rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  align-self: stretch;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 20%, rgb(244 189 53 / 28%), transparent 42%),
    var(--paper);
}
.chef-avatar {
  width: clamp(115px, 14vw, 170px);
  max-height: 190px;
  margin: 0 auto -1.15rem;
  position: relative;
  z-index: 2;
  object-fit: contain;
  filter: drop-shadow(0 10px 10px rgb(23 45 53 / 15%));
}
.chef-anthony .chef-avatar { transform: rotate(-2deg); }
.chef-guy .chef-avatar { transform: rotate(2deg); }
.chef-gordon .chef-avatar { transform: rotate(-1deg); }
.speech-bubble {
  width: 100%;
  padding: 1.35rem 1.25rem 1.2rem;
  position: relative;
  z-index: 3;
  background: white;
  border: 3px solid var(--ink);
  border-radius: 24px;
  box-shadow: 6px 7px 0 var(--yellow);
}
.speech-bubble::before {
  content: "";
  width: 24px;
  height: 24px;
  position: absolute;
  top: -15px;
  left: calc(50% - 12px);
  background: white;
  border-top: 3px solid var(--ink);
  border-left: 3px solid var(--ink);
  transform: rotate(45deg);
}
.chef-name {
  margin: 0 0 .55rem;
  color: var(--orange);
  font-size: .69rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.chef-quote {
  margin: 0;
  color: var(--ink);
  font: 600 clamp(1rem, 1.6vw, 1.22rem)/1.38 "Fraunces", serif;
}
.carousel-button {
  width: 3.5rem;
  aspect-ratio: 1;
  border: 1px solid rgb(23 45 53 / 20%);
  border-radius: 50%;
  color: var(--ink);
  background: var(--paper);
  cursor: pointer;
  font-size: 1.4rem;
  transition: transform .2s, color .2s, background .2s;
}
.carousel-button:hover { transform: scale(1.08); color: white; background: var(--orange); }
.carousel-dots { display: flex; justify-content: center; gap: .6rem; margin-top: 1.5rem; }
.carousel-dot {
  width: .65rem;
  height: .65rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgb(23 45 53 / 25%);
  cursor: pointer;
}
.carousel-dot.is-active { width: 2rem; border-radius: 99px; background: var(--orange); }
.chef-disclaimer { margin: 1.25rem auto 0; text-align: center; color: rgb(23 45 53 / 52%); font-size: .72rem; }

.note { background: var(--sea); }
.note-paper {
  max-width: 790px;
  margin: 0 auto;
  padding: clamp(2.5rem, 7vw, 6rem);
  position: relative;
  background: var(--paper);
  box-shadow: 15px 17px 0 rgb(23 45 53 / 25%);
  transform: rotate(-1deg);
}
.note-paper::before {
  content: "";
  width: 120px;
  height: 32px;
  position: absolute;
  top: -15px;
  left: calc(50% - 60px);
  background: rgb(244 189 53 / 75%);
  transform: rotate(2deg);
}
.note-paper > p:not(.eyebrow, .signature) { font-size: 1.2rem; line-height: 1.8; }
.signature { margin-top: 2rem; color: var(--rose); font-family: "Fraunces", serif; font-size: 1.35rem; font-style: italic; }

.gifts { color: white; background: var(--ink); }
.light { color: white; }
.gift-reveal {
  max-width: 1050px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(260px, .8fr) 1.2fr;
  align-items: center;
  gap: clamp(2rem, 7vw, 6rem);
  padding: clamp(2rem, 6vw, 5rem);
  color: var(--ink);
  background: var(--yellow);
  border-radius: 30px;
  box-shadow: 16px 18px 0 rgb(0 0 0 / 18%);
}
.gift-illustration {
  min-height: 320px;
  position: relative;
  display: grid;
  place-items: end center;
}
.mug {
  width: 190px;
  height: 220px;
  display: grid;
  place-items: center;
  position: relative;
  color: white;
  background: var(--ink);
  border-radius: 18px 18px 55px 55px;
  font: 700 5rem/1 "Fraunces", serif;
  box-shadow: inset 0 -15px 0 rgb(0 0 0 / 12%);
}
.mug::after {
  content: "";
  width: 72px;
  height: 100px;
  position: absolute;
  right: -55px;
  top: 48px;
  border: 22px solid var(--ink);
  border-left: 0;
  border-radius: 0 55px 55px 0;
}
.steam {
  width: 22px;
  height: 95px;
  position: absolute;
  bottom: 235px;
  border: 5px solid rgb(255 255 255 / 75%);
  border-color: transparent transparent transparent rgb(255 255 255 / 75%);
  border-radius: 50%;
  animation: drift 2.8s ease-in-out infinite;
}
.steam-one { left: 38%; }
.steam-two { left: 50%; animation-delay: -.9s; }
.steam-three { left: 61%; animation-delay: -1.7s; }
@keyframes drift { 50% { transform: translateY(-16px) translateX(8px); opacity: .35; } }
.arrival-badge {
  display: inline-block;
  margin: 0 0 1.25rem;
  padding: .5rem .8rem;
  color: white;
  background: var(--orange);
  border-radius: 99px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.gift-details h3 { margin: 0 0 1rem; font-size: clamp(2.3rem, 5vw, 4.5rem); line-height: .98; }
.gift-details > p:not(.arrival-badge) { max-width: 580px; font-size: 1.1rem; line-height: 1.7; }
.ember-link {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  margin-top: .5rem;
  padding: .85rem 1.1rem;
  color: white;
  background: var(--ink);
  border-radius: 99px;
  font-weight: 700;
  text-decoration: none;
  transition: transform .2s, background .2s;
}
.ember-link:hover { transform: translateY(-2px); background: var(--orange); }
.delivery-track { display: flex; gap: 0; margin-top: 2rem; }
.delivery-track span {
  flex: 1;
  padding-top: 1.15rem;
  position: relative;
  border-top: 3px solid rgb(23 45 53 / 20%);
  color: rgb(23 45 53 / 48%);
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
}
.delivery-track span::before {
  content: "";
  width: 11px;
  height: 11px;
  position: absolute;
  top: -7px;
  left: 0;
  background: var(--yellow);
  border: 3px solid rgb(23 45 53 / 25%);
  border-radius: 50%;
}
.delivery-track .is-complete, .delivery-track .is-current { border-color: var(--ink); color: var(--ink); }
.delivery-track .is-complete::before { background: var(--ink); border-color: var(--ink); }
.delivery-track .is-current::before { background: var(--orange); border-color: var(--ink); box-shadow: 0 0 0 5px rgb(242 107 58 / 20%); }
footer { padding: 1.75rem; text-align: center; color: white; background: #102128; }
footer p { margin: 0; }
footer span { color: var(--orange); }
.music-credit { margin: .65rem auto 0; color: rgb(255 255 255 / 48%); font-size: .68rem; line-height: 1.5; }
.music-credit a { text-underline-offset: 2px; }

@media (max-width: 760px) {
  .hero { padding-top: 4rem; }
  .sun { width: 15rem; }
  .carousel { grid-template-columns: 1fr 1fr; }
  .carousel-window { grid-column: 1 / -1; grid-row: 1; }
  .carousel-button { justify-self: start; margin-top: .75rem; }
  .carousel-button.next { justify-self: end; }
  .memory-card { grid-template-columns: 1fr; }
  .memory-card.commentator-left { grid-template-columns: 1fr; }
  .memory-card.commentator-left .memory-photo { grid-column: 1; grid-row: 1; }
  .memory-card.commentator-left .chef-commentary { grid-column: 1; grid-row: 2; }
  .memory-photo { height: 62svh; min-height: 390px; max-height: 560px; }
  .photo-placeholder { min-height: 56vw; }
  .memory-caption { padding: 1.75rem; }
  .chef-commentary { min-height: 350px; padding: 1.25rem 1.5rem 2rem; }
  .chef-avatar { width: 145px; }
  .gift-reveal { grid-template-columns: 1fr; }
  .gift-illustration { min-height: 270px; }
  .mug { width: 150px; height: 175px; font-size: 4rem; }
  .mug::after { width: 58px; height: 80px; right: -45px; top: 38px; border-width: 18px; border-left: 0; }
  .steam { bottom: 185px; }
  .delivery-track { flex-direction: column; gap: 1rem; }
  .delivery-track span { padding: 0 0 0 1.5rem; border-top: 0; border-left: 3px solid rgb(23 45 53 / 20%); }
  .delivery-track span::before { top: 1px; left: -7px; }
  .delivery-track .is-complete, .delivery-track .is-current { border-left-color: var(--ink); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
