:root {
  --ink: #1f2833;
  --muted: #687174;
  --paper: #fffaf4;
  --ivory: #f5eadf;
  --sage: #839985;
  --moss: #47584a;
  --blush: #d9aaa4;
  --gold: #b59057;
  --line: rgba(31, 40, 51, 0.16);
  --shadow: 0 24px 70px rgba(31, 40, 51, 0.14);
  font-family: "Cormorant Garamond", Georgia, serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.hero {
  position: relative;
  min-height: 92svh;
  display: grid;
  align-items: center;
  overflow: hidden;
  background: #1f2833;
}

.hero__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 250, 244, 0.92), rgba(255, 250, 244, 0.74) 46%, rgba(31, 40, 51, 0.18)),
    linear-gradient(180deg, rgba(31, 40, 51, 0.12), rgba(31, 40, 51, 0.36));
}

.nav {
  position: absolute;
  z-index: 2;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: calc(18px + env(safe-area-inset-top)) clamp(20px, 5vw, 72px) 18px;
  font-size: 0.78rem;
  letter-spacing: 0;
  text-transform: uppercase;
}

.nav__brand {
  font-family: Georgia, serif;
  font-size: 1.1rem;
  color: var(--moss);
}

.nav__links {
  display: flex;
  gap: clamp(14px, 3vw, 36px);
  color: #344039;
}

.hero__content {
  position: relative;
  z-index: 1;
  width: min(720px, calc(100% - 40px));
  margin-left: clamp(20px, 8vw, 112px);
  padding-top: 72px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--moss);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
}

h1 {
  margin-bottom: 14px;
  font-size: clamp(4rem, 12vw, 9.5rem);
  line-height: 0.86;
  color: var(--ink);
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(2.2rem, 5vw, 4.4rem);
  line-height: 0.98;
}

h3 {
  margin-bottom: 8px;
  font-size: 1.02rem;
}

.hero__date {
  margin-bottom: 24px;
  color: var(--gold);
  font-size: clamp(1.05rem, 2.5vw, 1.4rem);
  font-weight: 700;
}

.hero__copy {
  max-width: 520px;
  color: #35403b;
  font-size: clamp(1rem, 2vw, 1.18rem);
  line-height: 1.7;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 20px;
  border: 1px solid var(--moss);
  border-radius: 6px;
  font-weight: 700;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(31, 40, 51, 0.12);
}

.button--primary {
  color: #fffaf4;
  background: var(--moss);
}

.button--ghost {
  color: var(--moss);
  background: rgba(255, 250, 244, 0.56);
}

.countdown {
  width: min(980px, calc(100% - 32px));
  position: relative;
  z-index: 2;
  margin: clamp(28px, 5vw, 56px) auto 0;
  padding: 10px;
  border: 1px solid rgba(255, 250, 244, 0.72);
  border-radius: 8px;
  background: rgba(255, 250, 244, 0.74);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.countdown__inner {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: linear-gradient(135deg, rgba(255, 253, 249, 0.98), rgba(245, 234, 223, 0.92));
}

.countdown__label {
  margin: 0 0 14px;
  color: var(--moss);
  font-size: 0.78rem;
  font-weight: 800;
  text-align: center;
  text-transform: uppercase;
}

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

.countdown__item {
  min-height: 116px;
  display: grid;
  place-items: center;
  gap: 8px;
  padding: 18px 12px;
  border: 1px solid rgba(31, 40, 51, 0.1);
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 0%, rgba(181, 144, 87, 0.13), transparent 54%),
    #fffdf9;
}

.countdown__item + .countdown__item {
  position: relative;
}

.countdown__item + .countdown__item::before {
  content: "";
  position: absolute;
  top: 24px;
  bottom: 24px;
  left: -6px;
  width: 1px;
  background: var(--line);
}

.countdown strong {
  font-family: Georgia, serif;
  font-size: clamp(2rem, 5vw, 3.8rem);
  font-weight: 400;
  line-height: 1;
}

.countdown span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

.photo-strip {
  width: min(1080px, calc(100% - 36px));
  display: grid;
  grid-template-columns: 0.82fr 1fr 0.82fr;
  gap: 14px;
  margin: clamp(34px, 7vw, 76px) auto 0;
  align-items: center;
}

.photo-strip img {
  width: 100%;
  height: clamp(220px, 28vw, 360px);
  object-fit: cover;
  border: 8px solid #fffdf9;
  border-radius: 8px;
  box-shadow: 0 18px 44px rgba(31, 40, 51, 0.12);
}

.photo-strip img:nth-child(1) {
  transform: translateY(18px);
  object-position: 50% 42%;
}

.photo-strip img:nth-child(2) {
  height: clamp(260px, 34vw, 430px);
  object-position: 50% 35%;
}

.photo-strip img:nth-child(3) {
  transform: translateY(-18px);
  object-position: 50% 48%;
}

.section {
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(70px, 10vw, 128px) 0;
}

.section__intro {
  max-width: 680px;
}

.section__intro p,
.location p,
.place-card p {
  color: var(--muted);
  line-height: 1.75;
}

.details__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 380px);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}

.details__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 34px;
}

.detail-card {
  min-height: 190px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf9;
}

