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

:root {
  --cream: #fffcee;
  --cream-alt: #f2edd6;
  --sage: #7a9468;
  --sage-lt: #c2d4ba;
  --sage-dk: #4e6641;
  --gold: #c49a46;
  --ink: #242018;
  --ink-mid: #4e4a3b;
  --ink-muted: #66604b;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--cream);
  color: var(--ink);
  font-family: "Nunito", sans-serif;
  font-weight: 400;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

.container {
  max-width: 920px;
  margin: 0 auto;
}

.eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 1.25rem;
}

.section-title {
  font-family: "Cormorant Garamond", serif;
  font-weight: 300;
  font-style: italic;
  font-size: clamp(2.9rem, 5.5vw, 4.6rem);
  line-height: 1.1;
  color: var(--ink);
  margin-bottom: 3rem;
}

.divider {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.divider-line {
  flex: 1;
  height: 1px;
  background: var(--sage-lt);
}

.divider svg {
  color: var(--sage);
  flex-shrink: 0;
}

.photo-slot {
  background-color: var(--sage-lt);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}

.reveal.in {
  opacity: 1;
  transform: none;
}

.reveal-d1 {
  transition-delay: 0.12s;
}

.reveal-d2 {
  transition-delay: 0.24s;
}

.reveal-d3 {
  transition-delay: 0.36s;
}

.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6rem 2rem 5rem;
  background: var(--cream);
  position: relative;
}

.hero-eyebrow {
  font-size: 0.82rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  font-weight: 400;
  color: var(--ink-muted);
  margin-bottom: 2.75rem;
  animation: fadeUp 1s ease 0.1s both;
}

.hero h1 {
  font-family: "Cormorant Garamond", serif;
  font-weight: 300;
  font-style: italic;
  font-size: clamp(5.5rem, 16vw, 12.5rem);
  line-height: 0.95;
  color: var(--ink);
  margin-bottom: 2.75rem;
  animation: fadeUp 1.1s ease 0.28s both;
}

.hero-meta {
  font-size: 0.85rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  font-weight: 400;
  color: var(--ink-muted);
  animation: fadeUp 1s ease 0.5s both;
}

.hero-meta .location {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.4rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: none;
  color: var(--sage);
  display: block;
  margin-bottom: 0.5rem;
}

.hero .divider {
  max-width: 200px;
  margin: 2rem auto 0;
  animation: fadeUp 1s ease 0.65s both;
}

.hero-dedication {
  max-width: 680px;
  margin: 1.25rem auto 0;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.2rem, 2.3vw, 1.7rem);
  font-style: italic;
  font-weight: 400;
  line-height: 1.4;
  color: var(--ink-mid);
  animation: fadeUp 1s ease 0.58s both;
}

.hero-scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 0;
  right: 0;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  width: max-content;
  text-align: center;
  animation: fadeUp 1s ease 1.3s both;
}

.hero-scroll span {
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 400;
  color: var(--ink-muted);
}

.hero-scroll-bar {
  width: 1px;
  height: 38px;
  background: linear-gradient(to bottom, var(--sage-lt), transparent);
  animation: scrollPulse 2.5s ease infinite;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes scrollPulse {
  0%,
  100% {
    opacity: 0.4;
  }

  50% {
    opacity: 1;
  }
}

.photo-panorama {
  height: 58vh;
  min-height: 300px;
  width: 100%;
}

.details {
  padding: 6rem 2rem;
  background: var(--cream-alt);
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--sage-lt);
  border: 1px solid var(--sage-lt);
  margin-bottom: 1.4rem;
}

.detail-card {
  background: var(--cream-alt);
  padding: 2.75rem 2.25rem;
}

.detail-icon {
  width: 26px;
  height: 26px;
  color: var(--sage);
  margin-bottom: 1.4rem;
  display: block;
}

.card-label {
  font-size: 0.74rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 0.75rem;
}

