@font-face{font-family:"SM Bodoni";src:url(/fonts/bodoni-500.woff2) format("woff2");font-weight:500;font-display:swap}
:root{--bg:#F5F1EA;--surface:#FFFFFF;--line:#E2DBCF;--fg:#1B2333;--muted:#6B6F78;--navy:#1F2E4D;--gold:#B9A47A;
  --display:"SM Bodoni","Bodoni Moda",Didot,Georgia,serif;--body:-apple-system,BlinkMacSystemFont,"Helvetica Neue",Arial,sans-serif;
  --top:env(safe-area-inset-top,0px);--bottom:env(safe-area-inset-bottom,0px);color-scheme:light}
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;-webkit-tap-highlight-color:transparent}
body{margin:0;background:var(--bg);color:var(--fg);font:16px/1.5 var(--body);min-height:100vh;min-height:100dvh}
a{color:inherit}
button{font:inherit;color:inherit}
:focus-visible{outline:2px solid var(--gold);outline-offset:2px}
[hidden]{display:none!important}

/* ---------- home ---------- */
.home{max-width:720px;margin:0 auto;padding:calc(var(--top) + 28px) 16px calc(var(--bottom) + 32px)}
.home-head{text-align:center;margin-bottom:26px}
.home-head img{width:min(300px,78%);height:auto;display:block;margin:0 auto 18px}
.home-head h1{font:500 clamp(26px,6.4vw,34px)/1.15 var(--display);margin:0 0 6px;letter-spacing:.01em;text-wrap:balance}
.home-head p{margin:0;color:var(--muted);font-size:15px}
.mugs{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.mug-card{display:flex;flex-direction:column;height:100%;background:var(--surface);border:1px solid var(--line);border-radius:16px;overflow:hidden;text-decoration:none;transition:border-color .15s,transform .15s}
.mug-card:hover{border-color:var(--gold)}
.mug-card:active{transform:scale(.985)}
.mug-card img{display:block;width:100%;height:auto;aspect-ratio:640/460;background:#FBF8F3;border-bottom:1px solid var(--line)}
.mug-card div{padding:12px 14px 14px}
.mug-card h2{font:500 19px/1.2 var(--display);margin:0 0 3px;letter-spacing:.02em}
.mug-card p{margin:0;font-size:13px;line-height:1.4;color:var(--muted)}
@media (max-width:380px){.mugs{grid-template-columns:minmax(0,1fr)}}
.install{margin-top:22px;background:var(--navy);color:#fff;border-radius:16px;padding:16px 18px;display:flex;gap:14px;align-items:center}
.install img{width:48px;height:48px;border-radius:11px;flex:none}
.install div{flex:1;min-width:0}
.install strong{display:block;font-weight:600}
.install p{margin:2px 0 0;font-size:13px;line-height:1.4;color:#D9DCE3}
.install button{flex:none;border:0;border-radius:999px;background:#fff;color:var(--navy);font-weight:600;padding:9px 18px;cursor:pointer}
.home-foot{margin-top:26px;text-align:center;font-size:14px;color:var(--muted)}
.home-foot a{color:var(--navy);font-weight:600;text-underline-offset:3px}

/* ---------- design pages ---------- */
.bar{position:sticky;top:0;z-index:20;background:rgba(245,241,234,.94);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);border-bottom:1px solid var(--line);
  padding:calc(var(--top) + 8px) 8px 8px;display:grid;grid-template-columns:44px 1fr 44px;align-items:center}
.bar h1{margin:0;text-align:center;font:500 20px/1.2 var(--display);letter-spacing:.02em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.icon-btn{width:44px;height:44px;display:grid;place-items:center;border:0;background:none;border-radius:50%;cursor:pointer;color:var(--navy);text-decoration:none}
.icon-btn:hover{background:rgba(31,46,77,.07)}
.icon-btn svg{width:22px;height:22px}
.design{max-width:1120px;margin:0 auto;padding:4px 16px calc(var(--bottom) + 110px)}
.design .bb-scope header{display:none}           /* the bar above already names the mug */
.design #besties-builder .wrap{padding-top:10px}
.reset{display:block;margin:6px auto 0;border:0;background:none;color:var(--muted);font-size:14px;text-decoration:underline;text-underline-offset:3px;cursor:pointer;padding:10px}
.order{position:fixed;left:0;right:0;bottom:0;z-index:20;background:rgba(255,255,255,.96);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);
  border-top:1px solid var(--line);padding:12px 16px calc(var(--bottom) + 12px)}
.order-in{max-width:720px;margin:0 auto;display:flex;gap:10px;align-items:center}
.order-btn{flex:1;min-height:50px;border:0;border-radius:999px;background:var(--navy);color:#fff;font-weight:600;font-size:16px;cursor:pointer;display:flex;align-items:center;justify-content:center;gap:8px}
.order-btn:active{opacity:.9}
.order-btn svg{width:18px;height:18px}
.share-btn{width:50px;height:50px;flex:none;border:1px solid var(--line);border-radius:50%;background:#fff;display:grid;place-items:center;cursor:pointer;color:var(--navy)}
.share-btn svg{width:21px;height:21px}
.order small{display:block;max-width:720px;margin:7px auto 0;text-align:center;font-size:12px;color:var(--muted)}
.toast{position:fixed;left:50%;bottom:calc(var(--bottom) + 120px);transform:translateX(-50%);z-index:30;background:var(--fg);color:#fff;font-size:14px;padding:9px 16px;border-radius:999px;max-width:calc(100% - 32px);text-align:center}
@media (prefers-reduced-motion:reduce){*{transition:none!important}}
