/* Paper and ink first; Bapu's colours only where his wedding pictures use them:
   the thoranam leaves and the vermilion-and-turmeric border bands. */
:root {
  --paper: #FBF7EE;
  --paper-warm: #F5EEDF;
  --ink: #26221F;
  --ink-soft: #6A615A;
  --vermilion: #C8372D;
  --turmeric: #E9A92B;
  --leaf: #2F7D3B;
  --leaf-light: #5FA046;
  --indigo: #34508F;
  --serif: "Gilda Display", Georgia, serif;
  --sans: "DM Sans", system-ui, sans-serif;
  --garland: clamp(22px, 4.2vw, 64px);
  --gutter: max(calc(var(--garland) + 12px), clamp(20px, 5.4vw, 80px));
  --band: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='22'%3E%3Crect width='48' height='22' fill='%23C8372D'/%3E%3Cpath d='M0 2.5H48M0 19.5H48' stroke='%23E9A92B' stroke-width='1.6'/%3E%3Cpath d='M24 5 L31 11 L24 17 L17 11 Z' fill='%23E9A92B'/%3E%3Cpath d='M24 8.5 L27 11 L24 13.5 L21 11 Z' fill='%23C8372D'/%3E%3Ccircle cx='6' cy='11' r='1.8' fill='%23E9A92B'/%3E%3Ccircle cx='42' cy='11' r='1.8' fill='%23E9A92B'/%3E%3C/svg%3E");
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
main { overflow-x: clip; }
a { color: inherit; }
p, h1, h2, h3, figure { margin: 0; }
h1, h2, h3 { font-weight: 400; }
img, svg { display: block; max-width: 100%; }
.skip { position: fixed; z-index: 40; top: -100px; left: 10px; background: #fff; padding: 12px; }
.skip:focus { top: 10px; }

.eyebrow, .hero-events dt, .hero-cta, .venue-pill, .nav-link, .closing-link {
  font: 600 11px/1.5 var(--sans);
  letter-spacing: .17em;
  text-transform: uppercase;
}
.eyebrow { color: var(--vermilion); }
h2 { font: clamp(46px, 5.4vw, 78px)/1.06 var(--serif); letter-spacing: -.04em; }
h2 em, .hero-title em { font-style: italic; color: var(--vermilion); }
.body-copy { font: 20px/1.6 var(--serif); max-width: 420px; margin-top: 26px; color: var(--ink-soft); }

/* the border band from Bapu's wedding pictures */
.band { height: 22px; background: var(--band) repeat-x center / 48px 22px; }

/* ---------- nav ---------- */
.nav { position: absolute; z-index: 5; top: 0; left: 0; right: 0; display: flex; align-items: center; justify-content: space-between; padding: 116px max(var(--gutter), calc(var(--garland) + 10px)) 0; pointer-events: none; }
.nav a { pointer-events: auto; text-decoration: none; }
.monogram { font: 28px var(--serif); letter-spacing: -.06em; }
.monogram span { font-style: italic; font-size: .7em; color: var(--vermilion); }
.nav-link { border-bottom: 1px solid var(--ink-soft); padding-bottom: 6px; }
.nav-link span { margin-left: 12px; color: var(--vermilion); }

/* ---------- 1. opening ---------- */
.hero { position: relative; min-height: 100svh; display: grid; grid-template-rows: auto 1fr auto; background: var(--paper); text-align: center; overflow: hidden; }
.thoranam { position: relative; z-index: 4; width: 100%; height: clamp(84px, 11vw, 132px); }
/* banthi poolu: marigold strings hanging down both sides of the door, from under the mango leaves */
/* fixed to the screen, so the banthi poolu frame the whole invitation from the door to the last line */
.garland { position: fixed; z-index: 3; top: 0; height: 100vh; height: 100lvh; width: var(--garland); overflow: visible; pointer-events: none; }
.garland--left { left: 0; }
.garland--right { right: 0; transform: scaleX(-1); }
.garland .strand { transform-box: view-box; animation: sway 7s ease-in-out infinite alternate; }
.garland .strand--2 { animation-duration: 5.6s; animation-delay: -2s; }
.garland--right .strand { animation-delay: -3.5s; }
@keyframes sway { from { transform: rotate(-.9deg); } to { transform: rotate(.9deg); } }
.thoranam .leaf-sway { transform-box: fill-box; transform-origin: 50% 0; animation: leaf-sway 4.8s ease-in-out infinite alternate; }
@keyframes leaf-sway { from { transform: rotate(-3deg); } to { transform: rotate(3deg); } }
@media (prefers-reduced-motion: reduce) { .garland .strand, .thoranam .leaf-sway { animation: none; } }
.hero-inner { align-self: center; display: flex; flex-direction: column; align-items: center; padding: 60px var(--gutter) 70px; }
.ganapati { width: clamp(64px, 7vw, 86px); height: auto; fill: none; stroke: var(--vermilion); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.ganapati .g-dot, .ganapati .g-fill { fill: var(--vermilion); stroke: none; }
.hero-eyebrow { margin-top: 26px; }
.hero-title { margin-top: 14px; font: clamp(34px, 4.4vw, 64px)/1.04 var(--serif); letter-spacing: -.03em; }
.hero-title .line { display: inline-block; }
.hero-names { margin-top: 18px; font: clamp(40px, 7vw, 108px)/1 var(--serif); letter-spacing: -.04em; }
.hero-names i, .closing-names i { color: var(--turmeric); }
/* both events at a glance, so nobody has to scroll the whole story to find where and when */
.hero-events { display: flex; align-items: center; justify-content: center; gap: clamp(22px, 4vw, 54px); margin: 30px 0 0; }
.hero-events div { text-align: center; }
.hero-events dt { color: var(--vermilion); }
.hero-events dd { margin: 6px 0 0; font: 17px/1.35 var(--serif); color: var(--ink); }
.hero-events dd + dd { margin-top: 2px; color: var(--ink-soft); }
.hero-events-mark { color: var(--turmeric); }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 34px; margin-top: 30px; }
/* the top-right Watch live: a small red pill with the same live dot */
.nav-live { display: inline-flex; align-items: center; gap: 10px; padding: 11px 18px; border-radius: 999px; background: var(--vermilion); color: #fff; font: 600 11px/1 var(--sans); letter-spacing: .17em; text-transform: uppercase; box-shadow: 0 10px 24px -12px rgba(200, 55, 45, .75); }
.nav-live .watch-live-dot { width: 7px; height: 7px; }
.nav-live:hover { background: #B22F26; }
/* a soft glow breathes around the main button so the eye goes there first */
.watch-live { animation: live-glow 2.4s ease-in-out infinite; }
@keyframes live-glow { 0%, 100% { box-shadow: 0 14px 30px -14px rgba(200, 55, 45, .7), 0 0 0 0 rgba(200, 55, 45, .28); } 50% { box-shadow: 0 14px 30px -14px rgba(200, 55, 45, .7), 0 0 0 10px rgba(200, 55, 45, 0); } }
@media (prefers-reduced-motion: reduce) { .watch-live { animation: none; } }
/* watch live: the first thing to tap on the day */
.watch-live { display: inline-flex; align-items: center; gap: 12px; margin-top: 24px; padding: 15px 26px; border-radius: 999px; background: var(--vermilion); color: #fff; text-decoration: none; font: 600 12px/1 var(--sans); letter-spacing: .17em; text-transform: uppercase; box-shadow: 0 14px 30px -14px rgba(200, 55, 45, .7); }
.watch-live:hover { background: #B22F26; }
.watch-live-dot { position: relative; width: 9px; height: 9px; border-radius: 50%; background: #fff; }
.watch-live-dot::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .8); animation: live-pulse 1.6s ease-out infinite; }
@keyframes live-pulse { from { transform: scale(.5); opacity: 1; } to { transform: scale(1.5); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .watch-live-dot::after { animation: none; opacity: 0; } }
.hero-cta { display: inline-flex; gap: 18px; text-decoration: none; padding-bottom: 8px; border-bottom: 1px solid var(--vermilion); }
.hero-cta span { color: var(--vermilion); }

/* ---------- 2. the note ---------- */
.note { padding: clamp(90px, 13vw, 160px) var(--gutter); }
.note-grid { max-width: 1180px; margin: 0 auto; display: grid; gap: 56px; align-items: center; }
@media (min-width: 900px) { .note-grid { grid-template-columns: 1.1fr 1fr; gap: 9%; } }
.note h2 { margin-top: 16px; }
.arch { justify-self: center; width: min(100% - 20px, 440px); aspect-ratio: 4 / 5; border-radius: 50% 50% 6px 6px / 40% 40% 6px 6px; overflow: hidden; position: relative; background: var(--paper-warm); outline: 1.5px solid var(--turmeric); outline-offset: 10px; }
.arch img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }

/* ---------- watch live ---------- */
.live { text-align: center; padding: clamp(90px, 12vw, 150px) var(--gutter) 0; }
.live h2 { margin-top: 16px; }
.live-copy { font: 20px/1.6 var(--serif); color: var(--ink-soft); max-width: 520px; margin: 22px auto 0; }
.live-copy strong { font-weight: 400; color: var(--vermilion); }
.live-frame { width: min(100%, 760px); height: min(78vh, 720px); margin: 40px auto 0; border-radius: 18px; overflow: hidden; background: var(--paper-warm); outline: 1.5px solid var(--turmeric); outline-offset: 8px; box-shadow: 0 22px 45px -24px rgba(80, 50, 20, .35); }
.live-frame iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ---------- 6. closing ---------- */
.closing { text-align: center; padding: clamp(90px, 12vw, 150px) var(--gutter) 110px; }
.keepsakes { position: relative; display: flex; justify-content: center; align-items: flex-start; gap: clamp(10px, 3vw, 34px); max-width: 820px; margin: 0 auto 70px; }
.keepsake { width: clamp(100px, 23vw, 230px); background: #fff; padding: clamp(6px, 1vw, 11px) clamp(6px, 1vw, 11px) clamp(20px, 3vw, 34px); border: 1px solid #E6DCC9; box-shadow: 0 22px 45px -20px rgba(80, 50, 20, .35); }
.keepsake img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; }
.k1 { transform: rotate(-5deg); margin-top: 18px; }
.k2 { transform: rotate(1.5deg); }
.k3 { transform: rotate(5deg); margin-top: 26px; }
.closing h2 { font-size: clamp(54px, 6vw, 88px); }
.closing-copy { font: 20px/1.6 var(--serif); color: var(--ink-soft); margin-top: 22px; }
.closing-names { font: 30px var(--serif); margin-top: 28px; }
.closing-link { display: inline-block; margin-top: 34px; text-decoration: none; border-bottom: 1px solid var(--vermilion); padding-bottom: 8px; color: var(--vermilion); }

/* ---------- the venue pill: stays in reach once the opening has scrolled away ---------- */
.venue-pill { position: fixed; z-index: 30; top: max(14px, env(safe-area-inset-top)); right: max(calc(var(--garland) + 8px), env(safe-area-inset-right)); display: inline-flex; align-items: center; gap: 10px; min-height: 40px; padding: 0 16px; border: 1px solid rgba(200, 55, 45, .35); border-radius: 999px; background: rgba(251, 247, 238, .94); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); color: var(--ink); text-decoration: none; box-shadow: 0 10px 30px -14px rgba(80, 50, 20, .5); opacity: 0; transform: translateY(-8px); pointer-events: none; transition: opacity .3s, transform .3s; }
.venue-pin { width: 16px; height: 16px; fill: none; stroke: var(--vermilion); stroke-width: 1.8; stroke-linejoin: round; }
.venue-pill.is-shown { opacity: 1; transform: none; pointer-events: auto; }

/* ---------- music ---------- */
.music { position: fixed; z-index: 30; right: max(calc(var(--garland) + 8px), env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); display: inline-flex; align-items: center; gap: 11px; min-height: 44px; padding: 0 18px 0 15px; border: 1px solid rgba(200, 55, 45, .35); border-radius: 999px; background: rgba(251, 247, 238, .94); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); color: var(--ink); font: 600 11px/1 var(--sans); letter-spacing: .17em; text-transform: uppercase; cursor: pointer; box-shadow: 0 10px 30px -14px rgba(80, 50, 20, .5); }
.music { width: 44px; padding: 0; justify-content: center; }
.music-bars { display: inline-flex; align-items: flex-end; gap: 3px; height: 14px; }
.music-bars i { width: 2px; height: 4px; background: var(--vermilion); border-radius: 2px; }
.music[aria-pressed="true"] .music-bars i { animation: bar 1.1s ease-in-out infinite; }
.music[aria-pressed="true"] .music-bars i:nth-child(2) { animation-delay: .3s; }
.music[aria-pressed="true"] .music-bars i:nth-child(3) { animation-delay: .6s; }
@keyframes bar { 0%, 100% { height: 3px; } 50% { height: 14px; } }

a:focus-visible, button:focus-visible { outline: 3px solid var(--turmeric); outline-offset: 5px; }

@media (max-width: 700px) {
  .nav { padding-top: 92px; }
  .hero-inner { padding-top: 56px; padding-bottom: 34px; }
  .hero-title { font-size: 30px; }
  .hero-names { margin-top: 14px; font-size: 56px; line-height: .92; }
  .hero-names i { display: block; font-size: .5em; line-height: 1.3; }
  .hero-events { flex-direction: column; gap: 12px; margin-top: 18px; }
  .watch-live { margin-top: 18px; padding: 13px 22px; }
  .hero-events dd { font-size: 16px; }
  .hero-events-mark { display: none; }
  .hero-actions { flex-direction: column; align-items: center; gap: 10px; margin-top: 22px; }
  .live-copy { font-size: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .music[aria-pressed="true"] .music-bars i { animation: none; height: 10px; }
}

/* the ritual scenes keep their drawings and words inside the garlands */
.scene [class$="__pin"] { padding-left: calc(var(--garland) + 6px); padding-right: calc(var(--garland) + 6px); }

/* on phones the venue pill shrinks to its pin, so it never covers a scene title */
@media (max-width: 700px) {
  .venue-pill { width: 44px; min-height: 44px; padding: 0; justify-content: center; }
  .venue-pin { width: 19px; height: 19px; }
  .venue-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
