@import url("https://fonts.googleapis.com/css2?family=Great+Vibes&family=Playfair+Display:ital,wght@0,400;0,500;1,400&family=DM+Sans:wght@300;400;500&display=swap");

:root {
  --font-script: "Great Vibes", cursive;
  --font-serif: "Playfair Display", serif;
  --font-sans: "DM Sans", sans-serif;
  --ivory: #f7f3eb;
  --ivory-deep: #ede6d6;
  --olive: #7d9a5f;
  --olive-light: #b8cca0;
  --olive-deep: #4e6535;
  --olive-bg: #6b8a50;
  --blush: #e8c4bc;
  --gold: #c9a44e;
  --text: #3a2f28;
  --text-muted: #7a6a5c;

  /* Ornate frame colors */
  --frame-olive: #6b8a50;
  --frame-olive-light: #8ba86a;
  --frame-olive-dark: #4e6535;
  --frame-gold: #c9a44e;
  --frame-gold-light: #e6c97a;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background: var(--ivory);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::-webkit-scrollbar {
  display: none;
}

* {
  scrollbar-width: none;
}

.hidden {
  display: none !important;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes pulse-gold {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(201, 164, 78, 0.4);
  }
  50% {
    box-shadow: 0 0 0 12px rgba(201, 164, 78, 0);
  }
}

.fade-up {
  animation: fadeUp 0.9s ease both;
}

.gold-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
}

.gold-divider__line {
  flex: 1;
  height: 1px;
}

.gold-divider__line--left {
  background: linear-gradient(to right, transparent, rgba(201, 164, 78, 0.53));
}

.gold-divider__line--right {
  background: linear-gradient(to left, transparent, rgba(201, 164, 78, 0.53));
}

.gold-divider__star {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.section-label {
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--olive);
}

.section-label--light {
  color: var(--olive-light);
}

.section-label--gold {
  color: var(--gold);
}

/* Cover */

#cover {
  min-height: 100dvh;
  background: linear-gradient(160deg, #ede6d6 0%, #f7f3eb 40%, #d8e6c8 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.cover-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.cover-blob {
  position: absolute;
  border-radius: 50%;
}

.cover-blob--1 {
  top: -80px;
  left: -60px;
  width: 360px;
  height: 360px;
  border-radius: 60% 40% 70% 30%;
  background: radial-gradient(circle, rgba(184, 204, 160, 0.35) 0%, transparent 70%);
}

.cover-blob--2 {
  bottom: -60px;
  right: -40px;
  width: 300px;
  height: 300px;
  border-radius: 40% 60% 30% 70%;
  background: radial-gradient(circle, rgba(232, 196, 188, 0.4) 0%, transparent 70%);
}

.cover-blob--3 {
  top: 30%;
  right: -30px;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(201, 164, 78, 0.12) 0%, transparent 70%);
}

.leaf-sprig {
  position: absolute;
  width: 180px;
  opacity: 0.65;
  pointer-events: none;
}

.leaf-sprig--tl {
  top: -10px;
  left: -10px;
  transform: rotate(-20deg);
}

.leaf-sprig--tr {
  top: -10px;
  right: -10px;
  transform: rotate(20deg) scaleX(-1);
}

.leaf-sprig--bl {
  bottom: -10px;
  left: -10px;
  width: 150px;
  opacity: 0.5;
  transform: rotate(160deg) scaleX(-1);
}

.leaf-sprig--br {
  bottom: -10px;
  right: -10px;
  width: 150px;
  opacity: 0.5;
  transform: rotate(-160deg);
}

.cover-content {
  text-align: center;
  position: relative;
  z-index: 2;
  padding: 0 32px;
  animation: fadeUp 1s ease both;
}

.cover-content--framed {
  padding: 72px 56px 64px;
  max-width: 360px;
  width: calc(100% - 48px);
  margin: 0 auto;
}

.cover-kicker {
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--olive);
  margin-bottom: 20px;
}

.cover-title {
  font-family: var(--font-script);
  font-size: clamp(52px, 14vw, 82px);
  color: var(--text);
  line-height: 1.1;
  margin-bottom: 8px;
  text-shadow: 0 2px 12px rgba(201, 164, 78, 0.15);
}

.cover-subtitle {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--text-muted);
  font-size: 16px;
  margin-bottom: 40px;
}

