:root {
  --burgundy: #481a24;
  --wine: #331018;
  --cream: #fff7e9;
  --paper: #faeadb;
  --pink: #efb7c6;
  --hot-pink: #df7896;
  --blue: #bdd7df;
  --blue-deep: #7e9daa;
  --ink: #351821;
  --gold: #e0b35a;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Outfit", "Segoe UI", sans-serif;
  --mono: "DM Mono", monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  min-height: 100%;
  overflow-x: hidden;
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 10% -10%, #3a1824 0%, transparent 55%),
    radial-gradient(900px 500px at 110% 10%, #4a2a18 0%, transparent 50%),
    #140b10;
  font-family: var(--sans);
}
body.opened { background: var(--cream); }
button, a { font: inherit; }
button { color: inherit; }
a { color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 4px; }

#sparkles {
  position: fixed;
  inset: 0;
  z-index: 20;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.gate {
  min-height: 100vh;
  display: grid;
  place-content: center;
  gap: .75rem;
  padding: 2rem;
  position: relative;
  z-index: 1;
  color: var(--cream);
  text-align: center;
}
.gate-kicker {
  color: var(--gold);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .28em;
  text-transform: uppercase;
}
.gate-title {
  font: 600 clamp(3.5rem, 12vw, 8rem)/.95 var(--serif);
}
.gate-note { margin-bottom: 1.5rem; color: var(--pink); font-weight: 300; }
.seal {
  width: 108px;
  height: 108px;
  margin: 0 auto;
  border: 0;
  border-radius: 50%;
  color: var(--cream);
  background: radial-gradient(circle at 30% 30%, #e0797f, #c45c6a 55%, #7a2e38);
  box-shadow: 0 10px 30px rgba(196,92,106,.45), inset 0 0 0 6px rgba(224,179,90,.35);
  cursor: pointer;
  font: 500 1.35rem var(--serif);
  transition: transform .25s ease, box-shadow .25s ease;
}
.seal:hover { transform: scale(1.06) rotate(-4deg); box-shadow: 0 16px 40px rgba(196,92,106,.55), inset 0 0 0 6px rgba(224,179,90,.5); }

.site {
  min-height: 100vh;
  position: relative;
  z-index: 1;
  overflow: hidden;
  background: var(--cream);
}
.masthead {
  min-height: 72px;
  padding: .8rem clamp(1rem, 4vw, 4rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  border-bottom: 1px solid rgba(72,26,36,.35);
  background: var(--paper);
}
.brand { text-decoration: none; font: 600 .82rem var(--mono); letter-spacing: .12em; }
.nav-links { display: flex; gap: clamp(.8rem, 3vw, 2.4rem); }
.nav-links a {
  font: 400 .7rem var(--mono);
  text-decoration: none;
  text-transform: uppercase;
  transition: opacity .2s ease;
}
.nav-links a:hover { opacity: .55; }
.mini-confetti {
  width: 38px;
  height: 38px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  background: var(--pink);
  cursor: pointer;
}

.editorial-hero {
  min-height: 620px;
  padding: clamp(3rem, 8vw, 7rem) clamp(1.5rem, 10vw, 9rem);
  display: grid;
  grid-template-columns: minmax(230px, .75fr) 1.2fr;
  align-items: center;
  gap: clamp(2.5rem, 8vw, 8rem);
  position: relative;
  background: repeating-linear-gradient(90deg, #c6dce3 0 28px, #e7f0ef 28px 56px);
}
.editorial-hero::before,
.editorial-hero::after {
  content: "";
  position: absolute;
  background: var(--burgundy);
  border-radius: 50%;
}
.editorial-hero::before { width: 13px; height: 13px; left: 7%; top: 24%; }
.editorial-hero::after { width: 8px; height: 8px; right: 7%; bottom: 18%; }
.hero-photo {
  width: min(100%, 350px);
  aspect-ratio: .82;
  position: relative;
  padding: 15px 15px 54px;
  justify-self: end;
  background: #fffaf0;
  box-shadow: 12px 14px 0 rgba(72,26,36,.16);
  transform: rotate(-2deg);
}
.photo-placeholder,
.profile-circle {
  height: 100%;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
  color: var(--burgundy);
  background:
    radial-gradient(circle at 70% 25%, rgba(239,183,198,.9) 0 15%, transparent 16%),
    linear-gradient(145deg, var(--pink), var(--blue));
}
.photo-placeholder span { font: italic 700 clamp(6rem, 14vw, 12rem)/1 var(--serif); opacity: .72; }
.photo-placeholder small {
  position: absolute;
  right: 12px;
  bottom: 10px;
  padding: .4rem;
  color: var(--cream);
  background: var(--burgundy);
  font: 500 .55rem/1.3 var(--mono);
  letter-spacing: .08em;
}
.tape {
  width: 85px;
  height: 27px;
  position: absolute;
  top: -8px;
  left: 50%;
  background: rgba(239,183,198,.68);
  transform: translateX(-50%) rotate(3deg);
}
.flower { position: absolute; color: var(--hot-pink); font-size: 2rem; }
.flower-one { right: -20px; bottom: 32px; transform: rotate(18deg); }
.flower-two { left: -16px; top: 42%; transform: rotate(-16deg); }
.hero-copy { max-width: 660px; }
.issue,
.section-number {
  margin-bottom: 1.25rem;
  font: 500 .64rem var(--mono);
  letter-spacing: .13em;
  text-transform: uppercase;
}
.hero-copy h1 { display: flex; flex-direction: column; margin-bottom: 1.2rem; color: var(--burgundy); }
.hero-copy h1 span { font: 500 clamp(2.5rem, 6vw, 5rem)/.8 var(--serif); }
.hero-copy h1 em { font: italic 600 clamp(5rem, 13vw, 10rem)/.85 var(--serif); }
.hero-copy > p:not(.issue) { max-width: 430px; font-size: 1.05rem; line-height: 1.7; }
.round-link {
  width: fit-content;
  margin-top: 1.8rem;
  padding: .8rem .8rem .8rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  border: 1px solid var(--burgundy);
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 500;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.round-link span { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; color: var(--cream); background: var(--burgundy); }
.doodle-heart { position: absolute; right: 6%; top: 16%; color: var(--hot-pink); font: 500 4rem var(--serif); transform: rotate(12deg); }

.ticker { overflow: hidden; color: var(--burgundy); background: var(--pink); border-block: 1px solid var(--burgundy); }
.ticker > div { width: max-content; display: flex; animation: marquee 22s linear infinite; }
.ticker span { padding: .75rem 1.5rem; font: 500 .76rem var(--mono); letter-spacing: .08em; white-space: nowrap; }
.ticker-light { background: var(--paper); }
.ticker-light span { padding-block: .6rem; font-size: .63rem; }
@keyframes marquee { to { transform: translateX(-50%); } }

.about {
  min-height: 610px;
  padding: clamp(4rem, 10vw, 8rem) clamp(1.5rem, 12vw, 11rem);
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  align-items: center;
  gap: clamp(3rem, 9vw, 9rem);
  color: var(--cream);
  background: var(--burgundy);
}
.about h2,
.section-heading h2,
.cake-copy h2 {
  margin-bottom: 1.6rem;
  font: 500 clamp(3.2rem, 7vw, 5.6rem)/.78 var(--serif);
}
.about h2 em,
.section-heading h2 em,
.cake-copy h2 em { font-weight: 500; }
.about-copy > p:not(.section-number) { max-width: 590px; margin-top: 1rem; color: rgba(255,247,233,.78); font-size: .95rem; font-weight: 300; line-height: 1.8; }
.profile-card {
  width: min(100%, 310px);
  padding: 1rem 1rem 1.6rem;
  justify-self: center;
  color: var(--ink);
  background: var(--paper);
  text-align: center;
  transform: rotate(2deg);
  box-shadow: 14px 15px 0 #2a0b12;
}
.profile-circle { width: 100%; aspect-ratio: 1; border-radius: 50% 50% 4% 4%; border: 7px solid var(--cream); }
.profile-circle span { font: italic 700 7rem var(--serif); opacity: .7; }
.profile-title { margin-top: 1rem; font: italic 500 1rem var(--serif); }
.profile-card h3 { font: 600 2rem var(--serif); }
.profile-line { height: 1px; margin: .5rem 1.5rem; background: var(--ink); opacity: .4; }
.profile-card > p:last-child { font: 400 .55rem var(--mono); text-transform: uppercase; }

.friends {
  padding: clamp(4.5rem, 10vw, 8rem) clamp(1rem, 7vw, 7rem);
  background:
    radial-gradient(var(--pink) 2px, transparent 2px) 0 0 / 30px 30px,
    var(--cream);
}
.section-heading { max-width: 650px; margin: 0 auto 3rem; text-align: center; }
.section-heading > p:last-child { color: rgba(53,24,33,.7); }
.friend-tabs {
  max-width: 1080px;
  margin: 0 auto 2rem;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: .6rem;
}
.friend-tabs button {
  padding: .65rem 1rem;
  border: 1px solid var(--burgundy);
  background: var(--paper);
  cursor: pointer;
  font: 500 .7rem var(--mono);
  letter-spacing: .04em;
  text-transform: uppercase;
  transition: background .2s ease, color .2s ease, transform .2s ease;
}
.friend-tabs button:hover { transform: translateY(-2px); }
.friend-tabs button[aria-selected="true"] { color: var(--cream); background: var(--burgundy); }
.friend-panels { max-width: 1000px; margin: 0 auto; }
.friend-panel {
  min-height: 390px;
  padding: clamp(1.2rem, 4vw, 3rem);
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: clamp(1.5rem, 6vw, 5rem);
  align-items: center;
  border: 1px solid var(--burgundy);
  background: var(--paper);
  box-shadow: 12px 12px 0 var(--pink);
}
.media-placeholder {
  aspect-ratio: 16 / 11;
  display: grid;
  place-items: center;
  position: relative;
  border: 1px solid var(--burgundy);
  background: repeating-linear-gradient(135deg, var(--blue) 0 16px, #dbe8e7 16px 32px);
}
.play-mark { width: 70px; height: 70px; display: grid; place-items: center; border: 1px solid var(--burgundy); border-radius: 50%; color: var(--cream); background: var(--burgundy); font-size: 1.2rem; }
.media-placeholder small { position: absolute; bottom: 1rem; font: 500 .6rem var(--mono); letter-spacing: .1em; }
.message-placeholder .from { font: 500 .62rem var(--mono); letter-spacing: .13em; text-transform: uppercase; }
.message-placeholder h3 { margin: .4rem 0 1rem; font: italic 600 clamp(3rem, 7vw, 5rem)/.8 var(--serif); }
.message-placeholder .coming-soon { margin-bottom: 1.25rem; color: var(--hot-pink); font: 500 .72rem var(--mono); text-transform: uppercase; }
.message-placeholder > p:last-child { line-height: 1.75; color: rgba(53,24,33,.72); }
.media-stack { min-width: 0; }
.photo-gallery {
  max-height: 640px;
  padding: .65rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .65rem;
  overflow-y: auto;
  border: 1px solid var(--burgundy);
  background: var(--pink);
  scrollbar-color: var(--burgundy) var(--paper);
}
.photo-gallery img {
  width: 100%;
  height: 210px;
  display: block;
  border: 5px solid var(--cream);
  object-fit: cover;
  box-shadow: 3px 4px 0 rgba(72,26,36,.25);
}
.photo-gallery-1 { grid-template-columns: 1fr; }
.photo-gallery-1 img { height: min(520px, 68vh); object-position: center; }
.photo-gallery-3 img:first-child,
.photo-gallery-4 img:first-child {
  grid-row: span 2;
  height: 100%;
  min-height: 430px;
}
.friend-video { margin-top: .8rem; }
.friend-video { width: 100%; aspect-ratio: 16 / 11; display: block; border: 1px solid var(--burgundy); background: #000; }
.friend-story p { line-height: 1.75; color: rgba(53,24,33,.82); }
.friend-story p + p { margin-top: .9rem; }

.cake-section {
  min-height: 600px;
  padding: clamp(4rem, 10vw, 8rem) clamp(1.5rem, 12vw, 11rem);
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 3rem;
  color: var(--cream);
  background: var(--burgundy);
}
.cake-copy { max-width: 580px; }
.hint { margin-bottom: 1.3rem; color: var(--pink); font: 400 .68rem var(--mono); letter-spacing: .12em; text-transform: uppercase; }
.pill {
  padding: .8rem 1.25rem;
  border: 1px solid var(--cream);
  border-radius: 999px;
  color: var(--burgundy);
  background: var(--cream);
  cursor: pointer;
  font-weight: 500;
}
.pill:disabled { cursor: not-allowed; opacity: .38; }
.wish-message { margin-top: 1.2rem; color: var(--pink); font: italic 500 1.35rem var(--serif); }
.cake-stage { min-height: 310px; display: grid; place-items: center; }
.cake { width: 280px; height: 250px; position: relative; filter: drop-shadow(12px 15px 0 rgba(25,5,10,.28)); }
.candles { position: absolute; z-index: 3; top: -20px; left: 0; right: 0; display: flex; justify-content: center; gap: 10px; }
.candle { width: 62px; height: 92px; padding: 0; position: relative; display: grid; place-items: center; border: 0; background: none; cursor: pointer; transition: transform .2s ease; }
.candle:hover { transform: translateY(-3px); }
.candle span { font: 700 5.2rem/1 var(--serif); color: var(--cream); -webkit-text-stroke: 2px var(--wine); paint-order: stroke fill; }
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .candle span { background: repeating-linear-gradient(135deg, var(--cream) 0 7px, var(--pink) 7px 14px); -webkit-background-clip: text; background-clip: text; color: transparent; }
}
.candle::before { content: ""; width: 2px; height: 13px; position: absolute; top: -10px; left: 50%; background: var(--wine); transform: translateX(-50%); }
.candle::after { content: ""; width: 16px; height: 25px; position: absolute; top: -31px; left: 50%; border-radius: 50% 50% 50% 50% / 65% 65% 35% 35%; background: radial-gradient(circle at 40% 30%, #fff, #ffc34d 40%, #df7896); opacity: 0; transform: translateX(-50%) scale(0); transition: .2s ease; }
.candle[data-lit="true"]::after { opacity: 1; transform: translateX(-50%) scale(1); animation: flicker .8s ease-in-out infinite alternate; filter: drop-shadow(0 0 10px rgba(255,195,77,.6)); }
@keyframes flicker { from { transform: translateX(-50%) scale(.92) rotate(-6deg); } to { transform: translateX(-50%) scale(1.08) rotate(5deg); } }
.frosting { height: 43px; position: absolute; z-index: 2; top: 55px; left: 9px; right: 9px; border: 1px solid var(--wine); border-radius: 40px 40px 8px 8px; background: var(--pink); }
.layer { height: 60px; position: absolute; left: 18px; right: 18px; border: 1px solid var(--wine); }
.layer-top { top: 91px; background: repeating-linear-gradient(90deg, #e7c789 0 20px, #f3dba9 20px 40px); }
.layer-bottom { top: 150px; background: repeating-linear-gradient(90deg, #d88ea3 0 20px, #efb7c6 20px 40px); }
.plate { height: 22px; position: absolute; left: 0; right: 0; bottom: 16px; border: 1px solid var(--wine); border-radius: 50%; background: var(--blue); }

footer { padding: 5rem 1.5rem; color: var(--burgundy); background: var(--pink); text-align: center; }
footer p { font: italic 500 1.2rem var(--serif); }
footer h2 { margin: .2rem 0 .8rem; font: 600 clamp(3rem, 9vw, 6.5rem)/1 var(--serif); }
footer span { font: 500 .62rem var(--mono); letter-spacing: .16em; }

@media (max-width: 760px) {
  .nav-links { display: none; }
  .editorial-hero { min-height: auto; grid-template-columns: 1fr; padding-block: 4rem; gap: 3rem; }
  .hero-photo { width: min(76vw, 310px); justify-self: center; }
  .hero-copy { text-align: center; }
  .hero-copy > p:not(.issue), .round-link { margin-inline: auto; }
  .doodle-heart { top: 48%; right: 7%; }
  .about, .cake-section { grid-template-columns: 1fr; }
  .about-copy { text-align: center; }
  .about-copy > p:not(.section-number) { text-align: left; }
  .profile-card { width: min(76vw, 290px); }
  .friend-panel { grid-template-columns: 1fr; }
  .message-placeholder { text-align: center; }
  .photo-gallery { max-height: 520px; }
  .photo-gallery img { height: 180px; }
  .photo-gallery-1 img { height: min(480px, 62vh); }
  .photo-gallery-3 img:first-child,
  .photo-gallery-4 img:first-child { min-height: 370px; }
  .friend-story { text-align: left; }
  .cake-copy { text-align: center; }
  .cake-stage { grid-row: 1; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ticker > div, .candle[data-lit="true"]::after { animation: none; }
}
