/* Shared styles for the Websiter wedding invitation samples. Each theme sets the colours and fonts. */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--page); color: var(--ink); font: 400 17px/1.7 var(--body); overflow-x: hidden; }
body:not(.opened) { overflow: hidden; height: 100vh; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }

/* Themes */
.t-emerald {
  --page: #08241e; --bg: #0b2d26; --bg2: #0f3a31; --card: rgba(255, 255, 255, .04); --line: rgba(212, 176, 106, .35);
  --ink: #f3ecdf; --muted: #c9bfa9; --accent: #d4b06a; --accent2: #f0d9a4; --btn-ink: #0b2d26;
  --script: "Pinyon Script", cursive; --head: "Cinzel", serif; --body: "Cormorant Garamond", Georgia, serif;
  --pattern: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64' viewBox='0 0 64 64'%3E%3Cg fill='none' stroke='%23d4b06a' stroke-opacity='.13'%3E%3Cpath d='M32 14l5.3 12.7L50 32l-12.7 5.3L32 50l-5.3-12.7L14 32l12.7-5.3z'/%3E%3Crect x='22' y='22' width='20' height='20'/%3E%3Cpath d='M0 0l14 14M64 0L50 14M0 64l14-14M64 64L50 50'/%3E%3C/g%3E%3C/svg%3E");
}
.t-mandala {
  --page: #f6ead6; --bg: #fff7ea; --bg2: #fbeedb; --card: #fffdf8; --line: rgba(140, 28, 44, .22);
  --ink: #3d0a14; --muted: #7a4b3a; --accent: #8c1c2c; --accent2: #e9a23b; --btn-ink: #fff7ea;
  --script: "Great Vibes", cursive; --head: "Cinzel", serif; --body: "Lora", Georgia, serif;
  --pattern: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56' viewBox='0 0 56 56'%3E%3Cg fill='none' stroke='%23e9a23b' stroke-opacity='.22'%3E%3Ccircle cx='28' cy='28' r='6'/%3E%3Cpath d='M28 8c4 6 4 10 0 14-4-4-4-8 0-14zM28 48c4-6 4-10 0-14-4 4-4 8 0 14zM8 28c6-4 10-4 14 0-4 4-8 4-14 0zM48 28c-6-4-10-4-14 0 4 4 8 4 14 0z'/%3E%3C/g%3E%3C/svg%3E");
}
.t-seaside {
  --page: #efe4d6; --bg: #f8f2ea; --bg2: #f1e7da; --card: #fffaf4; --line: rgba(29, 53, 87, .16);
  --ink: #1d3557; --muted: #5b6b80; --accent: #e07a5f; --accent2: #81b29a; --btn-ink: #fff;
  --script: "Parisienne", cursive; --head: "Jost", sans-serif; --body: "Jost", sans-serif;
  --pattern: none;
}
.t-seaside body, body.t-seaside { font-weight: 300; }

/* Cover (the "envelope" shown before opening) */
.cover { position: fixed; inset: 0; z-index: 40; display: grid; place-items: center; padding: 22px; background: var(--bg) var(--pattern); transition: transform 1s cubic-bezier(.76, 0, .24, 1), opacity 1s; }
.opened .cover { transform: translateY(-104%); opacity: .4; pointer-events: none; }
.cover-card { position: relative; width: min(100%, 420px); padding: 46px 28px 38px; border-radius: 200px 200px 22px 22px; border: 1px solid var(--line); background: var(--card); text-align: center; box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .45); animation: rise 1.1s cubic-bezier(.2, .8, .2, 1) both; }
.cover-card::before { content: ""; position: absolute; inset: 9px; border: 1px solid var(--line); border-radius: 192px 192px 16px 16px; pointer-events: none; }
.orn { width: 150px; margin: 0 auto 18px; color: var(--accent); }
.kicker { font: 500 12px/1.6 var(--head); letter-spacing: .32em; text-transform: uppercase; color: var(--muted); }
.names { margin: 14px 0 10px; font: 400 clamp(54px, 15vw, 76px)/.95 var(--script); color: var(--accent); }
.names span { display: block; }
.names em { display: block; font: italic 400 30px/1.2 var(--body); color: var(--muted); margin: 4px 0; }
.cover-line { color: var(--muted); font-size: 17px; max-width: 300px; margin: 0 auto; }
.cover-date { margin: 18px 0 26px; font: 500 15px var(--head); letter-spacing: .24em; text-transform: uppercase; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 0 28px; border-radius: 999px; border: 1px solid var(--accent); background: var(--accent); color: var(--btn-ink); font: 600 13px var(--head); letter-spacing: .22em; text-transform: uppercase; text-decoration: none; cursor: pointer; transition: transform .25s, box-shadow .25s; box-shadow: 0 14px 30px -14px var(--accent); }
.btn:hover { transform: translateY(-2px); }
.btn.o { background: transparent; color: var(--accent); box-shadow: none; min-height: 42px; padding: 0 18px; font-size: 11px; }
.pulse { animation: pulse 2.4s ease-in-out infinite; }

