
:root {
  --bg: #f7f1eb;
  --bg-deep: #efe4d8;
  --card: rgba(255, 255, 255, 0.84);
  --card-strong: rgba(255, 255, 255, 0.92);
  --glass-dark: rgba(44, 33, 29, 0.88);
  --text: #2f2520;
  --muted: #6c5d55;
  --accent: #b48a69;
  --accent-dark: #8c654a;
  --accent-soft: rgba(180, 138, 105, 0.12);
  --gold: #c7a86a;
  --line: rgba(104, 76, 59, 0.15);
  --shadow: 0 24px 70px rgba(84, 56, 44, 0.12);
  --shadow-strong: 0 30px 80px rgba(84, 56, 44, 0.16);
  --radius-xl: 38px;
  --radius-lg: 28px;
  --radius-md: 22px;
  --radius-sm: 16px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  line-height: 1.65;
  color: var(--text);
  background: linear-gradient(180deg, #fbf7f3 0%, var(--bg) 40%, var(--bg-deep) 100%);
  overflow-x: hidden;
}

a {
  color: inherit;
}

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

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

.shell {
  width: min(1180px, calc(100% - 28px));
  margin-inline: auto;
}

.page-bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(10px);
}

.orb-one {
  width: 38rem;
  height: 38rem;
  top: -12rem;
  left: -10rem;
  background: radial-gradient(circle, rgba(199, 168, 106, 0.18), transparent 70%);
}

.orb-two {
  width: 34rem;
  height: 34rem;
  right: -8rem;
  bottom: -10rem;
  background: radial-gradient(circle, rgba(180, 138, 105, 0.16), transparent 72%);
}

.grain {
  position: absolute;
  inset: 0;
  opacity: 0.05;
  background-image:
    linear-gradient(rgba(255,255,255,.35) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.35) 1px, transparent 1px);
  background-size: 16px 16px;
}

.glass,
.section-card,
.timeline-card,
.venue-card,
.qr-card,
.hero-card,
.music-dock {
  background: linear-gradient(180deg, rgba(255,255,255,0.9), rgba(255,255,255,0.75));
  border: 1px solid rgba(255,255,255,0.76);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.glass-dark {
  background: linear-gradient(180deg, rgba(50,38,33,0.94), rgba(35,26,23,0.92));
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: var(--shadow-strong);
  color: #f8f2ed;
}

.hero {
  padding: 20px 0 10px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 18px;
  border-radius: 999px;
  position: sticky;
  top: 14px;
  z-index: 20;
}

.brand,
.hero h1,
.section-heading h2,
.timeline-card h3,
.venue-card h3,
.qr-card h3,
.music-card h3,
.footer-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 600;
  line-height: 1;
  margin: 0;
}

.brand {
  text-decoration: none;
  font-size: 1.4rem;
  letter-spacing: .06em;
}

.nav-menu {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px 10px;
}

.nav-link,
.text-link {
  text-decoration: none;
  color: var(--accent-dark);
  font-weight: 600;
}

.nav-link {
  padding: 8px 12px;
  border-radius: 999px;
}

.nav-link:hover,
.text-link:hover {
  background: var(--accent-soft);
}

.hero-card {
  margin-top: 18px;
  border-radius: var(--radius-xl);
  padding: clamp(20px, 3vw, 36px);
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(320px, 470px) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 52px);
  align-items: center;
}

.hero-media {
  position: relative;
}

.photo-frame {
  position: relative;
  border-radius: 32px;
  padding: 14px;
  background: linear-gradient(150deg, rgba(255,255,255,0.95), rgba(248,241,233,0.68));
  box-shadow: var(--shadow-strong);
}

.photo-frame::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 32px;
  padding: 1px;
  background: linear-gradient(135deg, rgba(199,168,106,0.5), rgba(255,255,255,0.25), rgba(180,138,105,0.32));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}

.hero-photo {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 24px;
  box-shadow: 0 22px 42px rgba(84, 56, 44, 0.16);
}

.photo-animate .hero-photo {
  animation: floatPhoto 8s ease-in-out infinite;
}

