/* =========================================================
   Lakshay & Sanjana — wedding invitation
   Paper, ink, one oxblood accent, gold only as hairline.
   ========================================================= */
:root {
  --paper: #f7f3ec;
  --paper-deep: #efe8dc;
  --ink: #1f1a17;
  --ink-soft: #4a423c;
  --muted: #6e645b;
  --line: rgba(31, 26, 23, 0.14);
  --oxblood: #5e1a25;
  --oxblood-deep: #3f1018;
  --gold: #b8975a;
  --gold-soft: #d9c49b;
  --white: #ffffff;

  --font-display: "Cormorant Garamond", "Cormorant", Georgia, serif;
  --font-body: "Jost", "Futura", "Century Gothic", system-ui, sans-serif;
  --font-hindi: "Tiro Devanagari Hindi", serif;

  --ease-out: cubic-bezier(.2, .7, .2, 1);
  --measure: 34rem;
  --gutter: clamp(1.25rem, 5vw, 3rem);

  /* legacy names still referenced by petals/doors */
  --maroon: var(--oxblood);
  --maroon-dark: var(--oxblood-deep);
  --gold-light: var(--gold-soft);
  --ivory: var(--paper);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.locked { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 300; line-height: 1.05; margin: 0; letter-spacing: -0.01em; }

.skip-link { position: absolute; left: -999px; top: 0; padding: .75rem 1rem; background: var(--ink); color: var(--paper); z-index: 200; }
.skip-link:focus { left: 0; }
:focus-visible { outline: 1px solid var(--oxblood); outline-offset: 4px; }

.container { width: min(1080px, 100% - 2 * var(--gutter)); margin: 0 auto; }
.container--narrow { width: min(760px, 100% - 2 * var(--gutter)); }
.section { padding: clamp(4.5rem, 12vw, 8.5rem) 0; }
.section--alt { background: var(--paper-deep); }

.section__title {
  font-size: clamp(2.6rem, 7vw, 4rem);
  text-align: center; color: var(--ink);
}
.section__hindi {
  font-family: var(--font-hindi); text-align: center; color: var(--gold);
  font-size: .95rem; margin: .6rem 0 clamp(2.5rem, 7vw, 4.5rem);
}
.amp { font-family: var(--font-display); font-style: italic; font-weight: 300; color: var(--gold); }
.rule { display: block; width: 3rem; height: 1px; background: var(--gold); margin: 0 auto; }

/* ---------- Opening: palace doors ---------- */
.envelope {
  position: fixed; inset: 0; z-index: 90;
  display: grid; place-items: center;
  perspective: 1800px; overflow: hidden; background: transparent;
}
.envelope.is-opening { pointer-events: none; }
.envelope.is-open { visibility: hidden; }

.door {
  position: absolute; top: 0; bottom: 0; width: 50.5%;
  background: linear-gradient(180deg, #6a1f2b 0%, var(--oxblood-deep) 100%);
  backface-visibility: hidden;
  transition: transform 2.2s cubic-bezier(.6, 0, .25, 1) .4s, filter 2.2s ease .4s;
  will-change: transform;
}
.door--left  { left: 0;  transform-origin: left center;  box-shadow: inset -1px 0 0 rgba(217, 196, 155, .35); }
.door--right { right: 0; transform-origin: right center; box-shadow: inset 1px 0 0 rgba(217, 196, 155, .35); }
.door::before { /* single hairline arch */
  content: ""; position: absolute; inset: 7% 16% 6%;
  border: 1px solid rgba(217, 196, 155, .55);
  border-radius: 999px 999px 0 0;
}
.door::after { /* slim pull */
  content: ""; position: absolute; top: 50%; width: 2px; height: 56px; margin-top: -28px;
  background: var(--gold-soft); border-radius: 2px; opacity: .85;
}
.door--left::after  { right: 14px; }
.door--right::after { left: 14px; }
.envelope.is-opening .door--left  { transform: rotateY(-108deg); filter: brightness(.65); }
.envelope.is-opening .door--right { transform: rotateY(108deg);  filter: brightness(.65); }

.envelope__card {
  position: relative; z-index: 2;
  width: min(440px, 100% - 3rem);
  padding: clamp(2.5rem, 8vw, 3.75rem) clamp(1.75rem, 6vw, 3rem);
  background: var(--paper);
  border: 1px solid var(--gold-soft);
  text-align: center;
  animation: rise 1s var(--ease-out) both;
}
.envelope__card::before { /* inner hairline frame */
  content: ""; position: absolute; inset: 8px; border: 1px solid var(--line); pointer-events: none;
}
.envelope.is-opening .envelope__card { animation: card-out .6s cubic-bezier(.5, 0, .75, 0) forwards; }
@keyframes rise { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes card-out { to { transform: scale(.94) translateY(-10px); opacity: 0; } }

.envelope__ganesh { font-family: var(--font-hindi); color: var(--oxblood); font-size: .85rem; margin: 0 0 1.75rem; }
.envelope__to { font-family: var(--font-display); font-style: italic; font-size: 1.35rem; color: var(--ink-soft); margin: 0 0 1rem; }
.envelope__eyebrow { font-size: .68rem; font-weight: 500; letter-spacing: .32em; text-transform: uppercase; color: var(--muted); margin: 0; }
.envelope__names { font-size: clamp(2.6rem, 10vw, 3.6rem); color: var(--ink); margin: 1rem 0 .9rem; line-height: 1; }
.envelope__names .amp { display: block; font-size: .55em; margin: .25rem 0; }
.envelope__date { font-family: var(--font-display); font-size: 1.15rem; color: var(--ink-soft); margin: 0 0 2.25rem; }

.btn-open {
  font: 500 .72rem/1 var(--font-body); letter-spacing: .28em; text-transform: uppercase;
  color: var(--paper); background: var(--oxblood);
  border: 0; padding: 1.1rem 2rem; cursor: pointer;
  transition: background .3s ease, letter-spacing .3s ease;
}
.btn-open:hover { background: var(--oxblood-deep); letter-spacing: .32em; }

/* Petals */
.petals { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.petal {
  position: absolute; top: -6vh; width: 11px; height: 15px;
  border-radius: 60% 0 60% 0; opacity: .9;
  animation: petal-fall var(--dur, 3.2s) cubic-bezier(.3, .2, .6, 1) var(--delay, 0s) forwards;
}
@keyframes petal-fall {
  0%   { transform: translate3d(0, 0, 0) rotate(0deg); }
  50%  { transform: translate3d(var(--sway, 30px), 55vh, 0) rotate(calc(var(--spin, 360deg) * .5)); }
  100% { transform: translate3d(calc(var(--sway, 30px) * -.6), 112vh, 0) rotate(var(--spin, 360deg)); opacity: .15; }
}

/* Hero entrance behind the doors */
.hero--enter .hero__content > * { animation: hero-in 1s var(--ease-out) both; }
.hero--enter .hero__content > :nth-child(1) { animation-delay: 1.15s; }
.hero--enter .hero__content > :nth-child(2) { animation-delay: 1.3s; }
.hero--enter .hero__content > :nth-child(3) { animation-delay: 1.45s; }
.hero--enter .hero__content > :nth-child(4) { animation-delay: 1.6s; }
.hero--enter .hero__content > :nth-child(5) { animation-delay: 1.75s; }
.hero--enter .hero__content > :nth-child(n+6) { animation-delay: 1.9s; }
.hero--enter .hero__photo img { animation: photo-in 2.2s var(--ease-out) .8s both; }
@keyframes hero-in { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes photo-in { from { opacity: 0; transform: scale(1.08); filter: blur(4px); } to { opacity: 1; transform: none; filter: none; } }

@media (prefers-reduced-motion: reduce) {
  .door, .envelope__card { transition: opacity .4s ease; }
  .envelope.is-opening .door--left, .envelope.is-opening .door--right { transform: none; opacity: 0; }
  .petals { display: none; }
}

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.1rem var(--gutter);
  background: rgba(247, 243, 236, .88);
  -webkit-backdrop-filter: saturate(1.2) blur(10px); backdrop-filter: saturate(1.2) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav__brand {
  font-family: var(--font-display); font-size: 1.5rem; font-weight: 400; letter-spacing: .04em;
  text-decoration: none; color: var(--ink);
}
.nav__brand i { font-style: italic; font-weight: 300; color: var(--gold); margin: 0 .12em; }
.nav__toggle { display: grid; gap: 6px; background: none; border: 0; padding: .5rem; cursor: pointer; }
.nav__toggle span { width: 22px; height: 1px; background: var(--ink); display: block; }
.nav__links {
  display: none; position: absolute; top: 100%; left: 0; right: 0;
  flex-direction: column; padding: .5rem var(--gutter) 1.25rem;
  background: var(--paper); border-bottom: 1px solid var(--line);
}
.nav__links.is-open { display: flex; }
.nav__links a {
  padding: .8rem 0; text-decoration: none; color: var(--ink);
  font-size: .72rem; font-weight: 500; letter-spacing: .26em; text-transform: uppercase;
}
.nav__links a + a { border-top: 1px solid var(--line); }
@media (min-width: 860px) {
  .nav__toggle { display: none; }
  .nav__links { display: flex; position: static; flex-direction: row; gap: 2.5rem; padding: 0; background: none; border: 0; }
  .nav__links a { padding: .25rem 0; position: relative; }
  .nav__links a + a { border-top: 0; }
  .nav__links a::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px; background: var(--oxblood);
    transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease-out);
  }
  .nav__links a:hover::after { transform: scaleX(1); }
}

/* ---------- Hero ---------- */
.hero { padding: clamp(2.5rem, 7vw, 6rem) 0 clamp(4.5rem, 10vw, 7rem); }
.hero__inner {
  width: min(1080px, 100% - 2 * var(--gutter)); margin: 0 auto;
  display: grid; gap: clamp(2.5rem, 6vw, 5rem); align-items: center; justify-items: center;
}
@media (min-width: 900px) {
  .hero__inner { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); justify-items: stretch; }
}
.hero__photo { margin: 0; width: min(380px, 78vw); justify-self: center; }
.hero__photo img {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 35%;
  border-radius: 999px 999px 0 0;
}
.hero__content { text-align: center; }
@media (min-width: 900px) { .hero__content { text-align: left; } }

.hero__to { font-family: var(--font-display); font-style: italic; font-size: 1.4rem; color: var(--ink-soft); margin: 0 0 1.25rem; }
.hero__hindi { font-family: var(--font-hindi); color: var(--gold); font-size: 1rem; margin: 0; }
.hero__names { font-size: clamp(3.4rem, 13vw, 6.5rem); color: var(--ink); margin: .5rem 0 1.5rem; line-height: .95; }
.hero__names > span { display: block; }
.hero__names .amp { font-size: .5em; line-height: 1.3; }
.hero__date {
  font-size: .78rem; font-weight: 500; letter-spacing: .24em; text-transform: uppercase; color: var(--ink-soft);
  margin: 0 0 2.5rem; display: flex; flex-wrap: wrap; gap: .6rem 1rem; align-items: center; justify-content: center;
}
@media (min-width: 900px) { .hero__date { justify-content: flex-start; } }
.hero__date .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--gold); }
@media (max-width: 899px) { .hero__date { flex-direction: column; gap: .55rem; } .hero__date .dot { display: none; } }

