:root {
  color-scheme: dark;
  --black: #080706;
  --ink: #f8f2e6;
  --muted: #c7bda8;
  --gold: #d8b15d;
  --gold-2: #f1d88d;
  --burgundy: #5a111c;
  --olive: #71805e;
  --charcoal: #141210;
  --panel: rgba(20, 18, 16, 0.84);
  --line: rgba(216, 177, 93, 0.32);
  --line-soft: rgba(248, 242, 230, 0.14);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.44);
  --max: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(rgba(216, 177, 93, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(216, 177, 93, 0.025) 1px, transparent 1px),
    var(--black);
  background-size: 72px 72px;
  color: var(--ink);
  font-family: "Inter", Arial, sans-serif;
  letter-spacing: 0;
  line-height: 1.65;
  overflow-x: hidden;
}

body.is-locked {
  overflow: hidden;
}

img {
  max-width: 100%;
}

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

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

.gate {
  position: fixed;
  inset: 0;
  z-index: 200;
  overflow: hidden;
  background: var(--black);
  transition:
    visibility 0s linear 1400ms,
    opacity 900ms ease 600ms;
}

.gate::before,
.gate::after {
  position: absolute;
  left: 50%;
  width: min(72vw, 620px);
  height: 160px;
  border: 1px solid transparent;
  border-image: linear-gradient(90deg, transparent, rgba(216, 177, 93, 0.46), transparent) 1;
  content: "";
  opacity: 0.7;
  transform: translateX(-50%);
}

.gate::before {
  top: 34px;
  border-bottom: 0;
  border-radius: 0 0 50% 50%;
}

.gate::after {
  bottom: 34px;
  border-top: 0;
  border-radius: 50% 50% 0 0;
}

.gate-panel {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 50%;
  background:
    radial-gradient(circle at 50% 50%, rgba(248, 242, 230, 0.06), transparent 16rem),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025), transparent 24%),
    #11100f;
  transition: transform 1300ms cubic-bezier(0.72, 0, 0.2, 1);
}

.gate-panel-left {
  left: 0;
  border-right: 1px solid rgba(216, 177, 93, 0.4);
}

.gate-panel-right {
  right: 0;
  border-left: 1px solid rgba(216, 177, 93, 0.4);
}

.gate-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
  background: linear-gradient(transparent, var(--gold), transparent);
  box-shadow:
    -48px 0 0 rgba(216, 177, 93, 0.08),
    48px 0 0 rgba(216, 177, 93, 0.08),
    -58px 0 0 rgba(90, 17, 28, 0.18),
    58px 0 0 rgba(90, 17, 28, 0.18);
}