.detail-card__mark {
  display: block;
  margin-bottom: 42px;
  color: var(--gold);
  font-family: Georgia, serif;
  font-size: 1.5rem;
}

.detail-card p {
  color: var(--muted);
  line-height: 1.65;
}

.details__photo {
  margin: 0;
  position: relative;
}

.details__photo::before {
  content: "";
  position: absolute;
  inset: 18px -16px -18px 16px;
  z-index: -1;
  border: 1px solid rgba(181, 144, 87, 0.42);
  border-radius: 8px;
}

.details__photo img {
  width: 100%;
  aspect-ratio: 4 / 5.7;
  object-fit: cover;
  object-position: 50% 28%;
  border: 10px solid #fffdf9;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.schedule {
  width: 100%;
  padding-left: max(18px, calc((100vw - 1120px) / 2));
  padding-right: max(18px, calc((100vw - 1120px) / 2));
  background: var(--ivory);
}

.timeline {
  display: grid;
  gap: 0;
  margin: 38px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid rgba(31, 40, 51, 0.18);
}

.timeline li {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 22px;
  padding: 28px 0;
  border-bottom: 1px solid rgba(31, 40, 51, 0.18);
}

.timeline time {
  color: var(--gold);
  font-family: Georgia, serif;
  font-size: 1.8rem;
  line-height: 1.1;
}

.timeline p {
  margin-bottom: 0;
  color: var(--muted);
}

.location__grid {
  display: grid;
  gap: 18px;
  margin-top: 34px;
}

.place-card {
  display: grid;
  grid-template-columns: minmax(280px, 0.78fr) minmax(320px, 1.22fr);
  gap: 18px;
  align-items: stretch;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf9;
  box-shadow: 0 18px 48px rgba(31, 40, 51, 0.08);
}

.place-card__copy {
  display: grid;
  align-content: center;
  justify-items: start;
  padding: 10px;
}

.place-card iframe {
  width: 100%;
  min-height: 280px;
  border: 0;
  border-radius: 6px;
  background: var(--ivory);
}

.button:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(181, 144, 87, 0.32);
  outline-offset: 2px;
}

.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 26px clamp(18px, 5vw, 72px);
  color: #fffaf4;
  background: var(--ink);
}

.footer p {
  margin: 0;
}

.footer a {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 250, 244, 0.38);
  border-radius: 50%;
}

@media (max-width: 820px) {
  .hero {
    min-height: 88svh;
  }

  .hero__veil {
    background:
      linear-gradient(180deg, rgba(255, 250, 244, 0.94), rgba(255, 250, 244, 0.76) 58%, rgba(31, 40, 51, 0.24)),
      linear-gradient(90deg, rgba(255, 250, 244, 0.82), rgba(255, 250, 244, 0.42));
  }

  .nav {
    align-items: flex-start;
    gap: 16px;
  }

  .nav__links {
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px 16px;
  }

  .hero__content {
    margin: 0 auto;
    padding-top: 92px;
  }

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

  .details__grid,
  .details__layout,
  .place-card {
    grid-template-columns: 1fr;
  }

  .photo-strip {
    width: min(100% - 28px, 760px);
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .photo-strip img {
    height: clamp(170px, 32vw, 260px);
    border-width: 5px;
  }

  .details__photo {
    width: min(420px, 100%);
    margin: 0 auto;
  }

  .timeline li {
    grid-template-columns: 88px 1fr;
  }
}

@media (max-width: 520px) {
  .nav {
    position: relative;
    background: rgba(255, 250, 244, 0.76);
    padding: calc(14px + env(safe-area-inset-top)) 16px 14px;
  }

  .hero {
    align-items: start;
  }

  .hero__content {
    padding-top: 34px;
    padding-bottom: 84px;
  }

  h1 {
    font-size: clamp(3rem, 18vw, 5.2rem);
    line-height: 0.92;
  }

  .hero__actions,
  .button {
    width: 100%;
  }

  .countdown {
    width: calc(100% - 20px);
    margin-top: 22px;
    padding: 7px;
    border-left: 0;
    border-right: 0;
  }

  .countdown__inner {
    padding: 12px;
  }

  .countdown__grid {
    gap: 8px;
  }

  .countdown__item {
    min-height: 88px;
    padding: 12px 8px;
  }

  .countdown__item + .countdown__item::before {
    display: none;
  }

  .countdown strong {
    font-size: clamp(1.8rem, 12vw, 3rem);
  }

  .section {
    width: min(100% - 28px, 1120px);
  }

  .photo-strip {
    overflow-x: auto;
    grid-template-columns: repeat(3, 72vw);
    width: 100%;
    padding: 0 14px 12px;
    scroll-snap-type: x proximity;
  }

  .photo-strip img {
    height: 360px;
    scroll-snap-align: center;
  }

  .photo-strip img:nth-child(1),
  .photo-strip img:nth-child(3) {
    transform: none;
  }

  .detail-card {
    padding: 22px;
  }

  .details__photo::before {
    inset: 12px -8px -12px 8px;
  }

  .place-card {
    padding: 12px;
  }

  .place-card iframe {
    min-height: 230px;
  }

  .timeline li {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}
