:root {
  --wedding-ink: #506400;
  --wedding-muted: #68705a;
  --wedding-sage: #8a9570;
  --wedding-paper: #fbf8f2;
  --wedding-cream: #f4efe6;
  --wedding-line: rgba(80, 100, 0, .18);
  --wedding-wax: #9f4f47;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  background: var(--wedding-paper);
  overflow-x: hidden;
}

.heading,
.heading-hero,
.wedding-logo,
.countdown-number,
.story-title,
.wedding-card-title,
.gift-title,
.footer-initials {
  color: var(--wedding-ink);
}

.paragraph,
.wedding-lead,
.wedding-card-text,
.gift-text,
.map-placeholder,
.footer-date,
.footer-love {
  color: var(--wedding-muted);
}

.subtitle,
.nav-link,
.link,
.countdown-label,
.wedding-eyebrow,
.story-date,
.form-field label,
.gift-copy-label {
  color: var(--wedding-sage);
}

.button,
.gift-copy-button {
  color: var(--wedding-ink);
  border-color: var(--wedding-ink);
}

.cart-block,
.w-commerce-commercecartcontainerwrapper,
.w-webflow-badge {
  display: none !important;
}

.brand,
.brand-mobile {
  text-decoration: none;
}

.wedding-logo {
  color: var(--wedding-ink);
  letter-spacing: .08em;
  font-family: Marcellus, sans-serif;
  font-size: 30px;
  line-height: 1;
}

.grid-navbar.wedding-nav-grid {
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}

.wedding-nav-links {
  /* font-size: 30px; */
  grid-column-gap: 12px;
  grid-row-gap: 6px;
  align-items: center;
  display: flex;
}

.wedding-nav-links.right {
  justify-content: flex-end;
}

.hero-top .heading-hero {
  max-width: 900px;
  overflow-wrap: anywhere;
}

.image-hero---b,
.flower-hero---b1,
.flower-hero---b2 {
  opacity: 1 !important;
}

.image-hero---b {
  object-fit: cover;
}

.wedding-section {
  background: var(--wedding-paper);
}

.wedding-section.alt {
  background: #fff;
}

.wedding-section.compact {
  padding-top: 42px;
  padding-bottom: 42px;
}

.wedding-eyebrow {
  color: var(--wedding-sage);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 14px;
  font-family: Montserrat, sans-serif;
  font-size: 12px;
  font-weight: 500;
  line-height: 140%;
}

.wedding-lead {
  max-width: 760px;
  color: var(--wedding-muted);
  text-align: center;
  margin: 0 auto 38px;
  font-size: 24px;
  line-height: 170%;
}

.countdown-grid {
  width: 100%;
  max-width: 860px;
  grid-column-gap: 16px;
  grid-row-gap: 16px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  display: grid;
}

.countdown-card,
.wedding-card,
.story-card,
.gift-panel,
.rsvp-panel {
  border: 1px solid var(--wedding-line);
  background: rgba(255, 255, 255, .62);
  border-radius: 8px;
}

.countdown-card {
  text-align: center;
  padding: 28px 16px;
}

.countdown-number {
  color: var(--wedding-ink);
  font-family: Marcellus, sans-serif;
  font-size: 52px;
  line-height: 1;
}

.countdown-label {
  color: var(--wedding-muted);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-top: 10px;
  font-family: Montserrat, sans-serif;
  font-size: 11px;
  font-weight: 500;
}

.cut-divider {
  width: 100%;
  max-width: 1040px;
  align-items: center;
  margin: 8px auto;
  display: grid;
  grid-template-columns: auto 1fr auto 1fr;
  gap: 14px;
}

.cut-line {
  height: 1px;
  background-image: linear-gradient(90deg, var(--wedding-line) 50%, transparent 0);
  background-size: 16px 1px;
}

.scissors-mark {
  width: 44px;
  height: 44px;
  border: 1px solid var(--wedding-line);
  color: var(--wedding-ink);
  background: #fff;
  border-radius: 999px;
  place-items: center;
  font-size: 23px;
  line-height: 1;
  display: grid;
}

.wax-seal {
  width: 150px;
  height: 150px;
  object-fit: contain;
  display: block;
  transform: rotate(-8deg);
}

.story-timeline {
  width: 100%;
  max-width: 920px;
  margin-top: 8px;
  position: relative;
}

.story-timeline:before {
  content: "";
  width: 1px;
  background: var(--wedding-line);
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
}

.story-card {
  width: calc(50% - 34px);
  margin-bottom: 24px;
  padding: 26px;
  position: relative;
}

.story-card:nth-child(odd) {
  margin-right: auto;
}

