/* Kaadhani Vizha - a playful teal, coral and sunshine design with swinging jhumkas, balloons and sparkles. */
:root {
  --bg: #fff8e8; --bg2: #ffefd0; --dark: #0f6f73;
  --accent: #f4b73f; --accent-ink: #c2354c; --on-accent: #3b2300;
  --ink: #2f2a3a; --head: #7b2d5b; --muted: #6b6275; --max: 1120px; --nav-h: 64px;
  --nav-ink: #ffffff; --nav-solid: rgba(15, 111, 115, .96); --nav-line: rgba(255, 255, 255, .22); --nav-line2: rgba(255, 255, 255, .5);
  --hero-ink: #e9fffd; --hero-line: rgba(255, 255, 255, .5); --hero-strong: #ffffff; --count-bg: rgba(255, 255, 255, .13);
  --card: #ffffff; --card-line: #f3dfb8; --badge-bg: #ffefd0; --field: #fffaf0; --field-line: #ecd9b0; --ring: rgba(244, 183, 63, .35);
  --on-dark: #e6fbfa; --on-dark-2: #b8e4e2;
  --serif: "Baloo Thambi 2", "Trebuchet MS", system-ui, sans-serif;
  --sans: "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --tamil-sans: "Noto Sans Tamil", "Nunito", system-ui, sans-serif;
  --tamil-serif: "Baloo Thambi 2", "Noto Serif Tamil", system-ui, sans-serif;
}
@keyframes spin { to { rotate: 360deg; } }
@keyframes rise { from { opacity: 0; transform: translateY(26px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes swing { 0%, 100% { transform: rotate(-10deg); } 50% { transform: rotate(10deg); } }
@keyframes floaty { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(14px, -22px) scale(1.06); } }
@keyframes wobble { 0%, 100% { transform: rotate(-2deg) translateY(0); } 50% { transform: rotate(2deg) translateY(-8px); } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes shine { 0%, 55% { transform: translateX(-130%); } 100% { transform: translateX(130%); } }
@keyframes flipin { 0% { opacity: .35; transform: rotateX(-70deg); } 100% { opacity: 1; transform: none; } }
@keyframes pop { 0% { transform: scale(.85) rotate(-4deg); } 60% { transform: scale(1.08) rotate(3deg); } 100% { transform: none; } }

/* ---------------------------------------------------------------- hero */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: grid; place-items: center; text-align: center; color: var(--hero-ink); overflow: hidden; isolation: isolate;
  background-color: #0f6f73; background-image: radial-gradient(ellipse at 50% 30%, rgba(255,255,255,.13) 0%, rgba(255,255,255,0) 55%, rgba(0,0,0,.36) 100%); padding: 9rem 1.25rem 5.5rem; }
.fx-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; pointer-events: none; }
.blob { position: absolute; border-radius: 50%; z-index: 0; pointer-events: none; filter: blur(2px); translate: var(--px, 0) var(--py, 0); transition: translate .5s ease-out; animation: floaty 9s ease-in-out infinite; }
.b1 { width: min(36vw, 340px); aspect-ratio: 1; left: -8%; bottom: 6%; background: radial-gradient(circle at 35% 30%, #ff9aa8, #f0667a 60%, #d84a60); opacity: .85; }
.b2 { width: min(22vw, 220px); aspect-ratio: 1; right: -4%; top: 22%; background: radial-gradient(circle at 35% 30%, #ffe08a, #f4b73f 65%, #e29d1a); opacity: .9; animation-delay: -3s; animation-duration: 11s; }
.b3 { width: min(16vw, 150px); aspect-ratio: 1; right: 14%; bottom: 8%; background: radial-gradient(circle at 35% 30%, #c9f2e1, #7ccf9b 70%); opacity: .8; animation-delay: -6s; }
.jhumka { position: absolute; top: calc(var(--nav-h) - 6px); z-index: 3; width: clamp(54px, 8.5vw, 118px); height: auto; transform-origin: 50% 0; pointer-events: none;
  translate: var(--px, 0) var(--py, 0); animation: swing 3.6s ease-in-out infinite; filter: drop-shadow(0 10px 8px rgba(0, 0, 0, .25)); }
.j1 { left: 5%; } .j2 { left: 15%; width: clamp(40px, 6vw, 84px); animation-delay: -1.4s; animation-duration: 3s; }
.j3 { right: 15%; width: clamp(40px, 6vw, 84px); animation-delay: -.7s; animation-duration: 3.3s; } .j4 { right: 5%; animation-delay: -2.2s; }
.hero-inner { position: relative; z-index: 4; max-width: 900px; }
.hero-inner > * { animation: rise .9s cubic-bezier(.2, .9, .3, 1.2) both; }
.hero-inner > :nth-child(2) { animation-delay: .1s; } .hero-inner > :nth-child(3) { animation-delay: .22s; } .hero-inner > :nth-child(4) { animation-delay: .34s; }
.hero-inner > :nth-child(5) { animation-delay: .46s; } .hero-inner > :nth-child(6) { animation-delay: .58s; } .hero-inner > :nth-child(7) { animation-delay: .7s; }
.hero-inner > :nth-child(8) { animation-delay: .82s; } .hero-inner > :nth-child(9) { animation-delay: .94s; }
.invocation { font-family: var(--serif); font-size: clamp(1rem, 2.4vw, 1.3rem); color: #ffe08a; letter-spacing: .05em; }
.occasion { display: inline-block; margin-top: 1rem; padding: .5rem 1.5rem; border-radius: 999px; background: var(--accent); color: #3b2300; font: 800 clamp(.95rem, 2.4vw, 1.2rem)/1.2 var(--serif);
  letter-spacing: .12em; text-transform: uppercase; transform: rotate(-2.5deg); box-shadow: 0 6px 0 rgba(0, 0, 0, .18); }
#names { margin-top: 1rem; font: 800 clamp(3.4rem, 13vw, 8.4rem)/1.02 var(--serif); color: #fff; text-shadow: 0 7px 0 rgba(0, 0, 0, .16); display: flex; justify-content: center; }
#names .n1 { display: inline-block; animation: wobble 5s ease-in-out infinite; }
.kicker { margin: .6rem auto 0; max-width: 40ch; font-size: .9rem; letter-spacing: .14em; text-transform: uppercase; color: #bff0ec; }
.hero-line { margin-top: .5rem; font: 600 clamp(1.15rem, 2.8vw, 1.6rem)/1.4 var(--serif); color: #fff2c4; }
.hero-date { margin-top: 1.1rem; font: 700 clamp(1.5rem, 3.6vw, 2.1rem)/1.3 var(--serif); color: #fff; }
.hero-place { margin-top: .3rem; color: #d3f6f3; }
.count b { font-family: var(--serif); font-weight: 800; transform-origin: 50% 0; }
.count b.flip { animation: flipin .55s ease both; }
.btn-primary { position: relative; overflow: hidden; box-shadow: 0 6px 0 rgba(0, 0, 0, .18); }
.btn-primary:active { box-shadow: 0 2px 0 rgba(0, 0, 0, .18); transform: translateY(4px); }
.btn-primary::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .65) 50%, transparent 70%); animation: shine 4.5s ease-in-out infinite; pointer-events: none; }

/* ---------------------------------------------------------------- ribbon, waves */
.ribbon { background: #f0667a; color: #fff; overflow: hidden; white-space: nowrap; padding: .9rem 0; transform: rotate(-1.2deg); margin: -1.1rem -2% 0; position: relative; z-index: 5; box-shadow: 0 8px 0 rgba(0, 0, 0, .08); }
.ribbon-track { display: inline-flex; gap: 1.8rem; align-items: center; animation: marquee 30s linear infinite; padding-left: 1.8rem; }
.ribbon:hover .ribbon-track { animation-play-state: paused; }
.ribbon-track > span { font: 800 1rem/1 var(--serif); letter-spacing: .2em; text-transform: uppercase; }
.ribbon-track > i { font-style: normal; color: #ffe08a; }
.section::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 60px; transform: translateY(-99%); pointer-events: none; background: center / 100% 100% no-repeat; }
.section.tint::before { background-image: url("../images/wave-tint.svg"); }
.section.dark::before { background-image: url("../images/wave-teal.svg"); }
.section:not(.tint):not(.dark):not(.invite)::before { background-image: url("../images/wave-cream.svg"); }
.invite::before { display: none; }
.invite { padding-top: clamp(5rem, 9vw, 8rem); padding-bottom: clamp(3.5rem, 7vw, 6rem); }
.invite .verse-en.big { margin-top: 1rem; font: 600 clamp(1.35rem, 3vw, 1.85rem)/1.6 var(--serif); color: var(--head); }
.invite .divider { animation: spin 14s linear infinite; }
.section-head h2 { font-weight: 800; }
.section-head h2::after { content: ""; display: block; width: 0; height: 8px; margin: .6rem auto 0; border-radius: 8px; background: repeating-linear-gradient(90deg, #f0667a 0 14px, #f4b73f 14px 28px, #17a2a2 28px 42px); transition: width 1s .25s ease; }
.section-head.in h2::after { width: 126px; }

/* ---------------------------------------------------------------- people, traditions */
.round-frame { overflow: visible; border-radius: 50%; aspect-ratio: 1 / 1; width: min(100%, 290px); position: relative; background: transparent; box-shadow: none; }
.round-frame img { border-radius: 50%; box-shadow: 0 0 0 7px #fff, 0 0 0 12px var(--accent), 0 22px 40px -24px rgba(123, 45, 91, .6); transition: transform .5s cubic-bezier(.2, .9, .3, 1.3); }
.round-frame::after { content: ""; position: absolute; inset: -20px; border-radius: 50%; border: 3px dotted #f0667a; animation: spin 24s linear infinite; pointer-events: none; }
.person:hover .round-frame img { transform: scale(1.05) rotate(-2deg); }
.person:nth-of-type(2) .round-frame::after { border-color: #17a2a2; animation-direction: reverse; }
.rituals { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 1.5rem; }
.ritual { background: #fff; border: 3px solid var(--c, #f0667a); border-radius: 30px; padding: 2rem 1.6rem 1.8rem; text-align: center; box-shadow: 0 8px 0 var(--c, #f0667a); position: relative;
  transition: transform .3s cubic-bezier(.2, .9, .3, 1.3), box-shadow .3s ease, opacity .8s ease; }
.ritual:nth-child(3n+1) { --c: #f0667a; } .ritual:nth-child(3n+2) { --c: #17a2a2; } .ritual:nth-child(3n) { --c: #f4b73f; }
.ritual:hover { transform: translateY(-8px) rotate(-1deg); box-shadow: 0 16px 0 var(--c); }
.js .ritual.reveal.in { transition-delay: calc(var(--i) * 80ms), calc(var(--i) * 80ms), calc(var(--i) * 80ms); }
.r-icon { width: 86px; height: 86px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 1.1rem; background: color-mix(in srgb, var(--c) 18%, #fff); }
.ritual:hover .r-icon { animation: pop .6s ease; }
.ritual h3 { font: 800 1.45rem/1.25 var(--serif); color: var(--head); }
.ritual p { margin-top: .5rem; color: var(--muted); font-size: .98rem; line-height: 1.65; }

/* ---------------------------------------------------------------- events */
.dark .day { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .25); border-radius: 30px; }
.dark .day-title, .dark .timeline h4 { color: #fff; }
.dark .dow, .dark .timeline time { color: #ffe08a; }
.dark .timeline p { color: var(--on-dark-2); }
.dark .timeline li { border-color: rgba(255, 255, 255, .2); }
.dark .badge { background: #fff1d0; }
.timeline h4, .day-title { font-weight: 800; }
.js .day .timeline li { opacity: 0; transform: translateY(18px) scale(.96); transition: opacity .6s ease, transform .6s cubic-bezier(.2, .9, .3, 1.3); }
.js .day.in .timeline li { opacity: 1; transform: none; }
.timeline li:nth-child(1) { transition-delay: .2s !important; } .timeline li:nth-child(2) { transition-delay: .35s !important; }
.timeline li:nth-child(3) { transition-delay: .5s !important; } .timeline li:nth-child(4) { transition-delay: .65s !important; } .timeline li:nth-child(5) { transition-delay: .8s !important; }
.timeline li:hover .badge { animation: pop .6s ease; }
.btn-ghost:hover { background: rgba(255, 255, 255, .18); }
.venue-card, .rsvp-form { border-radius: 30px; border-width: 3px; }
.btn { font-family: var(--serif); font-weight: 800; letter-spacing: .1em; }

/* ---------------------------------------------------------------- footer */
.footer { position: relative; margin-top: 60px; }
.footer::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 60px; transform: translateY(-99%); background: url("../images/wave-teal.svg") center / 100% 100% no-repeat; }
.foot-bangles { margin: 0 auto 1rem; animation: spin 14s linear infinite; }
.dua-en { margin: .3rem auto 1.8rem; max-width: 50ch; color: var(--on-dark-2); font: 600 1.2rem/1.6 var(--serif); }
.foot-names { font-weight: 800; }

html[data-lang="ta"] #names { font-size: clamp(2.8rem, 10vw, 5.6rem); line-height: 1.25; }
html[data-lang="ta"] .occasion { letter-spacing: .04em; text-transform: none; }
html[data-lang="ta"] .kicker { letter-spacing: .04em; text-transform: none; font-size: 1rem; }
html[data-lang="ta"] .ribbon-track > span { letter-spacing: .05em; text-transform: none; font-size: 1.1rem; }
@media (max-width: 760px) { .j2, .j3 { display: none; } .j1 { left: 3%; } .j4 { right: 3%; } }
@media (max-width: 520px) { .hero { padding-top: 8.2rem; } }

.lead { font: 400 clamp(1.1rem, 2.3vw, 1.32rem)/1.85 var(--sans); }
html[data-lang="ta"] .lead { font-size: clamp(1.05rem, 2.1vw, 1.2rem); }