.btn {
  font-family: var(--font-sans);
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border: none;
  border-radius: 100px;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s, color 0.2s, border-color 0.2s, opacity 0.2s;
}

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

.btn-primary {
  color: var(--ivory);
  background: linear-gradient(135deg, #6b8a50, #7d9a5f);
  padding: 14px 40px;
  box-shadow: 0 6px 30px rgba(107, 138, 80, 0.35);
}

.btn-outline {
  color: #5c6b3a;
  background: transparent;
  border: 1px solid rgba(107, 138, 80, 0.55);
  padding: 11px 36px;
  font-size: 11px;
}

.btn-outline:hover {
  background: #8ba86a;
  color: var(--ivory);
  border-color: #8ba86a;
}

.btn-outline-light {
  color: var(--olive-light);
  background: transparent;
  border: 1px solid rgba(184, 204, 160, 0.4);
  padding: 10px 28px;
  font-size: 12px;
  letter-spacing: 0.15em;
}

.btn-outline-light:hover {
  border-color: rgba(184, 204, 160, 0.9);
  color: var(--ivory);
}

.btn-map {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--text);
  background: rgba(201, 164, 78, 0.9);
  padding: 12px 32px;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  margin-bottom: 28px;
}

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

.cover-note {
  font-size: 11px;
  color: #b8a89a;
  margin-top: 16px;
  letter-spacing: 0.05em;
}

.cover-dots {
  position: absolute;
  bottom: 32px;
  display: flex;
  gap: 6px;
  z-index: 2;
}

.cover-dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #c8d4a0;
  opacity: 0.7;
}

.cover-dots span.active {
  background: var(--olive);
}

/* Invite */

#invite {
  min-height: 100dvh;
  background: var(--ivory);
}

.section {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 80px 24px 70px;
}

.section--hero {
  background: linear-gradient(170deg, #eae3d0 0%, #f5f0e6 55%, #e6edd8 100%);
  padding: 96px 36px 80px;
}

.section--details {
  background: linear-gradient(170deg, #5c6b3a 0%, #6b8a50 50%, #7d9a5f 100%);
}

.section--rsvp {
  background: linear-gradient(170deg, #f0e8d8 0%, #f7f3eb 50%, #f5ddd8 100%);
}

.ornate-frame {
  position: absolute;
  inset: 12px 8px;
  width: calc(100% - 16px);
  height: calc(100% - 24px);
  object-fit: fill;
  pointer-events: none;
  z-index: 1;
}

.ornate-frame--cover {
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.92;
}

.ornate-frame--rsvp {
  opacity: 0.88;
}

.hero-glow {
  position: absolute;
  inset: 48px 32px;
  pointer-events: none;
  z-index: 1;
  background: radial-gradient(ellipse 58% 52% at 50% 48%, rgba(252, 249, 242, 0.72) 0%, transparent 75%);
  border-radius: 8px;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 280px;
  width: 100%;
  padding: 0 8px;
}

.hero-age {
  font-family: var(--font-script);
  font-size: clamp(100px, 30vw, 130px);
  color: var(--text);
  line-height: 1;
  display: block;
  text-shadow: 0 3px 20px rgba(201, 164, 78, 0.16);
}

.hero-event {
  font-family: var(--font-serif);
  font-size: 20px;
  color: var(--text);
  letter-spacing: 0.02em;
  margin-bottom: 22px;
}

.hero-meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 22px;
}

.hero-meta p {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 14px;
  color: var(--text-muted);
}

.hero-meta .dot {
  color: var(--gold);
  margin-right: 8px;
  font-size: 9px;
}

.dresscode {
  margin-bottom: 32px;
}

.dresscode-label {
  font-size: 9px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: #a8956a;
  margin-bottom: 10px;
}

.dresscode-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.dresscode-dot {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1.5px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.08);
}

.details-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 520px;
  width: 100%;
}

.details-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.details-overlay::before,
.details-overlay::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 120px;
}

.details-overlay::before {
  top: 0;
  background: linear-gradient(to bottom, rgba(237, 230, 214, 0.15), transparent);
}

.details-overlay::after {
  bottom: 0;
  background: linear-gradient(to top, rgba(237, 230, 214, 0.15), transparent);
}

.details-dots {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 28px 28px;
}

