:root {
  --ink: #2f302b;
  --muted: #6e7168;
  --paper: #fbf8f1;
  --soft: #eee5d7;
  --sage: #6b7a67;
  --sage-dark: #435140;
  --rose: #b66f6b;
  --gold: #c49a4c;
  --white: #fffdf8;
  --shadow: 0 24px 60px rgba(47, 48, 43, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

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

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

button,
input,
textarea {
  font: inherit;
}

.topbar {
  position: fixed;
  z-index: 20;
  top: 16px;
  left: 50%;
  width: min(calc(100% - 24px), 1060px);
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 10px 12px 10px 18px;
  border: 1px solid rgba(255, 253, 248, 0.56);
  border-radius: 999px;
  background: rgba(47, 48, 43, 0.56);
  color: var(--white);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.16);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.18rem;
  font-weight: 700;
}

.nav {
  display: flex;
  gap: 18px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav a {
  opacity: 0.84;
}

.nav a:hover {
  opacity: 1;
}

.icon-link,
.footer a {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  background: var(--white);
  color: var(--sage-dark);
}

.hero {
  position: relative;
  min-height: 94vh;
  display: grid;
  align-items: end;
  overflow: hidden;
  padding: 140px 24px 92px;
}

.hero-photo,
.hero-overlay {
  position: absolute;
  inset: 0;
  height: 100%;
  object-fit: cover;
}

.hero-photo {
  animation: slowZoom 18s ease-in-out infinite alternate;
}

.hero-overlay {
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.28), rgba(0, 0, 0, 0.08) 38%, rgba(26, 29, 24, 0.72)),
    radial-gradient(circle at 75% 20%, rgba(196, 154, 76, 0.25), transparent 36%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(100%, 940px);
  margin: 0 auto;
  color: var(--white);
  text-align: center;
}

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

.hero .eyebrow {
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.85), 0 0 24px rgba(0, 0, 0, 0.5);
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 700;
  line-height: 1;
}

h1 {
  font-size: clamp(4.2rem, 12vw, 9.8rem);
  text-wrap: balance;
}

.hero h1 {
  font-family: "Imperial Script", cursive;
  font-weight: 400;
  font-size: clamp(6rem, 16vw, 13rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 12px 0 24px;
}

.hero h1 .name-group {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.hero h1 .name-group > span:first-child {
  line-height: 0.85;
}

.hero h1 .full-name {
  font-family: "Poppins", sans-serif;
  font-size: 11px;
  font-weight: 300;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--white);
  margin-top: 2px;
  margin-right: 8%;
  line-height: 1.2;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
}

.hero h1 .ampersand {
  font-size: 0.6em;
  color: var(--gold);
  margin: 12px 0;
  line-height: 1;
}

h2 {
  font-size: clamp(2.2rem, 5vw, 4rem);
}

h3 {
  font-size: 1.55rem;
}

.hero-date {
  margin: 20px auto 0;
  max-width: 620px;
  font-size: clamp(1rem, 2.4vw, 1.35rem);
}

.hero-actions,
.gift-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 34px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 13px 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 800;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn svg,
.icon-link svg,
.quick-list svg,
.detail-panel>svg,
.footer svg {
  width: 20px;
  height: 20px;
  stroke-width: 1.8;
}

.btn.primary {
  background: var(--rose);
  color: var(--white);
  box-shadow: 0 14px 30px rgba(182, 111, 107, 0.34);
}

.btn.ghost {
  border-color: rgba(255, 253, 248, 0.6);
  background: rgba(255, 253, 248, 0.12);
  color: var(--white);
}

.btn.secondary {
  background: var(--sage-dark);
  color: var(--white);
}

.btn.outline {
  border-color: rgba(67, 81, 64, 0.28);
  background: var(--white);
  color: var(--sage-dark);
}

.scroll-cue {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: 24px;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  color: var(--white);
  transform: translateX(-50%);
  animation: float 1.8s ease-in-out infinite;
}

.band {
  padding: 86px 24px;
  background: var(--soft);
}

.section-heading {
  width: min(100%, 760px);
  margin: 0 auto 38px;
  text-align: center;
}

.section-heading p:not(.eyebrow) {
  margin: 16px auto 0;
  max-width: 620px;
  color: var(--muted);
}

.timer {
  display: grid;
  grid-template-columns: repeat(4, minmax(120px, 1fr));
  gap: 14px;
  width: min(100%, 820px);
  margin: 0 auto;
}

.timer div {
  min-height: 132px;
  display: grid;
  place-items: center;
  padding: 18px;
  border: 1px solid rgba(67, 81, 64, 0.12);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 16px 40px rgba(47, 48, 43, 0.08);
}

.timer strong {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(2.8rem, 8vw, 5.4rem);
  line-height: 0.9;
}

.timer span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(280px, 0.75fr);
  gap: clamp(28px, 5vw, 76px);
  width: min(100% - 48px, 1120px);
  margin: 0 auto;
  padding: 96px 0;
  align-items: center;
}

.copy p:not(.eyebrow) {
  max-width: 620px;
  color: var(--muted);
}

.parents {
  display: grid;
  gap: 16px;
  margin-top: 28px;
}

.parents div {
  padding-left: 18px;
  border-left: 3px solid var(--gold);
}

.parents span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.parents strong {
  display: block;
  margin-top: 4px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.5rem;
}