.photo-badge {
  position: absolute;
  left: 18px;
  bottom: 18px;
  background: rgba(44, 33, 29, 0.82);
  color: #f8f1eb;
  padding: 12px 14px;
  border-radius: 18px;
  box-shadow: 0 16px 28px rgba(0,0,0,0.18);
}

.photo-badge-line {
  display: block;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.55rem;
  line-height: 1;
}

.photo-badge-line--small {
  margin-top: 8px;
  font-size: .82rem;
  font-family: 'Inter', system-ui, sans-serif;
  text-transform: uppercase;
  letter-spacing: .14em;
}

.hero-content {
  text-align: left;
}

.eyebrow,
.section-kicker,
.date,
.section-heading .section-kicker,
.timeline-day,
.timeline-time,
.music-label,
.footer-small {
  text-transform: uppercase;
  letter-spacing: .16em;
}

.eyebrow,
.section-kicker,
.timeline-day,
.music-label {
  color: var(--accent-dark);
  font-size: .82rem;
  margin-bottom: 10px;
}

.names-stack {
  display: grid;
  justify-items: start;
  gap: 6px;
  margin-bottom: 12px;
}

.name-line,
.ampersand {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(3.3rem, 7vw, 5.7rem);
  line-height: .9;
}

.ampersand {
  color: var(--gold);
  justify-self: center;
  width: 100%;
}

.date.single-line {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: .92rem;
}

.event-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}

.event-pill {
  display: inline-flex;
  align-items: center;
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--accent-soft);
  border: 1px solid rgba(180,138,105,0.18);
  color: var(--accent-dark);
  font-size: .95rem;
  font-weight: 600;
}

.intro,
.section-heading p,
.timeline-card p,
.venue-card p,
.qr-card p,
.form-note,
.form-status,
.footer-small,
.music-copy p {
  color: var(--muted);
}

.intro {
  margin: 0;
  max-width: 60ch;
  font-size: 1.04rem;
}

.hero-actions,
.card-actions,
.contact-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-actions {
  margin-top: 28px;
}

.btn,
.contact-chip,
.music-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 999px;
  padding: 14px 22px;
  border: 1px solid transparent;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform .22s ease, box-shadow .22s ease, background .22s ease, border-color .22s ease;
}

.btn:hover,
.contact-chip:hover,
.music-toggle:hover {
  transform: translateY(-1px);
}

.btn-primary {
  color: white;
  background: linear-gradient(180deg, #b78d6f 0%, #9a7155 100%);
  box-shadow: 0 14px 28px rgba(167, 124, 104, 0.28);
}

.btn-secondary {
  color: var(--text);
  background: rgba(255,255,255,0.76);
  border-color: var(--line);
}

.btn-small {
  padding: 12px 18px;
  font-size: .95rem;
}

.btn-full {
  width: 100%;
}

.section {
  margin: 28px auto;
}

.section-card {
  border-radius: var(--radius-lg);
  padding: clamp(22px, 3vw, 34px);
}

.section-card--soft,
.accent-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.9), rgba(252,247,242,0.8));
}

.soft-center {
  text-align: center;
}

.section-heading {
  text-align: center;
  margin-bottom: 28px;
}

.section-heading.narrow {
  max-width: 760px;
  margin-inline: auto;
}

.section-heading h2 {
  font-size: clamp(2.35rem, 5vw, 3.7rem);
  margin-bottom: 12px;
}

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

.time-box {
  padding: 24px 12px;
  text-align: center;
  border-radius: 24px;
  background: rgba(255,255,255,0.84);
  border: 1px solid rgba(255,255,255,0.92);
  box-shadow: 0 16px 24px rgba(84,56,44,0.08);
}

.time-box span {
  display: block;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  color: var(--text);
}

.time-box small {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .13em;
  font-size: .72rem;
}

.timeline-grid,
.venue-grid,
.qr-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.timeline-card,
.venue-card,
.qr-card,
.music-card {
  border-radius: var(--radius-lg);
  padding: 26px;
}

