:root {
  color-scheme: light;
  --navy: #101c2d;
  --blue: #1d4f73;
  --gold: #d5aa55;
  --cream: #fbf6ea;
  --paper: #fffdf7;
  --muted: #68727e;
  --rose: #b86b68;
  --serif: "Cormorant Garamond", Georgia, serif;
  --display: "Playfair Display", Georgia, serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 70px;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--cream);
  color: var(--navy);
  font-family: var(--serif);
}

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

a:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 4px;
}

.gurmukhi {
  font-family: "Noto Serif Gurmukhi", serif;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 8px;
  left: 8px;
  padding: 12px 16px;
  transform: translateY(-150%);
  background: var(--navy);
  color: white;
  font-family: Arial, sans-serif;
}

.skip-link:focus {
  transform: translateY(0);
}

.sample-bar {
  position: sticky;
  z-index: 50;
  top: 0;
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 7px 5vw;
  border-bottom: 1px solid rgb(255 255 255 / 14%);
  background: #0b1725;
  color: white;
  font-family: Arial, sans-serif;
  font-size: 11px;
}

.sample-brand {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -.06em;
}

.sample-brand span {
  color: var(--gold);
}

.sample-bar-label {
  color: #d4d2c7;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .14em;
}

.sample-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.sample-links a,
.sample-back {
  padding: 8px 10px;
  border-radius: 2px;
  color: #e7e5dc;
}

.sample-links a:hover,
.sample-links a[aria-current="page"] {
  background: rgb(255 255 255 / 13%);
  color: white;
}

.sample-back {
  color: #f2dba6;
}

.sample-back span {
  margin-left: 5px;
}

.ambient {
  position: fixed;
  z-index: 4;
  inset: 48px 0 0;
  overflow: hidden;
  pointer-events: none;
}

.petal,
.spark {
  position: absolute;
}

.petal {
  top: -24px;
  width: 9px;
  height: 14px;
  border-radius: 70% 30% 70% 30%;
  background: #d9b56b;
  opacity: .45;
  animation: petal-fall linear infinite;
}

.spark {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #fff2c8;
  box-shadow: 0 0 12px #fff2c8;
  animation: sparkle 2.5s ease-in-out infinite;
}

.hero {
  position: relative;
  display: grid;
  min-height: max(650px, calc(100svh - 48px));
  place-items: center;
  overflow: hidden;
  background: radial-gradient(circle at 50% 35%, #234d6b 0, #132b42 42%, #0c1726 100%);
  color: white;
  text-align: center;
}

.hero::before {
  position: absolute;
  inset: 18px;
  border: 1px solid rgb(219 183 101 / 38%);
  border-radius: 25px;
  content: "";
}

.mandala {
  position: absolute;
  width: min(80vw, 620px);
  aspect-ratio: 1;
  border: 1px solid rgb(213 170 85 / 22%);
  border-radius: 50%;
  animation: mandala-spin 55s linear infinite;
}

.mandala::before,
.mandala::after {
  position: absolute;
  inset: 6%;
  border: 1px dashed rgb(213 170 85 / 20%);
  border-radius: 50%;
  content: "";
}

.mandala::after {
  inset: 17%;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 75px 24px 95px;
  animation: rise-in 1s ease both;
}

.eyebrow,
.section-kicker,
.event-date,
.count-box > span,
.map-button,
.rsvp-button,
.footer-credit,
.scroll-cue {
  font-family: Arial, sans-serif;
  text-transform: uppercase;
}

.eyebrow {
  margin: 0 0 22px;
  color: #ead49c;
  font-size: 10px;
  letter-spacing: .28em;
}

.khanda {
  margin-bottom: 9px;
  color: var(--gold);
  font-family: "Noto Serif Gurmukhi", serif;
  font-size: 49px;
}

.hero h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(65px, 12vw, 132px);
  font-weight: 500;
  letter-spacing: -.045em;
  line-height: .8;
}

.amp {
  color: var(--gold);
  font-size: .72em;
  font-style: italic;
}

.date {
  margin: 31px auto 0;
  font-size: clamp(14px, 2vw, 20px);
  letter-spacing: .17em;
}

.date span {
  color: var(--gold);
}

.hero-gurmukhi {
  margin: 23px auto 0;
  color: #f2dfb2;
  font-size: 18px;
}

.scroll-cue {
  position: absolute;
  z-index: 3;
  bottom: 28px;
  color: #e9d7ac;
  font-size: 8px;
  letter-spacing: .2em;
  text-align: center;
  animation: gentle-bob 2s ease-in-out infinite;
}

.scroll-cue span {
  display: block;
  margin-top: 5px;
  font-size: 17px;
}

.section {
  position: relative;
  padding: clamp(76px, 9vw, 110px) 20px;
}

.content-wrap {
  width: min(1080px, 100%);
  margin: 0 auto;
}

