[hidden] { display: none !important; }
:root {
  --bg: #fffaf3;
  --bg-alt: #fdf0de;
  --surface: #ffffff;
  --text: #2a1a12;
  --muted: #6e5a4c;
  --border: #ecd9c2;
  --primary: #b3261e;      /* kumkum red */
  --primary-ink: #ffffff;
  --accent: #e8a317;       /* marigold */
  --hero-from: #3b0f2e;
  --hero-to: #7a1f1a;
  --hero-text: #fff6e6;
  --ok: #1f7a4d;
  --err: #b3261e;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(60, 30, 10, .06), 0 6px 20px rgba(60, 30, 10, .06);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #1a1210; --bg-alt: #221815; --surface: #2a1e1a; --text: #f6ebe0; --muted: #c2ad9c;
    --border: #3f2f28; --primary: #e0554b; --accent: #f0b43a; --hero-from: #22081a; --hero-to: #4a120f;
    --ok: #4fc58a; --err: #ff7a70; --shadow: none;
  }
}
:root[data-theme="dark"] {
  --bg: #1a1210; --bg-alt: #221815; --surface: #2a1e1a; --text: #f6ebe0; --muted: #c2ad9c;
  --border: #3f2f28; --primary: #e0554b; --accent: #f0b43a; --hero-from: #22081a; --hero-to: #4a120f;
  --ok: #4fc58a; --err: #ff7a70; --shadow: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 64px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.6 Inter, system-ui, sans-serif; }
h1, h2, h3 { font-family: Fraunces, Georgia, serif; line-height: 1.2; margin: 0 0 .5em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.2rem; }
a { color: var(--primary); }
.muted { color: var(--muted); }

/* Nav — left sidebar on desktop, top bar + menu on mobile */
.nav { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between;
  padding: 10px 16px; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--border); }
.brand { font-family: Fraunces, serif; font-weight: 700; text-decoration: none; color: var(--text); font-size: 1.1rem; }
.nav-links { display: flex; flex-direction: column; }
.nav-links a { color: var(--text); text-decoration: none; font-weight: 500; display: flex; align-items: center; gap: 10px; }
.nav-links a span { width: 1.4em; text-align: center; }
.nav-links a:hover { color: var(--primary); }
.nav-links a.active { color: var(--primary); background: color-mix(in srgb, var(--primary) 10%, transparent); }
.nav-toggle { background: none; border: 0; font-size: 1.5rem; color: var(--text); cursor: pointer; }
.nav .nav-cta { display: none; }

@media (min-width: 900px) {
  body { padding-left: 230px; }
  html { scroll-padding-top: 0; }
  .nav { position: fixed; top: 0; bottom: 0; left: 0; width: 230px; flex-direction: column; align-items: stretch; justify-content: flex-start;
    gap: 28px; padding: 28px 16px; border-bottom: 0; border-right: 1px solid var(--border); background: var(--bg-alt); backdrop-filter: none; overflow-y: auto; }
  .brand { font-size: 1.6rem; line-height: 1.15; display: flex; align-items: center; gap: 10px; padding: 0 8px; }
  .brand .diya { font-size: 2rem; }
  .nav-toggle { display: none; }
  .nav-links { gap: 4px; }
  .nav-links a { padding: 10px 12px; border-radius: 10px; }
  .nav .nav-cta { display: block; text-align: center; margin-top: auto; }
}
@media (max-width: 899px) {
  .nav-links { display: none; position: absolute; top: 100%; left: 0; right: 0; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--border); }
  .nav-links a { padding: 12px 16px; border-top: 1px solid var(--border); }
  .nav.open .nav-links { display: flex; }
}

