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

:root {
  --ink: #17253c;
  --ink-soft: #697386;
  --navy: #111b2b;
  --navy-soft: #1d2b43;
  --gold: #c9a76a;
  --gold-light: #ead5aa;
  --ivory: #f7f2e9;
  --paper: #fffdf8;
  --paper-soft: #f2ede3;
  --line: rgba(23, 37, 60, 0.12);
  --shadow: 0 24px 60px rgba(17, 27, 43, 0.12);
  --shadow-soft: 0 16px 36px rgba(17, 27, 43, 0.08);
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(201, 167, 106, 0.08), transparent 26%),
    linear-gradient(180deg, #f8f4ec 0%, #efe9de 100%);
  font-family: Inter, Nunito, "Segoe UI", sans-serif;
  line-height: 1.65;
}

body.modal-open {
  overflow: hidden;
}

button,
input,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
}

h1,
h2,
h3,
blockquote {
  margin: 0;
  font-family: Fraunces, "Playfair Display", Georgia, serif;
  line-height: 1.1;
}

p {
  margin: 0;
}

.hero {
  position: relative;
  min-height: 760px;
  overflow: hidden;
  color: #fff;
  background: var(--navy);
}

.hero__media,
.hero__overlay {
  position: absolute;
  inset: 0;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 32%;
  filter: saturate(0.95) contrast(1.02);
}

.hero__overlay {
  background:
    linear-gradient(90deg, rgba(9, 15, 26, 0.82) 0%, rgba(12, 20, 33, 0.58) 38%, rgba(16, 26, 41, 0.42) 58%, rgba(15, 25, 40, 0.74) 100%),
    linear-gradient(180deg, rgba(10, 16, 27, 0.12), rgba(10, 16, 27, 0.70));
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.18;
  background-image:
    linear-gradient(rgba(255,255,255,0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.045) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, #000, transparent 85%);
}

.hero__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(10px);
  pointer-events: none;
}

.hero__glow--one {
  width: 420px;
  height: 420px;
  top: -210px;
  right: 4%;
  background: radial-gradient(circle, rgba(201, 167, 106, 0.34), transparent 70%);
}

.hero__glow--two {
  width: 340px;
  height: 340px;
  bottom: -180px;
  left: -100px;
  background: radial-gradient(circle, rgba(234, 213, 170, 0.18), transparent 70%);
}

.hero__nav {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  text-decoration: none;
}

.brand__monogram {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border: 1px solid rgba(234, 213, 170, 0.45);
  border-radius: 50%;
  color: var(--gold-light);
  background: rgba(255,255,255,0.04);
  font-family: Fraunces, Georgia, serif;
  font-size: 1.1rem;
  letter-spacing: 0.08em;
}

.hero__nav-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.icon-button,
.nav-link {
  color: rgba(255,255,255,0.82);
  background: none;
  border: 0;
  text-decoration: none;
  cursor: pointer;
}

.icon-button:hover,
.icon-button:focus-visible,
.nav-link:hover,
.nav-link:focus-visible {
  color: var(--gold-light);
}

.hero__content {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: 56px 0 98px;
  display: grid;
  gap: 56px;
  align-items: center;
}

.hero__copy {
  max-width: 650px;
}

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

.hero h1 {
  margin-top: 18px;
  color: #fffdf8;
  font-size: clamp(3.8rem, 9vw, 7.4rem);
  font-weight: 500;
  letter-spacing: -0.04em;
}

.hero h1 span {
  display: inline-block;
  margin: 0 0.08em;
  color: var(--gold);
  font-size: 0.56em;
  font-style: italic;
  font-weight: 400;
  vertical-align: middle;
}

.hero__message {
  max-width: 42rem;
  margin-top: 22px;
  color: rgba(255,255,255,0.72);
  font-family: Fraunces, Georgia, serif;
  font-size: clamp(1.08rem, 2.3vw, 1.42rem);
  font-style: italic;
  line-height: 1.6;
}

.hero__date {
  width: fit-content;
  margin-top: 34px;
  padding: 14px 18px;
  display: grid;
  grid-template-columns: auto auto auto;
  gap: 16px;
  align-items: center;
  border-top: 1px solid rgba(234, 213, 170, 0.34);
  border-bottom: 1px solid rgba(234, 213, 170, 0.34);
  color: rgba(255,255,255,0.82);
}

.hero__date strong {
  color: var(--gold-light);
  font-family: Fraunces, Georgia, serif;
  font-size: 2.3rem;
  font-weight: 500;
}

