:root {
  --cream: #fbfaf6;
  --cream-warm: #f6f2eb;
  --ink: #22211e;
  --ink-soft: #4a4843;
  --muted: #8a8781;
  --line: #e4e0d7;

  --sage: #8d9878;
  --sage-dark: #7c8768;

  --pink: #d6558e;
  --purple: #8750a3;
  --blue: #406bba;
  --orange: #dc6c30;

  --pink-tint: #f8eff0;
  --purple-tint: #f4eff1;
  --blue-tint: #eff1f3;
  --orange-tint: #f9f1ea;
  --pink-soft: #f2e6eb;

  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --content: 34.375rem;
  --gutter: 1.5rem;
}

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

html {
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
}

html.dialog-open { overflow: hidden; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

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

/* Hero */

.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100svh;
  padding: 3rem var(--gutter) 5.5rem;
  background: url("../img/silk-hero.jpg") center / cover no-repeat, var(--cream-warm);
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 30%;
  background: linear-gradient(to bottom, rgba(251, 250, 246, 0), var(--cream));
  pointer-events: none;
}

.hero__inner {
  position: relative;
  z-index: 1;
  width: min(100%, 24rem);
  margin: auto;
}

.hero__stage { position: relative; }

.hero__envelope {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 1.5rem 2.5rem rgba(60, 52, 38, 0.18));
}

.hero__flowers {
  position: absolute;
  left: 3%;
  top: 58%;
  width: 34%;
  height: auto;
}

.hero__polaroid {
  position: absolute;
  left: 58%;
  top: 65%;
  width: 31%;
  height: auto;
  filter: drop-shadow(0 0.5rem 1.25rem rgba(60, 52, 38, 0.22));
}

.scroll-cue {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--ink-soft);
  text-decoration: none;
}

.scroll-cue__label {
  font-size: 0.688rem;
  font-weight: 400;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.scroll-cue__arrow {
  width: 1.25rem;
  animation: nudge 2.4s ease-in-out infinite;
}

@keyframes nudge {
  0%, 60%, 100% { transform: translateY(0); }
  30% { transform: translateY(0.25rem); }
}

/* Sections */

.section {
  max-width: var(--content);
  margin-inline: auto;
  padding: 4.5rem var(--gutter);
  text-align: center;
}

.section__title {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.75rem, 6vw, 2.25rem);
  font-style: italic;
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1.2;
}

.section__title em { font-style: italic; }

.section__lead {
  max-width: 26rem;
  margin: 1rem auto 0;
  color: var(--ink-soft);
  font-size: 0.938rem;
}

/* Datum & locatie */

.facts {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 2rem 0.5rem;
  margin-top: 2.75rem;
}

.fact {
  display: grid;
  align-content: start;
  justify-items: center;
}

.fact__icon {
  display: grid;
  place-items: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
}

