/* Priya & Arjun, Kumarakom. Multi-page, jewel tones. Edit :root to restyle. */
:root {
  --emerald: #0F4D40;
  --emerald-d: #0A3129;
  --magenta: #A3134F;
  --saffron: #E8A33A;
  --gold: #C9973F;
  --ivory: #FBF6EC;
  --kasavu: #F3EAD6;
  --ink: #1D1A14;
  --muted: #6B6255;

  /* Dress code swatches */
  --sw-marigold: #E8A33A;
  --sw-rani: #C2185B;
  --sw-chili: #D9482B;
  --sw-indigo: #2B5DA6;
  --sw-kasavu: #F6EEDC;
  --sw-gold: #C9973F;
  --sw-leaf: #5E7A3A;
  --sw-jasmine: #FFFFFF;
  --sw-emerald: #0F4D40;
  --sw-peacock: #1E4F7A;
  --sw-ruby: #7A1235;

  --display: "Rozha One", Georgia, serif;
  --sans: "Mukta", system-ui, sans-serif;
  --gutter: clamp(1rem, 5vw, 4rem);
  --ease: cubic-bezier(.2, .8, .2, 1);

  --arch: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 150' preserveAspectRatio='none'%3E%3Cpath d='M0 150V52C0 30 18 20 33 13C42 9 47 5 50 0C53 5 58 9 67 13C82 20 100 30 100 52V150Z'/%3E%3C/svg%3E");
  --trim: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='28' viewBox='0 0 48 28'%3E%3Cpath d='M0 28V18C0 9 6 4 12 4S24 9 24 18V28ZM24 28V18C24 9 30 4 36 4S48 9 48 18V28Z' opacity='.9'/%3E%3Cpath d='M12 12l3 4-3 4-3-4zM36 12l3 4-3 4-3-4z' fill='%23000' opacity='.0'/%3E%3Ccircle cx='24' cy='3' r='2.2'/%3E%3Ccircle cx='0' cy='3' r='2.2'/%3E%3Ccircle cx='48' cy='3' r='2.2'/%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font: 400 1.09rem/1.65 var(--sans); color: var(--ink); background: var(--ivory); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; margin: 0; line-height: 1.02; }
p { margin: 0 0 1em; }
a { color: inherit; }
.wrap { width: min(1200px, 100% - var(--gutter) * 2); margin-inline: auto; }
.sr, .hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--saffron); outline-offset: 3px; }
.h2 { font-size: clamp(2.3rem, 4.8vw, 3.8rem); color: var(--emerald); }

/* ---------- Pattern trim and arch ---------- */
.border { height: 28px; background: var(--gold); -webkit-mask: var(--trim) repeat-x 0 0 / 48px 28px; mask: var(--trim) repeat-x 0 0 / 48px 28px; }
.arch { margin: 0; padding: 8px; background: var(--gold); -webkit-mask: var(--arch) center / 100% 100% no-repeat; mask: var(--arch) center / 100% 100% no-repeat; }
.arch img { width: 100%; height: 100%; object-fit: cover; -webkit-mask: var(--arch) center / 100% 100% no-repeat; mask: var(--arch) center / 100% 100% no-repeat; }

