@import url("https://use.typekit.net/aig5bhe.css");

@font-face {
  font-family: "Avenir Book Local";
  src: url("./fonts/Avenir-Book.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: "Avenir Next Local";
  src: url("./fonts/AvenirNext-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: "Avenir Next Local";
  src: url("./fonts/AvenirNext-DemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
}

@font-face {
  font-family: "Avenir Next Condensed Local";
  src: url("./fonts/AvenirNextCondensed-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: "Avenir Next Condensed Local";
  src: url("./fonts/AvenirNextCondensed-DemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
}

:root {
  --app-height: 100svh;
  --bg: #f5f0e8;
  --paper: rgba(250, 247, 240, 0.74);
  --paper-strong: rgba(252, 249, 244, 0.82);
  --text: #575048;
  --text-on-dark: #f5eee6;
  --muted-on-dark: rgba(245, 238, 230, 0.82);
  --muted: #81776f;
  --line: rgba(98, 90, 80, 0.16);
  --accent: #7d8a71;
  --accent-deep: #6d7963;
  --shadow: 0 24px 70px rgba(78, 67, 53, 0.12);
  --panel-dark: rgba(86, 92, 78, 0.72);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  overflow: auto;
  font-family: "Avenir Book Local", "Avenir", sans-serif;
  color: var(--text);
  background: var(--bg);
}

a {
  color: inherit;
  text-decoration: none;
}

.date,
.overline {
  margin: 0;
  font-family: "Avenir Next Condensed Local", "Avenir Next Condensed", sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
}

.section-panel .overline + .heading,
.section-panel .overline + .heading-2 {
  margin-top: 0.9rem;
}

.section-panel .heading + .overline,
.section-panel .heading-2 + .paragraph-4,
.section-panel .heading-3 + .paragraph {
  margin-top: 1.1rem;
}

.heading,
.heading-2,
.heading-3 {
  margin: 0;
  font-family: "the-seasons", "Bodoni Moda", serif;
  font-weight: 400;
  color: var(--text);
}

.paragraph,
.paragraph-4,
.accordion-paragraph,
.scroll,
.paragraph-8,
.mobile-visual-card__copy {
  margin: 0;
  font-family: "Avenir Book Local", "Avenir", sans-serif;
  line-height: 1.8;
  color: var(--muted);
}

.scroll-snap-wrapper {
  position: relative;
  height: var(--app-height);
  overflow-y: auto;
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
  scroll-padding-top: 0;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-y: contain;
  background: transparent;
  z-index: 0;
}

.scroll-snap-wrapper::-webkit-scrollbar {
  width: 0;
}

.scroll-snap-wrapper::before,
.scroll-snap-wrapper::after {
  content: "";
  position: fixed;
  inset: 0;
  height: var(--app-height);
  pointer-events: none;
}

.scroll-snap-wrapper::before {
  z-index: -2;
  background: url("./save-the-date-bg.jpg") center 38% / cover no-repeat;
}

.scroll-snap-wrapper::after {
  z-index: -1;
  background:
    linear-gradient(rgba(245, 240, 232, 0.62), rgba(245, 240, 232, 0.9)),
    radial-gradient(circle at top left, rgba(217, 198, 160, 0.12), transparent 34%),
    radial-gradient(circle at bottom right, rgba(149, 168, 188, 0.14), transparent 28%);
}

.section {
  min-height: var(--app-height);
  scroll-snap-align: start;
  scroll-snap-stop: always;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0;
  text-align: center;
}

.home-section {
  position: relative;
  background: transparent;
  --hero-top-offset: clamp(6rem, 18svh, 10.6rem);
  --hero-title-size: clamp(3.4rem, 12vw, 5.9rem);
  --hero-date-size: clamp(0.92rem, 2.5vw, 1.12rem);
  --hero-scroll-size: clamp(0.9rem, 2.7vw, 1.08rem);
  --hero-rule-width: clamp(7.8rem, 24vw, 10rem);
  --hero-meta-bottom: clamp(8.5rem, 18svh, 11rem);
  --hero-meta-spacing: clamp(0.9rem, 2svh, 1.4rem);
}

.section-panel {
  width: 100%;
  margin: 0 auto;
  min-height: var(--app-height);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2rem, 6svh, 4.25rem) clamp(1rem, 5vw, 2rem);
  border-radius: 0;
  border: 1px solid rgba(255, 255, 255, 0.24);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.section-panel--light {
  background: rgba(255, 252, 247, 0.46);
}

.section-panel--dark {
  background: var(--panel-dark);
  color: var(--text-on-dark);
  border-color: rgba(255, 255, 255, 0.12);
}

.section-panel--plain {
  background: transparent;
  border: 0;
  box-shadow: none;
  backdrop-filter: none;
  position: relative;
  display: block;
  min-height: var(--app-height);
  padding: 0;
}

.section-panel--transparent {
  background: transparent;
  border: 0;
  box-shadow: none;
  backdrop-filter: none;
}

.section-panel--confirmation {
  background: rgba(255, 252, 247, 0.12);
  backdrop-filter: blur(1px);
}

.section-5 .heading-2 {
  margin-bottom: 1rem;
}

.hero-stack {
  position: absolute;
  inset: 0;
}

.hero-title-block {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(100%, 30rem);
  transform: translate(-50%, -50%);
}

.hero-meta {
  position: absolute;
  bottom: var(--hero-meta-bottom);
  left: 50%;
  width: min(100%, 30rem);
  transform: translateX(-50%);
}

.section-panel--dark .date,
.section-panel--dark .overline,
.section-panel--dark .scroll,
.section-panel--dark .paragraph,
.section-panel--dark .paragraph-4,
.section-panel--dark .paragraph-8,
.section-panel--dark .accordion-paragraph,
.section-panel--dark .alias,
.section-panel--dark .visual-panel__text {
  color: var(--muted-on-dark);
}

.section-panel--dark h1,
.section-panel--dark .heading,
.section-panel--dark .heading-2,
.section-panel--dark .heading-3,
.section-panel--dark .acc-title {
  color: var(--text-on-dark);
}

.section-panel--dark .floral-mark {
  background: rgba(245, 238, 230, 0.3);
}

.section-panel--dark .icon-seal,
.section-panel--dark .cheers-mark {
  background: rgba(255, 252, 247, 0.1);
  border-color: rgba(255, 255, 255, 0.18);
  color: var(--text-on-dark);
}

.section-panel--dark .button {
  background: rgba(255, 252, 247, 0.86);
  color: var(--accent-deep);
}

.section-panel--dark .button:hover {
  background: rgba(255, 252, 247, 0.95);
}

.section-panel--dark .faq-item {
  border-color: rgba(255, 255, 255, 0.16);
}

.section-panel--dark .faq-icon::before,
.section-panel--dark .faq-icon::after {
  background: rgba(245, 238, 230, 0.88);
}

.spacing-20 {
  height: 1.25rem;
}

.spacing-40 {
  height: 2.5rem;
}

.date + .date {
  margin-top: 0.3rem;
}

h1 {
  margin: 0;
  font-family: "the-seasons", "Bodoni Moda", serif;
  font-size: var(--hero-title-size, clamp(4.1rem, 8.2vw, 6.3rem));
  font-weight: 400;
  line-height: 1.02;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text);
}

.hero-line {
  display: block;
  margin: 0.08em 0;
}

.highlight {
  display: block;
  margin: 0.18em 0 0.16em;
  font-size: 0.62em;
  letter-spacing: 0.03em;
}

.letter {
  display: inline-block;
  opacity: 0;
  transform: translateY(1.1em);
}

h1.is-visible .letter {
  animation: fade-up-letter 900ms ease forwards;
}

h1.is-visible .letter:nth-child(1) { animation-delay: 0.08s; }
h1.is-visible .letter:nth-child(2) { animation-delay: 0.11s; }
h1.is-visible .letter:nth-child(3) { animation-delay: 0.14s; }
h1.is-visible .letter:nth-child(4) { animation-delay: 0.17s; }
h1.is-visible .letter:nth-child(5) { animation-delay: 0.20s; }
h1.is-visible .letter:nth-child(6) { animation-delay: 0.23s; }
h1.is-visible .letter:nth-child(7) { animation-delay: 0.26s; }
h1.is-visible .letter:nth-child(8) { animation-delay: 0.29s; }
h1.is-visible .letter:nth-child(9) { animation-delay: 0.32s; }
h1.is-visible .letter:nth-child(10) { animation-delay: 0.35s; }
h1.is-visible .letter:nth-child(11) { animation-delay: 0.38s; }
h1.is-visible .letter:nth-child(12) { animation-delay: 0.41s; }
h1.is-visible .letter:nth-child(13) { animation-delay: 0.44s; }

@keyframes fade-up-letter {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.scroll {
  font-family: "Avenir Next Local", "Avenir Next", sans-serif;
  font-size: var(--hero-scroll-size, 1.02rem);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-top: clamp(1rem, 2.8svh, 1.6rem);
}

.scroll br {
  display: block;
  content: "";
  margin-top: clamp(0.35rem, 1svh, 0.6rem);
}

.scroll-arrow {
  display: inline-block;
  animation: scroll-arrow-bob 1.8s ease-in-out infinite;
}

.scroll-arrow--lg {
  font-size: 1.14rem;
}

@keyframes scroll-arrow-bob {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(0.42rem);
  }
}

.date {
  font-family: "Avenir Next Local", "Avenir Next", sans-serif;
  font-size: var(--hero-date-size, 0.92rem);
  letter-spacing: 0.18em;
}

.home-section .date {
  margin-top: var(--hero-top-offset);
}

.home-section .spacing-40 {
  height: var(--hero-meta-spacing);
}

.mobile-visual-section {
  display: none;
}

.text-wrap {
  width: 90%;
  max-width: 33rem;
  margin: 0 auto;
}

.section-panel .text-wrap {
  width: 90%;
}

.heading {
  font-size: clamp(2.9rem, 6vw, 4.3rem);
  line-height: 1.02;
}

.heading-2,
.heading-3 {
  font-size: clamp(2.2rem, 5.2vw, 3.4rem);
  line-height: 1.08;
}

.paragraph {
  font-size: 1rem;
}

.paragraph--gift-intro {
  font-size: 1.125rem;
}

.gift-details {
  margin-top: 3rem;
}

.gift-account + .gift-account {
  margin-top: 1.6rem;
}

.gift-account .paragraph {
  line-height: 1.45;
}

.gift-account__title {
  font-family: "Avenir Next Local", "Avenir Next", sans-serif;
  font-weight: 600;
  margin-bottom: 0.2rem;
}

.gift-account__alias {
  font-size: 1.06rem;
}

.confirmation-signoff {
  font-size: clamp(1.78rem, 4.2vw, 2.7rem);
  line-height: 1.05;
}

.button.button--confirmation {
  width: 75%;
  font-size: 0.85rem;
  min-width: 0;
  margin-left: auto;
  margin-right: auto;
}

.paragraph strong {
  font-family: "Avenir Next Local", "Avenir Next", sans-serif;
  font-weight: 600;
}

.paragraph-4 {
  margin-top: 0.5rem;
  font-size: 1rem;
}

.paragraph-4--narrow {
  max-width: 17rem;
  margin-left: auto;
  margin-right: auto;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.25rem;
  padding: 0.9rem 1.5rem;
  border-radius: 999px;
  border: 1px solid transparent;
  background: var(--accent);
  color: #f8f6f2;
  font-family: "Avenir Next Local", "Avenir Next", sans-serif;
  font-size: 0.94rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition:
    transform 180ms ease,
    background-color 180ms ease,
    border-color 180ms ease;
}

.button:hover {
  transform: translateY(-1px);
  background: var(--accent-deep);
}

.button--ghost {
  background: rgba(255, 252, 247, 0.68);
  border-color: rgba(125, 138, 113, 0.35);
  color: var(--accent-deep);
}

.button--ghost:hover {
  background: rgba(255, 252, 247, 0.85);
}

.button--narrow {
  width: 75%;
  min-width: 0;
  margin-left: auto;
  margin-right: auto;
  padding-left: 0.95rem;
  padding-right: 0.95rem;
}

.icon-seal,
.cheers-mark {
  display: grid;
  place-items: center;
  width: 7rem;
  height: 7rem;
  border-radius: 50%;
  border: 1px solid rgba(125, 138, 113, 0.28);
  background: rgba(255, 252, 247, 0.58);
  box-shadow: var(--shadow);
  font-family: "the-seasons", "Bodoni Moda", serif;
  font-size: 2.1rem;
  color: var(--accent-deep);
  margin-left: auto;
  margin-right: auto;
}

.support-group {
  margin-top: 2.4rem;
  text-align: left;
}

.faq-item {
  border-top: 1px solid var(--line);
}

.faq-item:last-child {
  border-bottom: 1px solid var(--line);
}

.faq-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 0;
  border: 0;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.acc-title {
  font-family: "Avenir Next Local", "Avenir Next", sans-serif;
  font-size: 1.02rem;
  font-weight: 600;
}

.faq-icon {
  position: relative;
  width: 1.4rem;
  height: 1.4rem;
  flex: 0 0 1.4rem;
}

.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 1rem;
  height: 1px;
  background: #12696a;
  transform: translate(-50%, -50%);
  transition: transform 220ms ease;
}

.faq-icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.faq-item.is-open .faq-icon::after {
  transform: translate(-50%, -50%) rotate(0deg);
}

.faq-content {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition:
    max-height 260ms ease,
    opacity 220ms ease,
    padding-top 220ms ease,
    padding-bottom 220ms ease;
}

.faq-item.is-open .faq-content {
  opacity: 1;
  padding-bottom: 1.1rem;
}

.accordion-paragraph {
  font-size: 0.98rem;
}

.faq-item.is-open .accordion-paragraph {
  padding-bottom: 1rem;
}

.faq-link {
  display: inline-flex;
  align-items: center;
  margin-top: 0.35rem;
  padding: 0;
  line-height: 1.15;
  border-bottom: 1px solid currentColor;
  color: var(--accent-deep);
  font-family: "Avenir Next Local", "Avenir Next", sans-serif;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.faq-link:hover {
  color: var(--accent);
}

.paragraph-8 {
  margin-top: 2rem;
  font-family: "Avenir Next Condensed Local", "Avenir Next Condensed", sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

@media (max-width: 991px) {
  .scroll-snap-wrapper {
    height: var(--app-height);
  }

  .section {
    min-height: var(--app-height);
    padding: 0;
  }

  .section-panel {
    width: 100%;
    min-height: var(--app-height);
    padding: clamp(1.8rem, 5svh, 3rem) 1.2rem;
    border-radius: 0;
  }

  .section-panel--plain {
    min-height: var(--app-height);
  }

  h1 {
    font-size: var(--hero-title-size, clamp(3.7rem, 14vw, 5.1rem));
    line-height: 1.02;
  }

  .visual-panel__inner h2 {
    font-size: clamp(2.6rem, 9vw, 4rem);
  }

  .date {
    font-size: var(--hero-date-size, 0.98rem);
  }

  .home-section .date {
    margin-top: var(--hero-top-offset);
  }

  .scroll {
    font-size: var(--hero-scroll-size, 1rem);
  }
}

@media (max-width: 640px) {
  .heading,
  .heading-2,
  .heading-3 {
    line-height: 1.06;
  }

  .button {
    width: 100%;
  }

  .button--narrow {
    width: 75%;
  }

  .button.button--confirmation {
    width: 75%;
  }
}
