:root {
  --paper: #f5efe3;
  --paper-light: #fffaf2;
  --ink: #171717;
  --yellow: #f2d857;

  --font-display: scribo-brush-regular, sans-serif;
  --font-body: "adobe-caslon-pro", serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 18px;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper-light);
  font-family: var(--font-body);
}

/* HERO */

.site-hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  padding: 1rem 1rem 7rem;
  text-align: center;
  background:
    linear-gradient(rgba(245, 239, 227, .9), rgba(245, 239, 227, .14)),
    url("img/header.jpg");
  background-size: cover;
  background-position: center;
}

.site-hero::before {
  content: "";
  position: absolute;
  inset: 1rem;
  z-index: 1;
  /* border: 1px solid rgba(23, 23, 23, .08); */
  border-radius: 43% 57% 62% 38% / 42% 38% 62% 58%;
  pointer-events: none;
}

.language-menu {
  position: absolute;
  top: 1.1rem;
  right: 1.2rem;
  z-index: 10;
  display: flex;
  gap: .75rem;
  font-family: var(--font-body);
  font-size: 1.05rem;
}

.language-menu a {
  position: relative;
  color: var(--ink);
  text-decoration: none;
  opacity: .55;
  border-bottom: none;
  transition: opacity .35s ease;
}

.language-menu a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -4px;
  width: 12px;
  height: 1px;
  background: currentColor;
  transform: translateX(-50%) scaleX(0);
  transition: transform .35s ease;
}

.language-menu a[aria-current="page"] {
  opacity: 1;
}

.language-menu a[aria-current="page"]::after {
  transform: translateX(-50%) scaleX(1);
}

.hero-content {
  position: relative;
  z-index: 3;
  min-height: calc(100vh - 8rem);
  min-height: calc(100svh - 8rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.hero-illustration {
  width: 88px;
  height: auto;
  margin-bottom: 1rem;
}

h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(3rem, 12vw, 7rem);
  font-weight: 400;
  line-height: .85;
  letter-spacing: -.03em;
}

.hero-date {
  /* margin: .8rem 0 1.2rem; */
  margin: .1rem 0.1rem;
  font-family: var(--font-body);
  font-size: clamp(1.35rem, 5vw, 2.45rem);
  line-height: 1;
}

.hero-fade {
  opacity: 0;
  transform: translateY(18px);
  animation: heroFadeIn 1.2s cubic-bezier(.22, 1, .36, 1) forwards;
}

.hero-delay-1 { animation-delay: .2s; }
.hero-delay-2 { animation-delay: .45s; }
.hero-delay-3 { animation-delay: .7s; }
.hero-delay-4 { animation-delay: 1s; }

.fine-line-button {
  position: relative;
  display: inline-flex;
  width: 260px;
  height: 72px;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.15rem;
  text-decoration: none;
}

.fine-line-button span {
  position: relative;
  z-index: 2;
}

.fine-line-button svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.fine-line-button path {
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 700;
  stroke-dashoffset: 700;
  animation: drawButton 1.6s cubic-bezier(.65, 0, .35, 1) forwards;
  animation-delay: 1.35s;
}

.fine-line-button:hover {
  transform: translateY(-2px);
}

.hero-wave {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  z-index: 2;
  width: 100%;
  height: 78px;
  color: var(--paper-light);
}

.hero-wave path {
  fill: currentColor;
}

/* GENERIC */

.section-placeholder {
  padding: 5rem 1rem;
  text-align: center;
  background: var(--paper-light);
}

.section-placeholder h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 400;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity .9s cubic-bezier(.22, 1, .36, 1),
    transform .9s cubic-bezier(.22, 1, .36, 1);
}

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

/* TIMELINE */

.timeline-section {
  padding: 5rem 1rem;
  background: var(--paper-light);
}

.section-heading {
  margin-bottom: 3.5rem;
  text-align: center;
}

.section-heading p {
  margin: 0;
  font-family: var(--font-body);
  font-size: .95rem;
}