.story-card:nth-child(even) {
  margin-left: auto;
}

.story-card:after {
  content: "";
  width: 13px;
  height: 13px;
  background: var(--wedding-sage);
  border: 4px solid var(--wedding-paper);
  border-radius: 999px;
  position: absolute;
  top: 30px;
}

.story-card:nth-child(odd):after {
  right: -42px;
}

.story-card:nth-child(even):after {
  left: -42px;
}

.story-date {
  color: var(--wedding-sage);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 9px;
  font-family: Montserrat, sans-serif;
  font-size: 11px;
  font-weight: 500;
}

.story-title,
.wedding-card-title,
.gift-title {
  color: var(--wedding-ink);
  margin-top: 0;
  margin-bottom: 12px;
  font-family: Marcellus, sans-serif;
  font-size: 28px;
  font-weight: 400;
  line-height: 120%;
}

.story-text,
.wedding-card-text,
.gift-text,
.map-placeholder {
  color: var(--wedding-muted);
  margin: 0;
  line-height: 165%;
}

.wedding-story-section {
  background: var(--wedding-paper);
}

.wedding-story-section .grid-2-columns {
  align-items: center;
}

.wedding-story-section .overflow-image {
  background-color: var(--wedding-cream);
  transform: rotate(3deg);
}

.wedding-story-section:nth-of-type(even) .overflow-image {
  transform: rotate(-3deg);
}

.wedding-story-section .image {
  aspect-ratio: 4 / 5;
  display: block;
}

.wedding-story-section .image-subtitle,
.wedding-story-section .image,
.wedding-story-section .flower---a,
.wedding-story-section .flower---b {
  opacity: 1 !important;
}

.details-grid {
  width: 100%;
  grid-column-gap: 18px;
  grid-row-gap: 18px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  display: grid;
}

.wedding-card {
  min-height: 218px;
  padding: 28px;
}

.wedding-card.map-card {
  grid-column: span 1.7;
}

.map-placeholder {
  min-height: 170px;
  border: 1px dashed var(--wedding-line);
  background: var(--wedding-cream);
  border-radius: 8px;
  place-items: center;
  margin-top: 20px;
  display: grid;
}

.schedule-list {
  color: var(--wedding-muted);
  padding-left: 18px;
  line-height: 185%;
}

.gallery-grid {
  width: 100%;
  column-count: 4;
  column-gap: 16px;
}

.gallery-item {
  break-inside: avoid;
  margin-bottom: 16px;
  overflow: hidden;
}

.gallery-item img {
  width: 100%;
  border-radius: 8px;
  display: block;
}

.gallery-item.tall img {
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.gallery-item.wide img {
  aspect-ratio: 5 / 3;
  object-fit: cover;
}

.gallery-empty {
  color: var(--wedding-muted);
  margin: 0;
  line-height: 165%;
}

.rsvp-panel {
  width: 100%;
  max-width: 880px;
  padding: 38px;
}

.rsvp-form {
  grid-column-gap: 26px;
  grid-row-gap: 28px;
  grid-template-columns: 1fr 1fr;
  display: grid;
}

.form-field.full {
  grid-column: 1 / -1;
}

.form-field label {
  color: var(--wedding-ink);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 8px;
  font-family: Montserrat, sans-serif;
  font-size: 11px;
  font-weight: 500;
  display: block;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--wedding-line);
  color: var(--wedding-ink);
  background: rgba(255, 255, 255, .72);
  border-radius: 8px;
  padding: 11px 13px;
  font-family: Montserrat, sans-serif;
  font-size: 15px;
}

.form-field textarea {
  min-height: 130px;
  resize: vertical;
}

.rsvp-actions {
  align-items: center;
  gap: 18px;
  display: flex;
}

.rsvp-success {
  color: var(--wedding-ink);
  margin: 0;
  font-size: 15px;
  line-height: 150%;
}

.rsvp-success[hidden] {
  display: none;
}

.gift-panel {
  width: 100%;
  max-width: 960px;
  text-align: center;
  padding: 48px;
  position: relative;
  overflow: hidden;
}

.gift-panel:before {
  content: "";
  width: 190px;
  height: 190px;
  border: 1px solid var(--wedding-line);
  border-radius: 999px;
  position: absolute;
  top: -85px;
  right: -50px;
  opacity: .55;
}

.gift-title {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  font-size: 24px;
}

.gift-intro {
  max-width: 720px;
  margin: 0 auto 30px;
  font-size: 21px;
  line-height: 170%;
}

.gift-destinations {
  grid-column-gap: 14px;
  grid-row-gap: 14px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 34px 0;
  display: grid;
}