.card-main {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.65rem;
  font-weight: 400;
  line-height: 1.3;
  color: var(--ink);
  margin-bottom: 0.35rem;
}

.card-sub {
  font-size: 1rem;
  color: var(--ink-mid);
  line-height: 1.6;
}

.card-link {
  display: inline-block;
  margin-top: 1.1rem;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  color: var(--sage-dk);
  border-bottom: 1px solid var(--sage-lt);
  padding-bottom: 0.1rem;
  transition: color 0.2s, border-color 0.2s;
}

.card-link:hover {
  color: var(--sage);
  border-color: var(--sage);
}

.practical-notes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  max-width: 620px;
  background: var(--sage-lt);
  border: 1px solid var(--sage-lt);
}

.practical-note {
  background: var(--cream-alt);
  padding: 1.5rem 1.5rem;
}

.practical-icon {
  width: 22px;
  height: 22px;
  color: var(--sage);
  margin-bottom: 0.8rem;
  display: block;
}

.photo-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  grid-template-rows: repeat(2, 38vh);
  min-height: 380px;
  gap: 4px;
}

.photo-grid .photo-slot:first-child {
  grid-row: 1 / 3;
}

.photo-grid .photo-slot:nth-child(2) {
  background-position: center 78%;
}

.schedule {
  padding: 6rem 2rem;
  background: var(--cream);
}

.timeline {
  position: relative;
  padding-left: 1rem;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.2rem;
  bottom: 1.2rem;
  width: 1px;
  background: var(--sage-lt);
}

.tl-item {
  display: flex;
  gap: 2.25rem;
  align-items: center;
  padding: 1.5rem 0 1.5rem 2.25rem;
  position: relative;
}

.tl-item::before {
  content: "";
  position: absolute;
  left: -4px;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cream);
  border: 1.5px solid var(--sage-lt);
}

.tl-item.key::before {
  background: var(--sage);
  border-color: var(--sage);
  width: 10px;
  height: 10px;
  left: -5px;
}

.tl-time {
  font-size: 0.9rem;
  line-height: 1.1;
  letter-spacing: 0.06em;
  color: var(--gold);
  min-width: 68px;
  flex-shrink: 0;
}

.tl-event-name {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.85rem;
  font-weight: 400;
  line-height: 1.2;
  color: var(--ink);
}

.tl-item.key .tl-event-name {
  font-style: italic;
  color: var(--sage-dk);
}

.tl-note {
  font-size: 0.92rem;
  color: var(--ink-muted);
  margin-top: 0.2rem;
}

.explore {
  padding: 6rem 2rem;
  background: var(--cream-alt);
}

.explore-intro {
  font-size: 1.02rem;
  color: var(--ink-mid);
  max-width: 720px;
  line-height: 1.7;
  margin: -1.5rem 0 2.8rem;
}

.explore-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1px;
  background: var(--sage-lt);
  border: 1px solid var(--sage-lt);
}

.explore-card {
  background: var(--cream-alt);
  padding: 2rem 1.65rem;
  display: flex;
  flex-direction: column;
}

.explore-card h3 {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.6rem;
  font-weight: 400;
  line-height: 1.25;
  color: var(--ink);
  margin-bottom: 0.6rem;
}

.explore-card p {
  font-size: 0.95rem;
  color: var(--ink-mid);
  line-height: 1.6;
  margin-bottom: 0.8rem;
}

.explore-card .card-link {
  margin-top: auto;
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  white-space: nowrap;
}

.gifts {
  padding: 6rem 2rem;
  text-align: center;
  background: var(--cream);
}

.gifts-note {
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-size: clamp(1.35rem, 2.8vw, 1.7rem);
  color: var(--ink);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.7;
}

.photo-kitchen {
  padding: 2.5rem 1.5rem 1.1rem;
  background: var(--cream);
}

.photo-kitchen-frame {
  width: min(100%, 1120px);
  margin: 0 auto;
  position: relative;
}