/* Hero */
.hero { position: relative; overflow: hidden; color: var(--hero-text); text-align: center; padding: 80px 16px 88px; background: #1c0a12; }
/* Rangoli + diyas artwork (public/rangoli.svg, generated by tools/make_rangoli.py) */
.hero::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: url("rangoli.svg") center 42% / max(105%, 980px) auto no-repeat; }
/* Darken the middle so the text stays readable; let the colors glow at the edges */
.hero::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 60% 70% at 50% 50%, rgba(22, 6, 14, .78) 0%, rgba(22, 6, 14, .55) 55%, rgba(22, 6, 14, .2) 100%); }
.hero .fireworks { z-index: 1; }
.hero-inner { position: relative; z-index: 2; max-width: 760px; margin: 0 auto; }
.hero-community { font-size: clamp(2.8rem, 9vw, 6rem); line-height: 1.02; margin: 0 0 14px; letter-spacing: -.01em;
  background: linear-gradient(180deg, #fff3c4 10%, #ffcf5c 55%, #f29a1b 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 2px 18px rgba(255, 190, 70, .35)); }
.hero-title { font-family: Fraunces, Georgia, serif; font-weight: 600; font-size: clamp(1.5rem, 3.6vw, 2.4rem); margin: 0 0 8px; }
.fireworks { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero { cursor: crosshair; }
.hero a, .hero button { cursor: pointer; }
.lead { font-size: 1.15rem; opacity: .92; margin: 0 0 12px; }
.hero-meta { font-weight: 500; margin: 0 0 24px; }
.countdown { display: flex; justify-content: center; gap: 12px; margin-bottom: 28px; flex-wrap: wrap; }
.countdown div { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); border-radius: 12px; padding: 10px 14px; min-width: 72px; }
.countdown b { display: block; font-family: Fraunces, serif; font-size: 1.8rem; }
.countdown span { font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; opacity: .8; }
.hero-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.share-menu { margin-top: 14px; display: inline-flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.share-menu[hidden] { display: none; }
.share-menu a, .share-menu button { background: rgba(255,255,255,.14); color: var(--hero-text); border: 1px solid rgba(255,255,255,.25);
  border-radius: 999px; padding: 6px 14px; font: inherit; font-size: .9rem; text-decoration: none; cursor: pointer; }

/* Buttons */
.btn { display: inline-block; border: 0; border-radius: 999px; padding: 12px 24px; font: 600 1rem Inter, sans-serif; cursor: pointer; text-decoration: none; }
.btn-primary { background: var(--primary); color: var(--primary-ink); }
.btn-primary:hover { filter: brightness(1.08); }
.btn-primary:disabled { opacity: .6; cursor: progress; }
.btn-ghost { background: transparent; color: var(--hero-text); border: 1.5px solid rgba(255,255,255,.6); }
.btn-small { padding: 8px 16px; font-size: .9rem; background: var(--bg-alt); color: var(--text); border: 1px solid var(--border); margin-top: 12px; }

/* Layout */
.section { padding: 64px 16px; }
.section.alt { background: var(--bg-alt); }
.container { max-width: 1040px; margin: 0 auto; }
.container.narrow { max-width: 720px; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin: 24px 0; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }

.facts { display: grid; grid-template-columns: 80px 1fr; gap: 10px 12px; margin: 0; }
.facts dt { font-weight: 600; color: var(--muted); font-size: .9rem; padding-top: 1px; }
.facts dd { margin: 0; }
.schedule { list-style: none; padding: 0; margin: 0; }
.schedule li { display: grid; grid-template-columns: 84px 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--border); }
.schedule li:last-child { border-bottom: 0; }
.schedule time { font-weight: 600; color: var(--primary); font-variant-numeric: tabular-nums; }

/* Forms */
.form { display: grid; gap: 14px; }
.form label { display: grid; gap: 4px; font-weight: 500; font-size: .95rem; }
.form input, .form select, .form textarea { font: inherit; padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px;
  background: var(--bg); color: var(--text); width: 100%; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.form input:invalid.touched { border-color: var(--err); }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .row { grid-template-columns: 1fr; } }
.choice { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.choice legend { font-weight: 600; margin-bottom: 8px; width: 100%; }
.choice label { display: flex; align-items: center; gap: 8px; border: 1px solid var(--border); border-radius: 999px; padding: 8px 14px; cursor: pointer; font-weight: 500; }
.choice label:has(input:checked) { border-color: var(--primary); background: color-mix(in srgb, var(--primary) 10%, transparent); }
.choice input { width: auto; accent-color: var(--primary); }
.check { display: flex !important; align-items: center; gap: 8px; }
.check input { width: auto; accent-color: var(--primary); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.hint { margin: -8px 0 0; font-size: .85rem; color: var(--muted); }
.form-status { margin: 0; min-height: 1.4em; font-weight: 500; }
.form-status.err { color: var(--err); }
.form-status.ok { color: var(--ok); }
.done h3 { color: var(--ok); }
.invite-greeting { font-family: Fraunces, serif; font-size: 1.2rem; }

/* Pay */
.pay-ref { background: var(--surface); border: 1px dashed var(--accent); border-radius: 10px; padding: 10px 14px; }
.pay-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-top: 16px; }
.pay-card { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.pay-card h3 { margin: 0; }
.pay-card .qr { width: 140px; height: 140px; background: #fff; padding: 6px; border-radius: 8px; }
.pay-card .qr img, .pay-card .qr canvas { width: 100% !important; height: 100% !important; }
.pay-card code { background: var(--bg-alt); padding: 4px 8px; border-radius: 6px; font-size: .9rem; word-break: break-all; }
.copy { background: none; border: 1px solid var(--border); border-radius: 999px; padding: 4px 12px; font: inherit; font-size: .85rem; color: var(--text); cursor: pointer; }
.btn-venmo { background: #008CFF; color: #fff; }
.btn-paypal { background: #FFC439; color: #111; }
.btn-zelle { background: #6D1ED4; color: #fff; }

/* About */
.about-text p { max-width: 70ch; font-size: 1.05rem; }
.highlight h3 { color: var(--primary); }

.footer { text-align: center; padding: 32px 16px; border-top: 1px solid var(--border); }
.footer p { margin: 4px 0; }
.demo-banner { background: var(--accent); color: #2a1a12; text-align: center; padding: 6px 16px; font-size: .85rem; font-weight: 500; }

/* RSVP steps */
.steps { list-style: none; padding: 0; margin: 0 0 18px; display: flex; gap: 8px; counter-reset: step; flex-wrap: wrap; }
.steps li { counter-increment: step; display: flex; align-items: center; gap: 8px; font-weight: 500; color: var(--muted); }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%;
  border: 1.5px solid var(--border); background: var(--surface); font-size: .85rem; }
.steps li + li::after { order: -1; content: ""; width: 24px; height: 2px; background: var(--border); }
.steps li.active { color: var(--primary); }
.steps li.active::before { border-color: var(--primary); background: var(--primary); color: var(--primary-ink); }
.steps li.complete::before { content: "✓"; border-color: var(--ok); color: var(--ok); }
.fee-preview { background: var(--bg-alt); border-radius: 10px; padding: 10px 14px; }
.fee-preview strong { color: var(--primary); font-size: 1.15rem; }
.paid-form { margin-top: 20px; padding-top: 20px; border-top: 1px dashed var(--border); }
.linkish { background: none; border: 0; padding: 0; margin-top: 14px; color: var(--muted); font: inherit; cursor: pointer; text-decoration: underline; }
#rsvp-pay h3 { font-size: 1.4rem; }

/* Fee tiers */
.tiers { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; margin: 20px 0; }
.tier { text-align: center; }
.tier b { display: block; font-family: Fraunces, serif; font-size: 2.4rem; color: var(--primary); line-height: 1.1; }
.tier span { color: var(--muted); font-weight: 500; }

/* Keep hero text crisp over the rangoli artwork */
.hero-title, .lead, .hero-meta { text-shadow: 0 1px 3px rgba(0, 0, 0, .85), 0 0 18px rgba(20, 5, 12, .9); }
.countdown div { background: rgba(28, 8, 18, .55); backdrop-filter: blur(3px); }
@media (max-width: 600px) {
  .hero::after { background: radial-gradient(ellipse 90% 60% at 50% 50%, rgba(22, 6, 14, .86) 0%, rgba(22, 6, 14, .62) 60%, rgba(22, 6, 14, .3) 100%); }
}
