:root {
  --card-bg: #7c7a3b;
  --text-color: #f8f6ee;
  --accent-dark: #716e39;
  --ring-color: rgba(248, 246, 238, 0.95);
  --content-width: min(100%, 368px);
}

@font-face {
  font-family: "Foglihten";
  src: url("./fonts/FoglihtenNo06/FoglihtenNo06_076.otf") format("opentype");
  font-display: swap;
}

@font-face {
  font-family: "SignThat";
  src:
    url("./fonts/Sign That /Sign That S (kerning).otf") format("opentype"),
    url("./fonts/Sign That /SignThat Regular.ttf") format("truetype");
  font-display: swap;
}

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

html {
  height: 100%;
  scroll-behavior: smooth;
}

html.page-loading,
html.page-loading body {
  height: 100%;
  overflow: hidden;
  overscroll-behavior: none;
}

body {
  min-height: 100%;
  margin: 0;
  display: flex;
  align-items: stretch;
  justify-content: center;
  background: var(--card-bg);
  color: var(--text-color);
}

.page-loader {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  background: rgba(255, 240, 240, 0.97);
  transition:
    opacity 280ms ease,
    visibility 280ms ease;
}

.page-loader.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.page-loader-spinner {
  width: 46px;
  height: 46px;
  border: 1px solid rgba(113, 110, 57, 0.24);
  border-top-color: #716e39;
  border-radius: 50%;
  animation: loader-spin 900ms linear infinite;
}

.page-loader-text {
  margin: 0;
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #716e39;
}

html.has-js .scroll-animate {
  opacity: 0;
  transform: translate3d(0, 20px, 0);
  transition:
    opacity 520ms ease,
    transform 620ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
  backface-visibility: hidden;
}

html.has-js .scroll-animate.animate {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  will-change: auto;
}

.hero-card {
  width: 100%;
  min-height: 100svh;
  padding: 0;
}

.hero-content {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 60px;
  padding: 87px 24px 112px;
  background: var(--card-bg);
  overflow: hidden;
}

.hero-content::before,
.hero-content::after {
  content: "";
  position: absolute;
  inset: auto;
  border-radius: 999px;
  opacity: 0.18;
  pointer-events: none;
}

.hero-content::before {
  top: -96px;
  right: -80px;
  width: 256px;
  height: 256px;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.2),
    transparent 70%
  );
}

.hero-content::after {
  bottom: -128px;
  left: -96px;
  width: 288px;
  height: 288px;
  background: radial-gradient(circle, rgba(0, 0, 0, 0.16), transparent 72%);
}

.copy-block {
  width: var(--content-width);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  text-align: center;
  animation: fade-up 700ms ease both;
  padding-top: 35px;
}

.hero-title {
  margin: 0;
  font-family: "Foglihten", Georgia, serif;
  font-size: 30px;
  font-weight: 400;
  line-height: 0.92;
  white-space: nowrap;
  text-transform: uppercase;
}

.hero-subtitle {
  margin: 0;
  font-family: "SignThat", "Brush Script MT", cursive;
  font-size: 25px;
  font-style: normal;
  padding-top: 10px;
  font-weight: 400;
  line-height: 0.82;
  transform: translateY(-1px);
}

.prompt-track {
  --drag-x: 0px;
  --line-cut: 0px;
  width: min(100%, 224px);
  height: 53px;
  position: relative;
  animation: fade-up 850ms ease 120ms both;
  margin-top: 40px;
}

.prompt-button,
.track-ring {
  aspect-ratio: 1;
  border-radius: 50%;
  flex: none;
}

.prompt-button {
  width: 46px;
}

.track-ring {
  width: 53px;
}

.prompt-button {
  border: none;
  padding: 0;
  position: absolute;
  top: 50%;
  left: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  cursor: grab;
  user-select: none;
  touch-action: none;
  z-index: 2;
  transform: translate3d(var(--drag-x), -50%, 0);
  transition: transform 220ms ease;
}

.prompt-button:focus-visible {
  outline: 2px solid rgba(248, 246, 238, 0.75);
  outline-offset: 4px;
}

.prompt-track.is-dragging .prompt-button {
  cursor: grabbing;
  transition: none;
}

.prompt-track.is-complete .prompt-button {
  cursor: default;
  outline: none;
}

.prompt-icon {
  display: block;
  width: 100%;
  height: 100%;
}

.track-line {
  position: absolute;
  top: 50%;
  left: 56px;
  right: 63px;
  height: 4px;
  overflow: hidden;
  transform: translateY(-50%);
  background: radial-gradient(
      circle,
      rgba(248, 246, 238, 0.94) 0 1.1px,
      transparent 1.3px
    )
    left center / 8px 4px repeat-x;
}

