:root {
  --ink: #161412;
  --muted: #665d55;
  --green: #7fa64d;
  --green-soft: #bfe19f;
  --paper: rgba(255, 255, 251, 0.88);
  --petal: #fbfaf3;
  --daisy-center: #c9a953;
  --sand: #d9cec1;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: #fffefa;
  font-family: "Kurale", Georgia, serif;
  font-size: 18px;
  line-height: 1.55;
}

a {
  color: inherit;
}

.topbar {
  position: fixed;
  z-index: 10;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 14px;
  pointer-events: none;
}

.menu-link {
  pointer-events: auto;
  text-decoration: none;
}

.menu-link {
  display: inline-flex;
  align-items: center;
  gap: 22px;
  color: #b1da91;
  font-family: "Marck Script", cursive;
  font-size: 24px;
  transition: opacity 180ms ease, visibility 180ms ease;
}

.menu-link.is-hidden {
  pointer-events: none;
  visibility: hidden;
  opacity: 0;
}

.menu-icon,
.menu-icon::before,
.menu-icon::after {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

.menu-icon {
  position: relative;
}

.menu-icon::before,
.menu-icon::after {
  content: "";
  position: absolute;
  left: 0;
}

.menu-icon::before {
  top: -6px;
}

.menu-icon::after {
  top: 6px;
}

.hero {
  position: relative;
  display: grid;
  min-height: 100svh;
  place-items: center;
  overflow: hidden;
  padding: 92px 24px 74px;
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(circle at 14% 8%, rgba(191, 225, 159, 0.24), transparent 22%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 254, 250, 0.96));
}

.hero__content {
  width: min(100%, 720px);
  text-align: center;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.hero__date {
  margin: 0 0 32px;
  font-size: 28px;
  letter-spacing: 0.28em;
  text-transform: none;
}

.hero h1 {
  margin: 0 0 38px;
  font-size: clamp(34px, 5vw, 56px);
  font-weight: 400;
  line-height: 1.1;
}

.hero__subtitle {
  margin: 0;
  font-size: 15px;
}

.hero__place {
  margin: 36px 0 0;
  font-size: 15px;
  text-transform: none;
}

.hero__address {
  margin: 10px 0 0;
  font-size: 15px;
  text-transform: none;
}

.hero__wait {
  margin: 20px 0 0;
  font-size: 20px;
  font-weight: 600;
}

.flower-spray {
  position: absolute;
  z-index: -1;
  width: 430px;
  aspect-ratio: 0.67;
  opacity: 0.42;
  background: url("assets/flower-bouquet.png") center / contain no-repeat;
  filter: drop-shadow(0 16px 18px rgba(72, 92, 56, 0.09));
}

.flower-spray--top {
  top: 24px;
  left: 50%;
  transform: translateX(2%) rotate(-10deg);
}

.flower-spray--bottom {
  right: -86px;
  bottom: -176px;
  width: 500px;
  opacity: 0.36;
  background-image: url("assets/flower-trail.png");
  transform: rotate(17deg);
}

.countdown {
  position: relative;
  display: flex;
  justify-content: center;
  gap: clamp(18px, 5vw, 58px);
  padding: 34px 18px 86px;
  background: #fffefa;
  text-align: center;
}

.countdown::after {
  content: "";
  position: absolute;
  right: 3vw;
  bottom: -100px;
  width: 260px;
  aspect-ratio: 0.67;
  opacity: 0.34;
  background: url("assets/flower-bouquet.png") center / contain no-repeat;
}

.countdown__item strong {
  display: block;
  min-width: 56px;
  font-size: clamp(32px, 4vw, 50px);
  font-weight: 400;
  line-height: 1;
}

.countdown__item span {
  display: block;
  margin-top: 12px;
  font-size: 15px;
}

.daisy-band {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 88px 24px 0;
  background:
    linear-gradient(rgba(224, 214, 203, 0.82), rgba(224, 214, 203, 0.82)),
    #d8cec1;
}

.daisy-band::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 0;
  pointer-events: none;
  background-image:
    url("assets/flower-trail.png"),
    url("assets/flower-bouquet.png"),
    url("assets/flower-trail.png"),
    url("assets/flower-bouquet.png"),
    url("assets/flower-trail.png");
  background-repeat:
    repeat-y,
    repeat-y,
    repeat-y,
    repeat-y,
    repeat-y;
  background-size:
    250px auto,
    245px auto,
    190px auto,
    205px auto,
    150px auto;
  background-position:
    left -18px top -30px,
    right -34px top 80px,
    left 210px top 260px,
    right 230px top 430px,
    center top 120px;
  opacity: 0.38;
}