.gift-destination {
  border: 1px solid var(--wedding-line);
  background: rgba(244, 239, 230, .62);
  border-radius: 8px;
  padding: 22px 14px;
}

.gift-destination-icon {
  margin-bottom: 9px;
  font-size: 32px;
  line-height: 1;
}

.gift-destination-label {
  color: var(--wedding-ink);
  font-family: Marcellus, sans-serif;
  font-size: 24px;
  line-height: 120%;
}

.gift-bank {
  width: 100%;
  max-width: 760px;
  border-top: 1px solid var(--wedding-line);
  margin: 8px auto 0;
  padding-top: 22px;
}

.gift-copy-row {
  border: 1px solid var(--wedding-line);
  background: rgba(255, 255, 255, .7);
  border-radius: 8px;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 18px;
  margin-top: 14px;
  padding: 18px;
  display: grid;
  text-align: center;
}

.gift-copy-label {
  color: var(--wedding-sage);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 7px;
  font-family: Montserrat, sans-serif;
  font-size: 11px;
  font-weight: 600;
}

.gift-copy-value {
  color: var(--wedding-ink);
  overflow-wrap: anywhere;
  font-family: Montserrat, sans-serif;
  font-size: 18px;
  font-weight: 500;
  line-height: 150%;
}

.gift-copy-button {
  width: 46px;
  height: 46px;
  border: 1px solid var(--wedding-ink);
  color: var(--wedding-ink);
  background: transparent;
  border-radius: 999px;
  place-items: center;
  padding: 0;
  cursor: pointer;
  display: grid;
  transition: color .25s ease, background-color .25s ease;
}

.gift-copy-button img {
  width: 19px;
  height: 19px;
  display: block;
}

.gift-copy-button:hover,
.gift-copy-button.is-copied {
  color: #fff;
  background: var(--wedding-ink);
}

.gift-copy-button:hover img,
.gift-copy-button.is-copied img {
  filter: brightness(0) invert(1);
}

.wedding-footer {
  text-align: center;
  padding-bottom: 40px;
}

.footer-initials {
  color: var(--wedding-ink);
  margin-bottom: 10px;
  font-family: Marcellus, sans-serif;
  font-size: 48px;
  line-height: 1;
}

.footer-date,
.footer-love {
  color: var(--wedding-muted);
  letter-spacing: 2px;
  text-transform: uppercase;
  font-family: Montserrat, sans-serif;
  font-size: 11px;
  font-weight: 500;
}

.footer-love {
  margin-top: 12px;
  text-transform: none;
  letter-spacing: .08em;
}

.reveal-on-scroll {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s cubic-bezier(.25, .46, .45, .94), transform .7s cubic-bezier(.25, .46, .45, .94);
}

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal-on-scroll {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

@media screen and (max-width: 991px) {
  .grid-navbar.wedding-nav-grid {
    grid-template-columns: 1fr;
  }

  .wedding-nav-links,
  .wedding-nav-links.right {
    flex-direction: column;
    align-items: flex-start;
  }

  .details-grid {
    grid-template-columns: 1fr 1fr;
  }

  .gallery-grid {
    column-count: 3;
  }

  .gift-destinations {
    grid-template-columns: 1fr 1fr;
  }
}

@media screen and (max-width: 767px) {
  .countdown-grid,
  .details-grid,
  .rsvp-form {
    grid-template-columns: 1fr 1fr;
  }

  .story-timeline:before {
    left: 7px;
  }

  .story-card,
  .story-card:nth-child(even),
  .story-card:nth-child(odd) {
    width: calc(100% - 32px);
    margin-left: 32px;
    margin-right: 0;
  }

  .story-card:after,
  .story-card:nth-child(even):after,
  .story-card:nth-child(odd):after {
    left: -35px;
    right: auto;
  }

  .wedding-card.map-card {
    grid-column: 1 / -1;
  }

  .gallery-grid {
    column-count: 2;
  }

  .rsvp-panel,
  .gift-panel {
    padding: 28px 20px;
  }

  .gift-title {
    font-size: 34px;
  }

  .gift-copy-row {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

@media screen and (max-width: 479px) {
  .hero-top .heading-hero {
    max-width: 100%;
    font-size: 52px;
    line-height: 110%;
  }

  .countdown-grid,
  .details-grid,
  .rsvp-form {
    grid-template-columns: 1fr;
  }

  .countdown-number {
    font-size: 44px;
  }

  .gallery-grid {
    column-count: 1;
  }

  .gift-destinations {
    grid-template-columns: 1fr;
  }

  .wax-seal {
    width: 58px;
    height: 58px;
  }

  .scissors-mark {
    width: 38px;
    height: 38px;
  }
}