.countdown {
  display: grid; grid-template-columns: repeat(4, 1fr);
  max-width: 26rem; margin: 0 auto;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
@media (min-width: 900px) { .countdown { margin: 0; } }
.countdown div { padding: 1.1rem 0; text-align: center; }
.countdown div + div { border-left: 1px solid var(--line); }
.countdown strong {
  display: block; font-family: var(--font-display); font-weight: 300; font-size: clamp(1.9rem, 6vw, 2.6rem);
  line-height: 1; color: var(--ink); font-variant-numeric: lining-nums tabular-nums;
}
.countdown span { display: block; margin-top: .45rem; font-size: .6rem; font-weight: 500; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); }

.hero__actions { margin-top: 2.5rem; }
.link-cta {
  display: inline-flex; gap: .6rem; align-items: center;
  font-size: .72rem; font-weight: 500; letter-spacing: .26em; text-transform: uppercase;
  color: var(--oxblood); text-decoration: none;
  padding-bottom: .4rem; border-bottom: 1px solid currentColor;
  transition: gap .3s var(--ease-out);
}
.link-cta:hover { gap: 1rem; }
.hero__hashtag { margin: 2rem 0 0; font-family: var(--font-display); font-style: italic; font-size: 1.1rem; color: var(--muted); }

/* ---------- Invitation wording ---------- */
.invite { padding-top: clamp(1rem, 4vw, 2rem); }
.invite__card { max-width: var(--measure); text-align: center; }
.invite__text { font-family: var(--font-display); font-size: clamp(1.15rem, 3.4vw, 1.35rem); line-height: 1.6; color: var(--ink-soft); margin: 2.25rem 0; }
.invite__text strong { font-weight: 500; color: var(--ink); }
.invite__names { font-family: var(--font-display); font-weight: 300; font-size: clamp(2.2rem, 7vw, 3.1rem); line-height: 1.1; color: var(--ink); margin: 0; }
.invite__names .amp { display: inline-block; font-size: .5em; margin: .5rem 0; }