.gate-seal {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 176px;
  height: 176px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(241, 216, 141, 0.42);
  border-radius: 50%;
  background:
    radial-gradient(circle at 34% 22%, rgba(255, 255, 255, 0.12), transparent 20%),
    radial-gradient(circle, #201f1d 0 49%, #151412 50% 100%);
  color: var(--gold-2);
  cursor: pointer;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  box-shadow:
    inset 0 0 0 12px rgba(255, 255, 255, 0.03),
    inset 0 0 0 24px rgba(216, 177, 93, 0.08),
    0 22px 70px rgba(0, 0, 0, 0.68);
  transform: translate(-50%, -50%);
  transition:
    opacity 500ms ease,
    transform 500ms ease,
    border-color 200ms ease;
}

.gate-seal:hover {
  border-color: rgba(241, 216, 141, 0.75);
  transform: translate(-50%, -50%) scale(1.03);
}

.seal-monogram {
  margin-top: 16px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 3rem;
  font-weight: 700;
  line-height: 1;
}

.seal-label {
  align-self: start;
  color: var(--ink);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 0.82rem;
  font-weight: 700;
}

.gate.is-open {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

.gate.is-open .gate-panel-left {
  transform: translateX(-102%);
}

.gate.is-open .gate-panel-right {
  transform: translateX(102%);
}

.gate.is-open .gate-seal {
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.86);
}

.site-header {
  position: fixed;
  top: 18px;
  left: 50%;
  z-index: 80;
  width: min(calc(100% - 28px), var(--max));
  height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 0 12px 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(8, 7, 6, 0.62);
  box-shadow: 0 18px 56px rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(18px);
  transform: translateX(-50%);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
  color: var(--gold-2);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.1rem;
  font-weight: 700;
}

.brand-mark {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(216, 177, 93, 0.54);
  border-radius: 50%;
  background: rgba(216, 177, 93, 0.1);
}

.main-nav {
  display: flex;
  gap: 2px;
  padding: 4px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.main-nav a,
.share-button,
.button,
.scratch-fallback,
.form-submit {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-size: 0.86rem;
  font-weight: 700;
}

.main-nav a {
  min-width: 76px;
  padding: 0 12px;
  color: var(--muted);
}

.main-nav a:hover,
.main-nav a.is-active {
  background: rgba(216, 177, 93, 0.16);
  color: var(--ink);
}

.share-button,
.button,
.scratch-fallback,
.form-submit {
  border: 1px solid rgba(216, 177, 93, 0.46);
  background: linear-gradient(135deg, var(--gold-2), var(--gold));
  color: #17120a;
  cursor: pointer;
  padding: 0 16px;
}

.share-button {
  min-width: 82px;
}

.section-band {
  position: relative;
  padding: 108px 24px;
  overflow: hidden;
  scroll-margin-top: 100px;
}

.hero {
  min-height: 96svh;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 120px 24px 72px;
}

.hero-image,
.hero-overlay,
.hero-frame {
  position: absolute;
  inset: 0;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.88) brightness(0.68);
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(8, 7, 6, 0.96), rgba(8, 7, 6, 0.5) 42%, rgba(8, 7, 6, 0.96)),
    linear-gradient(0deg, rgba(8, 7, 6, 0.94), rgba(8, 7, 6, 0.18) 48%, rgba(8, 7, 6, 0.88));
}

.hero-frame {
  inset: 32px;
  border: 1px solid rgba(216, 177, 93, 0.36);
  border-radius: 8px;
  pointer-events: none;
}

.hero-frame::before,
.hero-frame::after {
  position: absolute;
  top: 18px;
  bottom: 18px;
  width: 1px;
  background: linear-gradient(transparent, rgba(216, 177, 93, 0.6), transparent);
  content: "";
}

.hero-frame::before {
  left: 18px;
}

.hero-frame::after {
  right: 18px;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(100%, 960px);
  margin-top: 72px;
  text-align: center;
}

.ganesh-blessing {
  width: min(44vw, 172px);
  aspect-ratio: 1;
  margin: 0 auto 24px;
  border: 1px solid rgba(241, 216, 141, 0.46);
  border-radius: 50%;
  overflow: hidden;
  background: rgba(8, 7, 6, 0.72);
  box-shadow:
    0 0 0 10px rgba(216, 177, 93, 0.06),
    0 20px 58px rgba(0, 0, 0, 0.46);
}

.ganesh-blessing img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

.eyebrow,
.section-kicker {
  margin: 0 0 18px;
  color: var(--gold-2);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.34em;
  text-transform: uppercase;
}

.hero-title {
  margin: 0;
  color: var(--ink);
  font-family: "Great Vibes", "Cormorant Garamond", Georgia, serif;
  font-size: clamp(3.35rem, 8.5vw, 7.8rem);
  font-weight: 400;
  line-height: 0.92;
  text-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
}

.hero-title span,
.hero-title small {
  display: block;
}

.hero-title small {
  margin: 12px 0 14px;
  color: var(--gold);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.5rem, 4vw, 3rem);
  font-weight: 500;
  line-height: 1;
}

.hero-copy {
  width: min(100%, 700px);
  margin: 28px auto 0;
  color: var(--ink);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.28rem, 2.4vw, 1.8rem);
  font-style: italic;
}