/* ---------- Nav ---------- */
.nav { position: sticky; top: 0; z-index: 40; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .85rem var(--gutter); background: var(--emerald-d); color: var(--ivory); }
.nav__brand { font: 1.55rem/1 var(--display); text-decoration: none; }
.nav__brand i, .foot__names i { font-style: normal; color: var(--saffron); }
.nav__menu { display: flex; align-items: center; gap: .3rem; }
.nav__menu a { text-decoration: none; padding: .45rem .9rem; border-radius: 99px; font-weight: 600; font-size: .98rem; }
.nav__menu a:hover { background: rgba(251,246,236,.1); }
.nav__menu a[aria-current="page"] { color: var(--saffron); }
.nav__menu .nav__cta { background: var(--saffron); color: var(--emerald-d); margin-left: .4rem; }
.nav__menu .nav__cta:hover { background: var(--ivory); }
.nav__menu .nav__cta[aria-current="page"] { color: var(--emerald-d); background: var(--ivory); }
.nav__toggle { display: none; width: 44px; height: 44px; border: 1px solid rgba(251,246,236,.4); border-radius: 50%; background: none; color: inherit; cursor: pointer; place-content: center; gap: 6px; }
.nav__toggle span:not(.sr) { display: block; width: 18px; height: 2px; background: currentColor; transition: transform .3s; }
.nav__toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; padding: .95rem 1.7rem; border: 0; border-radius: 99px; background: var(--saffron); color: var(--emerald-d); font: 700 1rem/1 var(--sans); text-decoration: none; cursor: pointer; transition: background-color .3s, transform .3s var(--ease); }
.btn:hover { background: var(--ivory); transform: translateY(-2px); }
.page-rsvp .btn, .btn--light { background: var(--emerald); color: var(--ivory); }
.page-rsvp .btn:hover { background: var(--magenta); }
.btn--light { background: var(--ivory); color: var(--emerald-d); }
.link { font-weight: 600; text-decoration: underline; text-decoration-color: var(--saffron); text-decoration-thickness: 2px; text-underline-offset: 6px; }

/* ---------- Hero ---------- */
.hero { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; padding: clamp(2.5rem, 6vw, 5rem) var(--gutter) clamp(4.5rem, 8vw, 6rem); min-height: calc(100svh - 70px); background: radial-gradient(90% 70% at 80% 40%, #16614F, transparent 70%), var(--emerald); color: var(--ivory); overflow: hidden; }
.hero__pre { font-size: 1.15rem; color: var(--saffron); margin-bottom: 1.2rem; }
.hero__names { font-size: clamp(4.2rem, 10.5vw, 9.6rem); line-height: .88; display: flex; flex-direction: column; }
.hero__amp { font-size: .55em; color: var(--saffron); margin: .05em 0 .05em .3em; line-height: 1; }
.hero__when { font-size: clamp(1.15rem, 1.7vw, 1.4rem); line-height: 1.45; margin: 2rem 0 2.2rem; max-width: 32ch; opacity: .92; }
.hero__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 2rem; }
.hero__arch { justify-self: center; width: min(420px, 100%); aspect-ratio: 2 / 3; }
.border--hero { position: absolute; left: 0; right: 0; bottom: 0; background: var(--saffron); }

/* ---------- Story ---------- */
.story { padding: clamp(4rem, 9vw, 7.5rem) 0; }
.story__grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(2rem, 6vw, 6rem); align-items: end; }
.story__big { font: 400 clamp(1.7rem, 3vw, 2.5rem)/1.28 var(--display); color: var(--emerald); margin: 0; }
.story__small { margin: 0; color: var(--muted); font-size: 1.15rem; }

