:root {
  --bg: #d8d0c6;
  --paper: #fbfaf5;
  --paper-soft: rgba(251, 250, 245, .9);
  --ink: #56564a;
  --muted: #777366;
  --olive: #5a6758;
  --border: rgba(91, 88, 76, .14);
  --shadow: rgba(58, 52, 42, .18);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    linear-gradient(rgba(232,226,216,.70), rgba(232,226,216,.78)),
    url('assets/bg-curtains.png') center / cover fixed no-repeat;
  font-family: Montserrat, system-ui, -apple-system, Segoe UI, sans-serif;
}
.music-toggle {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 20;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid rgba(255,255,255,.65);
  border-radius: 999px;
  background: rgba(251,250,245,.78);
  backdrop-filter: blur(10px);
  color: var(--olive);
  font: inherit;
  font-size: 14px;
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 14px 30px rgba(58, 52, 42, .12);
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.music-toggle:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 36px rgba(58, 52, 42, .16);
}
.music-toggle.is-playing {
  background: rgba(90,103,88,.92);
  color: #fff7e9;
  border-color: rgba(90,103,88,.92);
}
img { display: block; width: 100%; height: 100%; object-fit: cover; }
.site { width: min(1420px, calc(100% - 64px)); margin: 0 auto; padding: 42px 0 72px; }
.hero, .intro-grid, .details-grid, .bottom-grid { margin-bottom: 30px; }
.hero {
  min-height: 640px;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(420px, .85fr);
  background: var(--paper);
  border: 1px solid rgba(255,255,255,.55);
  border-radius: 34px;
  overflow: hidden;
  box-shadow: 0 32px 90px var(--shadow);
}