.section-heading h2 {
  margin: -.15rem 0 0;
  font-family: var(--font-display);
  font-size: clamp(3rem, 9vw, 5.5rem);
  font-weight: 400;
  line-height: .8;
}

.timeline-list {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
  --timeline-progress: 0%;
}

.timeline-list::before,
.timeline-list::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 44%;
  width: 1px;
}

.timeline-list::before {
  background: rgba(23, 23, 23, .18);
}

.timeline-list::after {
  height: var(--timeline-progress);
  bottom: auto;
  background: var(--ink);
  transition: height .6s cubic-bezier(.22, 1, .36, 1);
}

.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 40% 8% 52%;
  align-items: flex-start;
  min-height: 150px;
}

.timeline-left {
  text-align: center;
  padding-right: 1rem;
}

.timeline-left img {
  width: 66px;
  height: auto;
  margin-bottom: .35rem;
}

.timeline-left time {
  display: block;
  font-family: var(--font-display);
  font-size: 1.45rem;
  line-height: 1;
}

.timeline-left h3 {
  margin: .1rem 0 0;
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 400;
  line-height: .9;
}

.timeline-dot {
  position: relative;
  z-index: 3;
  width: 16px;
  height: 16px;
  margin: .65rem auto 0;
  border: 1px solid rgba(23, 23, 23, .35);
  border-radius: 50%;
  background: var(--paper-light);
  transition:
    background-color .35s ease,
    border-color .35s ease,
    transform .35s ease;
}

.timeline-item.is-completed .timeline-dot {
  background: var(--ink);
  border-color: var(--ink);
}

.timeline-item.is-active .timeline-dot {
  transform: scale(1.12);
}

.timeline-right {
  padding-left: 1rem;
}

.timeline-right p {
  max-width: 280px;
  margin: 0;
  font-size: .95rem;
  line-height: 1.35;
}

.timeline-right a {
  display: inline-block;
  margin-top: 1rem;
  color: var(--ink);
  font-size: .95rem;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* DIVIDERS */

.hand-drawn-divider {
  margin: 2rem 0;
}

.hand-drawn-divider svg {
  width: 100%;
  height: 60px;
}

.hand-drawn-divider path {
  fill: none;
  stroke: var(--ink);
  stroke-width: 1;
  opacity: .4;
}

/* INFO / RSVP */

.info-section {
  position: relative;
  padding: 8rem 1rem;
  overflow: hidden;
}

.info-section::before {
  content: "";
  position: absolute;
  top: -70px;
  left: 0;
  width: 100%;
  height: 140px;
  clip-path: ellipse(80% 100% at 50% 100%);
  z-index: 0;
}

.info-section > * {
  position: relative;
  z-index: 1;
}

.info-wrapper {
  max-width: 620px;
  margin: 0 auto;
  text-align: center;
}

.info-wrapper h2 {
  margin-bottom: 2rem;
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 5rem);
  font-weight: 400;
  line-height: .85;
}

.location-illustration {
  margin-bottom: 1rem;
}

.location-illustration img {
  width: min(100%, 280px);
  height: auto;
}

.info-wrapper h3 {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.6rem;
  font-weight: 400;
}

.divider-line {
  position: relative;
  width: 260px;
  height: 18px;
  margin: .75rem auto 2rem;
}

.divider-line::before {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 1px;
  background: var(--ink);
  border-radius: 100%;
  transform: rotate(-.4deg);
}

.info-wrapper p {
  max-width: 520px;
  margin: 0 auto .75rem;
  font-size: 1rem;
  line-height: 1.6;
}

.info-wrapper strong {
  font-weight: 700;
}

.countdown-wrapper {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin: 2.5rem 0 1.5rem;
  flex-wrap: wrap;
}

.countdown-item {
  min-width: 70px;
  text-align: center;
}

.countdown-item span {
  display: block;
  font-family: var(--font-body);
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1;
  font-weight: 400;
}