.hero__actions,
.venue-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 800;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease,
    color 0.2s ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button--gold {
  color: #1a2940;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  box-shadow: 0 12px 30px rgba(201, 167, 106, 0.22);
}

.button--ghost {
  color: #fff;
  border-color: rgba(255,255,255,0.22);
  background: rgba(255,255,255,0.04);
}

.button--dark {
  color: #fff;
  background: var(--navy);
}

.button--wide {
  width: 100%;
}

.hero__art {
  position: relative;
  min-height: 460px;
  display: grid;
  place-items: center;
  padding: clamp(24px, 4vw, 32px);
  border: 1px solid rgba(234, 213, 170, 0.18);
  border-radius: 34px;
  background: rgba(10, 17, 29, 0.22);
  backdrop-filter: blur(4px);
}

.seal {
  position: relative;
  z-index: 2;
  display: flex;
  width: 230px;
  height: 230px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 1px solid rgba(234, 213, 170, 0.48);
  border-radius: 50%;
  color: var(--gold-light);
  background:
    radial-gradient(circle, rgba(255,255,255,0.08), transparent 64%),
    rgba(255,255,255,0.02);
  box-shadow:
    inset 0 0 0 12px rgba(201, 167, 106, 0.05),
    0 24px 70px rgba(0,0,0,0.16);
  font-family: Fraunces, Georgia, serif;
}

.seal::before,
.seal::after {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(234, 213, 170, 0.14);
  border-radius: 50%;
}

.seal::after {
  inset: 34px;
}

.seal__small {
  font-size: 3.2rem;
}

.seal__amp {
  font-size: 2.1rem;
  font-style: italic;
}

.hero__botanical {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  color: rgba(234, 213, 170, 0.44);
}

.hero__art-note {
  position: absolute;
  right: 4%;
  bottom: 7%;
  max-width: 280px;
  color: rgba(255,255,255,0.66);
  font-family: Fraunces, Georgia, serif;
  font-size: 1rem;
  font-style: italic;
  text-align: right;
}

.hero__scroll {
  position: absolute;
  z-index: 2;
  right: 50%;
  bottom: 24px;
  display: flex;
  transform: translateX(50%);
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: rgba(255,255,255,0.52);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-decoration: none;
  text-transform: uppercase;
}

main {
  overflow: hidden;
}

.section {
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto;
  padding: 88px 0;
}

.section--quote {
  padding-top: 96px;
}

.quote-card {
  max-width: 880px;
  margin: 0 auto;
  padding: clamp(36px, 7vw, 72px);
  border: 1px solid var(--line);
  border-radius: 34px;
  background:
    radial-gradient(circle at top right, rgba(201,167,106,0.10), transparent 28%),
    var(--paper);
  box-shadow: var(--shadow);
  text-align: center;
}

.quote-card blockquote {
  margin-top: 18px;
  color: var(--ink);
  font-size: clamp(2rem, 5vw, 3.8rem);
  font-weight: 500;
  letter-spacing: -0.03em;
}

.quote-card__copy {
  max-width: 42rem;
  margin: 24px auto 0;
  color: var(--ink-soft);
  font-size: 1.02rem;
}

.section-heading {
  max-width: 680px;
  margin-bottom: 36px;
}

.section-heading--center {
  margin-inline: auto;
  text-align: center;
}

.section-heading h2 {
  margin-top: 12px;
  color: var(--ink);
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 500;
  letter-spacing: -0.03em;
}

.section-heading > p:not(.eyebrow) {
  margin-top: 16px;
  color: var(--ink-soft);
}

.section--countdown {
  padding-top: 40px;
}

.countdown {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--paper);
  box-shadow: var(--shadow-soft);
}

.countdown__item {
  padding: 30px 18px;
  text-align: center;
}

.countdown__item + .countdown__item {
  border-left: 1px solid var(--line);
}

.countdown__item strong {
  display: block;
  color: var(--navy);
  font-family: Fraunces, Georgia, serif;
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 500;
}

