:root {
  color: #5c5754;
  background: #f4f1eb;
  font-family: "Cormorant Garamond", "Times New Roman", serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background: radial-gradient(circle at top, #fbf8f3, #f4f0ea 52%, #eee8df);
}

button,
a {
  font: inherit;
}

button {
  color: inherit;
}

button:focus-visible,
a:focus-visible {
  outline: 2px solid #d8b24b;
  outline-offset: 4px;
}

.wedding-page {
  display: flex;
  justify-content: center;
  min-height: 100vh;
  padding: 24px 16px 40px;
}

.wedding-card {
  width: 100%;
  max-width: 760px;
  overflow: hidden;
  background: #f7f4ef;
  border: 1px solid #ece6de;
  border-radius: 10px;
  box-shadow: 0 14px 36px rgb(0 0 0 / 7%);
}

.announcement {
  position: relative;
  aspect-ratio: 870 / 1219;
  overflow: hidden;
}

.announcement__frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;
  pointer-events: none;
}

.announcement__content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100%;
  max-width: 430px;
  margin: auto;
  padding: 9% 0 11%;
  text-align: center;
}

.couple {
  display: block;
  width: fit-content;
  padding: 0;
  color: #5b5757;
  text-align: center;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.couple__name {
  display: block;
  font-size: clamp(3.9rem, 11.5vw, 5.5rem);
  line-height: 0.92;
  letter-spacing: 0.08em;
}

.couple__and {
  display: block;
  margin: 18px 0 20px;
  color: #d8b24b;
  font-size: 2.65rem;
  line-height: 1;
}

.invitation {
  margin-top: 42px;
  color: #7b7775;
  text-transform: uppercase;
}

.invitation p {
  margin: 0;
  font-size: 1.25rem;
  line-height: 1.32;
}

.invitation__date {
  width: fit-content;
  margin: 18px auto 0 !important;
  padding: 8px 16px;
  color: #5d5958;
  border-block: 2px solid #dcb443;
  font-size: 2.1rem !important;
  letter-spacing: 0.02em;
}

.place {
  position: relative;
  display: inline-block;
}

.place__button {
  margin-top: 10px;
  padding: 0;
  color: inherit;
  text-transform: uppercase;
  background: transparent;
  border: 0;
  cursor: pointer;
  transition: color 180ms ease, transform 180ms ease;
}

.place__button:hover,
.place__button[aria-expanded="true"] {
  color: #b18d63;
  transform: translateY(-1px);
}

.map-popover {
  position: absolute;
  z-index: 10;
  top: calc(100% + 14px);
  left: 50%;
  width: min(370px, calc(100vw - 40px));
  padding: 10px;
  background: rgb(255 251 246 / 98%);
  border: 1px solid #e8dccb;
  border-radius: 22px;
  box-shadow: 0 16px 36px rgb(91 72 47 / 14%);
  transform: translateX(-50%);
}

.map-popover[hidden] {
  display: none;
}

.map-popover iframe {
  display: block;
  width: 100%;
  height: 240px;
  border: 0;
  border-radius: 15px;
}

.map-popover__link {
  display: block;
  margin: 16px 0 6px;
  color: #8f775f;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-decoration: none;
}

.announcement__footer {
  margin-top: 34px;
  color: #7b7775;
  text-transform: uppercase;
}

.announcement__footer p {
  margin: 0;
  font-size: 1.38rem;
}

.scroll-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  margin-top: 8px;
  padding: 0;
  text-transform: uppercase;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.scroll-link__arrow {
  color: #d8b24b;
  font-size: 2.5rem;
  line-height: 0.7;
  transition: transform 180ms ease;
}

.scroll-link:hover .scroll-link__arrow {
  transform: translateY(5px);
}

.countdown {
  position: absolute;
  z-index: 3;
  top: 22px;
  right: 22px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 10px 14px;
  white-space: nowrap;
  background: rgb(255 252 247 / 96%);
  border: 1px solid #e6dbc9;
  border-radius: 20px;
  cursor: pointer;
  backdrop-filter: blur(8px);
}

.countdown span {
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.countdown strong {
  color: #5b5756;
  font-size: 0.9rem;
  font-weight: 600;
}

.countdown .countdown__label {
  color: #b49765;
  font-size: 0.65rem;
  letter-spacing: 0.16em;
}

.details {
  scroll-margin-top: 20px;
  padding: 44px 24px 52px;
  background: linear-gradient(#faf9f7, #f6f4ef);
  border-top: 1px solid rgb(92 87 84 / 10%);
}

.details__inner {
  max-width: 560px;
  margin: auto;
}

.info-card {
  padding: 26px 0;
  border-bottom: 1px solid rgb(92 87 84 / 12%);
}

.info-card:first-child {
  padding-top: 0;
}

.info-card:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.info-card h2 {
  margin: 0;
  color: #716b68;
  font-size: 1.38rem;
  font-weight: 600;
  text-transform: uppercase;
}

.info-card p {
  margin: 12px 0 0;
  color: #7b7775;
  font-size: 1.38rem;
  line-height: 1.45;
  white-space: pre-line;
}

.weather {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgb(123 119 117 / 25%);
}

.weather--muted {
  color: #8f8986;
  font-size: 1.12rem;
  font-style: italic;
}

.weather__now {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 14px;
  margin-bottom: 14px;
}

.weather__now strong {
  color: #6a645f;
  font-size: 1.75rem;
  font-weight: 500;
}

.weather__now span {
  font-size: 1.25rem;
}

.weather__now small {
  color: #8f8986;
  font-size: 1.05rem;
}

.weather__days {
  margin: 0;
  padding: 0;
  list-style: none;
}

.weather__days li {
  display: grid;
  grid-template-columns: minmax(5.5em, 1fr) auto minmax(0, 1.5fr);
  gap: 8px 12px;
  padding: 8px 0;
  color: #7b7775;
  font-size: 1.1rem;
  border-bottom: 1px solid rgb(123 119 117 / 12%);
}

.weather__days li span:last-child {
  color: #8f8986;
}

dialog {
  padding: 0;
  background: #fffbf6;
  border: 1px solid #e8dccb;
  box-shadow: 0 20px 48px rgb(91 72 47 / 18%);
}

dialog::backdrop {
  background: rgb(255 251 246 / 75%);
  backdrop-filter: blur(4px);
}

.photo-dialog {
  width: min(90vw, 620px);
  border-radius: 22px;
}

.photo-dialog img {
  display: block;
  width: 100%;
  height: auto;
  padding: 10px;
  border-radius: 20px;
}

.photo-dialog__close,
.countdown-dialog__close {
  position: absolute;
  z-index: 2;
  top: 12px;
  right: 14px;
  width: 38px;
  height: 38px;
  padding: 0;
  color: #5d5958;
  font-size: 1.7rem;
  line-height: 1;
  background: rgb(255 251 246 / 88%);
  border: 1px solid #e8dccb;
  border-radius: 50%;
  cursor: pointer;
}

.countdown-dialog {
  width: min(90vw, 760px);
  padding: 48px 30px 36px;
  border-radius: 24px;
}

.countdown-dialog h2 {
  margin: 0 0 24px;
  color: #b49765;
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-align: center;
  text-transform: uppercase;
}

.countdown-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.time-box {
  padding: 24px 12px;
  text-align: center;
  background: #faf7f2;
  border: 1px solid #eee4d7;
  border-radius: 24px;
}

.time-box strong,
.time-box span {
  display: block;
}

.time-box strong {
  color: #5b5756;
  font-size: clamp(2.25rem, 7vw, 4rem);
  font-weight: 500;
  line-height: 1;
}

.time-box span {
  margin-top: 12px;
  color: #a89373;
  font-size: 0.85rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

@media (max-width: 768px) {
  .wedding-page {
    padding: 16px 12px 24px;
  }

  .announcement__content {
    padding: 9% 8% 10%;
  }

  .couple__name {
    font-size: clamp(3.2rem, 12vw, 4rem);
  }

  .couple__and {
    margin: 12px 0 16px;
    font-size: 2.15rem;
  }

  .invitation {
    margin-top: 30px;
  }

  .invitation p {
    font-size: 1.05rem;
  }

  .invitation__date {
    font-size: 1.6rem !important;
  }

  .announcement__footer {
    margin-top: 24px;
  }

  .announcement__footer p,
  .scroll-link {
    font-size: 1.05rem;
  }

  .countdown {
    top: 14px;
    right: 14px;
    gap: 5px;
    padding: 8px 10px;
    background: rgb(255 252 247 / 78%);
  }

  .countdown span {
    font-size: 0.62rem;
  }

  .countdown strong {
    font-size: 0.76rem;
  }

  .countdown .countdown__label {
    font-size: 0.56rem;
  }

  .details {
    padding: 32px 18px 40px;
  }

  .countdown-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .wedding-page {
    padding-inline: 0;
  }

  .wedding-card {
    border-inline: 0;
    border-radius: 0;
  }

  .announcement__content {
    padding-top: 12%;
  }

  .couple__name {
    font-size: 3rem;
  }

  .invitation {
    margin-top: 25px;
  }

  .invitation p {
    font-size: 0.9rem;
  }

  .invitation__date {
    font-size: 1.3rem !important;
  }

  .place__button,
  .announcement__footer p,
  .scroll-link {
    font-size: 0.9rem;
  }

  .scroll-link__arrow {
    font-size: 2rem;
  }

  .weather__days li {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