.track-line::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: var(--line-cut);
  height: 100%;
  background: var(--card-bg);
  transition: width 220ms ease;
}

.prompt-track.is-dragging .track-line::after {
  transition: none;
}

.track-ring {
  position: absolute;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  border: 1.5px solid var(--ring-color);
  transition:
    transform 220ms ease,
    background-color 220ms ease,
    border-color 220ms ease;
}

.prompt-track.is-near-target .track-ring,
.prompt-track.is-complete .track-ring {
  transform: translateY(-50%) scale(1.03);
  background-color: rgba(248, 246, 238, 0.08);
  border-color: rgba(248, 246, 238, 1);
}

.next-page {
  display: block;
  background: #fff0f0;
  color: #1f1814;
}

.wedding-day-page {
  width: 100%;
  min-height: 100svh;
}

.wedding-day-card {
  width: 100%;
  max-width: 456px;
  min-height: 100svh;
  margin: 0 auto;
  background: #fff0f0;
}

.wedding-day-head {
  padding: 58px 16px 30px;
  background: #fff0f0;
  text-align: center;
}

.wedding-day-label {
  margin: 0;
  font-family: "Foglihten", Georgia, serif;
  font-size: 14px;
  line-height: 1;
  color: #302723;
}

.wedding-day-label::after {
  content: "";
  display: block;
  width: 67px;
  height: 1px;
  margin: 4px auto 0;
  background: rgba(48, 39, 35, 0.7);
}

.wedding-day-names {
  margin: 33px 0 0;
  font-family: "SignThat", "Brush Script MT", cursive;
  font-size: 25px;
  font-weight: 400;
  line-height: 0.95;
  color: #8a8248;
  padding-left: 10px;
}

.wedding-day-photo-wrap {
  margin: 0;
}

.wedding-day-photo {
  display: block;
  width: 100%;
  height: auto;
}

.wedding-day-date-wrap {
  padding: 28px 16px 52px;
  background: #fff0f0;
  text-align: center;
}

.wedding-day-date {
  margin: 0;
  font-family: "Foglihten", Georgia, serif;
  font-size: 28px;
  line-height: 1;
  color: #18120f;
}

.wedding-message-section {
  padding: 26px 0;
  background: #fff0f0;
}

.wedding-message-box {
  background: #716e39;
  height: 180px;
  padding: 0 34px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.wedding-message-text {
  max-width: 304px;
  margin: 0 auto;
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 10px;
  font-weight: 400;
  line-height: 16px;
  text-align: center;
  text-transform: uppercase;
  color: #fffdf9;
  margin-top: 5px;
}

.moments-section {
  background: #fff0f0;
  padding-top: 42px;
}

.moments-title {
  margin: 0 0 23px;
  font-family: "Foglihten", Georgia, serif;
  font-size: 30px;
  font-weight: 400;
  line-height: 1;
  text-align: center;
  color: #716e39;
}

.moments-collage-wrap {
  margin: 0;
  padding: 0 21px;
}

.moments-collage {
  display: block;
  width: 100%;
  height: auto;
}

.calendar-section {
  padding: 71px 0 65px 0;
  background: #fff0f0;
}

.calendar-title {
  margin: 0;
  font-family: "Foglihten", Georgia, serif;
  font-size: 30px;
  font-weight: 400;
  line-height: 1;
  text-align: center;
  color: #716e39;
}

.calendar-month {
  margin: 36px 0 16px 0;
  font-family: "SignThat", "Brush Script MT", cursive;
  font-size: 26px;
  font-weight: 400;
  line-height: 0.9;
  text-align: center;
  color: #18120f;
}

.calendar-wrap {
  margin: 0;
  display: flex;
  justify-content: center;
  padding: 0 16px;
}

.calendar-image {
  display: block;
  width: 225px;
  max-width: 100%;
  height: auto;
}

.location-section {
  background: #fff0f0;
}

.location-panel {
  position: relative;
  height: 262px;
  padding: 61px 28px 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #7c7a3b url("./img/green.png") center / cover no-repeat;
  overflow: hidden;
}

.location-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(124, 122, 59, 0.79);
}

.location-panel > * {
  position: relative;
  z-index: 1;
}

.location-title {
  margin: 0;
  font-family: "Foglihten", Georgia, serif;
  font-size: 30px;
  font-weight: 400;
  line-height: 1;
  text-align: center;
  color: #fffdf9;
}