.countdown__item span {
  display: block;
  margin-top: 6px;
  color: var(--ink-soft);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.details-grid {
  display: grid;
  gap: 18px;
}

.detail-card {
  position: relative;
  min-height: 280px;
  padding: 30px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: var(--paper);
  box-shadow: var(--shadow-soft);
}

.detail-card__number {
  position: absolute;
  top: 16px;
  right: 22px;
  color: rgba(23, 37, 60, 0.06);
  font-family: Fraunces, Georgia, serif;
  font-size: 6rem;
  line-height: 1;
}

.detail-card__label {
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.detail-card h3 {
  position: relative;
  z-index: 1;
  margin-top: 18px;
  color: var(--ink);
  font-size: 2rem;
  font-weight: 500;
}

.detail-card p:not(.detail-card__label) {
  position: relative;
  z-index: 1;
  margin-top: 14px;
  color: var(--ink-soft);
}

.detail-card a {
  position: relative;
  z-index: 1;
  display: inline-block;
  margin-top: 22px;
  color: var(--navy);
  font-weight: 800;
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-underline-offset: 5px;
}

.section--timeline {
  width: 100%;
  padding-inline: 18px;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(14, 24, 40, 0.98), rgba(30, 48, 74, 0.96)),
    var(--navy);
}

.section--timeline .section-heading {
  width: min(680px, 100%);
}

.section--timeline h2 {
  color: #fff;
}

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

.timeline__item {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 24px;
  align-items: start;
  padding: 26px 0;
  border-top: 1px solid rgba(255,255,255,0.12);
}

.timeline__item:last-child {
  border-bottom: 1px solid rgba(255,255,255,0.12);
}

.timeline__item time {
  color: var(--gold-light);
  font-family: Fraunces, Georgia, serif;
  font-size: 2.2rem;
}

.timeline__item h3 {
  color: #fff;
  font-size: 1.8rem;
  font-weight: 500;
}

.timeline__item p {
  margin-top: 8px;
  color: rgba(255,255,255,0.62);
}

.venue-card {
  display: grid;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 32px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.venue-card__visual {
  position: relative;
  min-height: 360px;
  overflow: hidden;
  background: linear-gradient(180deg, #17263d 0%, #263f61 100%);
}

.venue-card__visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11, 18, 31, 0.10), rgba(11, 18, 31, 0.16));
}

.venue-card__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.venue-card__content {
  padding: clamp(30px, 6vw, 58px);
}

.venue-card__content h2,
.special-card h2,
.rsvp-card h2,
.closing-card h2 {
  margin-top: 12px;
  color: var(--ink);
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 500;
  letter-spacing: -0.03em;
}

.venue-card__content > p:not(.eyebrow) {
  margin-top: 18px;
  color: var(--ink-soft);
}

.special-card {
  display: grid;
  gap: 28px;
  align-items: center;
  padding: clamp(34px, 6vw, 66px);
  border: 1px solid rgba(201, 167, 106, 0.28);
  border-radius: 32px;
  background:
    radial-gradient(circle at top right, rgba(201,167,106,0.12), transparent 30%),
    linear-gradient(145deg, #fffdf8, #f3ede2);
  box-shadow: var(--shadow-soft);
}

.special-card > p {
  color: var(--ink-soft);
  font-family: Fraunces, Georgia, serif;
  font-size: 1.18rem;
  font-style: italic;
}

.rsvp-card {
  display: grid;
  gap: 42px;
  padding: clamp(30px, 6vw, 62px);
  border-radius: 34px;
  color: #fff;
  background:
    radial-gradient(circle at 90% 10%, rgba(201,167,106,0.18), transparent 26%),
    linear-gradient(135deg, #152238, #203552);
  box-shadow: var(--shadow);
}

.rsvp-card h2 {
  color: #fff;
}

.rsvp-card__intro > p:not(.eyebrow) {
  margin-top: 18px;
  color: rgba(255,255,255,0.62);
}

.rsvp-form {
  display: grid;
  gap: 22px;
}

.rsvp-form label,
.rsvp-form legend {
  color: rgba(255,255,255,0.82);
  font-size: 0.9rem;
  font-weight: 800;
}

.rsvp-form input[type="text"],
.rsvp-form textarea {
  width: 100%;
  margin-top: 10px;
  padding: 14px 16px;
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 16px;
  color: #fff;
  background: rgba(255,255,255,0.06);
  outline: none;
}

.rsvp-form input[type="text"]:focus,
.rsvp-form textarea:focus {
  border-color: rgba(234, 213, 170, 0.62);
  box-shadow: 0 0 0 4px rgba(201,167,106,0.08);
}

.rsvp-form textarea {
  resize: vertical;
}

.rsvp-form fieldset {
  margin: 0;
  padding: 0;
  border: 0;
}

.choice-grid {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}

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

.choice-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.choice-card span {
  display: block;
  padding: 14px 16px;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 16px;
  color: rgba(255,255,255,0.78);
  background: rgba(255,255,255,0.04);
  text-align: center;
}

.choice-card input:checked + span {
  border-color: rgba(234, 213, 170, 0.62);
  color: var(--gold-light);
  background: rgba(201,167,106,0.10);
}

.section--closing {
  padding-bottom: 72px;
}

.closing-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 34px;
  box-shadow: var(--shadow);
  text-align: center;
  min-height: 520px;
  color: #fff;
  background: var(--navy);
}

.closing-card__media,
.closing-card__overlay,
.closing-card__content {
  position: absolute;
  inset: 0;
}

.closing-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.94) contrast(1.02);
}