/* ---------- Story (shown only when config has entries) ---------- */
.timeline { list-style: none; padding: 0; margin: 0 auto; max-width: 720px; }
.timeline li { padding: 2rem 0; border-top: 1px solid var(--line); }
.timeline .year { font-size: .7rem; font-weight: 500; letter-spacing: .26em; text-transform: uppercase; color: var(--gold); }
.timeline h3 { font-size: 2rem; margin: .4rem 0 .5rem; }
.timeline p { margin: 0; color: var(--ink-soft); }
.timeline li.has-photo { display: grid; gap: 1.5rem; align-items: start; }
@media (min-width: 640px) { .timeline li.has-photo { grid-template-columns: 1fr 220px; } }
.timeline__photo { margin: 0; }
.timeline__photo img { width: 100%; aspect-ratio: 1; object-fit: cover; object-position: 50% 30%; }
.timeline__photo figcaption { margin-top: .6rem; font-family: var(--font-display); font-style: italic; color: var(--muted); }

/* ---------- Events ---------- */
.events {
  display: grid; grid-template-columns: 1fr;
  column-gap: clamp(2.5rem, 6vw, 5rem);
  max-width: 1000px; margin: 0 auto;
}
@media (min-width: 820px) { .events { grid-template-columns: repeat(2, 1fr); } }
.events--single { grid-template-columns: minmax(0, 480px); justify-content: center; }
.event {
  display: grid; grid-template-columns: clamp(3.75rem, 12vw, 5rem) 1fr; gap: clamp(1rem, 4vw, 2rem);
  padding: clamp(2rem, 5vw, 2.75rem) 0;
  border-top: 1px solid var(--line);
}
.event__date { display: grid; justify-items: start; align-content: start; }
.event__day {
  font-family: var(--font-display); font-weight: 300; font-size: clamp(3.6rem, 11vw, 4.6rem);
  line-height: .8; color: var(--oxblood); font-variant-numeric: lining-nums;
}
.event__mon {
  margin-top: .9rem; font-size: .6rem; font-weight: 500; letter-spacing: .24em; line-height: 1.7;
  text-transform: uppercase; color: var(--muted);
}
.event__body { min-width: 0; }
.event h3 { font-size: clamp(1.9rem, 5vw, 2.3rem); color: var(--ink); }
.event__hindi { display: block; font-family: var(--font-hindi); font-size: .85rem; color: var(--gold); margin-top: .5rem; letter-spacing: 0; }
.event__when { margin: 1rem 0 0; font-size: .95rem; font-weight: 400; color: var(--ink); }
.event__where { margin: .35rem 0 0; display: grid; gap: .2rem; }
.event__where span { font-family: var(--font-display); font-size: 1.25rem; font-weight: 500; color: var(--ink); line-height: 1.3; }
.event__where small { font-size: .85rem; line-height: 1.55; color: var(--muted); }
.event__attire { margin: 1rem 0 0; font-size: .9rem; color: var(--ink-soft); }
.event__attire span {
  display: block; margin-bottom: .2rem;
  font-size: .6rem; font-weight: 500; letter-spacing: .24em; text-transform: uppercase; color: var(--gold);
}
.event__note { margin: .75rem 0 0; font-family: var(--font-display); font-style: italic; color: var(--muted); }
.event__links { display: flex; flex-wrap: wrap; gap: .6rem 1.25rem; margin: 1.5rem 0 0; }
.event__links a {
  font-size: .68rem; font-weight: 500; letter-spacing: .22em; text-transform: uppercase;
  text-decoration: none; color: var(--oxblood);
  padding-bottom: .3rem; border-bottom: 1px solid var(--gold-soft);
  transition: border-color .25s ease;
}
.event__links a:hover { border-bottom-color: var(--oxblood); }
.event__links a:first-child::after { content: " ↗"; letter-spacing: 0; }
.event__links a:last-child { color: var(--muted); }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- Wishes ---------- */
.wishes__lead { text-align: center; max-width: var(--measure); margin: -1.5rem auto clamp(2.5rem, 6vw, 3.5rem); font-family: var(--font-display); font-size: 1.2rem; color: var(--ink-soft); }
.wish-form { max-width: 640px; margin: 0 auto; display: grid; gap: 1.75rem; }
.wish-form__row { display: grid; gap: 1.75rem; }
@media (min-width: 620px) { .wish-form__row { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: .5rem; position: relative; }
.field > span { font-size: .62rem; font-weight: 500; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); }
.field > span em { font-style: normal; letter-spacing: .1em; text-transform: none; color: var(--muted); opacity: .8; }
.field input, .field textarea {
  width: 100%; font: 300 1.05rem/1.5 var(--font-body); color: var(--ink);
  background: transparent; border: 0; border-bottom: 1px solid var(--line); border-radius: 0;
  padding: .5rem 0; transition: border-color .25s ease;
}
.field textarea { resize: vertical; min-height: 6.5rem; }
.field input::placeholder { color: var(--muted); opacity: .6; }
.field input:focus, .field textarea:focus { outline: none; border-bottom-color: var(--oxblood); }
.field__count { justify-self: end; font-size: .7rem; color: var(--muted); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.wish-form__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; }
.btn-open:disabled { opacity: .55; cursor: progress; }
.wish-form__status { margin: 0; font-size: .9rem; color: var(--ink-soft); }

