/* Chris's approved invite mockup. Rules 8, 12-14, 17, 21; approved website-style exception. */
@font-face{font-family:"Invite Nunito";font-style:normal;font-weight:400 800;font-display:swap;src:url('/calculator-nunito-400-800.woff2') format('woff2')}
@font-face{font-family:"Invite Fraunces";font-style:normal;font-weight:900;font-display:swap;src:url('/calculator-fraunces-900.woff2') format('woff2')}
body:has(#view > .invite-page) .shell{max-width:none;height:auto;min-height:100dvh}
body:has(#view > .invite-page) .shell > .top,body:has(#view > .invite-page) #nav{display:none}
body:has(#view > .invite-page) #view{display:block;padding:0;height:auto}
.sheet.bottom:has(> .invite-page){padding:0;max-width:none;width:100%;inset:0;max-height:none;border:0;border-radius:0;overflow:auto;transform:none}
.invite-page{width:100%;min-height:100dvh;display:flex;flex-direction:column;font:400 17px/1.5 var(--body);background:var(--paper);color:var(--ink)}
.invite-page{
  --display:"Invite Fraunces","Iowan Old Style","Palatino Linotype",Georgia,serif;
  --body:"Invite Nunito",ui-rounded,"SF Pro Rounded",system-ui,-apple-system,"Segoe UI",sans-serif;
  --paper:#f5f3ee; --card:#fffdf9; --ink:#231c29; --muted:#665c6c; --brand-ink:#4a148c; --line:#cfc5d7;
  --button:#4a148c; --on-button:#ffffff; --wash:#ece4f6;
  --brand:#4a148c; --road:#2d0c60; --night:#1c0a3a; --board:#2a1a3f;
  --gold:#f5b82e; --gold-hi:#fbd468; --gold-deep:#c98c12; --gold-ink:#3a2503; --cream:#fff9ee; --on-road:#ede4fa;
  --tk:#fffdf9; --tk-ink:#231c29; --tk-muted:#6b6072; --tk-line:#e6dfd3; --tk-brand:#4a148c; --tk-wash:#efe7f8; --tk-err:#b3261e;
  --shadow:45 12 96; --wall-dim:rgba(0,0,0,0);
  --ticket-edge:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9'%3E%3Cpath d='M0 0h14L7 9z' fill='%23fffdf9'/%3E%3C/svg%3E");
  --grain:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .2 0 0 0 0 .08 0 0 0 0 .3 0 0 0 .55 -.12'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E");
  color-scheme:light;
}
@media (prefers-color-scheme:dark){html:not([data-theme="light"]) .invite-page{
  --paper:#1e1726; --card:#2b2135; --ink:#f5f3ee; --muted:#c9bfce; --brand-ink:#d9b8ff; --line:#65556e;
  --button:#6b34ad; --wash:#281d36; --gold:#eeb02a; --gold-hi:#f7cc5c; --shadow:0 0 0; --wall-dim:rgba(24,8,44,.22); color-scheme:dark}
}
html[data-theme="dark"] .invite-page{
  --paper:#1e1726; --card:#2b2135; --ink:#f5f3ee; --muted:#c9bfce; --brand-ink:#d9b8ff; --line:#65556e;
  --button:#6b34ad; --wash:#281d36; --gold:#eeb02a; --gold-hi:#f7cc5c; --shadow:0 0 0; --wall-dim:rgba(24,8,44,.22); color-scheme:dark}
.invite-page *{box-sizing:border-box}
.invite-page{margin:0;background:var(--paper);color:var(--ink);font:400 17px/1.5 var(--body);-webkit-font-smoothing:antialiased;overflow-wrap:break-word;overflow-x:clip;display:flex;flex-direction:column;min-height:100vh}
.invite-page h1,.invite-page p,.invite-page ul{margin:0}
.invite-page svg{display:block}
.invite-page button,.invite-page input{font:inherit;color:inherit}
.invite-page button{cursor:pointer}
.invite-page a{color:var(--brand-ink);font-weight:800;text-underline-offset:4px}
.invite-page :focus-visible{outline:3px solid var(--brand-ink);outline-offset:3px;border-radius:8px}
.invite-page [hidden]{display:none!important}
.invite-page .wrap{width:min(100%,1180px);margin-inline:auto;padding-left:max(16px,env(safe-area-inset-left,0px));padding-right:max(16px,env(safe-area-inset-right,0px))}
.invite-page .strip{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:60px}
.invite-page .brand{display:inline-flex;align-items:center;gap:9px;min-height:44px;font-size:21px;letter-spacing:-.01em;text-decoration:none}
.invite-page .brand svg{width:31px;height:27px;fill:currentColor}
.invite-page .signin{display:inline-flex;align-items:center;min-height:44px;padding-inline:4px;font-size:16px;text-decoration:none}
.invite-page .soft{position:relative;flex:1 0 auto;overflow:clip;isolation:isolate;padding-top:36px;background:linear-gradient(var(--wall-dim),var(--wall-dim)),var(--grain),var(--gold);color:var(--gold-ink)}
.invite-page .rays{position:absolute;left:50%;top:34%;width:240vmax;height:240vmax;margin:-120vmax;z-index:-1;border-radius:50%;background:repeating-conic-gradient(from 0deg,var(--gold-hi) 0 7.5deg,transparent 7.5deg 15deg);opacity:.5}
.invite-page .soft{display:flex;flex-direction:column}
.invite-page .soft-in{position:relative;z-index:2;display:flex;flex-direction:column;align-items:center}
.invite-page .ticket{position:relative;background:var(--tk);color:var(--tk-ink);border-radius:14px 14px 0 0;filter:drop-shadow(0 12px 16px rgba(45,12,96,.2)) drop-shadow(0 2px 3px rgba(45,12,96,.18));font-size:15.5px;line-height:1.4}
.invite-page .ticket::after{content:"";position:absolute;left:0;right:0;top:calc(100% - .5px);height:9px;background:var(--ticket-edge) 0 0/14px 9px repeat-x}
.invite-page .ticket :focus-visible{outline-color:#4a148c}
.invite-page .door-card{position:relative;z-index:1;width:100%;max-width:440px;padding:26px 20px 22px;rotate:1deg}
.invite-page .door-card h1{font:900 34px/1.04 var(--display);font-variation-settings:"SOFT" 100;letter-spacing:-.02em;color:#4a148c;text-wrap:balance}
.invite-page .form{display:grid;margin-top:18px}
.invite-page .form label{font-weight:800;font-size:15px;line-height:1.2;color:var(--tk-ink);margin-bottom:7px}
.invite-page .field{display:flex;align-items:center;height:56px;padding:0 14px;border-radius:12px;background:#fff;border:1.5px solid #cfc5d7;color:#231c29}
.invite-page .field:focus-within{outline:3px solid #4a148c;outline-offset:1px;border-color:#4a148c}
.invite-page .field input{flex:1;min-width:0;width:100%;height:100%;border:0;background:transparent;padding:0;font:700 18px/1 var(--body);color:#231c29;outline:none}
.invite-page .field.bad{border-color:var(--tk-err);border-width:2px;background:#fff8f7}
.invite-page .field.bad:focus-within{outline-color:var(--tk-err)}
.invite-page .err{display:flex;gap:7px;align-items:flex-start;margin-top:9px;font-size:15px;font-weight:700;line-height:1.35;color:var(--tk-err)}
.invite-page .err svg{flex:none;width:18px;height:18px;margin-top:1px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round}
.invite-page .button{position:relative;overflow:hidden;display:flex;width:100%;margin-top:16px;align-items:center;justify-content:center;gap:10px;min-height:56px;padding:12px 24px;background:#4a148c;color:#fff;border:0;border-radius:16px;font-weight:800;font-size:18px;line-height:1.3;text-align:center;text-decoration:none;box-shadow:0 2px 0 rgba(45,12,96,.35),0 14px 26px -10px rgba(45,12,96,.55);transition:transform .18s cubic-bezier(.2,.8,.2,1)}
.invite-page .button:hover{transform:translateY(-2px)}
.invite-page .button:active{transform:translateY(1px) scale(.985)}
.invite-page .button[disabled]{cursor:progress;background:#6f4ea3;box-shadow:none;transform:none}
.invite-page .spin{width:18px;height:18px;border-radius:50%;border:2.5px solid rgba(255,255,255,.4);border-top-color:#fff;animation:invite-spin .8s linear infinite}
@keyframes invite-spin{to{transform:rotate(360deg)}}
@media (prefers-reduced-motion:reduce){.invite-page .spin{animation:none}
.invite-page .button{transition:none}
}
.invite-page .note{margin-top:12px;font-size:15px;line-height:1.4;font-weight:600;color:var(--tk-muted);text-align:center;text-wrap:balance}
.invite-page .done-mark{width:52px;height:52px;padding:11px;margin-bottom:14px;border-radius:50%;background:var(--gold);fill:none;stroke:#3a1070;stroke-width:2.6;stroke-linecap:round;stroke-linejoin:round;box-shadow:0 0 0 5px #fbe9b4}
.invite-page .done-line{margin-top:10px;font-size:18px;line-height:1.45;color:var(--tk-ink)}
.invite-page .listed{display:flex;gap:12px;align-items:center;margin-top:18px;padding:14px;border-radius:12px;background:var(--tk-wash);font-size:17px;font-weight:800;color:#4a148c}
.invite-page .listed svg{flex:none;width:34px;height:34px;padding:7px;border-radius:50%;background:var(--gold);fill:none;stroke:#3a1070;stroke-width:2.8;stroke-linecap:round;stroke-linejoin:round}
.invite-page .door-links{display:flex;flex-wrap:wrap;justify-content:center;align-items:center;gap:0 6px;margin-top:22px;font-size:16px;color:var(--gold-ink);text-align:center}
.invite-page .door-links a{display:inline-flex;align-items:center;min-height:44px;color:#35106a}
.invite-page .curtain{position:relative;flex:none;height:180px;margin-top:auto;padding-top:4px}
.invite-page .curtain::before{content:"";position:absolute;left:50%;bottom:-30px;width:330px;height:330px;margin-left:-165px;border-radius:50%;background:radial-gradient(circle,rgba(255,249,238,.9) 0,rgba(255,249,238,.55) 55%,rgba(255,249,238,0) 70%)}
.invite-page .roadbed{position:absolute;left:0;right:0;bottom:0;height:54px;background:var(--road);box-shadow:inset 0 7px 0 #b7b0a1,inset 0 9px 0 rgba(0,0,0,.18)}
.invite-page .roadbed i{position:absolute;left:0;right:0;top:34px;height:3px;background:repeating-linear-gradient(90deg,#b29fcd 0 26px,transparent 26px 50px)}
.invite-page .truck-park{position:absolute;left:50%;bottom:33px;width:270px;margin-left:-145px}
.invite-page .truck-art{width:100%;height:auto;overflow:visible}
.invite-page .truck-art text{font-family:var(--body)}
.invite-page footer{background:var(--road);color:var(--on-road)}
.invite-page .foot{display:flex;flex-wrap:wrap;justify-content:center;gap:0 26px;padding-block:6px 18px;font-size:15.5px}
.invite-page .foot a{display:inline-flex;align-items:center;min-height:44px;min-width:44px;justify-content:center;color:var(--on-road);font-weight:600}
@media (min-width:700px){.invite-page .soft{padding-top:64px}
.invite-page .door-card{padding:32px 30px 28px}
.invite-page .door-card h1{font-size:40px}
.invite-page .curtain{height:210px}
.invite-page .truck-park{width:300px;margin-left:-160px}
}

.invite-page .soft{min-height:0}
.invite-page .brand{color:var(--brand-ink)}
.invite-page .signin{color:var(--brand-ink)}
.invite-page .button{cursor:pointer;font-family:var(--body)}
.invite-page .door-links button{display:inline-flex;align-items:center;min-height:44px;padding:0;background:none;border:0;color:#35106a;font-weight:800;text-decoration:underline;text-underline-offset:4px;cursor:pointer}
.invite-page .field-note{display:flex;gap:7px;margin-top:9px;font-size:15px;font-weight:700;line-height:1.35;color:var(--tk-err)}
.invite-page .field-note[hidden]{display:none}
.invite-page [data-validation-field]:has([aria-invalid="true"]) .field{border:2px solid var(--tk-err);background:#fff8f7}
.invite-page [data-validation-field]:has([aria-invalid="true"]) .field:focus-within{outline-color:var(--tk-err)}
.invite-page .foot{padding-bottom:max(18px,env(safe-area-inset-bottom))}

.invite-page.access-page,.invite-page.founding-sheet{max-width:none;margin:0;gap:0;align-content:normal}
.invite-page .form label{display:block}

.invite-page .access-done{padding:0;border-radius:0;background:none;color:var(--tk-ink);text-align:left;font-size:inherit}
.invite-page .done-line b{font-weight:400}
.invite-page .listed.access-done{padding:14px;border-radius:12px;background:var(--tk-wash);font-size:17px;color:#4a148c}
.invite-page{min-height:100dvh}
.invite-page .done-line{font:400 18px/1.45 var(--body);text-align:left;text-wrap:wrap}
