/* The occasion pages (/birthday-invitations/ and the rest): built by scripts/build_occasion_pages.py */
:root { --rb: 6px;
  --bg: #f7f2ea; --bg-2: #efe7da; --card: #fffdf9; --ink: #2a221d; --muted: #75685d; --line: #e4d9c9;
  --gold: #a9823f; --plum: #74384f; --plum-ink: #fff; --shadow: 0 14px 40px rgba(20, 20, 26, .12); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { color-scheme: dark;
  --bg: #111114; --bg-2: #18181c; --card: #1e1e23; --ink: #f3f0ea; --muted: #a6a3ad; --line: #2d2d34;
  --gold: #d2ac63; --plum: #d68aa6; --plum-ink: #1b0f14; --shadow: 0 14px 40px rgba(0, 0, 0, .45); } }
:root[data-theme="dark"] { color-scheme: dark;
  --bg: #111114; --bg-2: #18181c; --card: #1e1e23; --ink: #f3f0ea; --muted: #a6a3ad; --line: #2d2d34;
  --gold: #d2ac63; --plum: #d68aa6; --plum-ink: #1b0f14; --shadow: 0 14px 40px rgba(0, 0, 0, .45); }
* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
body { background: var(--bg); color: var(--ink); font: 16px/1.6 Inter, system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3 { font-family: "Cormorant Garamond", Georgia, serif; font-weight: 600; line-height: 1.1; text-wrap: balance; }
h1 { font-size: clamp(38px, 6vw, 60px); }
h2 { font-size: clamp(30px, 4vw, 40px); margin-bottom: 18px; }
h3 { font-size: 23px; margin-bottom: 6px; }
.wrap { max-width: 1120px; margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
section { padding-block: 56px; }
.band { background: var(--bg-2); }
.muted { color: var(--muted); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 10px 18px; border-radius: var(--rb); border: 1px solid var(--line); background: var(--card); font-weight: 600; font-size: 14px; text-decoration: none; cursor: pointer; white-space: nowrap; }
.btn:hover { border-color: var(--gold); }
.btn-plum { background: var(--plum); border-color: var(--plum); color: var(--plum-ink); }
.btn-gold { background: #d8b66e; border-color: #c9a55a; color: #3a2a10; }
.btn-big { padding: 14px 22px; font-size: 15px; }
.btn:focus-visible, a:focus-visible, summary:focus-visible, .word:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

header.top { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top-in { display: flex; align-items: center; gap: 14px; padding-block: 12px; flex-wrap: wrap; }
.logo { font-family: "Cormorant Garamond", serif; font-size: 24px; font-weight: 700; text-decoration: none; margin-right: auto; }
.logo span { font-family: Inter, sans-serif; font-size: 10px; font-weight: 700; letter-spacing: .3em; text-transform: uppercase; color: var(--gold); margin-left: 6px; }
.top-in nav { display: flex; gap: 16px; align-items: center; font-size: 14px; font-weight: 600; }
.top-in nav a:not(.btn) { text-decoration: none; color: var(--muted); }
@media (max-width: 560px) { .top-in nav a:not(.btn) { display: none; } }

.hero { padding-block: 48px 56px; }
.hero-in { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 48px; align-items: center; }
.hero-text { display: grid; gap: 18px; }
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .24em; text-transform: uppercase; color: var(--gold); }
.lead { font-size: 18px; color: var(--muted); max-width: 56ch; }
.price { font-size: 14px; color: var(--muted); }
.price b { color: var(--ink); }
.acts { display: flex; gap: 10px; flex-wrap: wrap; }
.hero-photo { margin: 0; border-radius: 18px; overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 4 / 5; max-width: 420px; justify-self: end; width: 100%; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 820px) { .hero-in { grid-template-columns: minmax(0, 1fr); gap: 28px; } .hero-photo { justify-self: start; max-width: 100%; aspect-ratio: 16 / 10; } }

.shead { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.shead a { font-weight: 600; color: var(--plum); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 20px; }
.tpl { background: var(--card); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; display: flex; flex-direction: column; }
.tpl .fw { position: relative; }
.tpl .meta { padding: 14px 16px 16px; display: grid; gap: 10px; }
.tpl .meta b { font-size: 16px; } .tpl .meta span { display: block; color: var(--muted); font-size: 13px; }
.tpl .meta .row { display: flex; gap: 8px; } .tpl .meta .row .btn { flex: 1; padding: 9px 10px; font-size: 13px; }
.tpl .custom { font-size: 12.5px; color: var(--muted); text-align: center; }
.tier { position: absolute; top: 10px; right: 10px; z-index: 2; background: #d8b66e; color: #3a2a10; font-size: 11.5px; font-weight: 700; padding: 4px 10px; border-radius: var(--rb); }
.tier.ess { background: rgba(255, 253, 249, .92); color: #3a2f25; }
/* the card face (same drawing as the gallery: cards.js) */
.face { position: relative; aspect-ratio: 4 / 5; display: grid; place-items: center; padding: 20px; overflow: hidden; cursor: pointer; border: 0; width: 100%; }
.face .card { position: relative; width: 100%; height: 100%; border-radius: 14px; display: grid; place-content: center; text-align: center; padding: 16px; overflow: hidden; }
.face .c { position: absolute; width: 46%; pointer-events: none; }
.face .c svg, .face .c img { display: block; width: 100%; height: auto; }
.face .c:has(img) { width: 66%; }
.face .c.tl { top: 0; left: 0; } .face .c.br { bottom: 0; right: 0; transform: rotate(180deg); }
.face .k { font-size: 8.5px; letter-spacing: .24em; text-transform: uppercase; opacity: .75; max-width: 170px; margin: 0 auto; line-height: 1.5; }
.face .n { font-size: 34px; line-height: 1.1; margin: 8px 0; }
.face .n.serif { font-family: "Cormorant Garamond", serif; font-style: italic; }
.face .n.calligraphy { font-family: "Great Vibes", cursive; font-size: 40px; }
.face .n.classic { font-family: "Bodoni Moda", serif; font-size: 28px; }
.face .n.modern { font-family: Inter, sans-serif; font-size: 17px; letter-spacing: .2em; text-transform: uppercase; }
.face .n.playful { font-family: Fredoka, sans-serif; font-weight: 600; font-size: 32px; }
.face .n.retro { font-family: Pacifico, cursive; font-size: 28px; }
.face .d { font-size: 10px; letter-spacing: .2em; text-transform: uppercase; }
.face .rule { width: 50px; height: 1px; margin: 8px auto; opacity: .6; }

.why { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.why > div { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 20px; }
.why p { color: var(--muted); }
@media (max-width: 680px) { .why { grid-template-columns: minmax(0, 1fr); } }
.steps { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; counter-reset: s; }
.steps li { counter-increment: s; display: grid; gap: 4px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 20px; }
.steps li::before { content: counter(s); width: 32px; height: 32px; border-radius: 50%; border: 1.5px solid var(--gold); color: var(--gold); display: grid; place-items: center; font-family: "Cormorant Garamond", serif; font-weight: 700; font-size: 18px; margin-bottom: 6px; }
.steps span { color: var(--muted); font-size: 14.5px; }
@media (max-width: 760px) { .steps { grid-template-columns: minmax(0, 1fr); } }
.words { display: grid; gap: 10px; margin-top: 14px; }
.word { text-align: left; background: var(--card); border: 1px dashed var(--gold); border-radius: 12px; padding: 14px 16px; font-family: "Cormorant Garamond", serif; font-size: 21px; font-style: italic; cursor: pointer; line-height: 1.35; }
.word::after { content: "Tap to copy"; display: block; font: 600 12px Inter, sans-serif; font-style: normal; color: var(--gold); margin-top: 6px; }
.word.done::after { content: "✓ Copied"; }
.faq { display: grid; gap: 10px; max-width: 820px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px; }
.faq summary { cursor: pointer; font-weight: 600; }
.faq p { color: var(--muted); margin-top: 8px; }
.closing { text-align: center; }
.closing .wrap { display: grid; gap: 14px; justify-items: center; }
.closing p { color: var(--muted); }
.others { display: flex; flex-wrap: wrap; gap: 6px 14px; justify-content: center; margin-top: 10px; font-size: 14px; }
.others span { color: var(--muted); }
.others a { color: var(--plum); font-weight: 600; }
footer { border-top: 1px solid var(--line); padding-block: 24px; font-size: 13px; color: var(--muted); }
.foot { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.foot nav { display: flex; gap: 14px; flex-wrap: wrap; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: var(--rb); font-size: 14px; opacity: 0; pointer-events: none; transition: .25s; }
.toast.on { opacity: 1; transform: translate(-50%, 0); }

/* Before launch: the waiting list (occasion.js) */
dialog#waitDlg { margin: auto; border: 0; border-radius: 16px; padding: 0; background: var(--card); color: var(--ink); box-shadow: var(--shadow); width: min(440px, calc(100vw - 32px)); max-width: calc(100vw - 32px); }
dialog#waitDlg::backdrop { background: rgba(0, 0, 0, .45); }
#waitDlg .dlg { display: grid; gap: 12px; padding: 22px 20px 20px; position: relative; }
#waitDlg .x { position: absolute; top: 12px; right: 14px; border: 0; background: none; color: var(--muted); font-size: 13px; font-weight: 600; cursor: pointer; }
#waitDlg h3 { font-size: 28px; margin: 0; padding-right: 70px; }
#waitDlg label { display: grid; gap: 5px; font-size: 13px; font-weight: 600; color: var(--muted); }
#waitDlg input { font: 500 16px Inter, system-ui, sans-serif; color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: var(--rb); padding: 11px 12px; width: 100%; }
#waitDlg input:focus { outline: 2px solid var(--gold); outline-offset: 1px; }
#waitDlg .hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
#waitDlg .small { font-size: 12.5px; } #waitDlg .small a { color: inherit; }
#waitDlg .form-msg { font-size: 14px; min-height: 1em; } #waitDlg .form-msg.err { color: #c0504d; }
body.soon .tpl .row .btn { flex: 1; }
