:root {
  --ivory: #fbf7ef;
  --paper: #fffdf8;
  --champagne: #efe0c8;
  --sage: #748069;
  --sage-deep: #46513e;
  --gold: #b78a45;
  --ink: #2c221b;
  --muted: #735f50;
  --line: rgba(183, 138, 69, 0.26);
  --shadow: 0 22px 60px rgba(64, 43, 25, 0.14);
  --font-title: "Cormorant Garamond", Georgia, serif;
  --font-body: "Inter", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 12%, rgba(116, 128, 105, 0.16), transparent 28%),
    linear-gradient(135deg, #fbf7ef 0%, #f7ecda 54%, #eef1e8 100%);
  font-family: var(--font-body);
  line-height: 1.65;
  overflow-x: hidden;
}

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

button,
input,
select,
textarea {
  font: inherit;
}

.container {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.intro-screen {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  color: var(--ink);
  background: linear-gradient(135deg, rgba(255, 253, 248, 0.98), rgba(235, 226, 206, 0.96));
  font-family: var(--font-title);
  font-size: clamp(2.8rem, 9vw, 6.5rem);
  line-height: 1;
  transition: opacity 650ms ease, visibility 650ms ease;
}

.intro-screen strong {
  color: var(--gold);
  font-weight: 500;
}

.intro-screen span,
.intro-screen strong {
  animation: introRise 1200ms ease both;
}

.intro-screen span:last-child {
  animation-delay: 160ms;
}

.intro-screen.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

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

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero {
  position: relative;
  min-height: 92svh;
  isolation: isolate;
  display: grid;
  align-items: center;
  padding: 104px 0 80px;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(250, 246, 237, 0.97) 0%, rgba(250, 246, 237, 0.86) 43%, rgba(250, 246, 237, 0.28) 74%),
    linear-gradient(0deg, rgba(44, 34, 27, 0.08), rgba(44, 34, 27, 0.08)),
    url("assets/wedding-hero.jpg") right center / auto 112% no-repeat;
  border-bottom: 1px solid var(--line);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 16px;
  z-index: -1;
  border: 1px solid var(--line);
  border-radius: 8px;
  pointer-events: none;
}

.topbar {
  position: absolute;
  top: 24px;
  left: 50%;
  z-index: 5;
  width: min(1120px, calc(100% - 40px));
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--ink);
}

.brand {
  font-family: var(--font-title);
  font-size: 1.35rem;
  font-weight: 700;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px;
  border: 1px solid rgba(183, 138, 69, 0.22);
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.74);
  backdrop-filter: blur(12px);
}

