:root {
  --bg: #151515;
  --paper: #f3eee6;
  --paper-dark: #e5ded3;
  --red: #8b1d2c;
  --red-dark: #5d0d19;
  --text: #2d2924;
  --muted: #7a7169;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Cormorant Garamond", serif;
  color: var(--text);
  background:
    linear-gradient(rgba(0, 0, 0, .55), rgba(0, 0, 0, .65));
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  backdrop-filter: blur(5px) grayscale(1);
  pointer-events: none;
  z-index: -1;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

.page {
  width: min(100%, 520px);
  margin: 0 auto;
  background:
    linear-gradient(rgba(243, 238, 230, .94), rgba(243, 238, 230, .94)),
    radial-gradient(circle at top left, rgba(139, 29, 44, .08), transparent 35%),
    radial-gradient(circle at bottom right, rgba(0, 0, 0, .06), transparent 35%);
  min-height: 100vh;
  box-shadow: 0 0 70px rgba(0, 0, 0, .45);
  overflow: hidden;
}

.section {
  padding: 64px 24px;
  position: relative;
}

.section-sm {
  padding: 44px 24px;
}

.script {
  font-family: "Great Vibes", cursive;
  color: var(--red);
  font-weight: 400;
  line-height: .95;
}

.eyebrow {
  font-family: "Montserrat", sans-serif;
  font-size: 11px;
  line-height: 1.7;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--red-dark);
}

.text {
  font-size: 18px;
  line-height: 1.45;
}

.center {
  text-align: center;
}

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-left: 16px;
  padding-right: 16px;
  padding-top: 42px;
  padding-bottom: 42px;
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
}

.hero-ornament {
  position: absolute;
  pointer-events: none;
  opacity: .45;
}

.hero-chandelier {
  top: 148px;
  left: -78px;
  z-index: 0;
  width: clamp(138px, 34vw, 198px);
  transform: rotate(-4deg);
}

.hero-cake {
  right: -76px;
  bottom: 92px;
  z-index: 2;
  width: clamp(132px, 32vw, 190px);
  transform: rotate(3deg);
}

.hero-title {
  font-size: clamp(48px, 16vw, 82px);
  text-align: center;
  margin-bottom: 28px;
  transform: rotate(-2deg);
}

.personal-invite {
  width: min(100%, 500px);
  margin: -6px auto 28px;
  color: var(--red);
  font-family: "Great Vibes", cursive;
  font-size: clamp(48px, 15vw, 76px);
  font-weight: 400;
  line-height: 1.05;
  text-align: center;
}

.photo-wrap {
  width: min(78%, 360px);
  margin: 0 auto 28px;
  position: relative;
}

.photo-wrap::before {
  content: "";
  position: absolute;
  inset: -14px;
  border: 2px solid rgba(139, 29, 44, .62);
  transform: rotate(-3deg);
  z-index: 0;
}