.countdown-item small {
  display: block;
  margin-top: .35rem;
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  opacity: .7;
}

.deadline {
  margin-top: 1rem;
  font-size: .95rem;
}

.fine-line-decor {
  position: relative;
  width: fit-content;
  margin: 1.4rem auto 0;
  padding: 1rem 2rem;
  text-align: center;
  cursor: pointer;
}

.fine-line-decor p {
  position: relative;
  z-index: 2;
  margin: 0;
  font-size: .95rem;
}

.fine-line-decor a {
  position: relative;
  z-index: 2;
  color: var(--paper-light);
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: color .3s ease;
}

.fine-line-decor svg {
  position: absolute;
  inset: 50% auto auto 50%;
  width: 115%;
  height: 74px;
  transform: translate(-50%, -50%);
  overflow: visible;
  pointer-events: none;
  transition: transform .35s ease;
}

.fine-line-decor path {
  fill: transparent;
  stroke: var(--ink);
  stroke-width: 1.15;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 760;
  stroke-dashoffset: 760;
}

.fine-line-decor.is-visible path {
  animation:
    drawDecor 1.4s cubic-bezier(.65, 0, .35, 1) forwards,
    fillDecor .35s ease forwards;
  animation-delay: .25s, 1.45s;
}

.fine-line-decor:hover a {
  color: var(--ink);
  text-decoration: none;
}

.fine-line-decor:hover path {
  fill: transparent !important;
  stroke: var(--ink);
}

.fine-line-decor:hover svg {
  transform: translate(-50%, -50%) scale(1.03);
}

/* STAY ACCORDION */

.stay-section {
  padding: 7rem 1rem;
  background: var(--paper-light);
}

.stay-heading {
  margin-bottom: 4rem;
  text-align: center;
}

.stay-heading p {
  margin: 0 0 -.3rem;
  font-family: var(--font-body);
  font-size: 1.2rem;
  font-style: italic;
}

.stay-heading h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(3.8rem, 10vw, 6.4rem);
  font-weight: 400;
  line-height: .85;
}

.stay-accordion {
  max-width: 960px;
  margin: 0 auto;
}

.stay-accordion-item {
  position: relative;
  margin-bottom: 2rem;
}

.stay-accordion-trigger {
  position: relative;
  width: 100%;
  min-height: 96px;
  padding: 1.3rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border: 0;
  background: transparent;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.stay-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 7vw, 4rem);
  line-height: .9;
}

.stay-more {
  position: relative;
  display: inline-flex;
  width: 190px;
  height: 58px;
  flex: 0 0 190px;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-style: italic;
  transition:
    color .35s ease,
    transform .45s cubic-bezier(.22, 1, .36, 1);
}

.stay-more span {
  position: relative;
  z-index: 2;
}

.stay-more svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.stay-more path {
  fill: transparent;
  stroke: var(--ink);
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 620;
  stroke-dashoffset: 620;
  animation: drawStayButton 1.5s cubic-bezier(.65, 0, .35, 1) forwards;
}

.stay-accordion-trigger[aria-expanded="true"] .stay-more {
  color: var(--paper-light);
  transform: scale(1.03);
}

.stay-accordion-trigger[aria-expanded="true"] .stay-more path {
  fill: var(--ink);
  stroke: var(--ink);
}

.accordion-wave-line {
  width: 100%;
  height: 28px;
  margin-top: -1rem;
  margin-bottom: .75rem;
  pointer-events: none;
}

.accordion-wave-line svg {
  display: block;
  width: 100%;
  height: 100%;
}

.accordion-wave-line path {
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.1;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.stay-accordion-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height .9s cubic-bezier(.22, 1, .36, 1);
}

.stay-accordion-content {
  width: 100%;
  padding: 1.5rem 0 2.5rem;
  opacity: 0;
  transform: translateY(-12px);
  transition:
    opacity .55s ease,
    transform .8s cubic-bezier(.22, 1, .36, 1);
}

