:root {
  --pink: #f1bdc2;
  --wine: #942c35;
  --wine-soft: #89333d;
  --line: #942c353b;
  --script: "Caveat", cursive;
  --display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --body: "DM Sans", sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 32px; }
body { margin: 0; background: #fae4e4; color: var(--wine); font-family: var(--body); -webkit-font-smoothing: antialiased; }
button, a, summary { -webkit-tap-highlight-color: transparent; }
button, a { color: inherit; }
a { text-underline-offset: 5px; }
button:focus-visible, a:focus-visible, summary:focus-visible { outline: 2px solid var(--wine); outline-offset: 5px; }
[hidden] { display: none !important; }
.invitation { max-width: 640px; margin: 0 auto; background: var(--pink); overflow: hidden; }
.hero { min-height: 800px; min-height: 100svh; padding: 34px 20px 22px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.arched-title { display: block; width: min(100%, 460px); flex: none; overflow: visible; margin-bottom: -22px; }
.arched-title text { fill: none; stroke: var(--wine); stroke-width: .9px; font: 600 48px var(--display); letter-spacing: 5px; }
.hero-scene { position: relative; width: min(100%, 480px); }
.toast-animation { width: 70%; aspect-ratio: 2 / 3; margin: 0 auto; }
.toast-animation img { display: block; width: 100%; height: 100%; object-fit: contain; }
.couple-names { position: absolute; inset: 42% 0 auto; z-index: 1; display: flex; justify-content: space-between; margin: 0; font: 600 clamp(27px, 7vw, 38px)/1 var(--script); }
.couple-names .amp { position: absolute; left: 50%; top: -24px; transform: translateX(-50%); font-size: 24px; }
.wedding-date { margin: 22px 0 0; font: 600 clamp(24px, 6vw, 32px)/1.1 var(--display); letter-spacing: .08em; }
.hero-venue { margin: 14px 0 0; font: 500 26px/1.1 var(--script); }
.hero-venue span { font-size: 21px; }
.hero-controls { position: relative; width: 100%; margin-top: 22px; min-height: 38px; }
.animation-toggle { position: absolute; left: 0; bottom: 0; border: 0; background: transparent; padding: 12px 0; font: 400 10px var(--body); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.scroll-link { display: inline-flex; min-width: 44px; min-height: 44px; justify-content: center; align-items: center; font: 30px var(--script); text-decoration: none; }
.section { padding: 70px 32px; text-align: center; }
.section h2 { margin: 0; font: 600 48px/1.1 var(--script); }
.details { display: grid; grid-template-columns: minmax(0, 220px) minmax(0, 1fr); align-items: center; gap: 32px; }
.instant-photo { position: relative; min-width: 0; padding-bottom: 44px; text-align: center; }
.camera-sequence { position: relative; width: 100%; max-width: 280px; aspect-ratio: 1 / 1.6; margin: 0 auto; isolation: isolate; }
.instant-camera { position: absolute; top: 0; left: 0; width: 100%; height: auto; z-index: 1; }
.print-window { position: absolute; top: 42.7%; left: 10%; width: 80%; height: 57.3%; overflow: hidden; z-index: 2; padding-top: 3px; }
.printed-polaroid { position: relative; width: 80%; margin: 0 auto; padding: 6px 6px 27px; background: #fff; box-shadow: 0 5px 12px #64212b29; transform: translateY(12px) rotate(-3deg); transform-origin: 50% 0; }
.photo-image { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; object-position: 50% 58%; }
.photo-heart { position: absolute; width: 19px; }
.photo-heart.left { left: -17px; bottom: 30%; transform: rotate(-14deg); }
.photo-heart.right { right: -16px; top: 30%; width: 14px; transform: rotate(12deg); }
.camera-slot { position: absolute; z-index: 3; top: 42.7%; left: 14%; width: 72%; height: 2px; border-radius: 50%; background: var(--wine); opacity: .75; transform: rotate(-.4deg); }
.camera-flash { position: absolute; z-index: 4; top: 8%; left: 78%; width: 80%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(circle, #fff 0%, #fff9 18%, #fff0 68%); opacity: 0; pointer-events: none; }
.photo-replay { position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); white-space: nowrap; min-height: 44px; border: 0; background: transparent; color: inherit; font: 400 10px var(--body); padding: 8px; cursor: pointer; text-decoration: underline; text-underline-offset: 4px; }
.photo-replay:disabled { opacity: .5; cursor: default; }
.camera-sequence.is-ready .printed-polaroid { transform: translateY(-115%); }
.camera-sequence.is-running .instant-camera { animation: camera-snap 5.6s steps(1, end) both; }
.camera-sequence.is-running .camera-flash { animation: camera-flash 5.6s linear both; }
.camera-sequence.is-running .printed-polaroid { animation: camera-print 5.6s linear both; }
.camera-sequence.is-running .photo-image { animation: photo-develop 5.6s ease-out both; }
.camera-sequence.is-paused * { animation-play-state: paused !important; }
@keyframes camera-snap {
  0%, 8%, 16%, 100% { transform: none; }
  10% { transform: translateY(1px) rotate(-1.5deg); }
  13% { transform: translateY(-1px) rotate(1deg); }
}
@keyframes camera-flash {
  0%, 9%, 15%, 100% { opacity: 0; }
  10%, 12% { opacity: .95; }
}
@keyframes camera-print {
  0%, 20% { transform: translateY(-115%) rotate(0); box-shadow: none; }
  72% { transform: translateY(12px) rotate(0); box-shadow: 0 2px 5px #64212b1a; }
  86%, 100% { transform: translateY(12px) rotate(-3deg); box-shadow: 0 5px 12px #64212b29; }
}
@keyframes photo-develop {
  0%, 32% { opacity: 0; filter: contrast(.2) sepia(.5); }
  84%, 100% { opacity: 1; filter: none; }
}
.venue-details { text-align: left; }
.venue-details .venue-date { margin: 0 0 14px; font: 500 22px/1.2 var(--script); }
.venue-details .arrival { margin: 0 0 10px; font: 500 23px var(--display); letter-spacing: .06em; }
.venue-details h2 { font-size: 31px; }
.venue-details > p:not(.arrival):not(.venue-date) { font-size: 12px; line-height: 1.6; margin: 8px 0 0; }
address { margin-top: 16px; font-size: 12px; line-height: 1.8; font-style: normal; }
.text-link { display: inline-flex; align-items: center; gap: 14px; min-height: 44px; margin-top: 12px; font-size: 12px; }
.divider { text-align: center; font: 500 28px var(--script); letter-spacing: 12px; padding-left: 12px; }
.schedule ol { list-style: none; max-width: 370px; margin: 34px auto 0; padding: 0; text-align: left; }
.schedule li { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; padding: 15px 0; border-bottom: 1px dashed var(--line); }
.schedule li:last-child { border-bottom: 0; }
.schedule time { font: 500 22px var(--display); letter-spacing: .035em; }
.schedule li span { font: 500 28px var(--script); }
.formal { margin: 18px 0 0; font: 500 21px var(--display); letter-spacing: .1em; text-transform: uppercase; }
.swatches { display: flex; justify-content: center; gap: 14px; list-style: none; padding: 0; margin: 24px 0 28px; }
.swatches li { width: 30px; height: 31px; border: 1px solid #942c3570; border-radius: 48% 52% 47% 53%; background: var(--swatch); transform: rotate(-8deg); }
.swatches li:nth-child(even) { transform: rotate(10deg); }
.lookbook { display: block; width: 100%; max-width: 420px; margin: 0 auto; padding: 16px; border: 1px solid var(--wine); border-radius: 18px; background: #fbf9f5; cursor: pointer; font: 400 10px var(--body); }
.lookbook img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: contain; }
.lookbook span { display: block; margin-top: 10px; }
.dress-note, .rsvp p { margin: 22px auto 0; font-size: 12px; line-height: 1.8; }
.rsvp .rsvp-note { max-width: 30ch; margin-top: 12px; color: var(--wine-soft); }
.faq { padding-top: 10px; }
.faq h2 { margin-bottom: 28px; }
.faq details { border-bottom: 1px solid var(--line); text-align: left; }
.faq summary { display: flex; align-items: center; justify-content: space-between; padding: 20px 0; gap: 20px; list-style: none; cursor: pointer; font: 500 24px var(--script); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 400 20px var(--body); }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 0; padding: 0 20px 20px 0; font-size: 12px; line-height: 1.8; }
footer { padding: 20px 24px 54px; text-align: center; }
footer p { margin: 0 0 8px; font: 600 35px var(--script); }
footer time { font-size: 11px; letter-spacing: .2em; }
.footer-heart { display: block; margin-top: 24px; font-size: 22px; transform: rotate(-10deg); }
@media (min-width: 700px) {
  body { padding: 32px 0; }
  .invitation { border-radius: 180px 180px 12px 12px; box-shadow: 0 10px 70px #942c3510; }
  .hero { min-height: 900px; padding: 48px 40px 24px; }
  .section { padding-inline: 64px; }
}
@media (max-width: 359px) {
  .hero { padding-inline: 14px; }
  .section { padding-inline: 22px; }
  .venue-details h2 { font-size: 26px; }
}
@media (max-width: 520px) {
  .details { grid-template-columns: 1fr; gap: 28px; }
  .instant-photo { width: min(100%, 280px); margin: 0 auto; }
  .venue-details { text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .camera-sequence * { animation: none !important; }
  .camera-sequence .printed-polaroid { transform: translateY(12px) rotate(-3deg); }
  .camera-sequence .photo-image { opacity: 1; filter: none; }
  .camera-flash { display: none; }
}