.location-copy {
  margin-top: 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.location-line {
  margin: 0;
  display: inline-block;
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 10px;
  font-weight: 400;
  line-height: 1.3;

  text-align: center;
  color: #fffdf9;
  text-transform: uppercase;
}

.location-button {
  width: 139px;
  height: 23px;
  margin-top: 20px;
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fffdf9;
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.02em;
  text-decoration: none;
  color: #716e39;
  cursor: pointer;
}

.timeline-section {
  padding: 72px 35px 78px;
  background: #fff0f0;
}

.timeline-title {
  margin: 0;
  font-family: "Foglihten", Georgia, serif;
  font-size: 30px;
  font-weight: 400;
  line-height: 1;
  text-align: center;
  color: #716e39;
}

.timeline-list {
  margin: 0px 35px;
  margin-top: 27px;
  display: flex;
  flex-direction: column;
  gap: 26px;
}

.timeline-item {
  --timeline-marker-height: 63px;
  display: grid;
  grid-template-columns: 35px 14px 1fr;
  column-gap: 14px;
  align-items: stretch;
}

.timeline-time {
  margin: 0;
  width: 58px;
  min-height: var(--timeline-marker-height);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Foglihten", Georgia, serif;
  font-size: 30px;
  line-height: 1;
  color: #12100f;
  transform: rotate(-90deg);
  transform-origin: center;
}

.timeline-divider {
  width: 1px;
  background: #12100f;
}

.timeline-content {
  min-height: var(--timeline-marker-height);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.timeline-item-title {
  margin: 0;
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 10px;
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: 0.01em;
  color: #716e39;
  transform: translateY(-1px);
}

.timeline-text {
  max-width: 232px;
  margin: 0;
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 10px;
  font-weight: 300;
  line-height: 1.26;
  color: #2a2320;
  transform: translateY(1px);
}

.dress-section {
  background: #fff0f0;
}

.dress-title {
  margin: 0;
  font-family: "Foglihten", Georgia, serif;
  font-size: 30px;
  font-weight: 400;
  line-height: 1;
  text-align: center;
  color: #716e39;
}

.dress-text {
  margin: 17px 0 26px;
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 10px;
  font-weight: 400;
  line-height: 1.6;

  text-align: center;
  text-transform: uppercase;
  color: #2a2320;
}

.dress-image-wrap {
  margin: 0;
  display: flex;
  justify-content: center;
}

.dress-image {
  display: block;
  width: 255px;
  height: 144px;
  object-fit: cover;
}

@keyframes loader-spin {
  to {
    transform: rotate(360deg);
  }
}

.wishes-section {
  padding: 72px 24px 68px;
  background: #fff0f0;
}

.wishes-title {
  margin: 0;
  font-family: "Foglihten", Georgia, serif;
  font-size: 30px;
  font-weight: 400;
  line-height: 1;
  text-align: center;
  color: #716e39;
}

.wishes-text {
  margin: 20px 0 0;
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 10px;
  font-weight: 400;
  line-height: 1.6;

  text-align: center;
  text-transform: uppercase;
  color: #2a2320;
}

.transfer-section {
  background: #fff0f0;
}

.transfer-box {
  background: #7c7a3b;
  padding: 30px 28px;
}

.transfer-title {
  margin: 0;
  font-family: "Foglihten", Georgia, serif;
  font-size: 30px;
  font-weight: 400;
  line-height: 1;
  text-align: center;
  color: #fffdf9;
}

.transfer-text {
  margin: 19px 0 0;
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 10px;
  font-weight: 400;
  line-height: 1.6;
  text-align: center;
  text-transform: uppercase;
  color: #fffdf9;
}

.transfer-text-secondary {
  margin-top: 20px;
}

.details-section {
  padding: 74px 24px 50px;
  background: #fff0f0;
  text-align: center;
}

.details-title {
  margin: 0;
  font-family: "Foglihten", Georgia, serif;
  font-size: 30px;
  font-weight: 400;
  line-height: 1;
  color: #716e39;
}

.details-text {
  margin: 20px 0 0;
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 10px;
  font-weight: 400;
  line-height: 1.6;
  text-align: center;
  text-transform: uppercase;
  color: #2a2320;
}

.details-contact {
  margin: 19px 0 0;
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 10px;
  font-weight: 500;
  line-height: 1.2;
  text-transform: uppercase;
  color: #12100f;
}

.details-script {
  margin: 79px 0 0;
  font-family: "SignThat", "Brush Script MT", cursive;
  font-size: 18px;
  font-weight: 400;
  line-height: 0.92;
  color: #8a8248;
}

.details-reminder {
  margin: 35px 0 0;
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 10px;
  font-weight: 400;
  line-height: 1.6;

  text-align: center;
  text-transform: uppercase;
  color: #2a2320;
}

.details-date {
  margin: 9px 0 0;
  font-family: "Foglihten", Georgia, serif;
  font-size: 30px;
  font-weight: 400;
  line-height: 1;
  color: #12100f;
  letter-spacing: 0.5px;
}

.details-button {
  width: 100%;
  max-width: 243px;
  height: 23px;
  margin-top: 23px;
  border: none;
  background: #7c7a3b;
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: #fffdf9;
  cursor: pointer;
}

.survey-section {
  background: #fff0f0;
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transform: translateY(18px);
  transition:
    grid-template-rows 480ms ease,
    opacity 320ms ease,
    transform 480ms ease;
}

.survey-section[hidden] {
  display: none;
}

.survey-section.is-visible {
  grid-template-rows: 1fr;
  opacity: 1;
  transform: translateY(0);
}

.survey-form {
  width: 100%;
  max-width: 325px;
  margin: 0 auto;
  padding-bottom: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 0;
  overflow: hidden;
}

.survey-hp {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(100%);
  white-space: nowrap;
  border: 0;
}

.survey-title {
  margin: 0;
  font-family: "Foglihten", Georgia, serif;
  font-size: 30px;
  font-weight: 400;
  line-height: 1;
  text-align: center;
  color: #716e39;
}

.survey-label {
  margin-top: 28px;
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 10px;
  font-weight: 500;
  line-height: 1.2;
  text-align: center;
  color: #12100f;
}

.survey-label-note {
  margin: 14px 0 0;
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 10px;
  font-weight: 300;
  line-height: 1.45;
  letter-spacing: 0.02em;
  text-align: center;
  text-transform: uppercase;
  color: #5b514d;
}

.survey-input {
  width: 85%;
  height: 32px;
  margin-top: 12px;
  padding: 0 4px;
  -webkit-appearance: none;
  appearance: none;
  border: none;
  border-bottom: 1px solid rgba(113, 110, 57, 0.45);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 14px;
  color: #12100f;
}

.survey-input:focus {
  outline: none;
  border-bottom-color: #716e39;
}

.survey-fieldset {
  width: 100%;
  margin: 24px 0 0;
  padding: 0;
  border: none;
}

.survey-fieldset-transfer {
  margin-top: 28px;
}

.survey-question {
  margin: 0;
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 10px;
  font-weight: 500;
  line-height: 1.45;
  text-align: center;
  color: #12100f;
}

.survey-subquestion {
  margin-top: 24px;
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 10px;
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: 0.02em;
  text-align: center;
  text-transform: uppercase;
  color: #12100f;
}

.survey-subquestion-note {
  font-weight: 400;
}

.survey-option {
  display: flex;
  align-items: center;
  gap: 18px;
  width: fit-content;
  max-width: 100%;
  margin: 0;
  cursor: pointer;
}

.survey-options-list {
  width: fit-content;
  max-width: 100%;
  margin: 20px auto 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
}

.survey-radio {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.survey-radio-mark {
  width: 18px;
  height: 18px;
  border: 1px solid #8b7f4a;
  border-radius: 50%;
  display: block;
  position: relative;
}

.survey-radio:checked + .survey-radio-mark::after {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: #716e39;
}

.survey-option-text {
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 10px;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: 0.02em;
  text-align: left;
  text-transform: uppercase;
  color: #5b514d;
}

.survey-submit {
  width: 196px;
  height: 31px;
  margin-top: 24px;
  -webkit-appearance: none;
  appearance: none;
  border: none;
  border-radius: 0;
  background: #7c7a3b;
  box-shadow: none;
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: #fffdf9;
  cursor: pointer;
}

.survey-submit:disabled {
  opacity: 0.72;
  cursor: default;
}

.survey-submit.is-sent {
  opacity: 0.88;
}

.survey-message {
  margin: 18px auto 0;
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 10px;
  font-weight: 400;
  line-height: 1.5;
  text-align: center;
  text-transform: uppercase;
  color: #5b514d;
}

.survey-message--success {
  color: #716e39;
}

.survey-message--error {
  color: #9d534c;
}

.survey-form.survey-form-done > :not(.survey-message) {
  display: none !important;
}

.survey-form.survey-form-done .survey-message {
  display: block !important;
  margin-top: 0;
  padding: 24px 8px 0;
  font-size: 12px;
  line-height: 1.55;
}

@media (min-width: 900px) {
  .wedding-day-date-wrap {
    padding-top: 22px;
  }
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

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

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

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

  .survey-section {
    transition: none;
    transform: none;
  }
}