/* ---------- Glance (signature) ---------- */
.glance { --g-bg: var(--magenta); --g-fg: var(--ivory); --g-accent: var(--saffron); padding: clamp(4rem, 8vw, 7rem) 0; background: var(--g-bg); color: var(--g-fg); transition: background-color .7s var(--ease), color .7s var(--ease); }
.glance[data-theme="kalyanam"] { --g-bg: var(--kasavu); --g-fg: var(--ink); --g-accent: var(--gold); }
.glance[data-theme="reception"] { --g-bg: var(--emerald-d); --g-fg: var(--ivory); --g-accent: var(--gold); }
.glance .h2 { color: inherit; }
.glance__lede { margin: 1rem 0 2.5rem; font-size: 1.15rem; opacity: .9; }
.glance__tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: .8rem; margin-bottom: 2rem; }
.glance__tabs button { text-align: left; padding: 1.1rem 1.3rem; border: 2px solid currentColor; border-radius: 18px 18px 4px 4px; background: transparent; color: inherit; font: 600 .95rem/1.2 var(--sans); cursor: pointer; opacity: .7; transition: opacity .3s, background-color .3s, color .3s; }
.glance__tabs button b { display: block; font: 400 clamp(1.4rem, 2.4vw, 2rem)/1.1 var(--display); margin-top: .3rem; }
.glance__tabs button:hover { opacity: 1; }
.glance__tabs button[aria-selected="true"] { opacity: 1; background: var(--g-fg); color: var(--g-bg); border-color: var(--g-fg); }
.panel { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; padding: clamp(1.5rem, 3vw, 2.5rem) 0; border-top: 1px solid currentColor; }
.panel[hidden] { display: none; }
.panel__time { font-weight: 700; color: var(--g-accent); margin-bottom: .6rem; }
.panel h3 { font-size: clamp(2rem, 3.6vw, 3rem); margin-bottom: 1rem; }
.panel__dress { padding-top: 1rem; border-top: 1px dashed currentColor; }
.panel__dress b { color: var(--g-accent); margin-right: .4rem; }
.swatches { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.swatches li { display: grid; gap: .6rem; justify-items: center; text-align: center; font-weight: 600; font-size: .95rem; }
.swatches li::before { content: ""; width: 100%; max-width: 120px; aspect-ratio: 2 / 3; background: var(--c); -webkit-mask: var(--arch) center / 100% 100%; mask: var(--arch) center / 100% 100%; box-shadow: inset 0 0 0 1px rgba(0,0,0,.1); filter: drop-shadow(0 0 0 rgba(0,0,0,0)); }
.swatches li { position: relative; }
.link--more { display: inline-block; margin-top: 2rem; }

/* ---------- Band ---------- */
.band { position: relative; height: clamp(360px, 70vh, 720px); overflow: hidden; }
.band img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.band__count { position: absolute; left: var(--gutter); bottom: var(--gutter); background: var(--ivory); color: var(--emerald); padding: 1.2rem 1.6rem; border-radius: 120px 120px 10px 10px; text-align: center; min-width: 190px; }
.band__count p { margin: 0; }
.band__count b { display: block; font: 400 clamp(3rem, 6vw, 4.6rem)/1 var(--display); color: var(--magenta); padding-top: .6rem; }
.band__count span { font-weight: 600; }

/* ---------- Page heads ---------- */
.pagehead { position: relative; padding: clamp(3.5rem, 8vw, 6rem) var(--gutter) clamp(4.5rem, 8vw, 6.5rem); background: var(--emerald); color: var(--ivory); }
.pagehead .border { position: absolute; left: 0; right: 0; bottom: 0; background: var(--saffron); }
.pagehead__title { font-size: clamp(3rem, 7.5vw, 6.6rem); line-height: .95; }
.pagehead__lede { font-size: clamp(1.1rem, 1.6vw, 1.3rem); max-width: 48ch; margin: 1.5rem 0 0; opacity: .92; }
.jump { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 2.2rem; }
.jump a { display: inline-flex; align-items: center; gap: .6rem; padding: .6rem 1.1rem; border: 1px solid rgba(251,246,236,.45); border-radius: 99px; text-decoration: none; font-weight: 600; }
.jump a::before { content: ""; width: 14px; height: 14px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 2px rgba(251,246,236,.5); }
.jump a:hover { background: rgba(251,246,236,.1); }
.pagehead--photo { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.arch--wide { aspect-ratio: 4 / 3; }

/* ---------- Events ---------- */
.event { --e-bg: var(--magenta); --e-fg: var(--ivory); --e-accent: var(--saffron); padding: clamp(4rem, 9vw, 7.5rem) 0; background: var(--e-bg); color: var(--e-fg); }
.event--wedding { --e-bg: var(--kasavu); --e-fg: var(--ink); --e-accent: var(--gold); }
.event--reception { --e-bg: var(--emerald-d); --e-fg: var(--ivory); --e-accent: var(--gold); }
.event__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem, 6vw, 6rem); }
.event__when { font-weight: 700; color: var(--e-accent); font-size: 1.1rem; line-height: 1.4; }
.event__title { font-size: clamp(3.2rem, 7vw, 6rem); line-height: .95; }
.event__origin { margin-top: 1rem; font-size: 1.1rem; opacity: .85; }
.event__arch { width: min(320px, 100%); aspect-ratio: 2 / 3; margin-top: 2rem; background: var(--e-accent); }
.event__lede { font: 400 clamp(1.3rem, 2vw, 1.65rem)/1.4 var(--display); margin-bottom: 2rem; }
.event__steps { list-style: none; margin: 0 0 2.5rem; padding: 0; }
.event__steps li { display: grid; grid-template-columns: 4.5rem 1fr; gap: 1rem; padding: .8rem 0; border-top: 1px solid color-mix(in srgb, currentColor 25%, transparent); }
.event__steps time { font-weight: 700; color: var(--e-accent); }
.event--wedding .event__steps time { color: #8A6420; }
.dress { padding: 1.6rem 1.8rem 1.8rem; border: 2px solid var(--e-accent); border-radius: 26px 26px 6px 6px; }
.dress h3 { font-size: 1.8rem; margin-bottom: .5rem; }
.swatches--row { margin-top: 1.4rem; }
.swatches--row li::before { max-width: 80px; }
.cta-band { background: var(--saffron); color: var(--emerald-d); padding: 3rem 0; }
.cta-band .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; }
.cta-band p { font: 400 clamp(1.5rem, 2.8vw, 2.2rem)/1.2 var(--display); margin: 0; }
.cta-band .btn--light:hover { background: var(--emerald); color: var(--ivory); }