.timeline-card h3,
.venue-card h3,
.qr-card h3,
.music-card h3 {
  font-size: clamp(1.95rem, 4vw, 2.65rem);
  margin-bottom: 10px;
}

.timeline-time {
  color: var(--accent-dark);
  font-weight: 700;
  font-size: .9rem;
  margin-bottom: 14px;
}

.notice-pill,
.alert-banner {
  border-radius: 16px;
  padding: 12px 16px;
  font-weight: 700;
}

.notice-pill {
  display: inline-flex;
  align-items: center;
  background: rgba(180,138,105,0.14);
  color: var(--accent-dark);
  border: 1px solid rgba(180,138,105,0.18);
}

.notice-pill--light {
  background: rgba(255,255,255,0.82);
}

.map-embed {
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,0.82);
  box-shadow: 0 16px 24px rgba(84,56,44,0.08);
  margin: 18px 0 16px;
}

.map-embed iframe {
  display: block;
  width: 100%;
  height: 280px;
  border: 0;
}

.venue-address {
  font-weight: 600;
  color: var(--text);
}

.qr-card {
  text-align: center;
}

.qr-card img {
  width: min(210px, 100%);
  margin: 0 auto 16px;
  border-radius: 20px;
  background: white;
  padding: 12px;
  box-shadow: 0 18px 28px rgba(84,56,44,0.08);
}

.remote-form {
  max-width: 860px;
  margin-inline: auto;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 18px;
}

.form-grid--children {
  align-items: start;
}

.form-grid--thought {
  margin-bottom: 10px;
}

label,
.fieldset {
  display: block;
  margin-bottom: 18px;
}

label span,
legend {
  display: inline-block;
  margin-bottom: 8px;
  font-weight: 600;
}

input,
select,
textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(104,76,59,0.14);
  background: rgba(255,255,255,0.94);
  color: var(--text);
  outline: none;
  transition: border-color .18s ease, box-shadow .18s ease;
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(180,138,105,0.85);
  box-shadow: 0 0 0 4px rgba(180,138,105,0.12);
}

textarea {
  resize: vertical;
  min-height: 130px;
}

.fieldset {
  padding: 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.58);
}

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

.radio-pill {
  position: relative;
  flex: 1 1 220px;
}

.radio-pill input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.radio-pill span {
  display: block;
  margin: 0;
  padding: 13px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.94);
}

.radio-pill input:checked + span {
  background: var(--accent-soft);
  border-color: rgba(180,138,105,0.5);
  color: var(--accent-dark);
}

.children-dependent.is-hidden {
  display: none;
}

.alert-banner {
  margin: 0 auto 22px;
  max-width: 860px;
  background: linear-gradient(180deg, rgba(180,138,105,0.18), rgba(180,138,105,0.12));
  border: 1px solid rgba(180,138,105,0.22);
  color: var(--accent-dark);
}

.form-status {
  min-height: 24px;
  margin: 14px 0 0;
  font-weight: 600;
}

.form-status.success {
  color: #2f7a51;
}

.form-status.error {
  color: #b24545;
}

.guestbook-card {
  position: relative;
  overflow: hidden;
}

.guestbook-card::after {
  content: '';
  position: absolute;
  inset: auto -20% -80px auto;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(199,168,106,0.12), transparent 72%);
  pointer-events: none;
}

.music-section {
  overflow: hidden;
}

.music-card {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(280px, 520px);
  gap: 24px;
  align-items: center;
  background: rgba(255,255,255,0.68);
  border: 1px solid rgba(255,255,255,0.82);
}

.music-label {
  margin-bottom: 8px;
}

.music-embed {
  overflow: hidden;
  border-radius: 24px;
  box-shadow: 0 18px 28px rgba(84,56,44,0.12);
}

.music-embed iframe {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
}

.music-dock {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 30;
  border-radius: 999px;
  padding: 8px;
}

.music-toggle {
  background: rgba(44,33,29,0.92);
  color: #f8f2ed;
  min-width: 170px;
  justify-content: flex-start;
  padding: 12px 14px;
  box-shadow: 0 18px 30px rgba(0,0,0,0.2);
}

