:root {
  --bg: #f7f1eb;
  --bg-soft: #fbf7f3;
  --surface-strong: #fffdf9;
  --text: #2f2a28;
  --muted: #7d7066;
  --line: rgba(123, 101, 86, 0.24);
  --accent: #c58d71;
  --accent-deep: #996d56;
  --shadow: 0 22px 60px rgba(110, 85, 69, 0.12);
  --radius-md: 22px;
  --radius-sm: 16px;
  --container: min(1180px, calc(100vw - 48px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at top, rgba(226, 198, 181, 0.35), transparent 34%),
    linear-gradient(180deg, #fdfbf8 0%, var(--bg) 45%, #f8f2ec 100%);
  font-family: "Manrope", sans-serif;
}

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

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

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

.container {
  width: var(--container);
  margin: 0 auto;
}

.section {
  padding: 92px 0;
}

.section-heading {
  max-width: 700px;
  margin: 0 auto 44px;
  text-align: center;
  padding: 0 24px;
}

.section-heading h2,
.hero h1,
.quote-box blockquote,
.story-card h3,
.location-card h3,
.summary-card h3,
.rsvp-overlay h2 {
  font-family: "Cormorant Garamond", serif;
}

.section-heading h2 {
  margin: 8px 0 12px;
  font-size: clamp(2.6rem, 4vw, 4.1rem);
  font-weight: 600;
}

.section-heading p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.floral-mark,
.eyebrow {
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent);
}

.floral-mark {
  display: inline-block;
  font-size: 1.2rem;
}

.hero {
  position: relative;
  min-height: 100svh;
  background:
    linear-gradient(180deg, rgba(255, 252, 248, 0.1), rgba(255, 252, 248, 0.2)),
    url("../images/hero/hero-main.jpg") center/cover no-repeat;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at center, rgba(255, 251, 245, 0.05), rgba(255, 251, 245, 0.42)),
    linear-gradient(180deg, rgba(247, 241, 235, 0.06), rgba(247, 241, 235, 0.52));
}

.topbar,
.hero-content {
  position: relative;
  z-index: 1;
}

.topbar {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 26px 0;
}

.nav-links {
  display: flex;
  gap: 24px;
  color: var(--muted);
}

.hero-content {
  min-height: calc(100svh - 88px);
  display: grid;
  place-items: center;
  text-align: center;
}

.hero h1 {
  margin: 12px 0 8px;
  font-size: clamp(3.8rem, 7vw, 6.6rem);
  line-height: 0.92;
  font-weight: 600;
  text-shadow: 0 6px 18px rgba(255, 248, 242, 0.15);
  white-space: nowrap;
}

.divider {
  width: 180px;
  height: 1px;
  margin: 16px auto 12px;
  background: rgba(47, 42, 40, 0.28);
}

.hero-subline {
  margin: 0 0 12px;
  color: rgba(83, 70, 61, 0.7);
  letter-spacing: 0.36em;
  text-transform: uppercase;
  font-size: 0.82rem;
}

.hero-subline span {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 18px;
}

.hero-subline span::before,
.hero-subline span::after {
  content: "";
  width: 92px;
  height: 1px;
  background: rgba(83, 70, 61, 0.38);
}

.hero-date {
  margin: 0 0 28px;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2rem, 4vw, 3rem);
}

.countdown {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: nowrap;
  gap: 18px;
  width: min(100%, 560px);
  margin: 0 auto 28px;
}

.countdown-item {
  display: grid;
  gap: 4px;
  justify-items: center;
  min-width: 86px;
}

.countdown-item strong {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2.2rem, 4vw, 3.7rem);
  line-height: 1;
  color: var(--text-primary);
}

.countdown-item span {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.78rem;
  color: rgba(83, 70, 61, 0.78);
}

.ghost-button,
.primary-button {
  border-radius: 999px;
  padding: 14px 24px;
  border: 1px solid rgba(153, 109, 86, 0.28);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ghost-button {
  display: inline-flex;
  background: rgba(255, 252, 248, 0.34);
  backdrop-filter: blur(10px);
  color: var(--accent-deep);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.72rem;
}

.ghost-button:hover,
.primary-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(153, 109, 86, 0.18);
}

.story-grid {
  display: grid;
  grid-template-columns: 1fr minmax(280px, 380px) 1fr;
  gap: 28px;
  align-items: center;
}