.photo-frame {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.photo-frame img {
  height: min(64vh, 650px);
  object-fit: cover;
}

.photo-frame.tall img {
  height: min(72vh, 720px);
}

.timeline {
  display: grid;
  grid-template-columns: 45% 45%;
  justify-content: center;
  gap: 5%;
  width: min(100%, 1120px);
  margin: 0 auto;
}

.event {
  position: relative;
  min-height: 310px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  border-radius: 8px;
  background: var(--ink);
  color: var(--white);
  box-shadow: 0 18px 42px rgba(47, 48, 43, 0.16);
}

.event img,
.event::after {
  position: absolute;
  inset: 0;
}

.event img {
  height: 100%;
  object-fit: cover;
  opacity: 0.72;
  transition: transform 500ms ease, opacity 500ms ease;
}

.event::after {
  content: "";
  background: linear-gradient(180deg, transparent, rgba(20, 23, 19, 0.84));
}

.event:hover img {
  opacity: 0.9;
  transform: scale(1.06);
}

.event-content {
  position: relative;
  z-index: 1;
  padding: 22px;
}

.event-time {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  color: #f3d593;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.event p {
  margin: 8px 0 18px;
}

.details-grid {
  display: flex;
  justify-content: center;
  gap: 18px;
  width: min(100% - 48px, 1120px);
  margin: 0 auto;
  padding: 96px 0 42px;
}

.detail-panel {
  width: 100%;
  max-width: 500px;
  min-height: 320px;
  padding: clamp(24px, 4vw, 42px);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 18px 42px rgba(47, 48, 43, 0.08);
}

.detail-panel>svg {
  width: 34px;
  height: 34px;
  margin-bottom: 24px;
  color: var(--rose);
}

.detail-panel p {
  color: var(--muted);
}

.weather-box {
  display: grid;
  gap: 8px;
  margin-top: 20px;
  padding: 18px;
  border-radius: 8px;
  background: var(--paper);
}

.weather-box strong {
  font-size: 2rem;
}

.gallery {
  padding: 54px 0 96px;
}

.photo-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr 0.8fr;
  gap: 14px;
  width: min(100% - 48px, 1120px);
  margin: 0 auto;
}

.photo-grid img {
  height: 430px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 16px 36px rgba(47, 48, 43, 0.1);
}

.photo-grid img:nth-child(2) {
  height: 500px;
  margin-top: 34px;
}

.quick-list {
  display: grid;
  gap: 12px;
  margin-top: 26px;
}

.quick-list a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 16px;
  border: 1px solid rgba(67, 81, 64, 0.12);
  border-radius: 8px;
  background: var(--white);
  font-weight: 800;
}

.rsvp-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  width: min(100%, 820px);
  margin: 0 auto;
  padding: clamp(18px, 4vw, 34px);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.rsvp-form label,
.attendance {
  display: grid;
  gap: 8px;
  color: var(--sage-dark);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.rsvp-form label:nth-child(4),
.attendance,
.rsvp-form button,
.form-note {
  grid-column: 1 / -1;
}

input,
textarea {
  width: 100%;
  border: 1px solid rgba(67, 81, 64, 0.22);
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
  padding: 13px 14px;
  outline: none;
}

input:focus,
textarea:focus {
  border-color: var(--sage);
  box-shadow: 0 0 0 3px rgba(107, 122, 103, 0.12);
}

.attendance {
  grid-template-columns: 1fr auto auto;
  align-items: center;
  padding: 14px;
  border-radius: 8px;
  background: var(--paper);
}

.attendance label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.attendance input {
  width: auto;
}

.form-note {
  min-height: 24px;
  margin: 0;
  color: var(--sage-dark);
  text-align: center;
}

.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 26px 24px;
  background: var(--sage-dark);
  color: var(--white);
}

[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 700ms ease, transform 700ms ease;
}

[data-reveal].visible {
  opacity: 1;
  transform: translateY(0);
}

.topbar[data-reveal] {
  transform: translate(-50%, 24px);
}

.topbar[data-reveal].visible {
  transform: translate(-50%, 0);
}

@keyframes slowZoom {
  from {
    transform: scale(1);
  }

  to {
    transform: scale(1.08);
  }
}

@keyframes float {

  0%,
  100% {
    transform: translate(-50%, 0);
  }

  50% {
    transform: translate(-50%, 8px);
  }
}

@media (max-width: 860px) {
  .topbar {
    top: 10px;
    border-radius: 18px;
  }

  .nav {
    display: none;
  }

  .hero {
    min-height: 92vh;
    padding: 116px 18px 78px;
  }

  .hero-photo {
    object-position: 60% 50%;
    transform-origin: 60% 50%;
  }

  .timer,
  .timeline,
  .details-grid,
  .photo-grid,
  .rsvp-form,
  .split {
    grid-template-columns: 1fr;
  }

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

  .split,
  .details-grid,
  .photo-grid {
    width: min(100% - 32px, 620px);
  }

  .photo-grid img,
  .photo-grid img:nth-child(2),
  .photo-frame img,
  .photo-frame.tall img {
    height: 380px;
    margin-top: 0;
  }

  .attendance {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  h1 {
    font-size: clamp(3.4rem, 18vw, 5.4rem);
  }

  .hero-actions,
  .gift-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .timer {
    gap: 10px;
  }

  .timer div {
    min-height: 112px;
    padding: 12px;
  }

  .band {
    padding: 70px 16px;
  }
}