@font-face{font-family:"Portal Sans";src:url("./assets/body.woff2") format("woff2");font-weight:100 900;font-display:swap}
@font-face{font-family:"Instrument Serif";src:url("./assets/display.woff2") format("woff2");font-display:swap}
@font-face{font-family:"Santa Script";src:url("./assets/christmas/santa-script.woff2") format("woff2");font-display:swap;font-weight:400}
/* MEC-098: "Merry Christmas" greeting over the artwork while an animation plays.
   Mirrors the canvas overlay drawn by ecards.js, over the same artwork rectangle as #ec-clip:
   centred on the artwork with a 7.5-degree anticlockwise tilt. ecards.js sets
   --ec-greet-size per artwork aspect ratio, and --ec-greet-color / --ec-greet-shadow
   to match the canvas colour pairing. */
#ec-greeting{position:absolute;container-type:size;pointer-events:none;overflow:hidden}
#ec-greeting span{position:absolute;left:0;right:0;top:50%;transform:translateY(-50%) rotate(-7.5deg);text-align:center;white-space:nowrap;font-family:"Santa Script",cursive;font-size:var(--ec-greet-size,15cqw);line-height:1.25;color:var(--ec-greet-color,#fdf9ee);text-shadow:var(--ec-greet-shadow,0 .05em .1em rgba(28,53,41,.7),0 0 .14em rgba(28,53,41,.55))}
:root{--ink:#1e3b2d;--muted:#53644f;--paper:#faf9f4;--line:#d4dacc;--accent:#35583c;--rose:#f2e9df}
*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink);font:16px/1.6 "Portal Sans",sans-serif}a{color:var(--ink);text-underline-offset:4px}button,input,select,textarea{font:inherit}button,a,input,select,textarea,summary{-webkit-tap-highlight-color:transparent}button,a,summary{touch-action:manipulation}button,select,summary{cursor:pointer}button:disabled{opacity:.5;cursor:wait}[hidden]{display:none!important}
.ec-header,main,footer{width:min(1180px,100%);margin:auto;padding:24px 32px}.ec-header{display:flex;justify-content:space-between;gap:24px;align-items:center;border-bottom:1px solid var(--line)}.ec-header img{display:block;width:240px;max-width:100%;height:auto}.ec-header nav{display:flex;gap:24px;font-size:14px}.ec-header a{padding:8px 0}.ec-intro{max-width:750px;padding:40px 0 32px}.eyebrow{font-size:12px;font-weight:600;letter-spacing:.14em}.ec-intro h1{font:400 clamp(36px,4vw,54px)/1.12 "Instrument Serif",serif;margin:16px 0}.ec-intro>p:not(.eyebrow){max-width:64ch}.ec-note,.hint{font-size:14px;color:var(--muted)}.ec-workspace{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:64px;align-items:start}.ec-editor{padding:28px 32px;background:#fff;border:1px solid var(--line);border-radius:8px}h2{font-size:22px;line-height:1.35;margin:0 0 20px;font-weight:600}fieldset{border:0;padding:0;margin:24px 0}.field{margin:24px 0}label,legend{display:block;font-weight:600;margin-bottom:8px}label span{font-weight:400;color:var(--muted)}input,select,textarea{width:100%;padding:12px;border:1px solid #7e8d79;border-radius:4px;color:var(--ink);background:white;min-height:48px}textarea{resize:vertical}p.hint{margin:7px 0}.ec-designs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.ec-design{position:relative;display:block;margin:0;font-size:12px;text-align:center;font-weight:400;padding:5px;border:2px solid transparent;border-radius:4px;cursor:pointer}.ec-design:has(input:checked){border-color:var(--accent);background:#edf1e9}.ec-design input{position:absolute;width:20px;height:20px;min-height:20px;left:10px;top:10px;accent-color:var(--accent)}.ec-design img{display:block;width:100%;aspect-ratio:1;object-fit:contain;border-radius:3px;margin-bottom:7px}.ec-design span{color:var(--ink)}.ec-preview-heading{display:flex;justify-content:space-between;gap:16px;align-items:baseline}.ec-preview-heading h2{font-size:18px}.ec-preview{min-width:0}.ec-preview canvas{display:block;width:100%;height:auto;max-width:420px;margin:0 auto 20px;border:1px solid var(--line);box-shadow:0 12px 32px #1e3b2d10;background:#fffcf6;border-radius:3px}.ec-actions{display:flex;flex-wrap:wrap;gap:10px;margin:20px 0}button,.ec-button{display:inline-flex;justify-content:center;align-items:center;text-align:center;min-height:48px;border:1px solid var(--accent);background:var(--accent);color:#fff;border-radius:4px;padding:10px 16px;text-decoration:none;font-weight:500;font-size:14px}button.secondary{background:transparent;color:var(--ink)}button:hover,.ec-button:hover{background:#24462b;color:#fff}.ec-receipt{padding:24px;background:#edf2e9;border-left:3px solid var(--accent);margin:20px 0}.ec-receipt h2{margin-bottom:8px}.ec-error{padding:24px;border:1px solid #9b5144;background:#fff1ec}.ec-error h2{margin-bottom:12px}#ec-status{min-height:26px}#ec-readable{margin:12px 0}summary{padding:12px 0;min-height:48px}#ec-readable p{white-space:pre-wrap;overflow-wrap:anywhere}#ec-link{font-size:14px;overflow-wrap:anywhere}.ec-about{display:grid;grid-template-columns:1fr 1fr;gap:64px;padding:48px 0;margin-top:44px;border-top:1px solid var(--line)}.ec-about h2{font:400 32px/1.2 "Instrument Serif",serif}footer{border-top:1px solid var(--line);font-size:14px;padding-bottom:48px}footer p{color:var(--muted)}.skip{position:absolute;left:-9999px}.skip:focus{left:12px;top:12px;background:white;padding:12px;z-index:5}:focus-visible{outline:3px solid #966b32;outline-offset:4px}body.ec-recipient-view .ec-workspace{display:block;max-width:520px;margin:auto}body.ec-recipient-view .ec-intro{display:none}body.ec-recipient-view .ec-preview{padding-top:32px}
@media(max-width:850px){.ec-workspace{gap:28px}.ec-editor{padding:20px}.ec-header img{width:200px}.ec-header nav{gap:16px}}
@media(max-width:650px){.ec-header,main,footer{padding:20px 20px}.ec-header{align-items:flex-start;gap:12px}.ec-header img{width:180px}.ec-header nav{flex-direction:column;gap:0;font-size:12px;flex-shrink:0}.ec-workspace,.ec-about{grid-template-columns:1fr;gap:28px}.ec-intro{padding:24px 0}.ec-editor{padding:20px}.ec-preview{padding-top:8px}.ec-preview canvas{max-width:420px}.ec-about{padding:32px 0}.ec-actions button{flex:1 1 44%}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}}
#ec-loading{min-height:1100px}
.ec-header nav a{display:flex;align-items:center;min-height:44px}
body.ec-recipient-view .ec-intro{display:block;max-width:520px;margin:auto;padding-bottom:0}
body.ec-recipient-view .ec-intro p{display:none}
@media print{.ec-header,.ec-editor,.ec-actions,.ec-intro,.ec-about,footer,#ec-readable,#ec-art-description,#ec-status,.ec-preview-heading,#ec-receipt,#ec-recipient,#ec-greeting{display:none!important}.ec-workspace{display:block}.ec-preview canvas{width:auto;height:90vh;max-width:100%;border:0;box-shadow:none}}
.ec-design img{height:auto}