.story-card {
  padding: 24px;
}

.story-card.align-right {
  text-align: right;
}

.story-card h3 {
  margin: 0 0 12px;
  font-size: 3rem;
}

.story-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
  font-size: 1.06rem;
}

.story-photo-frame {
  position: relative;
}

.story-photo-frame::before {
  content: "&";
  position: absolute;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -52%);
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(12rem, 24vw, 18rem);
  color: rgba(159, 147, 140, 0.22);
  z-index: 0;
}

.story-photo-frame img {
  position: relative;
  z-index: 1;
  border-radius: 50%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  box-shadow: var(--shadow);
}

.quote-band {
  padding: 40px 24px 0;
  background: linear-gradient(180deg, transparent 0, transparent 50%, rgba(227, 216, 207, 0.35) 50%, rgba(227, 216, 207, 0.35) 100%);
}

.quote-box {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
  padding: 42px 32px;
  text-align: center;
  background: rgba(255, 252, 248, 0.68);
  border: 1px solid var(--line);
}

.quote-icon {
  position: absolute;
  top: -18px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 5rem;
  color: #6f7379;
  line-height: 1;
}

.quote-box blockquote {
  margin: 0 0 12px;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.2;
}

.quote-author {
  margin: 0;
  color: var(--muted);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.details-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px 34px;
}

.detail-item {
  text-align: center;
  padding: 18px 12px;
  position: relative;
}

.detail-icon {
  display: inline-grid;
  place-items: center;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  margin-bottom: 12px;
  background: #6f7379;
  color: #fff;
  font-size: 0;
  position: relative;
}

.detail-item::after {
  content: "";
  display: block;
  width: 82px;
  height: 1px;
  margin: 22px auto 0;
  background: rgba(47, 42, 40, 0.75);
}

.detail-icon::before,
.location-symbol::before {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 1.75rem;
}

.details-grid .detail-item:nth-child(1) .detail-icon::before {
  content: "🚌";
}

.details-grid .detail-item:nth-child(2) .detail-icon::before {
  content: "👑";
}

.details-grid .detail-item:nth-child(3) .detail-icon::before {
  content: "🚗";
}

.details-grid .detail-item:nth-child(4) .detail-icon::before {
  content: "📷";
}

.details-grid .detail-item:nth-child(5) .detail-icon::before {
  content: "🎂";
}

.details-grid .detail-item:nth-child(6) .detail-icon::before {
  content: "🍸";
}

.detail-item h3,
.location-card h3 {
  margin: 0 0 10px;
  font-size: 2rem;
  font-weight: 500;
}

.detail-item p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

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

.gallery-grid img {
  border-radius: 6px;
  aspect-ratio: 0.8 / 1;
  object-fit: cover;
  box-shadow: var(--shadow);
}

.location-shell {
  border: 1px solid rgba(82, 75, 70, 0.22);
  background: rgba(255, 255, 255, 0.58);
}

.location-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.location-card {
  min-height: 270px;
  padding: 34px 20px 24px;
  text-align: center;
  border-right: 1px solid rgba(82, 75, 70, 0.22);
  color: inherit;
}

.location-card:last-child {
  border-right: 0;
}

.location-link-card {
  display: block;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.location-link-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(110, 85, 69, 0.12);
  background: rgba(255, 253, 249, 0.45);
}

.location-card.muted {
  opacity: 0.42;
}

.location-symbol {
  display: inline-grid;
  place-items: center;
  width: 74px;
  height: 74px;
  border-radius: 50%;
  margin-bottom: 14px;
  background: rgba(233, 222, 214, 0.6);
  font-size: 0;
  position: relative;
}

.location-card:nth-child(1) .location-symbol::before {
  content: "🕒";
}

.location-card:nth-child(2) .location-symbol::before {
  content: "⛪";
}

.location-card:nth-child(3) .location-symbol::before {
  content: "🥂";
}

.location-card p {
  margin: 6px 0;
  color: #59514c;
  line-height: 1.55;
}

.map-wrapper {
  min-height: 410px;
}

.map-wrapper iframe {
  width: 100%;
  height: 100%;
  min-height: 410px;
  border: 0;
  display: block;
}

