@font-face {
  font-family: "Caveat";
  src: url("assets/fonts/Caveat-Bold.ttf") format("truetype");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("assets/fonts/Inter-Regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("assets/fonts/Inter-Semibold.ttf") format("truetype");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

:root {
  --paper: #fbf7ee;
  --ink: #242731;
  --blue: #3a6e9d;
  --wine: #6f2234;
}

* { box-sizing: border-box; }
html { background: var(--paper); }
.icon-definitions { position: absolute; width: 0; height: 0; overflow: hidden; }
.heart-icon { display: block; fill: currentColor; }

body {
  min-width: 0;
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--paper);
  font-family: "Inter", Arial, sans-serif;
  font-size: 18px;
  line-height: 20px;
}

body.is-loading { overflow: hidden; }

img { display: block; max-width: 100%; }
a, button { -webkit-tap-highlight-color: transparent; }
a:active, button:not(:disabled):active { filter: brightness(.88); }
.hand { font-family: "Caveat", cursive; font-weight: 700; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.desktop-message { display: none; }

.site-loader {
  position: fixed;
  z-index: 20;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 32px;
  background: var(--paper);
  color: var(--blue);
  opacity: 1;
  transition: opacity .45s ease, visibility 0s linear .45s;
}

.site-loader__content { width: min(100%, 320px); text-align: center; }
.site-loader__spinner { position: relative; width: 92px; height: 80px; margin: 0 auto 29px; }
.site-loader__heart { position: absolute; inset: 0; width: 100%; height: 100%; color: var(--wine); animation: loader-heart .8s ease-in-out infinite alternate; }
.site-loader__status { min-height: 56px; margin: 0; font-size: 23px; font-weight: 600; line-height: 28px; }
.site-loader__progress { display: block; width: 100%; height: 5px; margin-top: 17px; overflow: hidden; border-radius: 999px; background: rgba(58, 110, 157, .17); }
.site-loader__progress-fill { display: block; width: 100%; height: 100%; border-radius: inherit; background: var(--wine); transform: scaleX(0); transform-origin: left; }
.site-loader__percent { margin: 9px 0 0; color: var(--wine); font: 700 26px/1 "Caveat", cursive; }
body.is-ready .site-loader { visibility: hidden; opacity: 0; pointer-events: none; }

@keyframes loader-heart { to { transform: scale(1.22) rotate(-7deg); } }

.invitation {
  width: 393px;
  max-width: 100%;
  margin: 0 auto;
  overflow: hidden;
  background: var(--paper);
}

.section { position: relative; width: 100%; overflow: hidden; }
.section:not(.hero) { content-visibility: auto; }
.section.is-lazy-loading { opacity: 0; transform: translateY(28px); transition: opacity .55s ease-out, transform .55s cubic-bezier(.22, 1, .36, 1); }
.section.is-lazy-loading.is-lazy-loaded { opacity: 1; transform: none; }
.js .progressive-photo { opacity: 0; transition: opacity .45s ease-out; }
.js .progressive-photo.is-photo-loaded { opacity: 1; }
.section-loader { display: grid; height: 72px; margin: 0; place-items: center; color: var(--blue); font: 700 25px/1 "Caveat", cursive; text-align: center; }

.hero { height: 852px; }

.hero-title {
  position: absolute;
  z-index: 3;
  top: 20px;
  left: 50%;
  width: 354px;
  margin: 0;
  color: var(--blue);
  font: 700 68px/70px "Caveat", cursive;
  transform: translateX(-50%) rotate(-3.71deg);
}

.hero-title span { display: block; }
.hero-title span + span { margin-left: 157px; margin-top: -12px; }
.hero-doodles { position: absolute; z-index: 2; top: 72px; left: -3px; width: 126px; height: 112px; }
.hero-doodle { position: absolute; display: block; overflow: hidden; }
.hero-doodle img { position: absolute; max-width: none; }
.hero-doodle--large { top: 0; left: 0; width: 76px; height: 86px; transform: rotate(-54.77deg); }
.hero-doodle--large img { top: -108px; left: -151px; width: 251px; height: 301px; }
.hero-doodle--small-one { top: 67px; left: 79px; width: 43px; height: 35px; transform: rotate(7.43deg); }
.hero-doodle--small-one img { top: -44px; left: -9px; width: 103px; height: 123px; }
.hero-doodle--small-two { top: 42px; left: 90px; width: 26px; height: 27px; transform: rotate(3.78deg); }
.hero-doodle--small-two img { top: -54px; left: -37px; width: 69px; height: 82px; }
.hero-art { position: absolute; top: 181px; left: 50%; width: 340px; height: 330px; transform: translateX(-50%); }
.hero-photo { position: relative; width: 100%; height: 100%; }

.hero-photo__image {
  position: absolute;
  z-index: 1;
  top: 44px;
  left: 61px;
  width: 219px;
  height: 202px;
  object-fit: cover;
  object-position: center;
  -webkit-mask: url("assets/figma/vectors/vector-03.svg") center / 100% 100% no-repeat;
  mask: url("assets/figma/vectors/vector-03.svg") center / 100% 100% no-repeat;
}

.hero-photo__lace { position: absolute; z-index: 2; inset: 0 11px 21px; width: 318px; height: 309px; pointer-events: none; }

.hero-label {
  position: absolute;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 66px;
  height: 37px;
  border-radius: 48% 55% 48% 52%;
  background: var(--paper);
  color: var(--blue);
  font: 700 22px/1 "Caveat", cursive;
}

.hero-label--groom { top: 75px; left: 65px; transform: rotate(-38deg); }
.hero-label--bride { top: 65px; right: 66px; transform: rotate(-38deg); }
.hero-photo__brush { position: absolute; z-index: 3; top: 221px; left: 18px; width: 311px; height: 75px; }
.hero-photo__caption { position: absolute; z-index: 4; top: 230px; left: 0; width: 100%; color: var(--paper); text-align: center; font: 700 48px/50px "Caveat", cursive; }

.polaroids { position: absolute; top: 498px; left: 50%; width: 315px; height: 196px; transform: translateX(-50%); }
.polaroid { position: absolute; object-fit: cover; }
.polaroid--center { z-index: 2; top: 0; left: 95px; width: 125px; height: 171px; }
.polaroid--left { z-index: 1; top: 28px; left: 1px; width: 92px; height: 151px; transform: rotate(-14.56deg); }
.polaroid--right { z-index: 1; top: 23px; right: 1px; width: 92px; height: 149px; transform: rotate(14.56deg); }

.hero-copy { position: absolute; top: 706px; left: 25px; width: 343px; text-align: center; }
.hero-copy p { margin: 0; }
.hero-copy__title { color: var(--blue); font-size: 48px; line-height: 56px; }
.hero-copy__title + p { margin-top: 5px; }

.calendar-zags { height: 815px; }
.calendar { position: absolute; top: 25px; left: 50%; width: 356px; height: 205px; transform: translateX(-50%); }
.calendar p { position: absolute; margin: 0; }
.calendar__rules { position: absolute; top: 52px; left: 0; width: 356px; height: 42px; }
.calendar__columns { position: absolute; top: 52px; left: 116px; width: 125px; height: 153px; }
.calendar__month, .calendar__year { top: 0; color: var(--blue); font-size: 38px; line-height: 44px; }
.calendar__month { left: 7px; }
.calendar__year { right: 0; }
.calendar__day { top: 55px; font-size: 20px; line-height: 24px; }
.calendar__day--fri { left: 22px; }
.calendar__day--sat { left: 149px; }
.calendar__day--sun { right: 14px; color: var(--blue); }
.calendar__number { top: 116px; color: var(--ink); font-size: 44px; line-height: 56px; }
.calendar__number--nine { left: 48px; }
.calendar__number--ten { left: 156px; }
.calendar__heart { position: absolute; top: 93px; right: 0; width: 106px; height: 101px; overflow: visible; }
.calendar__heart path { fill: none; stroke: var(--wine); stroke-linecap: round; stroke-linejoin: round; stroke-width: 5; }
.js .calendar__heart path { opacity: 0; stroke-dasharray: 1; stroke-dashoffset: 1; }
.js .calendar__heart.is-drawn path { animation: draw-calendar-heart 1.15s ease-out forwards; }

@keyframes draw-calendar-heart {
  to { opacity: 1; stroke-dashoffset: 0; }
}
.calendar__number--eleven { z-index: 2; top: 116px; right: 40px; color: var(--blue); }

.blue-place {
  position: absolute;
  left: 50%;
  width: 394px;
  height: 451px;
  color: var(--paper);
  background: var(--blue);
  text-align: center;
  transform: translateX(-50%);
}

.blue-place--zags { top: 294px; }
.blue-place--restaurant { top: 33px; }
.edge { position: absolute; z-index: 0; pointer-events: none; max-width: none; }
.blue-place--zags .edge--top { top: -42px; left: -15px; width: 420px; height: 63px; }
.blue-place--zags .edge--bottom { top: 417px; left: -67px; width: 487px; height: 104px; }
.blue-place--restaurant .edge--top { top: -33px; left: -13px; width: 420px; height: 126px; transform: scaleY(-1); }
.blue-place--restaurant .edge--bottom { top: 374px; left: -67px; width: 486px; height: 111px; transform: scaleY(-1); }

.place-title { position: relative; z-index: 1; margin: 20px 0 0; color: var(--paper); font-size: 48px; line-height: 56px; }
.place-title__underline { position: absolute; z-index: 1; top: 70px; left: 50%; width: 102px; height: 5px; border-radius: 50%; background: var(--paper); transform: translateX(-50%) rotate(1deg); }
.place-address { position: relative; z-index: 1; margin: 17px 0 0; }

.torn-photos { position: absolute; z-index: 1; left: 0; width: 100%; }
.torn-photo {
  position: absolute;
  width: 162px;
  height: 212px;
  border: 8px solid var(--paper);
  object-fit: cover;
  background: var(--paper);
  clip-path: polygon(2% 3%, 97% 0, 99% 8%, 96% 14%, 100% 23%, 98% 32%, 100% 43%, 97% 51%, 100% 61%, 97% 70%, 99% 83%, 96% 100%, 86% 98%, 76% 100%, 67% 97%, 57% 100%, 48% 97%, 38% 100%, 26% 97%, 14% 100%, 2% 96%, 4% 85%, 0 73%, 3% 62%, 0 52%, 3% 40%, 0 29%, 3% 18%, 0 8%);
}

.torn-photo--left { left: 30px; transform: rotate(-13deg); }
.torn-photo--right { right: 20px; transform: rotate(7.5deg); }
.torn-photos--zags { top: 153px; }
.torn-photos--zags .torn-photo--left { top: 27px; object-position: center; }
.torn-photos--zags .torn-photo--right { top: 0; }
.torn-photos--restaurant { top: 153px; }
.torn-photos--restaurant .torn-photo--left { top: 27px; }
.torn-photos--restaurant .torn-photo--right { top: 0; }

.map-button, .rsvp-button {
  position: absolute;
  z-index: 2;
  display: inline-grid;
  min-height: 40px;
  place-items: center;
  padding: 10px 16px;
  border: 0;
  border-radius: 12px;
  background: var(--paper);
  color: var(--blue);
  font: 600 14px/20px "Inter", Arial, sans-serif;
  text-decoration: none;
}

.map-button { bottom: 11px; left: 50%; width: 120px; transform: translateX(-50%); }

.plan { height: 900px; }
.plan-title { position: absolute; top: 25px; left: 50%; margin: 0; color: var(--blue); font-size: 68px; line-height: 70px; transform: translateX(-50%); }
.plan-line { position: absolute; top: 124px; left: 85px; width: 205px; height: 726px; }
.plan-item { position: absolute; z-index: 1; }
.plan-item time { display: block; color: var(--blue); font-size: 48px; line-height: 56px; }
.plan-item p { margin: 0; }
.plan-item--one { top: 181px; left: 31px; }
.plan-item--two { top: 326px; left: 225px; }
.plan-item--three { top: 483px; left: 31px; }
.plan-item--four { top: 660px; left: 181px; }
.plan-item--four img { position: absolute; top: -26px; left: 103px; width: 99px; height: 82px; object-fit: cover; object-position: left; transform: scaleY(-1) rotate(180deg); }
.plan-heart { position: absolute; bottom: 15px; left: calc(50% + 10px); width: 70px; height: 63px; color: var(--wine); transform: translateX(-50%); }

.restaurant-section { height: 518px; }
.blue-place--restaurant .place-address { margin-top: 17px; }
.restaurant-underline { position: absolute; z-index: 1; top: 76px; left: 50%; width: 168px; height: 9px; transform: translateX(-50%); }
.blue-place--restaurant .torn-photo--left { left: 38px; }
.blue-place--restaurant .torn-photo--right { right: 20px; }

.dress-code { height: 685px; text-align: center; }
.dress-title { margin: 29px 0 0; color: var(--blue); font-size: 68px; line-height: 70px; }
.dress-copy { margin: 20px 25px 0; }
.dress-copy--lower { margin-top: 20px; }
.dress-hearts { position: absolute; top: 245px; left: 50%; display: flex; width: 322px; height: 59px; justify-content: space-between; transform: translateX(-50%); }
.dress-heart { display: block; width: 70px; height: 59px; padding: 0; border: 0; background: none; cursor: pointer; opacity: .25; transition: opacity .22s ease, transform .22s ease, filter .15s ease; }
.dress-heart .heart-icon { width: 100%; height: 100%; }
.dress-heart[aria-pressed="true"] { opacity: 1; }
.dress-heart--blue[aria-pressed="false"] { opacity: .5; }
.dress-heart:active { transform: scale(.93); }
.dress-heart--blue { color: #98cbf9; }
.dress-heart--wine { color: var(--wine); }
.dress-heart--olive { color: #8d8d51; }
.dress-heart--black { color: #000; }

.outfit-photos { position: absolute; top: 334px; left: 50%; width: 330px; height: 324px; transform: translateX(-50%); }
.outfit-photo { position: absolute; border-radius: 16px; object-fit: cover; transition: opacity .48s ease-out; }
.outfit-photos.is-changing .outfit-photo { opacity: 0; transition-duration: .18s; }
.outfit-photos .outfit-photo.is-revealing { opacity: 0; }
.outfit-photo--left { left: 17px; top: 40px; width: 164px; height: 218px; transform: rotate(-9.94deg); }
.outfit-photo--right { left: 157px; top: 51px; width: 164px; height: 218px; transform: rotate(5.22deg); }
.outfit-photos[data-dress="wine"] .outfit-photo--left { left: 39px; top: 44px; width: 130px; height: 231px; transform: rotate(-9.39deg); }
.outfit-photos[data-dress="wine"] .outfit-photo--right { left: 160px; top: 34px; width: 138px; height: 244px; transform: rotate(5.59deg); }
.outfit-photos[data-dress="olive"] .outfit-photo--left { left: 29px; top: 70px; width: 169px; height: 225px; transform: rotate(-8.08deg); }
.outfit-photos[data-dress="olive"] .outfit-photo--right { left: 173px; top: 65px; width: 143px; height: 231px; transform: none; }
.outfit-photos[data-dress="black"] .outfit-photo--left { left: 39px; top: 61px; width: 144px; height: 204px; transform: rotate(-9.66deg); }
.outfit-photos[data-dress="black"] .outfit-photo--right { left: 151px; top: 24px; width: 156px; height: 233px; transform: none; }

.details { height: 224px; }
.details-panel { position: absolute; top: 15px; left: 50%; width: 394px; height: 170px; padding-top: 20px; color: var(--paper); background: var(--blue); text-align: center; transform: translateX(-50%); }
.details-edge { position: absolute; z-index: 0; max-width: none; pointer-events: none; }
.details-edge--top { top: -15px; left: -15px; width: 420px; height: 35px; }
.details-edge--bottom { top: 161px; left: -67px; width: 486px; height: 48px; }
.details h2, .details p { position: relative; z-index: 1; }
.details h2 { margin: 0; font-size: 48px; line-height: 56px; }
.details p { margin: 12px 0 0; }

.rsvp { height: 315px; text-align: center; }
.rsvp h2 { margin: 20px 0 0; font-size: 48px; line-height: 56px; }
.rsvp > p:not(.rsvp-hint) { margin: 11px 0 0; }
.rsvp-button { top: 200px; left: 50%; width: 154px; color: var(--paper); background: var(--blue); transform: translateX(-50%); }

a:focus-visible, button:focus-visible { outline: 3px solid var(--wine); outline-offset: 4px; }
a:hover { filter: brightness(0.96); }

@media (min-width: 768px) {
  .site-loader { display: none; }
  .invitation { display: none; }
  .desktop-message { display: grid; min-height: 100vh; min-height: 100svh; place-items: center; padding: 24px; color: var(--blue); text-align: center; }
  .desktop-message p { margin: 0; padding: 27px 40px; border: 2px solid var(--blue); border-radius: 999px; font: 700 clamp(40px, 5vw, 68px)/1 "Caveat", cursive; }
}

@media (prefers-reduced-motion: reduce) {
  .site-loader, .site-loader__heart { transition: none; animation: none; }
  .section.is-lazy-loading { transform: none; transition: none; }
  .js .progressive-photo, .dress-heart, .outfit-photo { transition: none; }
  .js .calendar__heart.is-drawn path { animation: none; opacity: 1; stroke-dashoffset: 0; }
}

@media (max-width: 392px) {
  .hero-title { width: 90%; font-size: clamp(54px, 17.3vw, 68px); line-height: 1; }
  .hero-title span + span { margin-left: 43%; margin-top: -8px; }
  .hero-copy { left: 0; width: 100%; }
  .plan-item--one { left: 8%; }
  .plan-item--two { left: 57%; }
  .plan-item--three { left: 7%; }
  .plan-item--four { left: 46%; }
  .plan-item--four img { left: auto; right: -2px; width: 80px; }
  .torn-photo--left { left: 8%; }
  .torn-photo--right { right: 6%; }
}

@media (max-width: 350px) {
  body { font-size: 16px; line-height: 19px; }
  .hero-art { transform: translateX(-50%) scale(.88); transform-origin: top center; }
  .polaroids { transform: translateX(-50%) scale(.88); transform-origin: top center; }
  .calendar { transform: translateX(-50%) scale(.88); transform-origin: top center; }
  .outfit-photos { transform: translateX(-50%) scale(.88); transform-origin: top center; }
  .hero-copy { left: 2%; width: 96%; }
  .hero-copy__title { font-size: 43px; }
  .place-title, .rsvp h2, .details h2 { font-size: 44px; }
  .dress-title, .plan-title { font-size: 59px; }
  .plan-item time { font-size: 43px; }
  .plan-item--four { left: 43%; }
  .place-address { font-size: 16px; }
}