.photo-wrap img {
  position: relative;
  z-index: 1;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.line-art {
  position: absolute;
  z-index: 2;
  color: var(--red);
  font-family: "Great Vibes", cursive;
  font-size: 60px;
  opacity: .45;
  pointer-events: none;
}

.line-art.left {
  left: -56px;
  bottom: -60px;
  transform: rotate(-12deg);
}

.line-art.right {
  right: -26px;
  top: -55px;
  transform: rotate(12deg);
}

.calendar-date {
  width: min(100%, 430px);
  margin: 0 auto 34px;
  color: var(--red);
  text-align: center;
}

.calendar-month {
  color: var(--red);
  font-size: 30px;
  font-weight: 600;
  letter-spacing: .06em;
  line-height: 1;
  margin-bottom: 26px;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  align-items: end;
  column-gap: 6px;
  row-gap: 8px;
}

.calendar-weekday {
  color: var(--red);
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
}

.calendar-day {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 38px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: rgba(139, 29, 44, .72);
  font-size: 24px;
  font-weight: 500;
  line-height: 1;
}

.calendar-day.is-selected {
  background: transparent;
  color: var(--paper);
  transform: translateY(-1px);
  z-index: 1;
}

.calendar-day.is-selected::before {
  content: "\2665";
  position: absolute;
  left: 50%;
  top: 50%;
  color: var(--red);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 72px;
  line-height: 1;
  transform: translate(-50%, -52%);
  z-index: -1;
}

.calendar-day.is-selected span {
  position: relative;
  top: -1px;
  z-index: 1;
}

.countdown-section {
  padding-top: 0;
  padding-bottom: 58px;
}

.countdown {
  text-align: center;
}

.countdown-title {
  color: var(--red);
  font-family: "Cormorant Garamond", serif;
  font-size: 30px;
  font-weight: 600;
  letter-spacing: .06em;
  line-height: 1;
  margin-bottom: 24px;
  padding-left: .06em;
}

.countdown-time {
  display: grid;
  grid-template-columns: repeat(7, auto);
  align-items: start;
  justify-content: center;
  column-gap: clamp(5px, 1.8vw, 13px);
  color: var(--red);
}

.countdown-item {
  min-width: clamp(38px, 10vw, 58px);
}

.countdown-number,
.countdown-separator {
  display: block;
  color: var(--red);
  font-size: clamp(34px, 8vw, 50px);
  font-weight: 600;
  line-height: .88;
}

.countdown-label {
  display: block;
  margin-top: 4px;
  color: rgba(93, 13, 25, .82);
  font-family: "Montserrat", sans-serif;
  font-size: clamp(10px, 2.5vw, 13px);
  line-height: 1;
}

.gallery-section {
  padding: 30px 0 52px;
}

.gallery {
  position: relative;
  width: 100%;
  margin: 0 auto;
  padding: 0 0 8px;
}

.photo-slider {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(86%, 430px);
  gap: 16px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  padding: 0 24px;
  scroll-padding-inline: 24px;
}

.photo-slider::-webkit-scrollbar {
  display: none;
}

.gallery-slide {
  scroll-snap-align: center;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: transparent;
}

.gallery-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-dots {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 18px;
}

.gallery-dot {
  width: 12px;
  height: 12px;
  border: 0;
  border-radius: 50%;
  background: rgba(93, 13, 25, .22);
  cursor: pointer;
  padding: 0;
  transition:
    background .2s ease,
    transform .2s ease;
}

.gallery-dot.is-active {
  background: var(--red-dark);
  transform: scale(1.08);
}

.intro {
  min-height: 430px;
  padding-top: 40px;
  padding-bottom: 46px;
}

.cupid {
  width: min(72%, 330px);
  margin: 0 auto 0 0;
  opacity: .92;
  filter: sepia(.18) saturate(.88);
}

.intro-text {
  width: min(60%, 260px);
  margin: -42px 0 0 auto;
  color: var(--red);
  font-size: 19px;
  font-weight: 600;
  line-height: 1.22;
  text-transform: uppercase;
  text-align: left;
}

.nav {
  position: sticky;
  bottom: 0;
  z-index: 30;
  background: rgba(93, 13, 25, .94);
  backdrop-filter: blur(10px);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid rgba(255, 255, 255, .15);
}

.nav a {
  font-family: "Montserrat", sans-serif;
  text-decoration: none;
  color: var(--paper);
  font-size: 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-align: center;
  padding: 14px 4px;
}

.section-title {
  font-size: clamp(48px, 15vw, 74px);
  text-align: center;
  margin-bottom: 36px;
  transform: rotate(-2deg);
}

.ribbon-program {
  position: relative;
  width: min(100%, 420px);
  height: 760px;
  margin: -8px auto 0;
  overflow: visible;
}

.program-ribbon {
  position: absolute;
  inset: -18px -10px 0;
  width: 100%;
  height: calc(100% + 28px);
  z-index: 0;
  overflow: visible;
  pointer-events: none;
}

.program-ribbon path {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ribbon-shadow {
  stroke: rgba(93, 13, 25, .16);
  stroke-width: 25;
  filter: url("#ribbonSoftShadow");
  opacity: .65;
  transform: translateY(3px);
}

.ribbon-body {
  stroke: url("#ribbonSatin");
  stroke-width: 20;
  opacity: .72;
}

.ribbon-highlight {
  stroke: rgba(255, 255, 255, .34);
  stroke-width: 5;
  opacity: .32;
}

.ribbon-turn {
  stroke: url("#ribbonTurn");
  stroke-width: 20;
  opacity: .54;
}

.ribbon-turn-soft {
  opacity: .38;
}

.program-event,
.program-note {
  position: absolute;
  z-index: 1;
  color: var(--red-dark);
}

.program-event {
  width: min(58%, 230px);
}

.program-time {
  color: var(--red);
  font-size: 44px;
  line-height: .95;
  margin-bottom: 10px;
}

.program-event h3 {
  color: var(--red-dark);
  font-size: 22px;
  font-weight: 600;
  line-height: 1.05;
  margin-bottom: 8px;
}

.program-event p,
.program-note {
  color: var(--red-dark);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.3;
}

.program-event-top {
  top: 52px;
  right: 0;
  text-align: center;
}

.program-event-left {
  top: 248px;
  left: 2px;
}

.program-note-right {
  top: 405px;
  right: 0;
  width: min(68%, 280px);
  text-align: center;
}

.program-event-bottom {
  top: 548px;
  left: 8px;
}

.program-note-bottom {
  right: 2px;
  bottom: 12px;
  width: min(66%, 270px);
  text-align: center;
}

.location-card {
  background: var(--red-dark);
  color: var(--paper);
  padding: 38px 24px;
  width: 100%;
  margin: 0;
  text-align: center;
}

#location {
  padding-left: 0;
  padding-right: 0;
}

.location-card .section-title {
  color: var(--paper);
  margin-bottom: 24px;
}

.place {
  margin-bottom: 30px;
}

.place h3 {
  font-size: 26px;
  font-weight: 500;
  margin-bottom: 4px;
}

.place p {
  font-size: 17px;
  opacity: .86;
  margin-bottom: 16px;
}

.venue-photo {
  width: min(84%, 360px);
  margin: 22px auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, .25);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 26px;
  border: 1px solid currentColor;
  text-decoration: none;
  font-family: "Montserrat", sans-serif;
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  transition: .25s ease;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.btn:hover {
  background: var(--paper);
  color: var(--red-dark);
}

.dress-text {
  width: min(88%, 380px);
  margin: 0 auto 28px;
  text-align: center;
  color: var(--red-dark);
}

.palette {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
  width: min(92%, 390px);
  margin: 0 auto 32px;
}

.color {
  aspect-ratio: 1;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .08);
}