.daisy-band::after {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 0;
  pointer-events: none;
  background-image:
    url("assets/flower-bouquet.png"),
    url("assets/flower-trail.png");
  background-repeat: repeat-y, repeat-y;
  background-size: 135px auto, 120px auto;
  background-position: left 28% top 40px, right 31% top 210px;
  opacity: 0.14;
}

.invitation-card {
  position: relative;
  z-index: 1;
  overflow: hidden;
  width: min(100%, 1000px);
  margin: 0 auto;
  padding: clamp(48px, 7vw, 82px) clamp(32px, 6vw, 86px);
  background:
    radial-gradient(circle at 24% 15%, rgba(143, 165, 111, 0.09), transparent 22%),
    radial-gradient(circle at 82% 74%, rgba(143, 165, 111, 0.08), transparent 20%),
    rgba(255, 255, 252, 0.9);
  text-align: center;
  box-shadow: 0 12px 32px rgba(74, 63, 52, 0.08);
}

.invitation-card::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 0;
  pointer-events: none;
  background:
    url("assets/flower-bouquet.png") center 70px / 62% auto repeat-y;
  opacity: 0.06;
}

.invitation-card > * {
  position: relative;
  z-index: 1;
}

.invitation-card h2,
.text-section h2 {
  margin: 0 0 20px;
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 400;
  line-height: 1.25;
  text-transform: uppercase;
}

.invitation-card > h2 {
  color: #315327;
  font-size: clamp(30px, 4vw, 42px);
  text-transform: none;
}

.invitation-card p {
  margin: 0 auto 14px;
  max-width: 820px;
}

.invitation-card__time {
  margin-top: 34px;
}

.photo-placeholder {
  display: grid;
  place-items: center;
  margin-inline: auto;
  border: 1px solid rgba(108, 93, 75, 0.22);
  background:
    linear-gradient(135deg, rgba(255,255,255,0.72), rgba(216, 206, 193, 0.3)),
    repeating-linear-gradient(45deg, rgba(125, 151, 93, 0.16) 0 10px, transparent 10px 20px);
  color: #6d765c;
  font-family: "Marck Script", cursive;
  font-size: clamp(28px, 5vw, 44px);
}

.photo-placeholder span {
  padding: 8px 18px;
  border-radius: 999px;
  background: rgba(255, 255, 252, 0.74);
}

.photo-placeholder--wide {
  width: min(100%, 760px);
  aspect-ratio: 0.82;
  margin-top: 34px;
}

.quote {
  color: var(--green);
  font-family: "Marck Script", cursive;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.1;
  margin: 24px auto 28px;
}

.people {
  display: grid;
  gap: 34px;
  margin: 28px auto 54px;
}

.person p {
  margin-top: 12px;
  color: var(--green);
  font-family: "Marck Script", cursive;
  font-size: 30px;
}

.photo-placeholder--circle {
  width: min(72vw, 420px);
  aspect-ratio: 1;
  border-radius: 50%;
  font-size: clamp(24px, 4vw, 34px);
}

.photo-placeholder--circle span {
  max-width: 70%;
  line-height: 1.1;
}

.text-section {
  margin-top: 54px;
}

.text-section h2 {
  letter-spacing: 0.04em;
}

.palette {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  width: min(100%, 560px);
  margin: 28px auto 64px;
  aspect-ratio: 1;
}

.palette span {
  background: var(--swatch);
}

.confirmation {
  margin-bottom: 0;
}

.confirmation__accent {
  color: var(--green);
  font-family: "Marck Script", cursive;
  font-size: 34px;
  line-height: 1.1;
}

.confirm-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  margin-top: 8px;
  padding: 12px 32px;
  border-radius: 999px;
  background: #9fc76a;
  color: #15220d;
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(108, 138, 75, 0.22);
}

.modal-overlay {
  position: fixed;
  z-index: 50;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 22px;
  background: rgba(28, 26, 24, 0.56);
}

.modal-overlay.is-open {
  display: flex;
}

body.modal-open {
  overflow: hidden;
}

.confirm-modal {
  position: relative;
  width: min(100%, 526px);
  padding: 48px 50px 50px;
  border-radius: 34px;
  background: #b9c4e4;
  box-shadow: 0 24px 70px rgba(20, 22, 31, 0.34);
  color: #050505;
  font-family: Arial, sans-serif;
}

.modal-close {
  position: absolute;
  top: 22px;
  right: 24px;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 0;
  background: transparent;
  color: #191919;
  cursor: pointer;
  font-size: 38px;
  line-height: 1;
}

