:root {
  --saffron: #c8772e;
  --maroon: #6b1f2a;
  --cream: #fbf5ea;
  --ink: #2b1d16;
  --muted: #7a6a5f;
  --gold: #d4a84b;
  --radius: 14px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Inter", system-ui, sans-serif;
  font-weight: 300;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
}

h1, h2, h3 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 0.5rem;
}

/* Hero */
.hero {
  min-height: 92vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3rem 1.5rem;
  color: var(--cream);
  background:
    radial-gradient(circle at 20% 20%, rgba(212, 168, 75, 0.35), transparent 40%),
    linear-gradient(rgba(58, 15, 22, 0.75), rgba(58, 15, 22, 0.75)),
    url("images/IMG20260109113438.jpg") 65% center / cover no-repeat;
}

.eyebrow {
  letter-spacing: 0.25em;
  text-transform: uppercase;
  font-size: 0.8rem;
  color: var(--gold);
  margin: 0 0 1rem;
}

.hero h1 {
  font-size: clamp(3rem, 9vw, 6rem);
  margin-bottom: 0.5rem;
}

.om-banner {
  padding: 1.25rem 1.5rem 0.5rem;
  text-align: center;
  color: var(--gold);
  background: var(--maroon);
}

.om-symbol {
  font-family: "Noto Sans Devanagari", "Cormorant Garamond", serif;
  font-size: clamp(2.5rem, 6vw, 3.5rem);
  color: var(--gold);
  margin: 0;
  line-height: 1;
}

.om-mantra {
  letter-spacing: 0.2em;
  font-size: 0.7rem;
  color: var(--gold);
  margin: 0 0 1rem;
}

.hero-tagline {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-style: italic;
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  opacity: 0.9;
  max-width: 36rem;
}

.countdown {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin: 2rem 0;
}

.countdown div {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(212, 168, 75, 0.5);
  border-radius: var(--radius);
  padding: 0.8rem 1.2rem;
  min-width: 5.5rem;
}

.countdown strong {
  display: block;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 2.2rem;
  line-height: 1;
}

.countdown span {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

/* Buttons */
.btn {
  display: inline-block;
  background: var(--saffron);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 0.75rem 1.6rem;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease;
}

.btn:hover { transform: translateY(-2px); background: #b56420; }

.btn.ghost {
  background: transparent;
  color: var(--maroon);
  border: 2px solid var(--maroon);
}

.btn.ghost:hover { background: var(--maroon); color: #fff; }

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  padding: 0.9rem 1rem;
  background: rgba(251, 245, 234, 0.95);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid #e8dccb;
  flex-wrap: wrap;
}

.nav a {
  color: var(--maroon);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
}

.nav a:hover { color: var(--saffron); }

/* Sections */
.section {
  max-width: 1000px;
  margin: 0 auto;
  padding: 4rem 1.5rem;
  text-align: center;
}

.section.alt { background: #f4ead8; max-width: none; }
.section.alt > * { max-width: 1000px; margin-left: auto; margin-right: auto; }

.section h2 {
  font-size: clamp(2rem, 5vw, 2.8rem);
  color: var(--maroon);
}

.lead {
  font-size: 1.15rem;
  max-width: 40rem;
  margin: 0 auto 2rem;
}

.sub, .muted { color: var(--muted); }

/* Facts cards */
.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.2rem;
  text-align: left;
}

.fact {
  background: #fff;
  border-radius: var(--radius);
  padding: 1.4rem;
  box-shadow: 0 6px 18px rgba(107, 31, 42, 0.08);
  border-top: 4px solid var(--gold);
}

.fact h3 { font-size: 1.3rem; color: var(--maroon); }
.fact p { margin: 0; }

/* Collage: tilted polaroids with tape, straightening on hover */
.collage {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2.5rem 1.8rem;
  padding: 1rem 0;
}

.polaroid {
  position: relative;
  margin: 0;
  width: 220px;
  padding: 12px 12px 14px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(43, 29, 22, 0.18);
  transform: rotate(var(--rot, 0deg));
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.polaroid::before {
  content: "";
  position: absolute;
  top: -12px;
  left: 50%;
  width: 80px;
  height: 24px;
  transform: translateX(-50%) rotate(-3deg);
  background: rgba(212, 168, 75, 0.6);
}

.polaroid:hover {
  transform: rotate(0deg) scale(1.06);
  box-shadow: 0 14px 30px rgba(43, 29, 22, 0.28);
  z-index: 1;
}

.polaroid img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
}

.polaroid figcaption {
  margin-top: 0.6rem;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.1rem;
  color: var(--maroon);
  text-align: center;
}

/* Details */
.save-date {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
  text-align: left;
}

.date-badge {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: var(--maroon);
  color: var(--cream);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: "Cormorant Garamond", Georgia, serif;
  border: 4px solid var(--gold);
}

.date-badge .m { font-size: 1rem; letter-spacing: 0.15em; text-transform: uppercase; }
.date-badge .d { font-size: 3.2rem; font-weight: 700; line-height: 1; }
.date-badge .y { font-size: 1rem; }

.big {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.8rem;
  font-weight: 600;
  margin: 0;
}

.venue {
  background: #fff;
  border-radius: var(--radius);
  padding: 2rem;
  max-width: 520px;
  margin: 0 auto;
  box-shadow: 0 6px 18px rgba(107, 31, 42, 0.08);
}

.venue p { margin: 0.25rem 0 1rem; }

/* RSVP form */
.rsvp-form {
  max-width: 520px;
  margin: 0 auto;
  text-align: left;
  display: grid;
  gap: 1rem;
}

.rsvp-form label {
  display: grid;
  gap: 0.35rem;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--maroon);
}

.rsvp-form input,
.rsvp-form select,
.rsvp-form textarea {
  font: inherit;
  font-weight: 400;
  padding: 0.7rem 0.9rem;
  border: 1px solid #d9c8ad;
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
}

.rsvp-form input:focus,
.rsvp-form select:focus,
.rsvp-form textarea:focus {
  outline: 2px solid var(--gold);
  border-color: transparent;
}

.rsvp-form .btn { justify-self: center; }

.form-status { text-align: center; margin: 0; font-weight: 600; color: var(--maroon); min-height: 1.5rem; }

/* Footer */
.footer {
  background: var(--maroon);
  color: var(--cream);
  text-align: center;
  padding: 2rem 1rem;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.4rem;
  line-height: 1.4;
}

.footer-credit {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: flex-start;
  margin: 1.5rem 0 0;
  font-family: Inter, system-ui, sans-serif;
  font-size: 0.85rem;
  opacity: 0.85;
}

.footer-credit a {
  color: inherit;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.footer-hosting { margin-top: 0.25rem; }

.footer-credit[hidden] { display: none; }

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(20, 8, 10, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 2rem;
}

.lightbox[hidden] { display: none; }

.lightbox img {
  max-width: 100%;
  max-height: 90vh;
  border-radius: var(--radius);
}

.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1.2rem;
  background: none;
  border: none;
  color: #fff;
  font-size: 2.5rem;
  cursor: pointer;
}

/* Extra photos */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1rem;
}