.music-toggle-copy {
  display: grid;
  line-height: 1.1;
  text-align: left;
}

.music-toggle-copy small {
  color: rgba(255,255,255,0.78);
  font-weight: 500;
  margin-top: 4px;
}

.music-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #cbf7c8;
  flex: 0 0 auto;
}

.music-toggle.is-playing .music-dot {
  animation: pulse 1.7s infinite;
}

.contact-list {
  margin: 18px 0 10px;
}

.contact-chip {
  background: rgba(255,255,255,0.08);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.1);
}

.footer {
  padding: 12px 0 60px;
}

.footer-box {
  border-radius: var(--radius-lg);
  padding: 24px;
  text-align: center;
}

.footer-title {
  font-size: 2rem;
  margin-bottom: 6px;
}

.footer-box p {
  margin: 0;
}

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

.reveal.is-visible,
.reveal-visible {
  opacity: 1;
  transform: none;
}

#youtube-player {
  position: absolute;
  inset: auto;
  width: 0;
  height: 0;
  overflow: hidden;
  pointer-events: none;
}

@keyframes floatPhoto {
  0%, 100% {
    transform: translateY(0) scale(1.02);
  }
  50% {
    transform: translateY(-8px) scale(1.045);
  }
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(203,247,200,0.65);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(203,247,200,0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(203,247,200,0);
  }
}

@media (max-width: 1024px) {
  .hero-layout,
  .music-card {
    grid-template-columns: 1fr;
  }

  .hero-content,
  .section-card,
  .timeline-card,
  .venue-card,
  .music-card {
    text-align: center;
  }

  .names-stack {
    justify-items: center;
  }

  .hero-actions,
  .card-actions,
  .contact-list {
    justify-content: center;
  }

  .event-pills {
    justify-content: center;
  }
}

@media (max-width: 820px) {
  .topbar {
    align-items: flex-start;
    border-radius: 28px;
  }

  .nav-menu {
    justify-content: flex-start;
  }

  .countdown,
  .timeline-grid,
  .venue-grid,
  .qr-grid,
  .form-grid,
  .music-card {
    grid-template-columns: 1fr;
  }

  .map-embed iframe {
    height: 240px;
  }

  .music-toggle {
    min-width: 0;
  }
}

@media (max-width: 640px) {
  .shell {
    width: min(100%, calc(100% - 18px));
  }

  .hero {
    padding-top: 12px;
  }

  .topbar {
    position: static;
    padding: 14px;
    gap: 12px;
  }

  .brand {
    font-size: 1.25rem;
  }

  .nav-menu {
    gap: 8px;
  }

  .nav-link {
    padding: 7px 10px;
    font-size: .92rem;
  }

  .hero-card,
  .section-card,
  .timeline-card,
  .venue-card,
  .qr-card,
  .music-card,
  .footer-box {
    border-radius: 24px;
    padding: 18px;
  }

  .photo-frame {
    padding: 10px;
    border-radius: 24px;
  }

  .hero-photo {
    border-radius: 18px;
  }

  .photo-badge {
    left: 12px;
    right: 12px;
    bottom: 12px;
    border-radius: 14px;
  }

  .photo-badge-line {
    font-size: 1.35rem;
  }

  .name-line,
  .ampersand {
    font-size: clamp(2.8rem, 14vw, 4.5rem);
  }

  .intro,
  .section-heading p,
  .venue-card p,
  .timeline-card p,
  .qr-card p,
  .music-copy p,
  .form-note {
    font-size: .98rem;
  }

  .event-pill {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .radio-group {
    flex-direction: column;
  }

  .music-dock {
    right: 10px;
    bottom: 10px;
  }

  .music-toggle {
    padding: 11px 13px;
    min-width: 150px;
  }

  .music-toggle-copy strong {
    font-size: .92rem;
  }

  .music-toggle-copy small {
    font-size: .75rem;
  }

  .footer {
    padding-bottom: 90px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }

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