.section-kicker {
  margin: 0 0 9px;
  color: var(--rose);
  font-size: 9px;
  letter-spacing: .25em;
  text-align: center;
}

.section-title {
  margin: 0;
  font-size: clamp(40px, 7vw, 64px);
  font-weight: 500;
  letter-spacing: -.04em;
  line-height: 1.05;
  text-align: center;
}

.ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 17px 0 32px;
  color: var(--gold);
}

.ornament::before,
.ornament::after {
  width: 70px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold));
  content: "";
}

.ornament::after {
  background: linear-gradient(90deg, var(--gold), transparent);
}

.invitation-section,
.venue-section {
  background: var(--paper);
}

.invitation-card {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(35px, 7vw, 65px) clamp(24px, 6vw, 55px);
  border: 1px solid #eadbb8;
  background: linear-gradient(145deg, #fffefa, #fbf3df);
  box-shadow: 0 25px 70px rgb(16 28 45 / 8%);
  text-align: center;
}

.invitation-card::before {
  display: block;
  margin-bottom: 11px;
  color: var(--gold);
  content: "ੴ";
  font-family: "Noto Serif Gurmukhi", serif;
  font-size: 45px;
}

.invitation-card p {
  margin: 14px auto;
  color: #414954;
  font-size: clamp(18px, 2.5vw, 22px);
  line-height: 1.55;
}

.invitation-card .gurmukhi {
  color: var(--blue);
  font-size: clamp(18px, 2.8vw, 24px);
}

.invitation-card .invitation-note {
  color: #7c6870;
  font-size: 17px;
}

.couple-section {
  background: var(--cream);
}

.couple-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 30px;
}

.person {
  text-align: center;
}

.portrait {
  width: min(190px, 40vw);
  height: 230px;
  margin: 0 auto;
  border: 5px solid rgb(255 255 255 / 70%);
  border-radius: 110px 110px 20px 20px;
  box-shadow: 0 20px 50px rgb(16 28 45 / 14%);
}

.portrait-groom {
  background: linear-gradient(145deg, #d9c09a, #7e5c49);
}

.portrait-bride {
  background: linear-gradient(145deg, #d6b69d, #875e58);
}

.person h3 {
  margin: 16px 0 2px;
  font-size: 35px;
  font-weight: 500;
}

.person p {
  margin: 0;
  color: #7b7e82;
  font: 9px Arial, sans-serif;
  letter-spacing: .18em;
}

.couple-amp {
  color: var(--gold);
  font-size: 56px;
  font-weight: 300;
}

.events-section {
  background: var(--navy);
  color: white;
}

.events-section .section-title {
  color: white;
}

.events-section .section-intro {
  max-width: 640px;
  margin: 15px auto 42px;
  color: #bfc8d0;
  font-size: 19px;
  line-height: 1.5;
  text-align: center;
}

.timeline {
  position: relative;
  max-width: 880px;
  margin: 0 auto;
}

.timeline::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
  transform: translateX(-50%);
  background: linear-gradient(var(--gold), rgb(213 170 85 / 10%));
  content: "";
}

.event {
  position: relative;
  width: calc(50% - 52px);
  margin: 0 0 35px;
  padding: 23px 26px;
  border: 1px solid rgb(213 170 85 / 25%);
  border-radius: 14px;
  background: rgb(255 255 255 / 5%);
  transition: transform .25s ease, background .25s ease;
}

.event:hover {
  transform: translateY(-4px);
  background: rgb(255 255 255 / 9%);
}

.event:nth-child(even) {
  margin-left: auto;
}

.event::after {
  position: absolute;
  top: 30px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 5px rgb(213 170 85 / 15%);
  content: "";
}

.event:nth-child(odd)::after {
  right: -59px;
}

.event:nth-child(even)::after {
  left: -59px;
}

.event-date {
  margin: 0;
  color: #d8b56c;
  font-size: 8px;
  letter-spacing: .15em;
}

.event h3 {
  margin: 8px 0 4px;
  font-size: 30px;
  font-weight: 500;
}

.event p:not(.event-date) {
  margin: 5px 0;
  color: #c7d0d7;
  font-size: 16px;
  line-height: 1.45;
}

.event .event-gurmukhi {
  color: #e5cf9b;
  font-size: 16px;
}

.event .event-time {
  color: white;
  font-weight: 600;
}

.countdown-section {
  background: #eee5d2;
  text-align: center;
}

.count-grid {
  display: grid;
  width: min(560px, 100%);
  grid-template-columns: repeat(4, 1fr);
  gap: 13px;
  margin: 34px auto 0;
}

.count-box {
  padding: 18px 11px;
  border: 1px solid #d8c59f;
  background: #fffaf0;
}

.count-box strong {
  display: block;
  font-size: clamp(34px, 6vw, 48px);
  font-weight: 500;
  line-height: 1;
}

.count-box > span {
  display: block;
  margin-top: 8px;
  color: #777;
  font-size: 8px;
  letter-spacing: .16em;
}

.countdown-status {
  min-height: 20px;
  margin: 14px 0 0;
  color: #68727e;
  font-size: 14px;
}

.venue-grid {
  display: grid;
  max-width: 920px;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
  margin: 0 auto;
}

.venue-card {
  padding: 33px 25px;
  border: 1px solid #eadfca;
  background: white;
  text-align: center;
}

.venue-icon {
  color: var(--gold);
  font-size: 30px;
}

.venue-card h3 {
  margin: 10px 0;
  font-size: 30px;
  font-weight: 500;
}

.venue-card p {
  color: #656b72;
  font-size: 17px;
  line-height: 1.5;
}

.map-button,
.rsvp-button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  gap: 12px;
  justify-content: center;
  margin-top: 9px;
  padding: 0 16px;
  background: var(--navy);
  color: white;
  font-size: 8px;
  letter-spacing: .16em;
  transition: background .2s ease;
}