/* ---------- Travel ---------- */
.route, .stay, .tips { padding: clamp(4rem, 8vw, 6.5rem) 0; }
.journey { list-style: none; margin: 2.5rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; position: relative; }
.journey::before { content: ""; position: absolute; top: 11px; left: 0; right: 0; border-top: 2px dashed var(--gold); }
.journey li { position: relative; padding-top: 2.4rem; }
.journey__dot { position: absolute; top: 0; left: 0; width: 24px; height: 24px; border-radius: 50%; background: var(--magenta); box-shadow: 0 0 0 5px var(--ivory); }
.journey h3 { font-size: 1.7rem; color: var(--emerald); margin-bottom: .5rem; }
.journey p { color: var(--muted); }
.stay { background: var(--kasavu); }
.stay__lede { color: var(--muted); margin: 1rem 0 2.5rem; font-size: 1.15rem; }
.hotels { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 1.2rem; }
.hotel { padding: 2rem 1.7rem; border-radius: 120px 120px 8px 8px; background: var(--ivory); border: 2px solid var(--gold); text-align: center; }
.hotel:first-child { background: var(--emerald); color: var(--ivory); border-color: var(--emerald); }
.hotel__tag { display: inline-block; font-weight: 700; font-size: .9rem; color: var(--magenta); padding-top: 1.6rem; margin-bottom: .6rem; }
.hotel:first-child .hotel__tag { color: var(--saffron); }
.hotel h3 { font-size: 1.9rem; margin-bottom: .8rem; }
.hotel__meta { font-weight: 700; margin: 0; }
.tips__grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(2rem, 6vw, 6rem); }
.tips__list { margin: 0; }
.tips__list div { display: grid; grid-template-columns: 9rem 1fr; gap: 1rem; padding: 1.1rem 0; border-top: 1px solid rgba(29,26,20,.15); }
.tips__list dt { font: 400 1.35rem/1.3 var(--display); color: var(--magenta); }
.tips__list dd { margin: 0; }