/* Invitation */
.inv { max-width: 560px; margin: 0 auto; background: var(--bg) var(--pattern); box-shadow: 0 0 120px rgba(0, 0, 0, .25); overflow: hidden; }
.sec { padding: 72px 26px; text-align: center; position: relative; }
.sec.alt { background: var(--bg2); }
.sec h2 { font: 400 46px/1.1 var(--script); color: var(--accent); margin: 6px 0 14px; }
.rule { width: 90px; height: 1px; margin: 0 auto 22px; background: linear-gradient(90deg, transparent, var(--accent), transparent); }
.lead { color: var(--muted); max-width: 400px; margin: 0 auto; }
.hero { min-height: 100vh; min-height: 100svh; display: grid; place-content: center; padding: 90px 26px 70px; position: relative; text-align: center; }
.hero .names { font-size: clamp(64px, 18vw, 92px); }
.hero-date { font: 500 16px var(--head); letter-spacing: .24em; text-transform: uppercase; margin-top: 18px; }
.hero-place { color: var(--muted); margin-top: 6px; }
.blessing { font-style: italic; color: var(--muted); font-size: 15px; margin-bottom: 18px; }
.cue { position: absolute; left: 50%; bottom: 26px; translate: -50% 0; font: 500 11px var(--head); letter-spacing: .28em; text-transform: uppercase; color: var(--muted); text-decoration: none; animation: bob 2.2s ease-in-out infinite; }

.count-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 26px; }
.count-grid div { padding: 16px 4px; border: 1px solid var(--line); border-radius: 16px; background: var(--card); }
.count-grid strong { display: block; font: 500 30px/1.1 var(--head); color: var(--accent); }
.count-grid span { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }

.couple { display: grid; gap: 16px; margin-top: 26px; }
.person { padding: 26px 20px; border: 1px solid var(--line); border-radius: 22px; background: var(--card); }
.person h3 { font: 400 40px/1.1 var(--script); color: var(--accent); }
.person .role { font: 500 12px var(--head); letter-spacing: .26em; text-transform: uppercase; margin-top: 6px; }
.person .fam { color: var(--muted); font-size: 15px; margin-top: 6px; }
.amp { font: italic 30px var(--body); color: var(--muted); }

.events { display: grid; gap: 16px; margin-top: 26px; text-align: left; }
.event { padding: 24px 22px; border: 1px solid var(--line); border-radius: 22px; background: var(--card); }
.event h3 { font: 600 15px var(--head); letter-spacing: .2em; text-transform: uppercase; color: var(--accent); }
.event .when { font-size: 19px; margin-top: 8px; }
.event .where { color: var(--muted); }
.event .acts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }

.palette { display: flex; justify-content: center; gap: 10px; margin-top: 22px; }
.palette span { width: 42px; height: 42px; border-radius: 50%; border: 2px solid var(--card); box-shadow: 0 0 0 1px var(--line); }

.timeline { list-style: none; margin: 26px auto 0; padding: 0; max-width: 380px; text-align: left; position: relative; }
.timeline::before { content: ""; position: absolute; left: 74px; top: 8px; bottom: 8px; width: 1px; background: var(--line); }
.timeline li { display: grid; grid-template-columns: 64px 1fr; gap: 22px; padding: 10px 0; position: relative; }
.timeline li::after { content: ""; position: absolute; left: 70px; top: 20px; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); }
.timeline time { font: 600 13px/2 var(--head); color: var(--accent); text-align: right; }

.info { padding: 24px 22px; border: 1px dashed var(--line); border-radius: 22px; margin-top: 22px; color: var(--muted); }