.location-video,
.location-photo {
  width: 100%;
  height: 100%;
  min-height: 410px;
  display: block;
}

.location-video {
  object-fit: cover;
  background: #000;
}

.location-photo {
  object-fit: cover;
  object-position: center;
}

.rsvp-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(360px, 460px);
  background: rgba(255, 255, 255, 0.45);
  box-shadow: var(--shadow);
}

.rsvp-visual {
  min-height: 700px;
  background:
    linear-gradient(90deg, rgba(27, 24, 20, 0.34), rgba(27, 24, 20, 0.18)),
    url("../images/hero/rsvp-cover.jpg") center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px;
}

.rsvp-overlay {
  max-width: 520px;
  color: #fff;
  text-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
}

.rsvp-overlay h2 {
  margin: 10px 0 16px;
  font-size: clamp(2.6rem, 5vw, 4.5rem);
}

.rsvp-overlay p {
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.9);
}

.rsvp-panel {
  background: rgba(255, 253, 249, 0.9);
  border: 1px solid rgba(82, 75, 70, 0.22);
  padding: 30px;
}

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

.form-intro {
  display: grid;
  gap: 10px;
}

.form-title {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-size: 2.1rem;
}

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

.rsvp-form span {
  font-weight: 600;
}

.rsvp-form input,
.rsvp-form select,
.rsvp-form textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid rgba(112, 99, 91, 0.18);
  background: rgba(255, 255, 255, 0.88);
  color: var(--text);
}

.rsvp-form textarea {
  resize: vertical;
}

.two-columns {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.conditional-block {
  display: grid;
  gap: 12px;
}

.checkbox-row {
  display: flex !important;
  align-items: center;
  gap: 12px;
}

.checkbox-row input {
  width: 18px;
  height: 18px;
}

.primary-button {
  cursor: pointer;
  border: 0;
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  color: #fff;
}

.form-note,
.form-status {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.form-status[data-state="error"] {
  color: #9e3e3e;
}

.form-status[data-state="success"] {
  color: #4f795d;
}

.summary-card {
  margin-top: 24px;
  padding: 22px;
  border-radius: var(--radius-md);
  background: var(--surface-strong);
  border: 1px solid rgba(112, 99, 91, 0.18);
}

.summary-pill {
  display: inline-flex;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(197, 141, 113, 0.24);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.72rem;
  color: var(--accent);
}

.summary-card h3 {
  margin: 14px 0 18px;
  font-size: 2rem;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.summary-grid div,
.summary-note {
  padding: 16px;
  border-radius: var(--radius-sm);
  background: var(--bg-soft);
}

.summary-label {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.88rem;
}

.summary-note {
  margin-top: 16px;
}

.summary-note p {
  margin: 0;
  line-height: 1.75;
}

.hidden {
  display: none;
}

.site-footer {
  padding: 22px 0 40px;
}

.footer-row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: var(--muted);
  font-size: 0.92rem;
}

.footer-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.admin-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(153, 109, 86, 0.28);
  background: rgba(255, 252, 248, 0.8);
  color: var(--accent-deep);
}

@media (max-width: 980px) {
  .nav-links {
    display: none;
  }

  .story-grid,
  .details-grid,
  .gallery-grid,
  .location-cards,
  .rsvp-layout {
    grid-template-columns: 1fr;
  }

  .story-card.align-right,
  .story-card {
    text-align: center;
  }

  .location-card {
    border-right: 0;
    border-bottom: 1px solid rgba(82, 75, 70, 0.22);
  }

  .location-card:last-child {
    border-bottom: 0;
  }

  .rsvp-visual {
    min-height: 420px;
  }
}

@media (max-width: 720px) {
  .section {
    padding: 72px 0;
  }

  .topbar {
    padding: 20px 0;
  }

  .two-columns,
  .summary-grid,
  .footer-row {
    display: grid;
    grid-template-columns: 1fr;
  }

  .hero h1 {
    font-size: 3.5rem;
    white-space: normal;
  }

  .hero-subline span::before,
  .hero-subline span::after {
    width: 42px;
  }

  .hero-date {
    font-size: 2rem;
  }

  .countdown {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px 18px;
    width: min(100%, 360px);
  }

  .rsvp-panel,
  .quote-box {
    padding: 22px;
  }

  .container {
    width: min(100vw - 28px, 1180px);
  }
}