.photo-kitchen-image {
  display: block;
  width: 100%;
  height: clamp(330px, 58vh, 640px);
  object-fit: cover;
  object-position: 50% 68%;
  border: 1px solid var(--sage-lt);
}

.photo-kitchen-label {
  position: absolute;
  bottom: 1.3rem;
  left: 1.5rem;
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 300;
  color: rgba(255, 255, 255, 0.88);
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.18);
  pointer-events: none;
}

.rsvp {
  padding: 6rem 2rem;
  background: var(--cream-alt);
}

.rsvp-intro {
  font-size: 1.05rem;
  color: var(--ink-mid);
  margin: -1.5rem 0 3.5rem;
  max-width: 540px;
  line-height: 1.75;
}

.invite-check-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: -0.25rem;
}

.btn-check {
  border: 1px solid var(--sage-lt);
  background: transparent;
  color: var(--sage-dk);
  font-family: "Nunito", sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.85rem 1.2rem;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}

.btn-check:hover {
  border-color: var(--sage);
  color: var(--sage);
}

.btn-check:disabled {
  opacity: 0.6;
  cursor: default;
}

.menu-wrap {
  display: none;
  margin-top: 0.8rem;
}

.menu-wrap.in {
  display: block;
}

.friday-wrap {
  display: none;
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--sage-lt);
}

.friday-wrap.in {
  display: block;
}

.stay-info {
  display: none;
  background: var(--cream);
  border: 1px solid var(--sage-lt);
  padding: 1.75rem 2rem;
  margin-bottom: 2.5rem;
  max-width: 840px;
}

.stay-info.in {
  display: block;
}

.stay-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0.55rem 0;
  border-bottom: 1px solid rgba(194, 212, 186, 0.4);
  font-size: 0.97rem;
}

.stay-row:last-of-type {
  border-bottom: none;
}

.stay-row-label {
  color: var(--sage-dk);
  font-weight: 600;
}

.stay-note {
  font-size: 0.88rem;
  color: var(--ink-muted);
  margin-top: 1rem;
  font-style: italic;
}

.field {
  margin-bottom: 2.5rem;
}

.field-label {
  display: block;
  font-size: 0.76rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 0.8rem;
}

.field-label-hint {
  opacity: 0.45;
  letter-spacing: 0;
  text-transform: none;
}

.menu-section-label {
  margin-bottom: 1.5rem;
}

.field-input {
  display: block;
  width: 100%;
  max-width: 840px;
  padding: 1rem 1.2rem;
  background: var(--cream);
  border: 1px solid var(--sage-lt);
  font-family: "Nunito", sans-serif;
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--ink);
  border-radius: 0;
  appearance: none;
  outline: none;
  transition: border-color 0.2s;
}

.field-input:focus {
  border-color: var(--sage);
}

.field-input::placeholder {
  color: var(--ink-muted);
}

.menu-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1rem;
  max-width: 840px;
  margin-top: 0.5rem;
}

.menu-card {
  display: block;
  cursor: pointer;
}

.menu-card input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

.menu-card-body {
  border: 1px solid var(--sage-lt);
  background: var(--cream);
  padding: 1.85rem 1.6rem;
  transition: border-color 0.22s, background 0.22s, transform 0.22s, box-shadow 0.22s;
  height: 100%;
}

.menu-card:hover .menu-card-body {
  border-color: var(--sage);
  transform: translateY(-3px);
  box-shadow: 0 10px 32px rgba(78, 102, 65, 0.12);
}

.menu-card input:checked + .menu-card-body {
  background: var(--sage-dk);
  border-color: var(--sage-dk);
}

.menu-badge {
  display: inline-block;
  font-size: 0.72rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--sage);
  border: 1px solid var(--sage-lt);
  padding: 0.22rem 0.6rem;
  margin-bottom: 1.1rem;
  transition: color 0.22s, border-color 0.22s;
}