.venue-photo {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 28px;
  border: 3px solid rgba(201, 164, 78, 0.5);
  box-shadow: 0 0 0 8px rgba(255, 255, 255, 0.08);
}

.venue-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.details-title {
  font-family: var(--font-script);
  font-size: clamp(42px, 12vw, 66px);
  color: var(--ivory);
  margin-bottom: 6px;
}

.details-address {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 15px;
  color: #c8d8b0;
  margin-bottom: 24px;
}

.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 32px;
  margin-bottom: 36px;
  text-align: center;
}

.info-grid__label {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 4px;
}

.info-grid__value {
  font-family: var(--font-serif);
  font-size: 14px;
  color: var(--ivory);
  line-height: 1.5;
  white-space: pre-line;
}

.rsvp-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 360px;
  text-align: center;
  padding: 48px 24px 32px;
}

.rsvp-title {
  font-family: var(--font-script);
  font-size: clamp(52px, 14vw, 72px);
  color: var(--text);
  line-height: 1.1;
  margin-bottom: 8px;
}

.rsvp-subtitle {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 28px;
}

.rsvp-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  text-align: left;
}

.form-label {
  display: block;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--olive);
  margin-bottom: 8px;
}

.form-input {
  width: 100%;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.6);
  border: 1.5px solid rgba(140, 168, 100, 0.35);
  border-radius: 12px;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 15px;
  color: var(--text);
  outline: none;
  backdrop-filter: blur(8px);
  transition: border-color 0.2s;
}

.form-input:focus {
  border-color: #8ba86a;
}

.attendance-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.attendance-btn {
  padding: 14px 12px;
  border-radius: 12px;
  border: 1.5px solid rgba(140, 168, 100, 0.3);
  background: rgba(255, 255, 255, 0.5);
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 13px;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s;
}

.attendance-btn.selected-yes {
  border: 2px solid var(--olive);
  background: rgba(125, 154, 95, 0.15);
  color: var(--olive-deep);
}

.attendance-btn.selected-no {
  border: 2px solid #c9928a;
  background: rgba(201, 146, 138, 0.15);
  color: #9a5c54;
}

.btn-submit {
  padding: 15px 24px;
  border-radius: 100px;
  color: var(--ivory);
  background: linear-gradient(135deg, #6b8a50, #7d9a5f);
  font-size: 12px;
  letter-spacing: 0.18em;
  box-shadow: 0 6px 24px rgba(107, 138, 80, 0.3);
}

.btn-submit:disabled {
  background: rgba(180, 180, 180, 0.3);
  color: #b0a898;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

.form-message {
  font-size: 13px;
  text-align: center;
  min-height: 20px;
}

.form-message.error {
  color: #9a5c54;
}

.form-message.success {
  color: var(--olive-deep);
}

.rsvp-footer {
  font-size: 11px;
  color: #b8a89a;
  margin-top: 24px;
  letter-spacing: 0.05em;
}

.rsvp-success-icon {
  font-size: 52px;
  margin-bottom: 16px;
}

.rsvp-success-title {
  font-family: var(--font-script);
  font-size: 56px;
  color: var(--text);
  margin-bottom: 8px;
}

.rsvp-success-text {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.7;
}

.hp-field {
  position: absolute;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
}

/* Music player */

.music-player {
  position: fixed;
  bottom: 28px;
  right: 24px;
  z-index: 50;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  background: var(--ivory);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

.music-player.playing {
  animation: pulse-gold 2s infinite;
}

.music-player__disc {
  animation: none;
}

.music-player.playing .music-player__disc {
  animation: spin 4s linear infinite;
}

.mb-5 {
  margin-bottom: 20px;
}

.mb-6 {
  margin-bottom: 24px;
}

.mb-8 {
  margin-bottom: 32px;
}

.mt-4 {
  margin-top: 16px;
}

@media (max-width: 480px) {
  .section--hero {
    padding: 88px 20px 72px;
  }

  .cover-content--framed {
    padding: 64px 40px 56px;
    width: calc(100% - 32px);
  }

  .ornate-frame {
    inset: 8px 4px;
    width: calc(100% - 8px);
    height: calc(100% - 16px);
  }

  .hero-glow {
    inset: 36px 20px;
  }

  .hero-content {
    max-width: 250px;
  }

  .info-grid {
    gap: 16px 20px;
  }
}
