/* Letter, royal scroll, stories, boarding pass and storybook. First pages and page turning are in js/formats.js. */

.fdivider { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 6px 0 18px; color: var(--i-gold); }
.fdivider span { width: 46px; height: 1px; background: currentColor; opacity: .55; }
.fdivider .fmark { width: 18px; height: 18px; }
.mark > .fmark { width: 100%; height: 100%; color: var(--i-gold); }
.inv .to { margin: 4px 0; font: italic 500 1.15rem/1.4 'Cormorant Garamond', 'Tiro Devanagari Hindi', Georgia, serif; }
.inv[class*=' fmt-'] > .hero { height: auto; max-height: none; min-height: 100svh; overflow: visible; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.inv[class*=' fmt-'] > .hero .names em { font-size: 5cqw; }
.inv[class*=' fmt-'] > .hero .inv-head { margin: 0 0 8px; }

/* =================== sealed letter =================== */
.inv.fmt-letter { background: repeating-linear-gradient(90deg, rgba(120, 100, 60, .1) 0 1px, transparent 1px 4px), repeating-linear-gradient(0deg, rgba(255, 255, 255, .22) 0 1px, transparent 1px 5px), #d5cab2; text-align: left; }
.fmt-letter > .hero, .fmt-letter > main { --i-hero: var(--i-deep); --i-hero-soft: var(--i-accent); }
.fmt-letter > .hero { padding: 26px 14px 60px; }
.fmt-letter .sheet-top, .fmt-letter .plate { position: relative; width: 100%; background: linear-gradient(#fffdf6, #fbf6e9); color: var(--i-ink); box-shadow: 0 1px 1px rgba(60, 45, 20, .2), 0 14px 30px rgba(60, 45, 20, .22); }
.fmt-letter .sheet-top { padding: 128px 20px 40px; text-align: center; border: 9px solid; border-image: repeating-linear-gradient(135deg, var(--i-accent) 0 11px, transparent 11px 19px, var(--i-deep) 19px 30px, transparent 30px 38px) 9; }
.fmt-letter .stamp { position: absolute; top: 18px; right: 16px; width: 78px; height: 94px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 8px; background: var(--i-deep); color: #f7e7bd; border: 5px dotted #fffdf6; outline: 4px solid var(--i-deep); outline-offset: -3px; rotate: 3deg; }
.fmt-letter .stamp .fmark { width: 40px; height: 40px; }
.fmt-letter .stamp small { max-width: 100%; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font: 600 10px 'Mukta', sans-serif; }
.fmt-letter .postmark { position: absolute; top: 34px; right: 70px; width: 92px; height: 92px; display: flex; flex-direction: column; align-items: center; justify-content: center; border: 2px solid rgba(50, 50, 70, .45); border-radius: 50%; box-shadow: inset 0 0 0 4px transparent, inset 0 0 0 5px rgba(50, 50, 70, .3); color: rgba(45, 45, 65, .68); rotate: -13deg; line-height: 1.1; text-align: center; }
.fmt-letter .postmark b { font: 700 1.6rem 'Cormorant Garamond', serif; }
.fmt-letter .postmark small { padding: 0 8px; font: 600 9.5px 'Mukta', sans-serif; }
.inv.fmt-letter .salute { margin: 6px 0 14px; text-align: left; font: 400 1.75rem/1.35 'Great Vibes', 'Tiro Devanagari Hindi', cursive; color: var(--i-accent); }
.inv.fmt-letter > .hero .names span { font-size: 14cqw; }
.fmt-letter .scroll-hint, .fmt-letter .hero .when { text-align: center; }
.fmt-letter .scroll-hint { color: var(--i-deep); text-shadow: none; }
.inv.fmt-letter main > .sec { padding: 14px; background: none; }
.fmt-letter .plate { padding: 30px 22px 28px; }
.fmt-letter main > .sec:nth-of-type(odd) .plate { rotate: -.7deg; }
.fmt-letter main > .sec:nth-of-type(even) .plate { rotate: .6deg; }
.fmt-letter .plate::before { content: ''; position: absolute; left: 50%; top: -9px; width: 86px; height: 20px; margin-left: -43px; background: rgba(226, 205, 150, .72); rotate: -2deg; }
.inv.fmt-letter h2 { font: 400 2.35rem/1.15 'Great Vibes', 'Tiro Devanagari Hindi', cursive; color: var(--i-deep); }
.fmt-letter .fdivider { justify-content: flex-start; margin: 2px 0 14px; }
.fmt-letter .fdivider span:first-child { display: none; }
.inv.fmt-letter .lead { margin-inline: 0; }
.fmt-letter .blessing, .fmt-letter .closing { text-align: center; }
.fmt-letter .blessing .fdivider, .fmt-letter .closing .fdivider { justify-content: center; }
.fmt-letter .mark { width: 52px; height: 52px; margin: 0 auto 8px; }
.inv.fmt-letter main > .sec .event { display: grid; grid-template-columns: 42px 1fr; column-gap: 12px; max-width: none; margin: 0; padding: 18px 0; background: none; border: 0; border-top: 1px dashed var(--i-gold); border-radius: 0; outline: 0; box-shadow: none; }
.fmt-letter .event > * { grid-column: 2; justify-self: start; }
.fmt-letter .event > .actions { justify-self: stretch; }
.fmt-letter .event > .ico { grid-column: 1; grid-row: 1 / span 9; margin: 2px 0; }
.fmt-letter .actions { justify-content: flex-start; }
.fmt-letter .person { margin: 14px 0; padding-left: 14px; border-left: 2px solid var(--i-gold); }
.inv.fmt-letter .person h3 { font: 400 2.3rem 'Great Vibes', 'Tiro Devanagari Hindi', cursive; }
.inv.fmt-letter .card { max-width: none; margin: 10px 0; background: none; border: 0; border-top: 1px dashed var(--i-gold); border-radius: 0; padding: 14px 0 0; }
.fmt-letter .swatches { justify-content: flex-start; }
.inv.fmt-letter .sec.dark { background: none !important; color: var(--i-ink); }
.fmt-letter .sec.dark h2 { color: var(--i-deep); }
.fmt-letter .count div { border-color: var(--i-gold); border-radius: 4px; }
.fmt-letter .gallery { gap: 14px; }
.fmt-letter .gallery button { padding: 6px 6px 22px; border-radius: 2px; background: #fff; box-shadow: 0 6px 14px rgba(60, 45, 20, .24); rotate: -2deg; }
.fmt-letter .gallery button:nth-child(even) { rotate: 2.2deg; }
.fmt-letter .rsvp, .fmt-letter .scratch { margin-inline: 0; }
.inv.fmt-letter .closing .sign { text-align: center; }

/* =================== royal scroll =================== */
.inv.fmt-scroll { background: radial-gradient(ellipse at 50% 0, rgba(255, 255, 255, .4), transparent 60%), linear-gradient(90deg, #d4b274 0, #ecd6a4 7%, #f8ebc8 18%, #f8ebc8 82%, #ecd6a4 93%, #d4b274 100%); color: #4a2412; border-inline: 1px solid #a87a34; }
.fmt-scroll::before, .fmt-scroll::after { content: ''; position: fixed; z-index: 35; left: 50%; translate: -50% 0; width: min(100%, var(--col)); height: 24px; background: radial-gradient(circle at 12px 50%, #ffe9a8 0 5px, #b8862b 6px 11px, transparent 12px), radial-gradient(circle at calc(100% - 12px) 50%, #ffe9a8 0 5px, #b8862b 6px 11px, transparent 12px), linear-gradient(#f4d58a, #a9742a 45%, #5e3a0c); box-shadow: 0 6px 14px rgba(70, 40, 10, .45); pointer-events: none; }
.fmt-scroll::before { top: 0; }
.fmt-scroll::after { bottom: 0; box-shadow: 0 -6px 14px rgba(70, 40, 10, .4); }
.demo-bar ~ .inv.fmt-scroll::before { top: 46px; }
.fmt-scroll.covered::before, .fmt-scroll.covered::after { visibility: hidden; }
.fmt-scroll > .hero, .fmt-scroll > main { --i-hero: #5a1226; --i-hero-soft: #8a561a; }
.fmt-scroll > .hero { padding: 54px 28px 76px; }
.fmt-scroll > .hero::before { content: ''; position: absolute; inset: 40px 14px 40px; border: 3px double #a87a34; pointer-events: none; }
.inv.fmt-scroll .royal { margin: 0 0 12px; font: italic 600 1.35rem 'Cormorant Garamond', 'Tiro Devanagari Hindi', serif; color: var(--i-accent); }
.fmt-scroll .crest { display: grid; place-items: center; width: 92px; height: 92px; margin: 0 auto 16px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #c93252, #8c1530 60%, #5e0a1e); box-shadow: 0 6px 14px rgba(90, 10, 30, .4), inset 0 0 0 6px rgba(255, 220, 160, .25); color: #ffe2a8; }
.fmt-scroll .crest .fmark { width: 50px; height: 50px; }
.inv.fmt-scroll .hero .names span { font-size: 13.5cqw; }
.fmt-scroll .scroll-hint { bottom: 52px; color: #7b3f12; text-shadow: none; }
.inv.fmt-scroll main > .sec { padding: 30px 30px; background: none; }
.fmt-scroll main > .sec + .sec { border-top: 1px solid rgba(168, 122, 52, .45); box-shadow: inset 0 3px 0 -2px rgba(168, 122, 52, .45); }
.inv.fmt-scroll h2 { font: 700 1.45rem/1.3 'Cinzel', 'Yatra One', Georgia, serif; color: var(--i-accent); font-variant: small-caps; }
.inv.fmt-scroll h3 { color: #5a1226; }
.fmt-scroll .mark { width: 54px; height: 54px; margin: 0 auto 8px; }
.inv.fmt-scroll main > .sec .event { max-width: none; margin: 0; padding: 18px 0; background: none; border: 0; border-radius: 0; outline: 0; box-shadow: none; }
.inv.fmt-scroll main > .sec .event + .event { border-top: 1px dashed #a87a34; }
.fmt-scroll .count { gap: 10px; }
.fmt-scroll .count div { aspect-ratio: 1; display: flex; flex-direction: column; justify-content: center; padding: 0; border: 3px double #e9c46a; border-radius: 50%; background: #6b1426; color: #fbe7bd; }
.fmt-scroll .count b { font-size: 1.55rem; line-height: 1.1; }
.fmt-scroll .count span { font-size: .58rem; letter-spacing: .02em; }
.inv.fmt-scroll .sec.dark { background: none !important; color: inherit; }
.fmt-scroll .sec.dark h2 { color: var(--i-accent); }
.fmt-scroll .btn.ghost { color: var(--i-accent) !important; }
.inv.fmt-scroll .card { background: rgba(255, 250, 235, .55); border-color: #a87a34; border-radius: 4px; }
.fmt-scroll .map, .fmt-scroll .portrait, .fmt-scroll .portrait img { border-radius: 4px; }
.fmt-scroll .closing { padding-bottom: 96px; }

/* =================== page turning, shared =================== */
html.paged, html.paged body { overflow: hidden; }
.inv.pagedfmt { min-height: 100svh; overflow: hidden; touch-action: pan-y; }
.inv.pagedfmt > .hero, .inv.pagedfmt > main > .sec { position: fixed; top: 0; bottom: 0; left: 50%; translate: -50% 0; width: min(100%, var(--col)); min-height: 0; max-height: none; height: auto; margin: 0; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; visibility: hidden; }
.inv.pagedfmt > .hero.on, .inv.pagedfmt > main > .sec.on { visibility: visible; }
.demo-bar ~ .inv.pagedfmt > .hero, .demo-bar ~ .inv.pagedfmt > main > .sec, .demo-bar ~ .inv .pgnav { top: 46px; }
.inv.pagedfmt > .hero, .inv.pagedfmt > main > .sec { display: flex; flex-direction: column; justify-content: safe center; align-items: center; }
.inv.pagedfmt main > .sec > .plate { width: 100%; max-width: 380px; flex: none; }
.pgnav { position: fixed; z-index: 44; top: 0; bottom: 0; left: 50%; translate: -50% 0; width: min(100%, var(--col)); pointer-events: none; }
.pgnav button { position: absolute; bottom: 18px; width: 44px; height: 44px; padding: 0 0 4px; border-radius: 50%; border: 1.5px solid currentColor; background: rgba(20, 10, 25, .55); color: #fff; font: 400 28px/1 'Mukta', sans-serif; cursor: pointer; pointer-events: auto; transition: scale .15s, opacity .2s; }
.pgnav button:active { scale: .9; }
.pgnav button:disabled { opacity: 0; pointer-events: none; }
.pg-prev { left: 72px; }
.pg-next { right: 72px; }
.pg-count { position: absolute; left: 50%; translate: -50% 0; bottom: 28px; white-space: nowrap; padding: 3px 12px; border-radius: 99px; background: rgba(20, 10, 25, .55); color: #fff; font: 600 12px 'Mukta', sans-serif; }
.pg-bars { position: absolute; left: 10px; right: 10px; top: 10px; display: flex; gap: 4px; }
.pg-bars i { flex: 1; min-width: 0; height: 3.5px; border-radius: 4px; background: rgba(150, 130, 150, .55); box-shadow: 0 0 3px rgba(0, 0, 0, .25); transition: background .25s; }
.pg-bars i.done { background: var(--i-gold); }
.inv .tap-next { margin: 22px 0 0; font: 600 .82rem 'Mukta', sans-serif; opacity: .85; animation: op-breathe 2s ease-in-out infinite; }

/* =================== stories =================== */
.inv.fmt-stories { background: var(--i-deep); color: #fff; text-align: left; }
.fmt-stories > .hero, .fmt-stories > main { --i-hero: #fff; --i-hero-soft: #ffe6d8; }
.inv.fmt-stories > .hero { justify-content: flex-end; align-items: stretch; padding: 60px 24px 92px; background: radial-gradient(circle at 80% 12%, var(--i-gold), transparent 46%), radial-gradient(circle at 6% 44%, var(--i-accent), transparent 58%), var(--i-deep); }
.story-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.story-photo + .story-words { text-shadow: 0 2px 14px rgba(0, 0, 0, .75); }
.fmt-stories > .hero:has(.story-photo)::after { content: ''; position: absolute; inset: 30% 0 0; background: linear-gradient(transparent, rgba(10, 5, 20, .82)); }
.story-words { position: relative; z-index: 1; }
.fmt-stories .hero .names { align-items: flex-start; }
.inv.fmt-stories > .hero .names span { font-size: 19cqw; line-height: .98; }
.inv.fmt-stories .hero .guest { padding: 0; text-align: left; }
.big-date { display: flex; align-items: center; gap: 12px; margin: 18px 0 0 !important; }
.big-date b { font: 400 5rem/.9 'Italiana', 'Cormorant Garamond', serif; color: var(--i-gold); }
.big-date span { max-width: 8ch; font: 600 1.05rem/1.25 'Mukta', sans-serif; }
.fmt-stories .hero .tap-next { position: relative; z-index: 1; }
.inv.fmt-stories main > .sec { padding: 60px 24px 92px; background: #fff4ec; color: var(--i-ink); align-items: stretch; }
.inv.fmt-stories main > .sec:nth-of-type(3n + 1) { background: linear-gradient(165deg, var(--i-accent), var(--i-deep)); color: #fff; }
.inv.fmt-stories main > .sec:nth-of-type(3n) { background: var(--i-deep); color: #fff; }
.inv.fmt-stories main > .sec > .plate { margin: 0 auto; }
/* on the dark pages, accent-coloured lines turn pale so they stay readable */
.inv.fmt-stories main > .sec:nth-of-type(3n + 1) > *, .inv.fmt-stories main > .sec:nth-of-type(3n) > * { --i-accent: #ffd9c2; }
.inv.fmt-stories h2 { font: 400 2.9rem/1.02 'Italiana', 'Tiro Devanagari Hindi', Georgia, serif; color: inherit; }
.inv.fmt-stories h3 { color: inherit; }
.fmt-stories .fdivider { justify-content: flex-start; }
.fmt-stories .fdivider span:first-child { display: none; }
.inv.fmt-stories .lead { margin-inline: 0; font-size: 1.4rem; }
.inv.fmt-stories a { color: inherit; }
.fmt-stories .mark { width: 74px; height: 74px; margin: 0 0 14px; }
.inv.fmt-stories main > .sec .event { max-width: none; margin: 0; padding: 0; background: none; border: 0; border-radius: 0; outline: 0; box-shadow: none; }
.inv.fmt-stories .inv-head { color: inherit; opacity: .92; padding: 0; }
.inv.fmt-stories .blessing.arch { background: none; border: 0; outline: 0; }
.fmt-stories .event .ico { width: 78px; height: 78px; margin: 0 0 14px; }
.inv.fmt-stories .event h3 { font: 400 3.3rem/1.02 'Italiana', 'Tiro Devanagari Hindi', Georgia, serif; margin-bottom: 12px; }
.fmt-stories .one-event h2 { font-size: 1.2rem; opacity: .8; }
.fmt-stories .one-event .fdivider { display: none; }
.fmt-stories .ev-date { font-size: 1.15rem; }
.fmt-stories .actions { justify-content: flex-start; margin-top: 16px !important; }
.fmt-stories .actions a { padding: 7px 16px; border: 1.5px solid currentColor; border-radius: 99px; text-decoration: none; }
.fmt-stories .person { margin: 8px 0; }
.inv.fmt-stories .sec.dark { color: #fff; }
.fmt-stories .sec.dark h2 { color: inherit; }
.fmt-stories .count { gap: 6px; max-width: none; }
.fmt-stories .count div { border: 0; border-radius: 14px; background: rgba(255, 255, 255, .14); }
.inv.fmt-stories .sec:not(:nth-of-type(3n)):not(:nth-of-type(3n + 1)) .count div { background: color-mix(in srgb, var(--i-deep) 12%, transparent); }
.inv.fmt-stories main > .sec.dark:not(:nth-of-type(3n)):not(:nth-of-type(3n + 1)) { color: var(--i-ink) !important; background: #fff4ec !important; }
.fmt-stories .count b { font-size: 2.4rem; }
.fmt-stories .card, .inv.fmt-stories .sec:nth-of-type(odd) .card { max-width: none; background: rgba(255, 255, 255, .13); border-color: rgba(127, 127, 127, .35); }
.fmt-stories .rsvp { margin-inline: 0; }
.fmt-stories .rsvp input:not([type]), .fmt-stories .rsvp input[type=text], .fmt-stories .rsvp select, .fmt-stories .rsvp textarea { background: #fff; color: #222; }
.fmt-stories .rsvp .pill span { border-color: currentColor; }
.inv.fmt-stories .rsvp .form-note { color: inherit; }
.inv.fmt-stories .btn { background: #fff; border-color: #fff; color: var(--i-deep) !important; box-shadow: 0 8px 20px rgba(0, 0, 0, .22); }
.inv.fmt-stories .btn.wa { background: #1f9d50; border-color: #1f9d50; color: #fff !important; }
.inv.fmt-stories .btn.ghost { background: transparent; color: inherit !important; border-color: currentColor; box-shadow: none; }
.fmt-stories .scratch, .fmt-stories .scratch-under { color: var(--i-ink); }
.fmt-stories .scratch { margin-inline: 0; background: #fff; }
.fmt-stories .closing { text-align: center; }
.fmt-stories .closing .fdivider, .fmt-stories .closing .mark { justify-content: center; margin-inline: auto; }
.inv.fmt-stories .closing .sign { color: inherit; }
.inv.pagedfmt.fmt-stories .sec.on .plate > *, .inv.pagedfmt.fmt-stories .sec.on .event > *, .inv.pagedfmt.fmt-stories .hero.on .story-words > * { animation: story-in .55s cubic-bezier(.2, .8, .2, 1) both; }
.inv.pagedfmt.fmt-stories .on .plate > :nth-child(2), .inv.pagedfmt.fmt-stories .on .event > :nth-child(2), .inv.pagedfmt.fmt-stories .on .story-words > :nth-child(2) { animation-delay: .1s; }
.inv.pagedfmt.fmt-stories .on .plate > :nth-child(3), .inv.pagedfmt.fmt-stories .on .event > :nth-child(3), .inv.pagedfmt.fmt-stories .on .story-words > :nth-child(3) { animation-delay: .2s; }
.inv.pagedfmt.fmt-stories .on .plate > :nth-child(n + 4), .inv.pagedfmt.fmt-stories .on .event > :nth-child(n + 4), .inv.pagedfmt.fmt-stories .on .story-words > :nth-child(n + 4) { animation-delay: .3s; }
.inv.fmt-stories.covered .story-words > * { animation-play-state: paused; }

/* =================== boarding pass =================== */
.inv.fmt-ticket { background: radial-gradient(circle, rgba(63, 74, 110, .14) 0 1px, transparent 2px) 0 0 / 18px 18px, #dfe9f3; text-align: left; }
.fmt-ticket > .hero, .fmt-ticket > main { --i-hero: var(--i-deep); --i-hero-soft: #5c6b8a; }
.fmt-ticket > .hero { padding: 24px 16px 56px; }
.fmt-ticket > .hero .inv-head { text-align: center; color: var(--i-deep); }
.bpass { width: 100%; max-width: 400px; background: #fffdf9; border-radius: 22px; overflow: hidden; box-shadow: 0 20px 40px rgba(30, 50, 90, .25); }
.bp-head { display: flex; justify-content: space-between; align-items: center; padding: 15px 20px; background: var(--i-deep); color: #fff; font: 700 1rem 'Mukta', sans-serif; }
.bp-head .fmark { width: 28px; height: 28px; color: #ffd98a; }
.bp-body { padding: 16px 20px 6px; }
.inv .bp-label { margin: 0; font: 600 .74rem 'Mukta', sans-serif; color: #6b7791; }
.fmt-ticket .hero .names { flex-direction: row; flex-wrap: wrap; align-items: baseline; gap: 0 10px; }
.inv.fmt-ticket > .hero .names span { font-size: 10.5cqw; }
.fmt-ticket .hero .names em { color: var(--i-accent); }
.bp-route { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; margin: 14px 0; padding: 12px 0; border-block: 1px solid #dbe1ec; }
.bp-route div:last-child { text-align: right; }
.bp-route small, .bp-route span { display: block; font: 500 .76rem 'Mukta', sans-serif; color: #6b7791; overflow-wrap: anywhere; }
.bp-route b { display: block; font: 700 2.3rem/1.15 'Mukta', sans-serif; color: var(--i-deep); letter-spacing: .02em; }
.bp-route i { font-style: normal; font-size: 1.6rem; color: var(--i-accent); animation: ticket-fly 2.8s ease-in-out infinite; }
.bp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; margin: 0 0 12px; }
.bp-grid dt { font: 600 .72rem 'Mukta', sans-serif; color: #6b7791; }
.bp-grid dd { margin: 0; font: 700 1rem/1.3 'Mukta', sans-serif; color: var(--i-deep); overflow-wrap: anywhere; }
.bp-bars { position: relative; height: 82px; margin: 0 20px; border-top: 3px dashed #c3cbda; }
.bp-bars::after { content: ''; position: absolute; left: 6%; right: 6%; top: 16px; bottom: 14px; background: repeating-linear-gradient(90deg, #16223c 0 2px, transparent 2px 5px, #16223c 5px 9px, transparent 9px 11px, #16223c 11px 12px, transparent 12px 17px); }
.bp-bars::before { content: ''; position: absolute; left: -32px; right: -32px; top: -13px; height: 24px; background: radial-gradient(circle at 12px 12px, #dfe9f3 0 11px, transparent 12px) left / 24px 24px no-repeat, radial-gradient(circle at 12px 12px, #dfe9f3 0 11px, transparent 12px) right / 24px 24px no-repeat; }
.fmt-ticket .scroll-hint { color: var(--i-deep); text-shadow: none; }
.inv.fmt-ticket main > .sec { padding: 12px 16px; background: none; }
.fmt-ticket main > .sec > .plate { overflow: hidden; padding: 0 18px 20px; border-radius: 18px; background: #fffdf9; box-shadow: 0 10px 24px rgba(30, 50, 90, .14); }
.inv.fmt-ticket h2 { margin: 0 -18px 16px; padding: 11px 18px; background: var(--i-deep); color: #fff; font: 700 1.02rem 'Mukta', sans-serif; }
.fmt-ticket .fdivider { display: none; }
.fmt-ticket .blessing .plate, .fmt-ticket .closing .plate { padding-top: 22px; text-align: center; }
.fmt-ticket .mark { width: 54px; height: 54px; margin: 0 auto 8px; }
.inv.fmt-ticket .lead { margin-inline: 0; font-size: 1.12rem; }
.inv.fmt-ticket .closing .lead { margin-inline: auto; }
.fmt-ticket main > .sec[data-sec=events] > .plate { overflow: visible; padding: 0; background: none; box-shadow: none; }
.fmt-ticket main > .sec[data-sec=events] h2 { margin: 0 0 12px; border-radius: 12px; }
.fmt-ticket .event { display: flex; align-items: stretch; max-width: none; margin: 0 0 14px; padding: 0; border: 0; border-radius: 18px; background: #fffdf9; box-shadow: 0 10px 22px rgba(30, 50, 90, .16); }
.ev-main { flex: 1; min-width: 0; padding: 16px; }
.fmt-ticket .event .ico { width: 30px; height: 30px; margin: 0 0 4px; color: var(--i-accent); }
.fmt-ticket .event .actions { justify-content: flex-start; }
.ev-stub { position: relative; flex: none; width: 84px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; border-left: 3px dashed #c3cbda; border-radius: 0 18px 18px 0; background: color-mix(in srgb, var(--i-accent) 10%, #fff); color: var(--i-deep); text-align: center; }
.ev-stub::before, .ev-stub::after { content: ''; position: absolute; left: -13px; width: 23px; height: 23px; border-radius: 50%; background: #dfe9f3; }
.ev-stub::before { top: -12px; }
.ev-stub::after { bottom: -12px; }
.ev-stub b { font: 700 2.2rem/1 'Mukta', sans-serif; }
.ev-stub span { font: 700 .85rem 'Mukta', sans-serif; }
.ev-stub small { font: 500 .72rem 'Mukta', sans-serif; color: #6b7791; }
.inv.fmt-ticket .sec.dark { background: none !important; color: var(--i-ink); }
.fmt-ticket .sec.dark > .plate { background: #141a26; color: #ffd45a; }
.fmt-ticket .sec.dark h2 { background: #0a0f19; color: #ffd45a; }
.fmt-ticket .count { gap: 6px; }
.fmt-ticket .count div { position: relative; padding: 10px 0 8px; border: 0; border-radius: 8px; background: linear-gradient(#2a3346 50%, #1e2637 50%); }
.fmt-ticket .count div::after { content: ''; position: absolute; left: 0; right: 0; top: 50%; border-top: 1px solid rgba(0, 0, 0, .55); }
.fmt-ticket .count b { font: 700 1.9rem 'Mukta', sans-serif; color: #ffd45a; }
.fmt-ticket .count span { color: #c8d2e6; }
.fmt-ticket .sec.dark .btn.ghost { color: #ffd45a !important; border-color: #ffd45a; }
.fmt-ticket .count-done { color: #ffd45a; }
.fmt-ticket .rsvp { margin-inline: 0; max-width: none; }
.fmt-ticket .actions { justify-content: flex-start; }
.fmt-ticket .closing { padding-bottom: 96px; }

/* =================== storybook =================== */
.inv.fmt-book { background: repeating-linear-gradient(90deg, rgba(0, 0, 0, .2) 0 2px, transparent 2px 58px), #4a2a16; }
.fmt-book > .hero, .fmt-book > main { --i-hero: var(--i-deep); --i-hero-soft: var(--i-accent); }
.inv.pagedfmt.fmt-book > .hero, .inv.pagedfmt.fmt-book > main > .sec {
  top: 10px; bottom: 72px; width: calc(min(100%, var(--col)) - 20px); padding: 34px 24px 30px 32px; border-radius: 4px 14px 14px 4px; color: var(--i-ink); perspective: none; transform-origin: 0 50%;
  background: linear-gradient(90deg, rgba(90, 60, 30, .32), rgba(90, 60, 30, .08) 16px, transparent 40px), #fbf5e6; box-shadow: 3px 0 0 #efe5cf, 5px 1px 0 #d8cbac, 0 14px 30px rgba(0, 0, 0, .45);
  z-index: 1; transform: none; opacity: 1; transition: transform .85s cubic-bezier(.5, .05, .25, 1), opacity .85s ease, visibility 0s linear .85s; }
.demo-bar ~ .inv.pagedfmt.fmt-book > .hero, .demo-bar ~ .inv.pagedfmt.fmt-book > main > .sec { top: 56px; }
.inv.pagedfmt.fmt-book > .hero.on, .inv.pagedfmt.fmt-book > main > .sec.on { z-index: 2; transition: transform .85s cubic-bezier(.5, .05, .25, 1), opacity .85s ease, visibility 0s; }
.inv.pagedfmt.fmt-book > .hero.past, .inv.pagedfmt.fmt-book > main > .sec.past { z-index: 3; transform: perspective(1300px) rotateY(-104deg); opacity: 0; pointer-events: none; }
.leaf-in { width: 100%; margin: auto 0; text-align: center; }
.fmt-book .crest { display: block; width: 64px; height: 64px; margin: 4px auto 10px; color: var(--i-gold); }
.fmt-book .crest .fmark { width: 100%; height: 100%; }
.inv .story-of { margin: 0 0 8px; font: italic 500 1.25rem 'Cormorant Garamond', 'Tiro Devanagari Hindi', serif; color: var(--i-accent); }
.inv.fmt-book > .hero .names span { font-size: 13cqw; }
.book-photo { width: 62%; aspect-ratio: 4 / 3; object-fit: cover; margin: 18px auto 0; padding: 6px; background: #fff; box-shadow: 0 8px 18px rgba(80, 50, 20, .28); rotate: -2deg; }
.inv.fmt-book .chapter { margin: 0 0 2px; font: italic 500 1.05rem 'Cormorant Garamond', 'Tiro Devanagari Hindi', serif; color: var(--i-accent); }
.inv.fmt-book h2 { font: 600 1.9rem/1.2 'Cormorant Garamond', 'Tiro Devanagari Hindi', Georgia, serif; color: var(--i-deep); }
.inv.fmt-book main > .sec > .plate { margin: auto 0; text-align: center; }
.fmt-book .mark { width: 56px; height: 56px; margin: 0 auto 10px; }
.inv.fmt-book main > .sec .event { max-width: none; margin: 0; padding: 6px 0; background: none; border: 0; border-radius: 0; outline: 0; box-shadow: none; }
.fmt-book .event .ico { width: 62px; height: 62px; }
.inv.fmt-book .event h3 { font-size: 2.2rem; }
.fmt-book .one-event h2 { font-size: 1.15rem; }
.inv.fmt-book .sec.dark { color: var(--i-ink); background: linear-gradient(90deg, rgba(90, 60, 30, .32), rgba(90, 60, 30, .08) 16px, transparent 40px), #fbf5e6 !important; }
.fmt-book .sec.dark h2 { color: var(--i-deep); }
.inv.fmt-book:not(.is3d) .sec.dark .btn.ghost { color: var(--i-accent) !important; border-color: var(--i-accent); }
.fmt-book .count div { border-color: var(--i-gold); border-radius: 6px; }
.inv.fmt-book .card { background: #fff; }
.fmt-book .pgnav button { bottom: 14px; background: #fbf5e6; color: #4a2a16; border-color: #d8b26a; }
.fmt-book .pg-count { bottom: 24px; color: #f3e2c0; background: none; }
.fmt-book .pg-prev { left: 76px; }
.fmt-book .pg-next { right: 76px; }

/* the countdown button must stay readable on paper */
.inv.fmt-letter:not(.is3d) .sec.dark .btn.ghost, .inv.fmt-scroll:not(.is3d) .sec.dark .btn.ghost { color: var(--i-accent) !important; border-color: var(--i-accent); }
.inv.fmt-stories:not(.is3d) .sec.dark .btn.ghost { color: inherit !important; border-color: currentColor; }

@keyframes story-in { from { opacity: 0; translate: 0 26px; } }
@keyframes ticket-fly { 50% { translate: 8px -2px; } }

@media (prefers-reduced-motion: reduce) {
  .inv.pagedfmt.fmt-book > .hero, .inv.pagedfmt.fmt-book > main > .sec { transition-duration: .01ms; transition-delay: 0s; }
}