.menu-card input:checked + .menu-card-body .menu-badge {
  color: rgba(194, 212, 186, 0.7);
  border-color: rgba(194, 212, 186, 0.3);
}

.menu-name {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.55rem;
  font-weight: 400;
  line-height: 1.3;
  color: var(--ink);
  margin-bottom: 0.65rem;
  transition: color 0.22s;
}

.menu-card input:checked + .menu-card-body .menu-name {
  color: #fff;
}

.menu-desc {
  font-size: 0.95rem;
  color: var(--ink-mid);
  line-height: 1.65;
  transition: color 0.22s;
}

.menu-card input:checked + .menu-card-body .menu-desc {
  color: rgba(255, 255, 255, 0.68);
}

.btn-submit {
  display: inline-block;
  margin-top: 2.75rem;
  padding: 1rem 3.25rem;
  background: var(--sage);
  color: #fff;
  font-family: "Nunito", sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: background 0.22s;
}

.btn-submit:hover {
  background: var(--sage-dk);
}

.btn-submit:disabled {
  opacity: 0.55;
  cursor: default;
}

#success {
  display: none;
  padding: 5rem 0 3rem;
  text-align: center;
}

#success .divider {
  max-width: 200px;
  margin: 0 auto 2.5rem;
}

#success h2 {
  font-family: "Cormorant Garamond", serif;
  font-weight: 300;
  font-style: italic;
  font-size: clamp(2.5rem, 5.5vw, 3.8rem);
  color: var(--sage-dk);
  margin-bottom: 0.9rem;
}

#success p {
  font-size: 1.1rem;
  color: var(--ink-mid);
}

.modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  align-items: center;
  justify-content: center;
}

.modal.open {
  display: flex;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(36, 32, 24, 0.45);
}

.modal-card {
  position: relative;
  background: var(--cream);
  border: 1px solid var(--sage-lt);
  padding: 2.5rem 2.25rem 2rem;
  max-width: 420px;
  width: calc(100% - 3rem);
  text-align: center;
}

.modal-text {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--ink);
  margin-bottom: 2rem;
}

.modal-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
}

.modal-btn {
  padding: 0.8rem 1.8rem;
  font-family: "Nunito", sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border: 1px solid var(--sage-lt);
  background: transparent;
  color: var(--sage-dk);
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.modal-btn:hover {
  border-color: var(--sage);
  color: var(--sage);
}

.modal-btn.primary {
  background: var(--sage);
  border-color: var(--sage);
  color: #fff;
}

.modal-btn.primary:hover {
  background: var(--sage-dk);
  border-color: var(--sage-dk);
}

footer {
  padding: 4rem 2rem;
  text-align: center;
  background: var(--cream);
}

footer .divider {
  max-width: 220px;
  margin: 0 auto 2rem;
}

footer p {
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-mid);
}

@media (max-width: 720px) {
  section {
    padding: 5rem 1.5rem;
  }

  .detail-grid,
  .practical-notes {
    grid-template-columns: 1fr;
  }

  .photo-grid {
    grid-template-columns: 1fr;
    grid-template-rows: 50vw 40vw 40vw;
    min-height: unset;
  }

  .photo-grid .photo-slot:first-child {
    grid-row: auto;
  }

  .menu-cards {
    grid-template-columns: 1fr;
  }

  .tl-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
    padding: 1.2rem 0 1.2rem 2rem;
  }

  .tl-item::before {
    top: calc(1.2rem + 0.5rem);
  }

  .invite-check-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .btn-check {
    width: 100%;
    max-width: 320px;
  }

  .photo-kitchen {
    padding: 2.6rem 1rem;
  }

  .photo-kitchen-frame {
    width: 100%;
  }

  .photo-kitchen-image {
    height: min(64vh, 500px);
    object-position: 50% 62%;
  }

  .photo-kitchen-label {
    font-size: 1.9rem;
    left: 1.1rem;
    bottom: 1rem;
  }
}
