/* The card's faces (UI Designer, 2 Dec 2026), local woff2 under the SIL Open Font License, from 'self' only (the /e/ CSP): a display
   script for the greeting, a book serif for the family line and the message, a handwritten script for the names; Gingerbread greets in
   the handwritten script and Modern minimal uses the site's sans. Latin only (unicode-range), so they load small; any other letter falls back down the stack each role ends with
   (src/data/ecard-templates.mjs). swap: the engine lays the text out again when they arrive, and waits for them before saving. */
@font-face{font-family:"uncrop Card Display";src:url(/fonts/ecard/great-vibes.woff2) format("woff2");font-weight:400;font-style:normal;font-display:swap;unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"uncrop Card Script";src:url(/fonts/ecard/dancing-script.woff2) format("woff2");font-weight:400;font-style:normal;font-display:swap;unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"uncrop Card Serif";src:url(/fonts/memorial/eb-garamond.woff2) format("woff2");font-weight:400 600;font-style:normal;font-display:swap;unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"uncrop Card Sans";src:url(/fonts/bricolage-latin-wght.woff2) format("woff2");font-weight:200 800;font-style:normal;font-display:swap;unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
/* The e-card as a book: the shared card at /e/ and the maker's live preview (src/scripts/ecard/book.ts). The UI Designer owns this file's look;
   the class names are the contract (.ecv-*). No inline style in any markup; the script sets sizes through CSS custom properties and style properties. */
.ecv-stage{--ecv-w:min(78vw,calc(60vh * 5 / 7),340px);--ecv-strip:calc(var(--ecv-w) * .0733);--ecv-h:calc(var(--ecv-w) * 1.4 + var(--ecv-strip));display:flex;align-items:center;justify-content:center;perspective:1700px;min-height:0;width:100%}
.ecv-book{position:relative;width:var(--ecv-w);height:var(--ecv-h);transform-style:preserve-3d;transition:transform .9s cubic-bezier(.3,.7,.2,1)}
.ecv-leaf{position:absolute;inset:0;transform-style:preserve-3d;transform-origin:left center;transition:transform .9s cubic-bezier(.3,.7,.2,1);cursor:pointer}
.ecv-leaf.turned{transform:rotateY(-180deg)}
.ecv-leaf.l1{z-index:2}.ecv-leaf.l2{z-index:1}
.ecv-book[data-s="2"] .ecv-leaf.l2{z-index:3}
.ecv-face{position:absolute;inset:0;backface-visibility:hidden;-webkit-backface-visibility:hidden;border-radius:6px;overflow:hidden;background:var(--sc,#f6efe0);box-shadow:0 18px 40px rgba(0,0,0,.45);container-type:inline-size;display:flex;flex-direction:column}
.ecv-face.b{transform:rotateY(180deg)}
.ecv-face::before{content:"";position:absolute;inset:0;pointer-events:none;z-index:3;background:linear-gradient(90deg,rgba(0,0,0,.2),rgba(0,0,0,0) 9%)}
.ecv-face.b::before{background:linear-gradient(270deg,rgba(0,0,0,.2),rgba(0,0,0,0) 9%)}
.ecv-art{position:relative;width:100%;aspect-ratio:5/7;flex:none;overflow:hidden}
.ecv-img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;display:block;-webkit-user-drag:none}
.ecv-text{position:absolute;transform:translateX(-50%);display:flex;align-items:center;justify-content:center;text-align:center;white-space:pre;line-height:1;z-index:2;pointer-events:none}
/* the branding strip: its own band under the art, never over it */
.ecv-strip{flex:1 1 auto;min-height:0;background:var(--sb,#f6efe0);display:flex;align-items:center;justify-content:flex-end;padding:0 3cqw;position:relative;z-index:4}
.ecv-badge{display:flex;align-items:center;gap:1.6cqw;font:500 3.3cqw system-ui,-apple-system,"Segoe UI",sans-serif;color:var(--st,#6b5a48);text-decoration:none;letter-spacing:.2px;white-space:nowrap}
.ecv-badge:focus-visible{outline:2px solid var(--se,#e2500f);outline-offset:2px;border-radius:4px}
.ecv-logo{width:4cqw;height:4cqw;border-radius:1.2cqw;background:linear-gradient(135deg,#ff8a3c,#ff5a1f);position:relative;display:block;flex:none}
.ecv-logo::after{content:"";position:absolute;left:1.5cqw;top:.8cqw;width:1cqw;height:2.4cqw;border-radius:.5cqw;background:#fff}
/* "uncrop.si" in the strip's own text ink (bold): the brand orange fell to 2.7:1 on the kraft and snowy strips; the orange logo tile carries the brand. */
.ecv-name{font-style:normal;font-weight:700;color:var(--st,#6b5a48)}
.ecv-badge{opacity:.92}
/* the shared card page (/e/) */
.ecv{margin:0;min-height:100vh;min-height:100dvh;display:flex;flex-direction:column;align-items:center;overflow:hidden;color:#fff7ea;background:radial-gradient(120% 90% at 50% 10%,#7d1420 0%,#4a0b14 55%,#2a060c 100%);font-family:Georgia,"Times New Roman",serif;-webkit-user-select:none;user-select:none;touch-action:pan-y}
.ecv-snow{position:fixed;inset:0;pointer-events:none;width:100%;height:100%}
.ecv-title{font-weight:400;font-size:clamp(17px,4.6vw,24px);margin:16px 12px 2px;text-align:center;letter-spacing:.3px}
.ecv-sub{margin:0 12px;font:13px/1.4 system-ui,sans-serif;opacity:.8;text-align:center}
.ecv .ecv-stage{flex:1}
.ecv-hint{font:13px system-ui,sans-serif;opacity:.85;height:18px;margin-top:6px}
.ecv-bar{display:flex;align-items:center;gap:14px;margin:6px 0 4px}
.ecv-nav{width:44px;height:44px;border-radius:50%;border:1px solid rgba(255,247,234,.45);background:rgba(255,255,255,.08);color:#fff7ea;font-size:20px;cursor:pointer}
.ecv-nav:disabled{opacity:.3;cursor:default}
.ecv-dots{display:flex;gap:8px}.ecv-dots i{width:8px;height:8px;border-radius:50%;background:rgba(255,247,234,.35)}.ecv-dots i.on{background:#ffd58a}
.ecv-cta{margin:8px 12px 16px;text-align:center}
.ecv-cta a{display:inline-block;background:#ff5a1f;color:#121316;font-weight:700;text-decoration:none;font:600 15px system-ui,sans-serif;padding:12px 20px;border-radius:999px}
.ecv-end{display:flex;flex-direction:column;align-items:center;gap:10px;margin:8px 12px 16px;text-align:center}
.ecv-end[hidden],.ecv-cta[hidden]{display:none}
.ecv-end-free{display:inline-block;background:#ff5a1f;color:#fff;text-decoration:none;font:600 15px system-ui,sans-serif;padding:12px 20px;border-radius:999px}
.ecv-end-paid{display:inline-flex;align-items:center;gap:10px;color:#fff7ea;text-decoration:underline;font:14px system-ui,sans-serif}
.ecv-end-thumb{width:34px;height:auto;border-radius:6px;display:block}
.ecv-gone{max-width:420px;margin:auto;padding:24px;text-align:center}
.ecv-gone h1{font-weight:400;font-size:24px}
.ecv-gone a{display:inline-block;background:#ff5a1f;color:#121316;font-weight:700;text-decoration:none;font:600 15px system-ui,sans-serif;padding:12px 20px;border-radius:999px;margin-top:8px}
@media (prefers-reduced-motion:reduce){.ecv-book,.ecv-leaf{transition:none}}
/* After the back page: a quiet end panel (UI Designer, 2 Dec 2026). No pop-up: it sits in the page flow under the card. */
.ecv-end{display:grid;gap:10px;justify-items:center;margin:6px 12px 18px;padding:14px 16px;max-width:360px;border-radius:16px;background:rgba(255,247,234,.07);border:1px solid rgba(255,247,234,.18);text-align:center}
.ecv-end[hidden]{display:none}
.ecv-end-free{display:inline-flex;align-items:center;justify-content:center;min-height:46px;padding:0 22px;border-radius:999px;background:#ff5a1f;color:#121316;text-decoration:none;font:700 15px system-ui,sans-serif;box-shadow:0 10px 24px -12px rgba(0,0,0,.7)}
.ecv-end-paid{display:inline-flex;align-items:center;gap:10px;color:#ffe3ad;text-decoration:none;font:600 14px system-ui,sans-serif}
.ecv-end-paid span{text-decoration:underline;text-underline-offset:3px;text-decoration-color:rgba(255,227,173,.5)}
.ecv-end-thumb{width:34px;height:auto;aspect-ratio:9/16;object-fit:cover;border-radius:6px;box-shadow:0 6px 14px -6px rgba(0,0,0,.6);flex:none}
.ecv-end-free:focus-visible,.ecv-end-paid:focus-visible,.ecv-cta a:focus-visible,.ecv-nav:focus-visible{outline:2.5px solid #ffd58a;outline-offset:2px}