.nav-links a {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.nav-links a:hover {
  color: var(--ink);
  background: rgba(183, 138, 69, 0.12);
}

.hero__content {
  width: min(710px, calc(100% - 40px));
  margin-left: max(20px, calc((100vw - 1120px) / 2));
}

.hero__mobile-portrait {
  display: none;
}

.eyebrow,
.section-kicker {
  margin: 0 0 16px;
  color: var(--gold);
  font-size: 0.79rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  max-width: 680px;
  margin-bottom: 22px;
  font-family: var(--font-title);
  font-size: clamp(4.4rem, 10vw, 9.4rem);
  font-weight: 700;
  line-height: 0.88;
}

h1 span {
  color: var(--gold);
  font-weight: 500;
}

.hero__lead {
  max-width: 600px;
  margin-bottom: 32px;
  color: var(--muted);
  font-size: clamp(1rem, 1.6vw, 1.2rem);
}

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

.button {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 26px;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 800;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

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

.button--primary {
  color: #fffdf8;
  background: linear-gradient(135deg, #b78943, #7b874f);
  box-shadow: 0 16px 32px rgba(83, 77, 45, 0.22);
}

.button--ghost {
  color: var(--ink);
  border-color: var(--line);
  background: rgba(255, 253, 248, 0.78);
}

.section {
  padding: 92px 0;
}

.section h2 {
  margin-bottom: 18px;
  font-family: var(--font-title);
  font-size: clamp(2.5rem, 5vw, 4.6rem);
  line-height: 1;
}

.invite-section,
.hosts-section,
.final-section {
  background: rgba(255, 253, 248, 0.62);
}

.invite-inner,
.hosts-inner,
.notice-inner,
.final-inner {
  max-width: 820px;
  text-align: center;
}

.invite-inner p,
.notice-inner p,
.final-inner p {
  color: var(--muted);
  font-size: 1.08rem;
}

.date-layout,
.place-layout,
.rsvp-layout {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 24px;
  align-items: center;
}

.date-copy h2 {
  margin-bottom: 10px;
}

.date-copy p {
  color: var(--muted);
  font-size: 1.1rem;
}

.calendar-panel,
.countdown-panel,
.map-card,
.rsvp-form,
.response-box {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.78);
  box-shadow: var(--shadow);
}

.calendar-panel {
  padding: 24px;
}

.calendar-top {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.calendar-top span {
  font-family: var(--font-title);
  font-size: 2.6rem;
  font-weight: 700;
  line-height: 1;
}

.calendar-top strong {
  color: var(--sage-deep);
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  text-align: center;
}

.calendar-grid--weekdays {
  margin-bottom: 8px;
  color: var(--sage);
  font-size: 0.77rem;
  font-weight: 800;
}

.calendar-grid--days {
  gap: 7px;
}

.calendar-grid--days span {
  min-height: 40px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: var(--muted);
  font-weight: 700;
}

.calendar-grid--days .empty {
  opacity: 0;
}

.calendar-grid--days .event-day {
  color: #fffdf8;
  background: linear-gradient(135deg, var(--gold), var(--sage));
  box-shadow: 0 12px 24px rgba(101, 93, 52, 0.22);
}

.countdown-panel {
  padding: 28px;
}

.countdown-panel h3 {
  margin-bottom: 18px;
  font-family: var(--font-title);
  font-size: 2.3rem;
  line-height: 1;
}

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

.countdown div {
  min-height: 102px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 2px;
  border: 1px solid rgba(116, 128, 105, 0.18);
  border-radius: 8px;
  background: rgba(246, 241, 232, 0.74);
}

.countdown strong {
  font-family: var(--font-title);
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1;
}

.countdown span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.place-section {
  background:
    linear-gradient(135deg, rgba(255, 253, 248, 0.62), rgba(232, 237, 224, 0.74));
}

.place-layout {
  grid-template-columns: 1fr 420px;
}

.place-layout p {
  color: var(--muted);
  font-size: 1.08rem;
}

.map-card {
  min-height: 300px;
  display: grid;
  place-items: center;
  align-content: center;
  padding: 32px;
  text-align: center;
  background:
    linear-gradient(135deg, rgba(255, 253, 248, 0.86), rgba(232, 237, 224, 0.82)),
    radial-gradient(circle at 50% 20%, rgba(183, 138, 69, 0.18), transparent 44%);
}

.map-card span {
  color: var(--gold);
  font-weight: 900;
}

.map-card strong {
  display: block;
  margin: 6px 0;
  font-family: var(--font-title);
  font-size: 3.3rem;
  line-height: 1;
}

.map-card p {
  margin-bottom: 22px;
}

.map-card a {
  color: var(--sage-deep);
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.memorial {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid rgba(44, 34, 27, 0.34);
  border-radius: 999px;
}

.hosts-inner p {
  margin-bottom: 0;
  font-family: var(--font-title);
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 1.1;
}

.notice-section {
  background: var(--sage-deep);
  color: #fffdf8;
}

.notice-section .section-kicker,
.notice-section h2,
.notice-section p {
  color: #fffdf8;
}

.rsvp-layout {
  align-items: start;
}

.rsvp-copy p {
  color: var(--muted);
}

.rsvp-form {
  display: grid;
  gap: 16px;
  padding: 24px;
}

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

.rsvp-form span {
  color: var(--sage-deep);
  font-size: 0.88rem;
  font-weight: 800;
}

.rsvp-form input,
.rsvp-form select,
.rsvp-form textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  color: var(--ink);
  border: 1px solid rgba(116, 128, 105, 0.26);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.94);
  outline: none;
}

.rsvp-form textarea {
  resize: vertical;
}

.rsvp-form input:focus,
.rsvp-form select:focus,
.rsvp-form textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(183, 138, 69, 0.12);
}

.rsvp-form button:disabled {
  cursor: wait;
  opacity: 0.72;
}

.response-box {
  grid-column: 2;
  padding: 18px 20px;
  color: var(--sage-deep);
  font-weight: 800;
}

.response-box p {
  margin: 0;
}

.final-section {
  padding-bottom: 110px;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 22px;
  z-index: 20;
  max-width: min(520px, calc(100% - 40px));
  transform: translate(-50%, 18px);
  padding: 12px 18px;
  color: #fffdf8;
  background: rgba(44, 34, 27, 0.88);
  border-radius: 999px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease, transform 220ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 700ms ease, transform 700ms ease;
}

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

@media (max-width: 980px) {
  .hero {
    min-height: 96svh;
    padding-top: 96px;
    align-items: start;
    background:
      linear-gradient(180deg, rgba(250, 246, 237, 0.98) 0%, rgba(250, 246, 237, 0.82) 46%, rgba(250, 246, 237, 0.18) 100%),
      linear-gradient(0deg, rgba(44, 34, 27, 0.08), rgba(44, 34, 27, 0.08)),
      url("assets/wedding-hero.jpg") center bottom / 100% auto no-repeat;
  }

  .hero__content {
    width: min(680px, calc(100% - 40px));
    margin: 0 auto;
    text-align: center;
  }

  .hero__actions {
    justify-content: center;
  }

  .date-layout,
  .place-layout,
  .rsvp-layout,
  .response-box {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .container {
    width: min(100% - 28px, 1120px);
  }

  .intro-screen {
    gap: 10px;
    font-size: clamp(2.4rem, 13vw, 4.6rem);
  }

  .topbar {
    width: calc(100% - 28px);
    top: 14px;
  }

  .brand {
    font-size: 1.15rem;
  }

  .nav-links {
    display: none;
  }

  .hero {
    min-height: auto;
    display: block;
    padding: 74px 0 18px;
    background:
      linear-gradient(180deg, rgba(250, 246, 237, 0.99), rgba(248, 240, 226, 0.94));
  }

  .hero::before {
    inset: 10px;
  }

  h1 {
    margin-bottom: 14px;
    font-size: clamp(3.05rem, 14vw, 4.25rem);
    line-height: 0.9;
  }

  .hero__lead {
    margin-bottom: 20px;
    font-size: 0.94rem;
    line-height: 1.55;
  }

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

  .hero__mobile-portrait {
    display: block;
    width: min(308px, calc(100% - 56px));
    height: clamp(230px, 37svh, 310px);
    margin: 20px auto 0;
    border: 1px solid var(--line);
    border-radius: 8px;
    background:
      linear-gradient(180deg, rgba(250, 246, 237, 0.14), rgba(250, 246, 237, 0.34)),
      url("assets/wedding-hero.jpg") center 39% / cover no-repeat;
    box-shadow: 0 16px 40px rgba(64, 43, 25, 0.14);
  }

  .section {
    padding: 68px 0;
  }

  .section h2 {
    font-size: clamp(2.35rem, 12vw, 3.4rem);
  }

  .calendar-panel,
  .countdown-panel,
  .map-card,
  .rsvp-form {
    padding: 18px;
  }

  .calendar-top span {
    font-size: 2rem;
  }

  .calendar-grid--days {
    gap: 5px;
  }

  .calendar-grid--days span {
    min-height: 34px;
    font-size: 0.83rem;
  }

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

  .countdown div {
    min-height: 88px;
  }

  .map-card {
    min-height: 240px;
  }

  .map-card strong {
    font-size: 2.6rem;
  }

  .hosts-inner p {
    font-size: 2.35rem;
  }
}