.scroll-cue {
  width: 74px;
  display: grid;
  gap: 10px;
  margin: 72px auto 0;
  color: var(--gold-2);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.scroll-cue::after {
  width: 1px;
  height: 34px;
  justify-self: center;
  background: linear-gradient(var(--gold), transparent);
  content: "";
}

.intro-band,
.date-band,
.countdown-band,
.rsvp-band {
  background:
    radial-gradient(circle at 50% 0%, rgba(216, 177, 93, 0.09), transparent 34rem),
    var(--black);
}

.ornament,
.ornament::before,
.ornament::after {
  border-top: 1px solid rgba(216, 177, 93, 0.42);
}

.ornament {
  width: min(100%, 740px);
  height: 28px;
  margin: 0 auto 54px;
  position: relative;
}

.ornament::before,
.ornament::after {
  position: absolute;
  top: -1px;
  width: 44%;
  height: 28px;
  content: "";
}

.ornament::before {
  left: 0;
  border-radius: 0 0 100% 0;
}

.ornament::after {
  right: 0;
  border-radius: 0 0 0 100%;
}

.intro-copy {
  width: min(100%, 780px);
  margin: 0 auto;
  text-align: center;
}

.intro-copy p {
  margin: 0;
  color: var(--ink);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  font-style: italic;
  line-height: 1.45;
}

.section-heading {
  width: min(100%, var(--max));
  margin: 0 auto 42px;
  text-align: center;
}

.section-heading h2,
.venue-copy h2 {
  margin: 0;
  color: var(--ink);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(2.25rem, 5vw, 4.35rem);
  font-weight: 500;
  line-height: 1.05;
}

.scratch-wrap {
  position: relative;
  width: min(100%, 468px);
  min-height: 262px;
  display: grid;
  margin: 0 auto;
  border: 1px solid rgba(216, 177, 93, 0.38);
  border-radius: 8px;
  overflow: hidden;
  box-shadow:
    0 0 46px rgba(216, 177, 93, 0.18),
    var(--shadow);
}

.date-card,
#scratch-canvas {
  grid-area: 1 / 1;
}

.date-card {
  display: grid;
  place-items: center;
  padding: 42px 24px;
  background:
    radial-gradient(circle at 50% 36%, rgba(255, 255, 255, 0.36), transparent 18rem),
    linear-gradient(135deg, #f4d16f, #b8862f);
  color: #201406;
  text-align: center;
}

.date-card-label {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.date-card strong {
  display: block;
  margin-top: 14px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.85rem, 6.5vw, 3.2rem);
  line-height: 1;
}

.date-card span {
  color: rgba(32, 20, 6, 0.74);
  font-weight: 700;
}

#scratch-canvas {
  width: 100%;
  height: 100%;
  cursor: crosshair;
}

.scratch-fallback {
  position: absolute;
  right: 14px;
  bottom: 14px;
  min-height: 36px;
  background: rgba(8, 7, 6, 0.72);
  color: var(--ink);
}

.gallery-band {
  background:
    linear-gradient(180deg, rgba(90, 17, 28, 0.16), transparent 26rem),
    #0c0b0a;
}

.gallery-grid {
  width: min(100%, var(--max));
  display: grid;
  grid-template-columns: 0.86fr 1.28fr 0.86fr;
  gap: 18px;
  margin: 0 auto;
  align-items: center;
}

.gallery-item {
  height: 430px;
  margin: 0;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  overflow: hidden;
  background: var(--charcoal);
  box-shadow: var(--shadow);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  filter: saturate(0.8) contrast(0.95);
}

.gallery-item:first-child img {
  object-position: 18% center;
}

.gallery-item-focus {
  height: 520px;
}

.gallery-item-focus img {
  object-position: center;
}

.gallery-item:last-child img {
  object-position: 82% center;
}

.countdown {
  width: min(100%, 840px);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 0 auto;
}

.countdown div,
.timeline-item,
.venue-panel,
.rsvp-form {
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(216, 177, 93, 0.1), transparent),
    rgba(20, 18, 16, 0.74);
  box-shadow: var(--shadow);
}

.countdown div {
  min-height: 150px;
  display: grid;
  place-items: center;
  padding: 24px 12px;
  text-align: center;
}

.countdown strong {
  display: block;
  color: var(--gold-2);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(2.4rem, 8vw, 4.6rem);
  line-height: 1;
}