/* ---------- RSVP ---------- */
.rsvp { padding: clamp(3rem, 7vw, 6rem) 0; background: linear-gradient(var(--emerald) 0 340px, var(--ivory) 340px); }
.rsvp__grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.rsvp__side { color: var(--ivory); }
.rsvp__arch { width: min(340px, 100%); aspect-ratio: 2 / 3; margin-top: 2rem; }
.form { display: grid; gap: 1.2rem; background: var(--ivory); padding: clamp(1.5rem, 4vw, 2.8rem); border-radius: 30px 30px 8px 8px; box-shadow: 0 30px 60px -30px rgba(10,49,41,.45); border: 2px solid var(--gold); }
.f { display: grid; gap: .35rem; min-width: 0; }
.f > span { font-weight: 700; font-size: .98rem; }
.f input, .f select, .f textarea { width: 100%; font: 400 1.05rem/1.4 var(--sans); color: var(--ink); background: #fff; border: 1.5px solid #CDBF9F; border-radius: 10px; padding: .7rem .85rem; }
.f input:focus, .f select:focus, .f textarea:focus { outline: none; border-color: var(--magenta); box-shadow: 0 0 0 3px rgba(163,19,79,.15); }
.f-two { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.evpick { border: 0; margin: .4rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: .8rem; }
.evpick legend { font: 400 1.6rem/1.2 var(--display); color: var(--emerald); margin-bottom: .8rem; padding: 0; }
.evpick__item { position: relative; cursor: pointer; }
.evpick__item input { position: absolute; opacity: 0; }
.evpick__card { display: grid; gap: .25rem; height: 100%; padding: 1.1rem 1rem 1rem; border: 2px solid #D9CCAE; border-radius: 60px 60px 8px 8px; text-align: center; transition: border-color .3s, background-color .3s, transform .3s var(--ease); }
.evpick__card b { font: 400 1.35rem/1.1 var(--display); }
.evpick__when { font-size: .88rem; font-weight: 600; color: var(--muted); padding-top: .8rem; }
.evpick__dots { display: flex; justify-content: center; gap: 4px; margin-top: .5rem; }
.evpick__dots i { width: 14px; height: 14px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgba(0,0,0,.15); }
.evpick__item input:checked + .evpick__card { border-color: var(--c); background: color-mix(in srgb, var(--c) 14%, #fff); transform: translateY(-3px); }
.evpick__item input:checked + .evpick__card::after { content: "Joining"; font-size: .8rem; font-weight: 700; color: var(--emerald); }
.evpick__item input:focus-visible + .evpick__card { outline: 3px solid var(--saffron); outline-offset: 2px; }
.summary { margin: 0; padding: .7rem 1rem; border-radius: 10px; background: var(--kasavu); font-weight: 700; color: var(--emerald); }
.form .btn { justify-self: start; }
.form__status { margin: 0; font-weight: 600; color: var(--magenta); min-height: 1.4em; }

/* ---------- Footer ---------- */
.foot { background: var(--emerald-d); color: var(--ivory); }
.foot .border { background: var(--gold); transform: scaleY(-1); }
.foot__row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .6rem 2rem; padding: 2.8rem 0 2.4rem; }
.foot__row p { margin: 0; }
.foot__names { font: 2rem/1 var(--display); }
.foot__credit { font-size: .88rem; opacity: .75; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero, .story__grid, .panel, .event__grid, .pagehead--photo, .tips__grid, .rsvp__grid { grid-template-columns: 1fr; }
  .hero__arch { width: min(340px, 80%); }
  .hotels, .journey { grid-template-columns: 1fr; }
  .journey::before { top: 0; bottom: 0; left: 11px; right: auto; border-top: 0; border-left: 2px dashed var(--gold); }
  .journey li { padding: 0 0 0 3rem; }
  .rsvp { background: linear-gradient(var(--emerald) 0 520px, var(--ivory) 520px); }
  .rsvp__arch { display: none; }
}
@media (max-width: 720px) {
  .nav__toggle { display: grid; }
  .nav__menu { position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; padding: .8rem var(--gutter) 1.4rem; background: var(--emerald-d); border-top: 1px solid rgba(251,246,236,.12); display: none; }
  .nav__menu.is-open { display: flex; }
  .nav__menu a { padding: .8rem .4rem; font-size: 1.1rem; }
  .nav__menu .nav__cta { margin: .6rem 0 0; text-align: center; }
  .glance__tabs { grid-template-columns: 1fr; }
  .glance__tabs button { border-radius: 14px; }
  .swatches { gap: .6rem; }
  .swatches li::before { max-width: 64px; }
  .swatches li { font-size: .85rem; }
  .f-two, .evpick { grid-template-columns: 1fr; }
  .evpick__card { border-radius: 16px; grid-template-columns: 1fr auto; text-align: left; padding: .9rem 1rem; }
  .evpick__when { padding-top: 0; grid-column: 1; }
  .evpick__card b { grid-column: 1; }
  .evpick__dots { grid-column: 2; grid-row: 1 / 3; align-self: center; }
  .evpick__item input:checked + .evpick__card::after { grid-column: 1 / -1; }
  .tips__list div { grid-template-columns: 1fr; gap: .2rem; }
  .hotel { border-radius: 90px 90px 8px 8px; }
  .band__count { min-width: 150px; padding: 1rem 1.2rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; scroll-behavior: auto !important; }
}
