/* Shared layout. Each theme sets the tokens below and styles its own opener. */
:root {
  --bg: #fff; --ink: #111; --muted: #555; --accent: #a00; --line: rgba(0,0,0,.15);
  --card: #fff; --card-ink: #111; --btn: #111; --btn-ink: #fff;
  --f-display: Georgia, serif; --f-script: cursive; --f-body: system-ui, sans-serif; --f-deva: "Tiro Devanagari Hindi", serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--page, #111); }
body { font-family: var(--f-body); color: var(--ink); font-size: 18px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
h1, h2, h3 { text-wrap: balance; font-weight: 400; margin: 0; }
p { margin: 0; text-wrap: pretty; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

.inv { max-width: 480px; margin: 0 auto; background: var(--bg); color: var(--ink); font-family: var(--f-body); overflow: hidden; position: relative; }
.sec { position: relative; padding: 76px 26px; display: flex; flex-direction: column; gap: 14px; }
.center { align-items: center; text-align: center; }
.label { font-size: 13px; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; color: var(--accent); }
.deva { font-family: var(--f-deva); }
.muted { color: var(--muted); }
.h2 { font-family: var(--f-display); font-size: 38px; line-height: 1.1; }
.script { font-family: var(--f-script); }

.opener { position: relative; height: 100svh; min-height: 640px; max-height: 960px; overflow: hidden; }

.countdown { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; width: 100%; font-variant-numeric: tabular-nums; }
.countdown div { display: flex; flex-direction: column; align-items: center; padding: 12px 0 10px; }
.countdown b { font-family: var(--f-display); font-weight: 400; font-size: 34px; line-height: 1; }
.countdown span { font-size: 12px; letter-spacing: .18em; text-transform: uppercase; opacity: .8; }

.events { display: flex; flex-direction: column; gap: 22px; perspective: 1000px; }
.ev { position: relative; background: var(--card); color: var(--card-ink); padding: 26px 22px; transform-origin: 50% 0; }
.ev .when { font-weight: 600; }
.ev .note { font-size: 16px; line-height: 1.5; opacity: .82; }

.photos { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 12px; width: 100%; }
.photo { background: var(--card); color: var(--card-ink); display: flex; align-items: center; justify-content: center; text-align: center; font-size: 15px; padding: 16px; overflow: hidden; }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo.big { grid-row: span 2; min-height: 340px; border-radius: 999px 999px 6px 6px; }
.photo.sm { aspect-ratio: 1 / 1; border-radius: 10px; }

.btns { display: flex; flex-direction: column; gap: 12px; width: 100%; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 56px; padding: 0 26px; border-radius: 999px; background: var(--btn); color: var(--btn-ink); font: inherit; font-weight: 600; text-decoration: none; border: 0; cursor: pointer; }
.btn.ghost { background: transparent; color: inherit; border: 1.5px solid currentColor; }
.btn svg { width: 20px; height: 20px; }

.music { position: fixed; right: 16px; bottom: 16px; z-index: 50; width: 52px; height: 52px; border-radius: 50%; border: 0; background: var(--btn); color: var(--btn-ink); display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 6px 18px rgba(0,0,0,.3); }

.switcher { position: fixed; left: 50%; top: 12px; transform: translateX(-50%); z-index: 60; display: flex; gap: 4px; padding: 4px; border-radius: 999px; background: rgba(20,20,20,.82); backdrop-filter: blur(8px); font-family: system-ui, sans-serif; }
.switcher a { color: #eee; text-decoration: none; font-size: 13px; font-weight: 600; padding: 8px 14px; border-radius: 999px; }
.switcher a[aria-current="true"] { background: #fff; color: #111; }

.credit { font-size: 12px; opacity: .6; text-align: center; padding: 0 26px 40px; }

@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

.demo-banner { position: fixed; left: 50%; top: 12px; transform: translateX(-50%); z-index: 60; white-space: nowrap; padding: 10px 18px; border-radius: 999px; background: rgba(20,20,20,.85); color: #fff; font: 600 13px/1.2 system-ui, sans-serif; text-decoration: none; backdrop-filter: blur(8px); box-shadow: 0 6px 18px rgba(0,0,0,.25); }
.demo-banner:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