.hero-photo { min-height: 640px; position: relative; }
.hero-photo::after { content:""; position:absolute; inset:0; background: linear-gradient(90deg, rgba(251,250,245,.05), rgba(251,250,245,.54)); }
.hero-content { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding: 70px 76px; background: linear-gradient(135deg, var(--paper), #f1ecdf); }
.eyebrow { margin: 0 0 14px; font-size: 13px; letter-spacing: .24em; text-transform: uppercase; color: #9a9486; }
h1, h2, .date-main, .cal-head, time, .button, .contact-line { font-family: "Cormorant Garamond", Georgia, serif; font-weight: 500; }
h1 { margin: 0; font-size: clamp(72px, 7vw, 80px); line-height: .82; text-transform: uppercase; letter-spacing: -.03em; }
h1 span { display: block; margin: 6px 0; font-size: .62em; color: rgba(86,86,74,.46); }
.date-main { margin: 34px 0 22px; font-size: clamp(48px, 4.5vw, 76px); letter-spacing: .04em; }
.lead, p { margin: 0; color: var(--muted); font-size: 18px; line-height: 1.7; }
.lead { max-width: 500px; }
.button, .contact-line { min-height: 54px; display: inline-flex; align-items: center; justify-content: center; margin-top: 28px; padding: 0 30px; border: 0; border-radius: 999px; background: var(--olive); color: #fff7e9; text-decoration: none; text-transform: uppercase; font-size: 26px; letter-spacing: .03em; cursor: pointer; transition: transform .2s ease, box-shadow .2s ease; white-space: normal; text-align: center; }
.button:hover, .contact-line:hover { transform: translateY(-2px); box-shadow: 0 16px 28px rgba(69,79,66,.22); }
.intro-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.card, .image-card, .wide-photo { border-radius: 30px; overflow: hidden; background: var(--paper-soft); border: 1px solid rgba(255,255,255,.62); box-shadow: 0 24px 60px var(--shadow); }
.card { padding: 46px; overflow-wrap: anywhere; }
.intro-card { min-height: 420px; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; background: linear-gradient(rgba(251,250,245,.86), rgba(251,250,245,.92)), url('assets/envelope-roses.png') right center / 48% auto no-repeat; }
h2 { margin: 0 0 20px; font-size: clamp(42px, 4vw, 40px); line-height: .9; text-transform: uppercase; }
.bottom-grid h2 { font-size: clamp(40px, 3.1vw, 40px); line-height: .95; letter-spacing: -.02em; }
.rsvp h2 { font-size: clamp(38px, 3vw, 40px); }
.image-card { min-height: 420px; }
.details-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 30px; }
.program { grid-column: span 4; min-height: 430px; background: linear-gradient(rgba(251,250,245,.82), rgba(251,250,245,.92)), url('assets/table.jpg') center / cover no-repeat; }
.calendar { grid-column: span 4; min-height: 430px; }
.location { grid-column: span 4; min-height: 430px; background: linear-gradient(rgba(251,250,245,.80), rgba(251,250,245,.94)), url('assets/table-centerpiece.png') center / cover no-repeat; }
.wide-photo { grid-column: 1 / -1; height: 390px; position: relative; }
.wide-photo::after { content:""; position:absolute; inset:0; background: linear-gradient(90deg, rgba(40,37,30,.45), transparent 58%); }
.photo-caption { position: absolute; left: 48px; bottom: 42px; z-index: 1; font-family: "Cormorant Garamond", Georgia, serif; font-size: clamp(42px, 4vw, 64px); color: #fff9ec; text-transform: uppercase; }
.timeline { display: grid; gap: 28px; margin-top: 30px; }
.timeline div { padding: 22px 0; border-top: 1px solid var(--border); }
time { display: block; font-size: 60px; line-height: .9; }
.timeline span { display: block; margin-top: 10px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.cal-head { display: flex; justify-content: space-between; margin: 0 0 28px; font-size: 34px; text-transform: uppercase; }
.weekdays, .days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 13px 10px; text-align: center; }
.weekdays { margin-bottom: 15px; color: #908a7d; font-size: 13px; }
.days span { min-height: 31px; display: grid; place-items: center; font-family: "Cormorant Garamond", Georgia, serif; font-size: 23px; }
.days .marked { position: relative; color: var(--olive); font-weight: 600; }
.days .marked::before { content: ""; position: absolute; width: 39px; height: 36px; border: 2px solid var(--olive); border-radius: 50%; }
.bottom-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr) minmax(430px, 1.35fr); gap: 30px; align-items: stretch; }
.wishes { min-height: 420px; background: linear-gradient(rgba(251,250,245,.84), rgba(251,250,245,.94)), url('assets/cake.jpg') center / cover no-repeat; }
.countdown { min-height: 420px; display: flex; flex-direction: column;  background: linear-gradient(rgba(251,250,245,.86), rgba(251,250,245,.95)), url('assets/envelope-roses1.png') right bottom / 76% auto no-repeat; }
.rsvp { background: var(--paper); min-height: 620px; }
.bottom-grid .card { padding: 44px 42px; }
.wishes p, .countdown p { font-size: 17px; line-height: 1.75; }
.countdown-lead { max-width: 330px; }
.countdown-inline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-top: 30px;
  padding: 18px 0 20px;
  border-top: 1px solid rgba(95,91,79,.16);
  border-bottom: 1px solid rgba(95,91,79,.16);
}
.countdown-part {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 72px;
}
.countdown-value {
  font-family: Montserrat, system-ui, -apple-system, Segoe UI, sans-serif;
  font-size: clamp(34px, 4vw, 46px);
  font-weight: 300;
  letter-spacing: .04em;
  line-height: 1;
  color: #495647;
}
.countdown-label {
  margin-top: 8px;
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: #90897b;
}
.countdown-separator {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(135deg, #a8b39e, #d4c8b2);
  box-shadow: 0 0 0 6px rgba(212,200,178,.18);
}
.countdown-date {
  margin-top: 18px;
  color: #8f8879;
  font-size: 14px;
  letter-spacing: .18em;
  text-transform: uppercase;
}
form { display: grid; gap: 15px; color: var(--muted); }
label { display: grid; gap: 7px; }
fieldset { display: grid; gap: 10px; margin: 0; padding: 0; border: 0; }
legend { margin-bottom: 7px; color: var(--muted); }
fieldset label { display: flex; align-items: center; gap: 10px; }
input, textarea { width: 100%; padding: 13px 16px; border: 1px solid rgba(95,91,79,.25); border-radius: 14px; background: rgba(255,255,255,.72); color: var(--ink); font: inherit; outline: none; }
input:focus, textarea:focus { border-color: var(--olive); box-shadow: 0 0 0 4px rgba(90,103,88,.13); }
input[type="radio"] { width: 20px; height: 20px; accent-color: var(--olive); flex: 0 0 auto; }
.form-note { margin-top: 0; font-size: 13px; }
.rsvp-form { gap: 18px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; }
.attendance-group { gap: 12px; padding: 18px 20px; border: 1px solid rgba(95,91,79,.12); border-radius: 22px; background: rgba(255,255,255,.45); }
.guest-fields { display: grid; gap: 15px; padding: 18px 20px; border-radius: 22px; background: rgba(90,103,88,.06); transition: opacity .2s ease; }
.guest-fields.is-disabled { opacity: .55; }
.guest-names.is-hidden { display: none; }
button:disabled { opacity: .75; cursor: wait; transform: none; box-shadow: none; }
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .65s ease, transform .65s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (max-width: 1280px) {
  .site { width: min(100% - 40px, 1120px); }
  .bottom-grid { grid-template-columns: 1fr 1fr; }
  .rsvp { grid-column: 1 / -1; min-height: auto; }
  .bottom-grid h2 { font-size: clamp(40px, 4vw, 60px); }
}
@media (max-width: 1180px) {
  .site { width: min(100% - 32px, 980px); }
  .hero { grid-template-columns: 1fr; }
  .hero-photo { min-height: 430px; }
  .hero-content { padding: 54px; }
  .details-grid { grid-template-columns: 1fr 1fr; }
  .program, .calendar, .location, .wide-photo { grid-column: auto; }
  .location, .wide-photo { grid-column: span 2; }
}
@media (max-width: 760px) {
  body { background-attachment: scroll; }
  .music-toggle { top: 14px; right: 14px; min-height: 44px; padding: 0 14px; font-size: 12px; }
  .site { width: 100%; padding: 0 0 24px; }
  .hero, .intro-grid, .details-grid, .bottom-grid { display: block; margin-bottom: 14px; }
  .hero, .card, .image-card, .wide-photo { border-radius: 0; box-shadow: none; }
  .hero-photo { min-height: 360px; }
  .hero-content, .card { padding: 38px 24px; }
  h1 { font-size: 62px; }
  h2, .bottom-grid h2, .rsvp h2 { font-size: 44px; }
  .image-card { min-height: 240px; margin-top: 14px; }
  .card, .wide-photo { margin-top: 14px; }
  .wide-photo { height: 300px; }
  .photo-caption { left: 24px; right: 24px; bottom: 28px; font-size: 38px; }
  .button, .contact-line { width: 100%; font-size: 23px; }
  .weekdays, .days { gap: 10px 7px; }
  .form-grid { grid-template-columns: 1fr; }
  .countdown-inline { gap: 12px; }
  .countdown-part { min-width: 60px; }
  .countdown-value { font-size: 30px; }
  .countdown-label { letter-spacing: .16em; }
}