.wall {
  max-width: 1000px; margin: clamp(3.5rem, 9vw, 5.5rem) auto 0;
  columns: 1; column-gap: clamp(2rem, 5vw, 3.5rem);
  border-top: 1px solid var(--line); padding-top: clamp(2rem, 5vw, 3rem);
}
@media (min-width: 700px)  { .wall { columns: 2; } }
@media (min-width: 1040px) { .wall { columns: 3; } }
.wall__state { column-span: all; text-align: center; font-family: var(--font-display); font-style: italic; font-size: 1.15rem; color: var(--muted); margin: 0; }
.wish { break-inside: avoid; margin: 0 0 2.25rem; padding-bottom: 2.25rem; border-bottom: 1px solid var(--line); }
.wish__msg {
  margin: 0; font-family: var(--font-display); font-size: 1.3rem; line-height: 1.45; color: var(--ink);
  white-space: pre-line; overflow-wrap: anywhere;
}
.wish__msg::before { content: "\201C"; display: block; font-size: 2.6rem; line-height: .6; color: var(--gold); margin-bottom: .4rem; }
.wish__by { margin: 1rem 0 0; display: flex; flex-wrap: wrap; gap: .25rem .75rem; align-items: baseline; }
.wish__by span { font-size: .66rem; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: var(--oxblood); }
.wish__by em { font-family: var(--font-display); font-size: 1rem; color: var(--muted); }
.wish__by time { font-size: .72rem; color: var(--muted); margin-left: auto; }