.rsvp { display: grid; gap: 14px; text-align: left; margin-top: 26px; }
.rsvp label { display: grid; gap: 6px; font: 600 11px var(--head); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.rsvp input, .rsvp select, .rsvp textarea { width: 100%; padding: 13px 15px; border-radius: 14px; border: 1px solid var(--line); background: var(--card); font: 400 17px var(--body); letter-spacing: 0; text-transform: none; color: var(--ink); }
.rsvp select option { color: #222; }
.rsvp .btn { margin-top: 6px; }
.status-msg { min-height: 1.4em; text-align: center; color: var(--accent); font-weight: 600; }

.foot { padding: 60px 26px 110px; text-align: center; background: var(--bg2); }
.mono-mark { font: 400 56px/1 var(--script); color: var(--accent); }
.tag { font: 500 13px var(--head); letter-spacing: .2em; color: var(--muted); margin-top: 10px; }

/* Animations */
.reveal { opacity: 0; translate: 0 30px; transition: opacity .9s ease, translate 1s cubic-bezier(.2, .8, .2, 1); }
.reveal.in { opacity: 1; translate: none; }
@keyframes rise { from { opacity: 0; transform: translateY(30px) scale(.97); } }
@keyframes pulse { 50% { box-shadow: 0 0 0 10px transparent, 0 14px 30px -14px var(--accent); transform: scale(1.03); } }
@keyframes bob { 50% { translate: -50% 8px; } }
.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 45; overflow: hidden; }
.confetti i { position: absolute; top: -20px; width: 10px; height: 14px; border-radius: 60% 0 60% 0; background: var(--accent); opacity: .9; animation: fall linear forwards; }
.confetti i:nth-child(3n) { background: var(--accent2); border-radius: 50%; width: 8px; height: 8px; }
@keyframes fall { to { transform: translateY(110vh) rotate(540deg); opacity: .2; } }

/* Theme ornaments */
.t-emerald .orn { width: 120px; }
.t-mandala .mandala { position: absolute; width: 420px; max-width: none; opacity: .09; left: 50%; top: 50%; translate: -50% -50%; color: var(--accent); animation: spin 120s linear infinite; pointer-events: none; }
.t-mandala .toran { position: absolute; top: 0; left: 0; right: 0; height: 70px; color: var(--accent2); }
@keyframes spin { to { rotate: 360deg; } }
.t-seaside .hero { background: linear-gradient(180deg, #f9d9c4 0%, #f8f2ea 60%); overflow: hidden; }
.t-seaside .sun { position: absolute; width: 220px; height: 220px; border-radius: 50%; left: 50%; top: 14%; translate: -50% 0; background: radial-gradient(circle, #f6b48f 0%, #f39c75 45%, rgba(243, 156, 117, 0) 70%); opacity: .7; }
.t-seaside .waves { position: absolute; left: 0; right: 0; bottom: 0; height: 120px; width: 100%; }
.t-seaside .waves path { animation: sway 7s ease-in-out infinite; }
.t-seaside .waves path:nth-child(2) { animation-duration: 9s; animation-direction: reverse; }
@keyframes sway { 50% { transform: translateX(-24px); } }
.t-seaside .hero > *:not(.sun):not(.waves):not(.cue) { position: relative; }

/* Websiter sample badge and demo notes */
.ws-badge { position: fixed; left: 50%; bottom: 14px; transform: translateX(-50%); z-index: 60; padding: 9px 16px; border-radius: 999px; background: rgba(20, 20, 24, .84); color: #f4f1ea; font: 500 12px/1.2 system-ui, sans-serif; letter-spacing: .03em; text-decoration: none; white-space: nowrap; box-shadow: 0 10px 30px rgba(0, 0, 0, .25); }
.ws-badge b { color: #f3cf8a; }
.shot .ws-badge { display: none; }
.ws-toast { position: fixed; left: 50%; bottom: 60px; transform: translateX(-50%); z-index: 61; width: max-content; max-width: 86vw; padding: 12px 16px; border-radius: 14px; background: #1d1d22; color: #f4f1ea; font: 400 14px/1.5 system-ui, sans-serif; text-align: center; box-shadow: 0 12px 30px rgba(0, 0, 0, .3); }

@media (min-width: 700px) { body { background: var(--page) var(--pattern); } .inv { margin: 40px auto; border-radius: 34px; } }
@media (prefers-reduced-motion: reduce) { .t-mandala .mandala, .t-seaside .waves path, .cue, .pulse { animation: none; } }