.map-button:hover,
.rsvp-button:hover {
  background: var(--blue);
}

.wedding-footer {
  position: relative;
  overflow: hidden;
  padding: 72px 20px 28px;
  background: linear-gradient(160deg, #0b1725, #1b405d);
  color: white;
  text-align: center;
}

.footer-khanda {
  color: #d9b56b;
  font-size: 48px;
}

.footer-gurmukhi {
  margin: 12px 0;
  color: #e3c987;
  font-size: 18px;
}

.wedding-footer h2 {
  margin: 10px 0;
  font-size: clamp(37px, 6vw, 55px);
  font-weight: 500;
}

.wedding-footer > p:not(.footer-gurmukhi) {
  color: #c8d1d8;
  font-size: 18px;
}

.rsvp-button {
  margin: 13px 0 30px;
  border: 1px solid var(--gold);
  background: transparent;
  color: #f2dba6;
}

.rsvp-button:hover {
  background: var(--gold);
  color: var(--navy);
}

.footer-credit {
  display: block;
  color: #c8d1d8;
  font-size: 8px;
  letter-spacing: .12em;
}

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

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

@keyframes rise-in {
  from {
    transform: translateY(18px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes mandala-spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes gentle-bob {
  50% {
    transform: translateY(5px);
  }
}

@keyframes petal-fall {
  to {
    transform: translate3d(70px, 105vh, 0) rotate(540deg);
  }
}

@keyframes sparkle {
  50% {
    opacity: .2;
    transform: scale(.7);
  }
}

@media (max-width: 760px) {
  .sample-bar {
    justify-content: flex-start;
    gap: 14px;
    overflow-x: auto;
    padding-right: 4vw;
    padding-left: 4vw;
    white-space: nowrap;
  }

  .sample-bar-label {
    display: none;
  }

  .sample-links {
    flex: 1 0 auto;
  }

  .sample-links a,
  .sample-back {
    padding: 8px 7px;
    font-size: 10px;
  }

  .timeline::before {
    left: 8px;
  }

  .event,
  .event:nth-child(even) {
    width: calc(100% - 33px);
    margin: 0 0 20px auto;
  }

  .event:nth-child(odd)::after,
  .event:nth-child(even)::after {
    right: auto;
    left: -31px;
  }
}

@media (max-width: 520px) {
  .sample-brand {
    font-size: 14px;
  }

  .sample-links {
    gap: 0;
  }

  .sample-links a,
  .sample-back {
    padding: 8px 5px;
    font-size: 9px;
  }

  .hero {
    min-height: max(610px, calc(100svh - 48px));
  }

  .hero::before {
    inset: 10px;
    border-radius: 17px;
  }

  .hero-content {
    padding: 65px 15px 85px;
  }

  .eyebrow {
    font-size: 8px;
    letter-spacing: .18em;
  }

  .hero h1 {
    font-size: clamp(63px, 16vw, 90px);
  }

  .date {
    max-width: 290px;
    line-height: 1.55;
  }

  .hero-gurmukhi {
    font-size: 15px;
  }

  .section {
    padding: 72px 17px;
  }

  .couple-grid {
    grid-template-columns: 1fr 35px 1fr;
    gap: 5px;
  }

  .portrait {
    height: 185px;
  }

  .person h3 {
    font-size: 25px;
  }

  .couple-amp {
    font-size: 37px;
  }

  .event {
    padding: 19px;
  }

  .event h3 {
    font-size: 27px;
  }

  .event p:not(.event-date) {
    font-size: 14px;
  }

  .event-date {
    font-size: 7px;
  }

  .count-grid {
    gap: 7px;
  }

  .count-box {
    padding: 15px 5px;
  }

  .count-box > span {
    font-size: 7px;
  }

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

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

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