/* ---------- Gallery ---------- */
.gallery { display: grid; gap: .75rem; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
.gallery img { aspect-ratio: 4 / 5; object-fit: cover; width: 100%; }

/* ---------- Contacts ---------- */
.contacts { display: grid; grid-template-columns: 1fr; max-width: 640px; margin: clamp(2.5rem, 7vw, 4rem) auto 0; }
@media (min-width: 560px) { .contacts { grid-template-columns: repeat(2, 1fr); column-gap: 3rem; } }
.contact { padding: 1.75rem 0; border-top: 1px solid var(--line); text-align: center; }
.contact__role { display: block; font-size: .6rem; font-weight: 500; letter-spacing: .26em; text-transform: uppercase; color: var(--gold); }
.contact strong { display: block; margin: .5rem 0 .35rem; font-family: var(--font-display); font-weight: 400; font-size: 1.7rem; color: var(--ink); }
.contact a { font-size: .95rem; letter-spacing: .06em; color: var(--oxblood); text-decoration: none; border-bottom: 1px solid var(--gold-soft); padding-bottom: .15rem; }
.contact a:hover { border-bottom-color: var(--oxblood); }

/* ---------- Footer ---------- */
.footer { text-align: center; padding: clamp(4rem, 10vw, 6rem) var(--gutter); background: var(--oxblood-deep); color: var(--gold-soft); }
.footer__names { font-family: var(--font-display); font-weight: 300; font-size: clamp(2.2rem, 7vw, 3rem); color: var(--paper); margin: 0 0 1rem; }
.footer__names i { color: var(--gold); font-weight: 300; }
.footer p { margin: .35rem 0; }
.footer [data-bind="hashtag"] { font-size: .72rem; font-weight: 500; letter-spacing: .26em; text-transform: uppercase; }
.footer__small { font-family: var(--font-display); font-style: italic; font-size: 1.05rem; opacity: .85; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Misc ---------- */
.ico { width: 1em; height: 1em; vertical-align: -0.12em; margin-right: .4em; fill: none; }
.noscript { background: var(--ink); color: var(--paper); text-align: center; padding: .9rem var(--gutter); font-size: .9rem; }
.event__fallback { grid-column: 1 / -1; text-align: center; color: var(--ink-soft); }

/* Mobile event details */
@media (max-width: 600px) {
  .event { grid-template-columns: 3.25rem minmax(0, 1fr); gap: .8rem; }
  .event__day { font-size: 3rem; }
  .event__mon { font-size: .72rem; letter-spacing: .1em; }
  .event__where small { font-size: .95rem; }
  .event__attire span { font-size: .75rem; letter-spacing: .1em; }
}
.event__links { align-items: center; gap: .75rem; }
.event__links a { font-size: .78rem; letter-spacing: .08em; padding: .75rem .3rem; }
.event__links a:first-child { background: var(--oxblood); color: var(--paper); padding: .85rem 1.1rem; border: 0; }
.calendar-label { font-size: .85rem; color: var(--ink-soft); }

/* Guest-friendly event details */
.event__where small { font-size: 1rem; color: var(--ink-soft); line-height: 1.6; }
.event__mon, .event__attire span { font-size: .78rem; letter-spacing: .1em; color: var(--ink-soft); }
.event--highlight { border-top: 2px solid var(--oxblood); }
.event__actions { display: grid; justify-items: start; gap: .6rem; margin-top: 1.25rem; }
.event__directions { display: inline-flex; align-items: center; min-height: 44px; padding: .8rem 1.1rem; background: var(--oxblood); color: var(--paper); text-decoration: none; font-size: .8rem; font-weight: 500; }
.event__calendar summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; color: var(--oxblood); font-size: .9rem; text-decoration: underline; text-underline-offset: .2em; }
.event__calendar summary::after { content: " ▾"; margin-left: .35rem; }
.event__calendar-options { display: flex; flex-wrap: wrap; gap: .5rem 1.2rem; padding-bottom: .5rem; }
.event__calendar-options a { color: var(--ink); padding: .4rem 0; font-size: .9rem; }
.event__actions a:focus-visible, .event__calendar summary:focus-visible { outline: 2px solid var(--oxblood); outline-offset: 3px; }
.invite { padding-bottom: clamp(2.5rem, 6vw, 4rem); }
.hero__actions .link-cta { font-size: .85rem; padding: .8rem 0; }

/* Festive details */
.hero__actions { display: flex; gap: 1rem 2rem; flex-wrap: wrap; justify-content: center; }
@media (min-width: 900px) { .hero__actions { justify-content: flex-start; } }
.hero__wishes[hidden] { display: none; }
.floral-ornament { text-align: center; color: #b66d67; font-size: 1.15rem; letter-spacing: .35rem; margin-bottom: .8rem; }
.floral-ornament span { color: #c58f3f; font-size: 1.5rem; }
.event__motif { display: block; font-size: 1.5rem; line-height: 1; margin-bottom: .45rem; color: var(--event-accent, #ad7b39); }
.event--ring { --event-accent: #a47b38; }
.event--mehendi { --event-accent: #a65f54; }
.event--haldi { --event-accent: #b07711; }
.event--wedding { --event-accent: #7d2638; }
.event--ring, .event--mehendi, .event--haldi { border-top: 2px solid var(--event-accent); }
.event--highlight { border-top: 2px solid var(--event-accent); }
.event__hindi { color: var(--event-accent); }
#wishes { background: #f3eee3; position: relative; overflow: hidden; }
#wishes .wishes__lead { margin-bottom: 2rem; }
#wishes .wall { columns: initial; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 1rem; border: 0; padding: 0; margin: 2rem auto; }
#wishes .wish { margin: 0; padding: 1.5rem; background: #fbf8f1; border: 1px solid #ded0b7; border-radius: 3px; }
#wishes .wall__state { grid-column: 1 / -1; }
.wishes__action { text-align: center; margin: 2rem 0; }
.wishes__button { display: inline-flex; justify-content: center; align-items: center; min-height: 48px; text-decoration: none; }
#wishForm { scroll-margin-top: 6rem; }
@media (prefers-reduced-motion: no-preference) {
  .floral-ornament { animation: floral-sway 5s ease-in-out infinite; transform-origin: center; }
  @keyframes floral-sway { 50% { transform: translateY(-3px); } }
  #wishes .wish { animation: wish-arrive .6s ease both; }
  #wishes .wish:nth-child(2) { animation-delay: .1s; }
  #wishes .wish:nth-child(3) { animation-delay: .2s; }
  @keyframes wish-arrive { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
}


/* A playful image within the wishes wall */
.wishes__photo { max-width: 320px; margin: 1.5rem auto 2rem; text-align: center; }
.wishes__photo img { display: block; width: 100%; height: auto; object-fit: contain; border: 1px solid #ded0b7; }
.wishes__photo figcaption { margin-top: .8rem; color: var(--ink-soft); font-family: var(--font-display); font-size: 1.15rem; line-height: 1.45; }

/* Wishes: invite participation before showing the wall */
#wishes .wishes__lead { margin-bottom: 1rem; }
.wishes__top-action { text-align: center; margin: 0 auto 2rem; }
.wishes__more { display: block; margin: .5rem auto 1.5rem; min-height: 44px; padding: .6rem 1rem; border: 1px solid #a38b65; background: transparent; color: var(--oxblood); font: inherit; cursor: pointer; }
.wishes__more[hidden] { display: none; }
#wishes .wish { border-radius: 10px; }
#wishForm { scroll-margin-top: 6rem; }