.countdown span,
.venue-panel span,
.rsvp-form span,
.timeline-item time {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.events-band {
  background:
    radial-gradient(circle at 10% 18%, rgba(113, 128, 94, 0.14), transparent 26rem),
    var(--black);
}

.timeline {
  width: min(100%, 920px);
  display: grid;
  gap: 18px;
  margin: 0 auto;
}

.timeline-item {
  position: relative;
  padding: 28px 28px 28px 34px;
}

.timeline-item::before {
  position: absolute;
  top: 34px;
  left: 14px;
  width: 7px;
  height: 7px;
  border: 1px solid var(--gold-2);
  background: var(--burgundy);
  content: "";
  transform: rotate(45deg);
}

.timeline-item h3 {
  margin: 10px 0 6px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 2rem;
  font-weight: 600;
  line-height: 1.1;
}

.timeline-item p,
.venue-copy p,
.venue-panel strong {
  color: var(--muted);
}

.timeline-item p {
  margin: 0;
}

.venue-band {
  background:
    linear-gradient(90deg, rgba(8, 7, 6, 0.94), rgba(8, 7, 6, 0.72)),
    url("assets/wedding-hero.png") center / cover fixed;
}

.venue-layout {
  width: min(100%, var(--max));
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
  gap: 34px;
  margin: 0 auto;
  align-items: center;
}

.venue-copy p {
  max-width: 620px;
  margin: 24px 0;
  font-size: 1.05rem;
}

.venue-panel {
  display: grid;
  gap: 1px;
  padding: 8px;
  background: rgba(8, 7, 6, 0.7);
  backdrop-filter: blur(18px);
}

.venue-panel div {
  padding: 22px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.venue-panel strong {
  display: block;
  margin-top: 6px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.35rem;
  line-height: 1.2;
}

.qr-panel div {
  display: grid;
  justify-items: center;
  gap: 12px;
  text-align: center;
}

.qr-panel img {
  width: min(100%, 280px);
  aspect-ratio: 1;
  display: block;
  border: 10px solid #fff;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.32);
}

.rsvp-form {
  width: min(100%, 760px);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin: 0 auto;
  padding: 24px;
}

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

.message-field {
  grid-column: 1 / -1;
}

.rsvp-form input,
.rsvp-form select,
.rsvp-form textarea {
  width: 100%;
  border: 1px solid rgba(216, 177, 93, 0.28);
  border-radius: 8px;
  background: rgba(8, 7, 6, 0.68);
  color: var(--ink);
  outline: 0;
  padding: 12px 14px;
}

.rsvp-form textarea {
  resize: vertical;
}

.rsvp-form input:focus,
.rsvp-form select:focus,
.rsvp-form textarea:focus {
  border-color: var(--gold-2);
  box-shadow: 0 0 0 3px rgba(216, 177, 93, 0.14);
}

.form-submit {
  width: max-content;
}

.form-status {
  align-self: center;
  margin: 0;
  color: var(--gold-2);
  font-weight: 700;
}

.site-footer {
  padding: 48px 24px 64px;
  border-top: 1px solid var(--line-soft);
  color: var(--muted);
  text-align: center;
}

.site-footer p {
  margin: 0;
  color: var(--gold-2);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.1;
}

.site-footer span {
  display: block;
  margin-top: 8px;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

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

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 860px) {
  .site-header {
    height: auto;
    min-height: 62px;
    flex-wrap: wrap;
    padding: 10px;
  }

  .main-nav {
    order: 3;
    width: 100%;
    overflow-x: auto;
  }

  .main-nav a {
    flex: 1 0 74px;
  }

  .hero {
    min-height: 96svh;
    padding-top: 150px;
  }

  .hero-frame {
    inset: 18px;
  }

  .section-band {
    padding: 88px 18px;
  }

  .gallery-grid,
  .venue-layout,
  .rsvp-form {
    grid-template-columns: 1fr;
  }

  .gallery-item,
  .gallery-item-focus {
    height: 360px;
  }

  .countdown {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .gate-seal {
    width: 142px;
    height: 142px;
  }

  .site-header {
    top: 10px;
    width: min(calc(100% - 16px), var(--max));
  }

  .brand {
    font-size: 1rem;
  }

  .share-button {
    min-width: 74px;
    padding: 0 12px;
  }

  .eyebrow,
  .section-kicker {
    letter-spacing: 0.2em;
  }

  .hero-copy {
    margin-top: 22px;
  }

  .countdown {
    gap: 8px;
  }

  .countdown div {
    min-height: 122px;
  }

  .timeline-item {
    padding-right: 20px;
  }

  .venue-panel {
    min-width: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
    animation-duration: 0.001ms !important;
  }
}