.confirm-modal h2 {
  margin: 2px 0 24px;
  text-align: center;
  font-family: Arial, sans-serif;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.18;
}

.confirm-form {
  display: grid;
  gap: 18px;
}

.confirm-form label {
  display: grid;
  gap: 8px;
  font-size: 18px;
  line-height: 1.25;
}

.confirm-form input {
  width: 100%;
  height: 52px;
  border: 1px solid rgba(38, 43, 57, 0.52);
  border-radius: 9px;
  background: rgba(234, 237, 249, 0.38);
  color: #191919;
  font: 20px Arial, sans-serif;
  outline: none;
}

.confirm-form input::placeholder {
  color: rgba(48, 48, 48, 0.62);
}

.confirm-form label > input {
  padding: 0 16px;
}

.confirm-form input:focus {
  border-color: #57627f;
  box-shadow: 0 0 0 3px rgba(87, 98, 127, 0.16);
}

.phone-field {
  display: block;
  height: 52px;
  border: 1px solid rgba(38, 43, 57, 0.52);
  border-radius: 9px;
  background: rgba(234, 237, 249, 0.38);
  overflow: hidden;
}

.phone-field:focus-within {
  border-color: #57627f;
  box-shadow: 0 0 0 3px rgba(87, 98, 127, 0.16);
}

.phone-field input {
  height: 50px;
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 0 16px;
  box-shadow: none;
}

.modal-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  height: 52px;
  margin-top: 8px;
  border: 0;
  border-radius: 9px;
  background: linear-gradient(180deg, #f2eee5 0%, #ded4c5 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.86), 0 7px 16px rgba(62, 47, 31, 0.12);
  color: #020202;
  cursor: pointer;
  font-family: "Kurale", Georgia, serif;
  font-size: 24px;
  line-height: 1;
}

.modal-submit span {
  font-family: Arial, sans-serif;
  font-size: 28px;
  font-weight: 700;
}

.form-status {
  min-height: 22px;
  margin: 0;
  color: #25411f;
  text-align: center;
  font-family: Arial, sans-serif;
  font-size: 15px;
}

.map-section {
  height: min(70vh, 620px);
  min-height: 440px;
  background: #eef1e7;
}

.map-section iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

@media (max-width: 760px) {
  body {
    font-size: 16px;
  }

  .topbar {
    padding: 8px 10px;
  }

  .menu-link span:last-child {
    display: none;
  }

  .hero {
    min-height: 92svh;
    padding-inline: 18px;
  }

  .hero__content {
    letter-spacing: 0.16em;
  }

  .hero__date {
    font-size: 22px;
    letter-spacing: 0.17em;
  }

  .hero h1 {
    font-size: 34px;
  }

  .hero__subtitle,
  .hero__place,
  .hero__address {
    font-size: 13px;
  }

  .flower-spray--top {
    top: 72px;
    left: 28%;
    width: 330px;
    opacity: 0.3;
    transform: translateX(-18%) rotate(-14deg);
  }

  .flower-spray--bottom {
    right: -220px;
    bottom: -174px;
    width: 390px;
    opacity: 0.3;
    transform: rotate(18deg);
  }

  .countdown {
    gap: 14px;
    padding-bottom: 64px;
  }

  .countdown__item strong {
    min-width: 38px;
  }

  .countdown__item span {
    font-size: 12px;
  }

  .daisy-band {
    padding: 58px 14px 0;
  }

  .daisy-band::before {
    background-size:
      170px auto,
      170px auto,
      130px auto,
      140px auto,
      110px auto;
    background-position:
      left -76px top 0,
      right -76px top 120px,
      left 8px top 380px,
      right 10px top 620px,
      center top 180px;
    opacity: 0.3;
  }

  .daisy-band::after {
    background-size: 100px auto, 94px auto;
    background-position: left 4% top 60px, right 4% top 280px;
    opacity: 0.08;
  }

  .invitation-card {
    padding: 38px 20px;
  }

  .photo-placeholder--wide {
    width: min(100%, 390px);
  }

  .palette {
    width: min(100%, 360px);
  }

  .map-section {
    height: 460px;
    min-height: 460px;
  }

  .confirm-modal {
    padding: 44px 22px 30px;
    border-radius: 26px;
  }

  .confirm-modal h2 {
    font-size: 20px;
  }

  .confirm-form label {
    font-size: 16px;
  }

  .confirm-form input,
  .phone-field {
    height: 50px;
  }

  .modal-submit {
    font-size: 22px;
  }
}