.c1 { background: #6f0d21; }
.c2 { background: #b6a27f; }
.c3 { background: #e5d7bd; }
.c4 { background: #d8d5cc; }
.c5 { background: #7d8264; }
.c6 { background: #424d37; }

.moodboard {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  width: min(92%, 390px);
  margin: 0 auto;
}

.moodboard img {
  aspect-ratio: 1 / 1.15;
  object-fit: cover;
}

.details-section {
  padding-top: 54px;
  padding-bottom: 54px;
}

.details-card {
  position: relative;
  min-height: 420px;
  width: min(100%, 410px);
  margin: 0 auto;
  color: var(--red-dark);
  display: grid;
  align-content: center;
  gap: 48px;
}

.details-copy {
  position: relative;
  z-index: 1;
  width: min(76%, 300px);
  margin: 0 auto;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.28;
  text-align: center;
}

.details-copy-bottom {
  width: min(76%, 300px);
}

.details-candle {
  position: absolute;
  right: 0;
  top: 58px;
  width: 76px;
  opacity: .9;
  z-index: 0;
}

.details-envelope {
  position: absolute;
  left: -35px;
  bottom: 22px;
  width: 120px;
  opacity: .92;
  transform: rotate(-2deg);
  z-index: 0;
}

.form {
  width: min(100%, 420px);
  margin: 0 auto;
  color: var(--red-dark);
}

.form-group {
  margin-bottom: 24px;
}

.form-title {
  font-size: 17px;
  margin-bottom: 12px;
  color: var(--red-dark);
  font-weight: 600;
}

.input {
  width: 100%;
  height: 42px;
  border: none;
  border-bottom: 1px solid rgba(139, 29, 44, .55);
  background: transparent;
  outline: none;
  font-family: inherit;
  font-size: 18px;
  color: var(--text);
}

.option {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 17px;
  margin: 10px 0;
  cursor: pointer;
}

.option input {
  appearance: none;
  width: 13px;
  height: 13px;
  border: 1px solid var(--red);
  flex: 0 0 13px;
}

.option input[type="radio"] {
  border-radius: 50%;
}

.option input:checked {
  background: var(--red);
  box-shadow: inset 0 0 0 3px var(--paper);
}

.form-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.submit {
  width: 100%;
  height: 44px;
  border: 1px solid var(--red);
  background: transparent;
  color: var(--red);
  font-family: "Montserrat", sans-serif;
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  cursor: pointer;
  transition: .25s ease;
}

.submit:hover {
  background: var(--red);
  color: var(--paper);
}

.submit:disabled {
  cursor: wait;
  opacity: .65;
}

.form-status {
  min-height: 18px;
  margin-top: 12px;
  color: var(--ink);
  font-family: "Montserrat", sans-serif;
  font-size: 12px;
  line-height: 1.45;
  text-align: center;
}

.form-status.is-success {
  color: var(--red);
}

.form-status.is-error {
  color: #9d1b24;
}

.form-status.is-pending {
  color: var(--muted);
}

.final {
  text-align: center;
  padding-bottom: 92px;
}

.final-title {
  font-size: clamp(48px, 15vw, 76px);
  margin-bottom: 14px;
}

.final-text {
  font-size: 38px;
  color: var(--red);
  line-height: 1.05;
}

.final-angels {
  margin-top: 22px;
  pointer-events: none;
}

.final-angels-image {
  width: min(100%, 430px);
  margin: 0 auto;
  opacity: .74;
  filter: sepia(.08) saturate(.9);
}

@media (prefers-reduced-motion: no-preference) {
  .js .reveal-block {
    opacity: 0;
    transform: translateY(36px);
    transition:
      opacity .8s ease,
      transform .8s ease;
    transition-delay: var(--reveal-delay, 0ms);
  }

  .js .reveal-block.is-visible {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (min-width: 768px) {
  body {
    padding: 40px 0;
  }

  .hero {
    align-items: center;
  }

  .page {
    border-radius: 2px;
  }

  .section {
    padding-left: 46px;
    padding-right: 46px;
  }

  .nav {
    width: min(100%, 520px);
    margin: 0 auto;
  }
}

@media (min-width: 1100px) {
  .page {
    width: min(100%, 620px);
  }

  .nav {
    width: min(100%, 620px);
  }

  .hero-title {
    font-size: 88px;
  }

  .section-title {
    font-size: 78px;
  }

  .text {
    font-size: 20px;
  }
}