.stay-accordion-trigger[aria-expanded="true"] ~ .stay-accordion-panel {
  max-height: 1000px;
}

.stay-accordion-trigger[aria-expanded="true"] ~ .stay-accordion-panel .stay-accordion-content {
  opacity: 1;
  transform: translateY(0);
}

.stay-accordion-content p {
  margin: 0 0 1rem;
  font-size: 1rem;
  line-height: 1.7;
}

.stay-links {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem 1.4rem;
  margin: 1.5rem 0;
}

.stay-links a {
  color: var(--ink);
  font-family: var(--font-body);
  font-style: italic;
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* GIFT */

.gift-section {
  position: relative;
  padding: 0;
  overflow: hidden;
  background: var(--paper-light);
}

.gift-wave {
  position: absolute;
  top: -1px;
  left: 0;
  z-index: 3;
  width: 100%;
  height: 110px;
  color: var(--paper-light);
  pointer-events: none;
}

.gift-wave path {
  fill: currentColor;
}

.gift-paper {
  position: relative;
  z-index: 1;
  width: 100%;
  min-height: 100vh;
  padding: clamp(8rem, 12vw, 11rem) 1.5rem clamp(5rem, 8vw, 8rem);
  display: flex;
  align-items: center;
  justify-content: center;
  background-image: url("img/header.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  text-align: center;
}

.gift-paper::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(255, 250, 242, 0.72);
  backdrop-filter: blur(1px);
}

.gift-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 700px;
}

.gift-kicker {
  margin: 0 0 -.2rem;
  font-family: var(--font-body);
  font-size: 1.2rem;
  font-style: italic;
}

.gift-section h2 {
  margin: 0 0 2.2rem;
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 5.5rem);
  font-weight: 400;
  line-height: .85;
}

.gift-section h2.gift-title-fr {
  font-size: clamp(2rem, 5vw, 3.5rem) !important;
  line-height: .95;
}

.gift-text {
  max-width: 620px;
  margin: 0 auto;
}

.gift-text p {
  margin: 0 0 1rem;
  font-size: 1rem;
  line-height: 1.65;
}

.iban-simple {
  position: relative;

  width: min(100%, 620px);

  margin: 2rem auto;

  padding: 1.8rem 2.5rem;

  text-align: center;
}

.iban-simple span {
  display: block;

  margin-bottom: .75rem;

  font-size: .72rem;
  letter-spacing: .3em;
  text-transform: uppercase;

  opacity: .55;
}

.iban-simple p {
  margin: 0;

  font-size: clamp(1rem, 2vw, 1.15rem);

  line-height: 1.6;

  letter-spacing: .12em;
}

.iban-simple svg {
  position: absolute;
  inset: 0;

  width: 108%;
  height: 105%;

  left: -4%;

  overflow: visible;
  pointer-events: none;
}

.iban-simple path {
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1200;
  stroke-dashoffset: 1200;
}

.iban-simple.is-visible path {
  animation: drawIban 1.8s cubic-bezier(.65, 0, .35, 1) forwards;
}

.beneficiaries {
  position: relative;
  width: fit-content;
  max-width: 100%;
  margin: -1rem auto 2.8rem;
  font-family: var(--font-body);
  font-style: italic;
  line-height: 1.45;
  color: var(--ink);
}

.beneficiaries::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -.45rem;
  width: 100%;
  height: 1px;
  background: currentColor;
  opacity: .45;
  transform: translateX(-50%) scaleX(0);
  transform-origin: center;
}

.beneficiaries.is-visible::after {
  animation: drawBeneficiariesLine 1.1s cubic-bezier(.65, 0, .35, 1) forwards;
  animation-delay: .25s;
}

.gift-closing {
  margin: 2.5rem 0 0;
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 4vw, 2rem);
  line-height: 1.2;
  font-weight: 400;
  opacity: .9;
}

/* FOOTER */

.site-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 3rem 1rem;
  background: #111;
  text-align: center;
}

.footer-illustration {
  height: 100px;
  width: auto;
}