.closing-card__overlay {
  background:
    linear-gradient(180deg, rgba(10, 17, 29, 0.26) 0%, rgba(10, 17, 29, 0.48) 35%, rgba(10, 17, 29, 0.82) 100%),
    radial-gradient(circle at center, rgba(201,167,106,0.12), transparent 34%);
}

.closing-card__content {
  z-index: 1;
  display: grid;
  place-content: center;
  padding: clamp(50px, 9vw, 100px) 24px;
}

.closing-card h2 {
  color: #fffdf8;
}

.closing-card p:not(.eyebrow) {
  margin-top: 18px;
  color: rgba(255,255,255,0.78);
}

.closing-card__signature {
  margin-top: 34px;
  color: var(--gold-light);
  font-family: Fraunces, Georgia, serif;
  font-size: 3.4rem;
  font-style: italic;
}

.footer {
  padding: 0 18px 34px;
  color: var(--ink-soft);
  font-size: 0.9rem;
  text-align: center;
}

.footer a {
  color: var(--ink);
}

.toast {
  position: fixed;
  z-index: 30;
  right: 18px;
  bottom: 18px;
  max-width: min(360px, calc(100% - 36px));
  padding: 14px 18px;
  border-radius: 14px;
  color: #fff;
  background: var(--navy);
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 18px;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.modal.is-open {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 17, 29, 0.68);
  backdrop-filter: blur(6px);
}

.modal__panel {
  position: relative;
  z-index: 1;
  width: min(520px, 100%);
  padding: 34px;
  border-radius: 26px;
  background: var(--paper);
  box-shadow: 0 32px 80px rgba(0,0,0,0.22);
}

.modal__panel h2 {
  margin-top: 10px;
  color: var(--ink);
  font-size: 2.4rem;
  font-weight: 500;
}

.modal__panel > p:not(.eyebrow) {
  margin: 16px 0 24px;
  color: var(--ink-soft);
}

.modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: var(--ink);
  background: var(--paper-soft);
  font-size: 1.4rem;
  cursor: pointer;
}

@media (min-width: 860px) {
  .hero__content {
    grid-template-columns: minmax(0, 1.12fr) minmax(360px, 0.88fr);
  }

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

  .venue-card {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .special-card {
    grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  }

  .rsvp-card {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  }

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

@media (max-width: 859px) {
  .hero {
    min-height: auto;
  }

  .hero__content {
    padding-top: 26px;
  }

  .hero__overlay {
    background:
      linear-gradient(180deg, rgba(9, 15, 26, 0.74) 0%, rgba(12, 20, 33, 0.52) 42%, rgba(10, 16, 27, 0.84) 100%);
  }

  .hero__copy {
    text-align: center;
  }

  .hero__date,
  .hero__actions {
    margin-inline: auto;
  }

  .hero__art {
    min-height: 420px;
  }

  .hero__media img {
    object-position: center 26%;
  }

  .hero__art-note {
    right: 50%;
    bottom: 0;
    transform: translateX(50%);
    text-align: center;
  }
}

@media (max-width: 620px) {
  .hero__nav {
    align-items: flex-start;
  }

  .hero__nav-actions {
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
  }

  .hero h1 {
    font-size: clamp(3.2rem, 18vw, 5rem);
  }

  .hero__date {
    grid-template-columns: 1fr;
    gap: 4px;
    text-align: center;
  }

  .hero__date strong {
    font-size: 2.8rem;
  }

  .hero__actions,
  .venue-card__actions {
    flex-direction: column;
  }

  .hero__actions .button,
  .venue-card__actions .button {
    width: 100%;
  }

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

  .countdown__item:nth-child(3) {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .countdown__item:nth-child(4) {
    border-top: 1px solid var(--line);
  }

  .timeline__item {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .section {
    padding: 68px 0;
  }

  .closing-card {
    min-height: 460px;
  }
}