.fact__icon svg {
  width: 1.375rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.fact__icon--pink { background: var(--pink-tint); color: var(--pink); }
.fact__icon--blue { background: var(--blue-tint); color: var(--blue); }

.fact__label {
  margin-top: 1rem;
  color: var(--muted);
  font-size: 0.688rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.fact__value {
  margin: 0.5rem 0 0;
  font-family: var(--serif);
  font-size: 1.125rem;
  font-weight: 400;
}

.fact__sub {
  margin: 0.25rem 0 0;
  color: var(--muted);
  font-size: 0.75rem;
}

/* Handgeschreven kaartje */

.note-section {
  max-width: none;
  padding: 2rem 0 1rem;
}

.note-card {
  width: 100%;
  max-width: var(--content);
  margin-inline: auto;
}

/* Knop */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  width: 100%;
  max-width: 26rem;
  margin-top: 2rem;
  padding: 1.063rem 1.5rem;
  border: 0;
  border-radius: 999px;
  background: var(--sage);
  color: #fff;
  font-family: var(--sans);
  font-size: 0.938rem;
  font-weight: 400;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.button:hover { background: var(--sage-dark); }
.button:active { transform: translateY(1px); }

.button__icon {
  width: 1.125rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Bloem-divider */

.divider {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  max-width: 17.5rem;
  margin: 0 auto;
}

.divider__line {
  flex: 1;
  height: 1px;
  background: var(--line);
}

.divider__flower { width: 3rem; }

/* Aftellen */

.countdown {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
  margin: 2.5rem 0 0;
  padding: 0;
  list-style: none;
}

.countdown__unit { display: grid; justify-items: center; }

.countdown__value {
  display: grid;
  place-items: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 400;
  font-variant-numeric: tabular-nums;
}

.countdown__unit--pink   .countdown__value { background: var(--pink-tint);   color: var(--pink); }
.countdown__unit--purple .countdown__value { background: var(--purple-tint); color: var(--purple); }
.countdown__unit--blue   .countdown__value { background: var(--blue-tint);   color: var(--blue); }
.countdown__unit--orange .countdown__value { background: var(--orange-tint); color: var(--orange); }

.countdown__label {
  margin-top: 0.75rem;
  color: var(--muted);
  font-size: 0.625rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

/* Fotocarrousel */

.carousel {
  position: relative;
  margin-bottom: 2rem;
}

.carousel__track {
  display: flex;
  margin: 0;
  padding: 0;
  list-style: none;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.carousel__track::-webkit-scrollbar { display: none; }

.carousel__slide {
  flex: 0 0 100%;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.carousel__slide img {
  width: 100%;
  height: auto;
  aspect-ratio: 390 / 216;
  object-fit: cover;
}

.carousel__nav {
  position: absolute;
  top: 50%;
  display: none;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(251, 250, 246, 0.82);
  color: var(--ink-soft);
  cursor: pointer;
  transform: translateY(-50%);
  transition: background-color 0.2s ease;
}

.carousel__nav:hover { background: var(--cream); }
.carousel__nav[disabled] { opacity: 0.35; cursor: default; }
.carousel__nav svg { width: 1.25rem; }

.carousel__nav--prev { left: 1rem; }
.carousel__nav--next { right: 1rem; }

.carousel__dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.25rem;
}

.carousel__dot {
  width: 0.5rem;
  height: 0.5rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--line);
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.carousel__dot[aria-current="true"] {
  background: var(--pink);
  transform: scale(1.25);
}

/* FAQ */

.faq { margin-top: 2.5rem; text-align: left; }

.faq__item { border-bottom: 1px solid var(--line); }
.faq__item:first-child { border-top: 1px solid var(--line); }

.faq h3 { margin: 0; font-weight: inherit; }

.faq__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  padding: 1.25rem 0;
  border: 0;
  background: none;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.063rem;
  font-weight: 400;
  text-align: left;
  cursor: pointer;
}

.faq__question[aria-expanded="true"] { color: var(--pink); }

.faq__toggle {
  display: grid;
  place-items: center;
  flex: none;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  background: var(--pink-soft);
  color: var(--pink);
  transition: transform 0.25s ease;
}

.faq__toggle svg { width: 0.875rem; }

.faq__question[aria-expanded="true"] .faq__toggle { transform: rotate(180deg); }

.faq__answer { padding-bottom: 1.5rem; }

.faq__answer p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.875rem;
  line-height: 1.75;
}

.faq__answer p + p { margin-top: 1rem; }

.swatches {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.5rem;
  margin: 1rem 0 0.25rem;
  padding: 0;
  list-style: none;
}

.swatch {
  aspect-ratio: 1;
  border-radius: 0.5rem;
  background: var(--chip);
}

/* Footer */

.footer {
  padding: 4rem var(--gutter) 3rem;
  background:
    linear-gradient(rgba(246, 242, 235, 0.6), rgba(246, 242, 235, 0.6)),
    url("../img/silk-hero.jpg") center / cover no-repeat,
    var(--cream-warm);
  text-align: center;
}

.footer__monogram {
  width: 8.75rem;
  margin: 0 auto;
}

.footer__date {
  margin: 2rem 0 0;
  color: var(--muted);
  font-size: 0.688rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

/* Adres-dialog */

.dialog {
  width: min(100% - 2rem, 24rem);
  max-height: calc(100svh - 3rem);
  padding: 2rem 1.75rem;
  border: 0;
  border-radius: 1.25rem;
  background: var(--cream);
  color: var(--ink);
  overflow: auto;
}

.dialog::backdrop { background: rgba(34, 33, 30, 0.45); }

.dialog__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: none;
  color: var(--ink-soft);
  cursor: pointer;
}

.dialog__close svg { width: 1.125rem; }

.dialog__monogram {
  width: 4rem;
  margin: 0 auto 1.25rem;
  opacity: 0.8;
}

.dialog__title {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.375rem;
  font-style: italic;
  font-weight: 500;
}

.dialog__lead {
  margin: 0.375rem 0 1.75rem;
  color: var(--muted);
  font-size: 0.813rem;
}

.field { display: block; margin-bottom: 1rem; }

.field__label {
  display: block;
  margin-bottom: 0.375rem;
  color: var(--muted);
  font-size: 0.625rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.field__input {
  width: 100%;
  padding: 0.813rem 1.125rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 0.938rem;
  font-weight: 300;
}

.field__input::placeholder { color: #b4b0a7; }

.field__input:focus-visible {
  outline: none;
  border-color: var(--sage);
  box-shadow: 0 0 0 3px rgba(141, 152, 120, 0.2);
}

.form-status {
  margin: 0 0 1rem;
  font-size: 0.813rem;
  line-height: 1.5;
}

.form-status--error { color: #b3453f; }
.form-status--success { color: var(--sage-dark); }

.address-form .button { margin-top: 0.5rem; }

:where(a, button, input, [tabindex]):focus-visible {
  outline: 2px solid var(--sage);
  outline-offset: 3px;
}

@media (min-width: 40rem) {
  .hero__inner { width: min(100%, 27.5rem); }
  .section { padding-block: 6rem; }
  .carousel { max-width: 48rem; margin-inline: auto; }
  .carousel__nav { display: grid; }
  .countdown__value { width: 4.5rem; height: 4.5rem; font-size: 1.875rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