.footer-signature {
  margin: 0;
  color: #f5efe3;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  line-height: 1;
}

.footer-date {
  margin: 0;
  color: rgba(245, 239, 227, .65);
  font-family: var(--font-body);
  font-size: .8rem;
  letter-spacing: .25em;
  text-transform: uppercase;
}

.footer-credit {
  margin: 0;
  color: rgb(225, 222, 208);
  font-size: .85rem;
  opacity: .75;
}

/* KEYFRAMES */

@keyframes heroFadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes drawButton {
  to { stroke-dashoffset: 0; }
}

@keyframes drawDecor {
  to { stroke-dashoffset: 0; }
}

@keyframes fillDecor {
  to { fill: var(--ink); }
}

@keyframes drawStayButton {
  to { stroke-dashoffset: 0; }
}

@keyframes drawIban {
  to { stroke-dashoffset: 0; }
}

@keyframes drawBeneficiariesLine {
  to { transform: translateX(-50%) scaleX(1); }
}

/* MEDIA QUERIES */

@media (min-width: 768px) {
  .site-hero {
    padding: 1.5rem 1.5rem 8rem;
  }

  .hero-content {
    min-height: calc(100vh - 9.5rem);
    min-height: calc(100svh - 9.5rem);
  }

  .hero-illustration {
    width: 112px;
  }

  .language-menu {
    top: 1.6rem;
    right: 2rem;
    font-size: 1.25rem;
  }

  .hero-wave {
    height: 120px;
  }

  .fine-line-button {
    width: 280px;
    height: 78px;
    font-size: 1.25rem;
  }

  .gift-wave {
    height: 160px;
  }
}

@media (max-width: 767px) {
  .timeline-section {
    padding: 4rem 1rem;
  }

  .timeline-list {
    max-width: 100%;
  }

  .timeline-list::before,
  .timeline-list::after {
    left: 112px;
  }

  .timeline-item {
    grid-template-columns: 92px 40px 1fr;
    min-height: 175px;
  }

  .timeline-left {
    padding-right: .25rem;
  }

  .timeline-left img {
    width: 52px;
  }

  .timeline-left time {
    font-size: 1.15rem;
  }

  .timeline-left h3 {
    font-size: 1.45rem;
  }

  .timeline-dot {
    width: 15px;
    height: 15px;
    margin-top: .65rem;
    justify-self: center;
  }

  .timeline-right {
    padding-left: .25rem;
  }

  .timeline-right p,
  .timeline-right a {
    font-size: .85rem;
    line-height: 1.35;
  }

  .info-section {
    padding: 6rem 1rem;
  }

  .fine-line-decor {
    padding: 1rem 1.4rem;
  }

  .fine-line-decor p {
    font-size: .9rem;
  }

  .stay-accordion-trigger {
    min-height: 112px;
    align-items: flex-start;
    flex-direction: column;
    gap: .75rem;
  }

  .stay-more {
    width: 170px;
    height: 52px;
    flex-basis: auto;
    font-size: .95rem;
  }

  .stay-accordion-content {
    padding: 1rem 0 2rem;
  }

  .stay-title {
    font-size: clamp(2rem, 11vw, 3.5rem);
  }

  .iban-simple {
    width: 100%;
    padding: 1.8rem 2rem;
  }

  .iban-simple p {
    font-size: .78rem;
    letter-spacing: .03em;
    white-space: nowrap;
  }

  .iban-simple svg {
    top: -10%;
    left: -10%;

    width: 120%;
    height: 120%;
  }
  .beneficiaries {
    margin-top: -.6rem;
    margin-bottom: 2.4rem;
    font-size: .9rem;
  }

  .site-footer {
    padding: 2.5rem 1rem;
    gap: .8rem;
  }

  .footer-illustration {
    height: 80px;
  }
}

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

  .hero-fade,
  .fine-line-button path {
    animation: none;
    opacity: 1;
    transform: none;
    stroke-dashoffset: 0;
  }
}