.photo-grid img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: 0 6px 18px rgba(107, 31, 42, 0.12);
  cursor: pointer;
}

/* Poll */
.poll-sheets {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
  max-width: 900px;
  margin: 0 auto 2rem;
}

.poll-sheets img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: 0 6px 18px rgba(107, 31, 42, 0.12);
  cursor: zoom-in;
}

.poll-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
  max-width: 720px;
  margin: 0 auto 2.5rem;
}

.poll-form[hidden] { display: none; }

.poll-option {
  display: grid;
  justify-items: center;
  gap: 0.5rem;
  padding: 0.8rem;
  background: #fff;
  border: 2px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  font-weight: 600;
  color: var(--maroon);
}

.poll-option:has(input:checked) { border-color: var(--saffron); }
.poll-option input { accent-color: var(--saffron); }

.poll-option img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 10px;
}

.poll-form .btn { grid-column: 1 / -1; justify-self: center; }

.poll-results {
  max-width: 900px;
  margin: 0 auto;
}

.poll-chart {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 260px;
  padding: 0 0.5rem;
  border-bottom: 2px solid var(--gold);
}

.poll-col {
  flex: 1;
  min-width: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
}

.poll-count {
  font-size: 0.7rem;
  color: var(--maroon);
  font-weight: 600;
}

.poll-bar {
  width: 100%;
  background: var(--saffron);
  border-radius: 6px 6px 0 0;
  transition: height 0.4s ease;
}

.poll-label {
  font-size: 0.7rem;
  color: var(--muted);
  padding: 0.3rem 0;
}

.poll-total { text-align: center; color: var(--muted); margin: 0; }

.poll-dropdown > summary {
  cursor: pointer;
  text-align: center;
  font-family: "Cormorant Garamond", serif;
  font-size: 1.5rem;
  color: var(--maroon);
  margin-bottom: 1.5rem;
}

.poll-form input[type="number"] {
  width: 100%;
  padding: 0.7rem;
  font: inherit;
  text-align: center;
  border: 2px solid var(--gold);
  border-radius: var(--radius);
}

@media (max-width: 600px) {
  .polaroid { width: 160px; }
  .nav { gap: 0.9rem; }
}
