/* Shared visual foundation for every public cup.pm page. Page-specific
   stylesheets load after this file and own their individual layouts. */
:root{
  color-scheme:light;
  --bg:#fdf6ee;
  --bg2:#fffaf4;
  --ink:#241f1a;
  --ink-soft:#6f6257;
  --soft:var(--ink-soft);
  --line:#e9dccb;
  --x:#c2410c;
  --y:#2f7d5d;
  --accent:#f2b705;
  --card:#fff;
}

*{box-sizing:border-box}
body{margin:0;background:var(--bg);color:var(--ink);-webkit-font-smoothing:antialiased}

.page-glow::before{
  content:"";position:fixed;inset:0;z-index:-1;pointer-events:none;
  background:
    radial-gradient(520px 520px at 6% -4%,rgba(255,201,150,.50),rgba(255,201,150,0) 70%),
    radial-gradient(560px 560px at 96% 104%,rgba(160,222,192,.50),rgba(160,222,192,0) 70%);
}

.logo{display:inline-flex;align-items:center;text-decoration:none}
.logo picture,.logo img{display:block;width:62px;height:auto}
.site-header{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:26px 0 0}
.site-tag{display:inline-block;background:var(--card);border:1px solid var(--line);border-radius:999px;padding:5px 12px;font-size:13px;color:var(--ink-soft)}
.site-footer{margin:56px 0 38px;padding-top:20px;border-top:1px solid var(--line);display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;font-size:14px;color:var(--ink-soft)}
.site-footer a{color:var(--ink-soft);text-underline-offset:2px}
.site-footer a:hover{color:var(--x)}

.theme-toggle{
  position:fixed;top:calc(16px + env(safe-area-inset-top));right:calc(16px + env(safe-area-inset-right));z-index:10;
  margin:0;appearance:none;border:1px solid var(--line);border-radius:999px;background:var(--card);color:var(--ink);
  padding:7px 19px 9px 11px;font:600 13px/1 inherit;cursor:pointer;box-shadow:0 2px 0 rgba(36,31,26,.08);
}
.theme-toggle .theme-suffix{display:block;position:absolute;right:6px;bottom:4px;font-size:.55em;line-height:1}
.theme-toggle:hover{border-color:var(--x)}

:root[data-theme="dark"]{
  color-scheme:dark;
  --bg:#181411;
  --bg2:#211b17;
  --ink:#fffaf4;
  --ink-soft:#d7ccc2;
  --soft:var(--ink-soft);
  --line:#443830;
  --x:#fb923c;
  --y:#6bbd97;
  --accent:#f6c842;
  --card:#241f1a;
}
html[data-theme="dark"] .page-glow::before{
  background:
    radial-gradient(520px 520px at 6% -4%,rgba(154,52,18,.34),transparent 70%),
    radial-gradient(560px 560px at 96% 104%,rgba(47,125,93,.28),transparent 70%);
}

/* The About and Privacy pages share a readable, narrow document shell. */
.page-document .wrap{max-width:660px;margin:0 auto;padding:0 22px}
.page-document .site-header{
  width:min(940px,calc(100vw - 44px));
  margin-left:calc((min(660px,calc(100vw - 44px)) - min(940px,calc(100vw - 44px))) / 2);
  padding-right:96px;
}
.page-document a{color:var(--x)}
.page-document .card{
  background:var(--card);border:1px solid var(--line);border-radius:18px;padding:22px 24px;margin:26px 0;
  box-shadow:0 3px 0 rgba(36,31,26,.05);
}
.page-document .card h3{margin:0 0 8px;font-size:18px;letter-spacing:-.01em}
.page-document .card p{margin:0}

/* Primary calls to action deliberately match between the document and 404
   pages, even though their surrounding layouts differ. */
.page-document .cta,.page-error .cta{
  display:inline-block;margin-top:10px;padding:12px 22px;border-radius:12px;background:var(--ink);color:#fff;
  text-decoration:none;font-weight:700;box-shadow:0 3px 0 rgba(36,31,26,.28);transition:transform .1s,background .15s,box-shadow .1s;
}
.page-document .cta:hover,.page-error .cta:hover{background:var(--x)}
.page-document .cta:active,.page-error .cta:active{transform:translateY(3px);box-shadow:none}
html[data-theme="dark"] .page-document .cta,html[data-theme="dark"] .page-error .cta{background:linear-gradient(180deg,#ffd768,var(--accent));color:#241f1a;box-shadow:0 3px 0 rgba(0,0,0,.35)}
html[data-theme="dark"] .page-document .cta:hover,html[data-theme="dark"] .page-error .cta:hover{background:linear-gradient(180deg,#ffb36e,var(--x));color:#181411}

@media (max-width:640px){
  .page-document .site-header{width:auto;margin-left:0;padding:calc(10px + env(safe-area-inset-top)) 0 0;justify-content:flex-start;gap:4px;flex-wrap:nowrap}
  .page-document .logo{order:1;margin-left:-6px}
  .page-document .logo picture,.page-document .logo img{width:68px}
  .page-document .site-tag{order:2;margin:0;padding:4px 8px;font-size:11px;white-space:nowrap}
  .page-document .theme-toggle{top:calc(8px + env(safe-area-inset-top));right:calc(12px + env(safe-area-inset-right));width:40px;height:40px;padding:6px 6px 0 0;border:0;border-radius:0;display:flex;align-items:flex-start;justify-content:flex-end;font-size:12px;line-height:1;clip-path:polygon(0 0,100% 0,100% 100%);background:linear-gradient(135deg,rgba(255,255,255,.86),rgba(255,255,255,.58));-webkit-backdrop-filter:blur(16px) saturate(150%);backdrop-filter:blur(16px) saturate(150%);box-shadow:none;filter:drop-shadow(-2px 3px 5px rgba(36,31,26,.18))}
  .page-document .theme-toggle .theme-label{display:none}
  .page-document .theme-toggle .theme-suffix{right:7px;top:17px;bottom:auto;margin:0;transform:none;font-size:.4em}
  html[data-theme="dark"] .page-document .theme-toggle{background:linear-gradient(135deg,rgba(58,49,42,.88),rgba(36,31,26,.62));box-shadow:none;filter:drop-shadow(-2px 3px 5px rgba(0,0,0,.36))}
}

@media (min-width:641px) and (max-width:760px){
  .page-document .theme-toggle{top:calc(8px + env(safe-area-inset-top));right:calc(12px + env(safe-area-inset-right));padding:6px 9px}
}

/* index page */
html{scroll-behavior:smooth}
  body.page-home{
    font:17px/1.65 ui-sans-serif,system-ui,-apple-system,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
    overflow-x:hidden;
  }
body.page-home .wrap{max-width:940px;margin:0 auto;padding:0 22px}
@supports (content-visibility:auto){
    body.page-home .panel{content-visibility:auto;contain-intrinsic-size:auto 340px}
    body.page-home .panel.name-story{contain-intrinsic-size:auto 410px}
    body.page-home footer{content-visibility:auto;contain-intrinsic-size:auto 80px}
  }
  html[data-theme="dark"] body.page-home h1 .hl{background:linear-gradient(transparent 62%,#5c4c20 62%)} html[data-theme="dark"] body.page-home .pill,html[data-theme="dark"] body.page-home .signup input{box-shadow:0 3px 0 rgba(0,0,0,.28)}
body.page-home 
  .hero{padding:64px 0 10px;text-align:center}
body.page-home h1{
    font-size:clamp(34px,6vw,58px);
    line-height:1.08;letter-spacing:-.03em;
    margin:0 0 22px;font-weight:800;
  }
body.page-home h1 .hl{
    background:linear-gradient(transparent 62%,#f3dfa4 62%);
    padding:0 .06em;
  }
body.page-home .lede{
    font-size:clamp(17px,2.3vw,20px);
    color:var(--ink-soft);max-width:640px;margin:0 auto 14px;
  }
body.page-home .lede strong{color:var(--ink)}
body.page-home 
  .shake{
    display:flex;align-items:center;justify-content:center;gap:14px;
    margin:38px 0 30px;flex-wrap:wrap;
  }
body.page-home .pill{
    background:var(--card);border:1px solid var(--line);
    border-radius:16px;padding:14px 20px;
    box-shadow:0 3px 0 rgba(36,31,26,.06);
    text-align:left;min-width:190px;
  }
body.page-home .pill .who{font-size:12px;text-transform:uppercase;letter-spacing:.09em;color:var(--ink-soft)}
body.page-home .pill .say{font-weight:650;font-size:15px;margin-top:3px}
body.page-home .pill .amt{font-size:26px;font-weight:800;letter-spacing:-.02em;margin-top:4px}
body.page-home .pill.a{border-color:#bfdcc9}
body.page-home .pill.a .who{color:var(--y)}
body.page-home .pill.a .amt{color:var(--y)}
body.page-home .pill.b{border-color:#f0cdb4}
body.page-home .pill.b .who{color:var(--x)}
body.page-home .pill.b .amt{color:var(--x)}
body.page-home .plus{
    font-size:26px;font-weight:800;color:var(--ink-soft);
    animation:vs-pulse 1.8s ease-in-out infinite;
  }
  @keyframes vs-pulse{
    0%,100%{transform:scale(1);opacity:.72}
    50%{transform:scale(1.25);opacity:1;color:var(--ink)}
  }
body.page-home 
  .signup{
    display:flex;gap:10px;justify-content:center;flex-wrap:wrap;
    margin:6px 0 12px;
  }
body.page-home .signup input{
    font:inherit;font-size:16px;
    padding:13px 16px;width:min(330px,100%);
    border:1px solid var(--line);border-radius:12px;
    background:var(--card);color:var(--ink);outline:none;
    transition:border-color .15s,box-shadow .15s;
  }
body.page-home .signup input:focus{border-color:var(--x);box-shadow:0 0 0 3px rgba(194,65,12,.16)}
body.page-home .signup button{
    font:inherit;font-weight:700;font-size:16px;
    padding:13px 24px;border:none;border-radius:12px;
    background:var(--ink);color:#fff;cursor:pointer;
    box-shadow:0 3px 0 rgba(36,31,26,.28);
    transition:transform .1s,box-shadow .1s,background .15s;
  }
body.page-home .signup button:hover{background:var(--x)}
body.page-home .signup button:active{transform:translateY(3px);box-shadow:0 0 0 rgba(0,0,0,0)}
body.page-home .signup button[disabled]{opacity:.6;cursor:default}
body.page-home 
  .signup button.busy{position:relative;padding-left:46px;opacity:1}
body.page-home .signup button.busy::before{
    content:"";position:absolute;left:20px;top:50%;
    width:15px;height:15px;margin-top:-8px;
    border:2px solid rgba(255,255,255,.3);border-top-color:#fff;
    border-radius:50%;animation:spin .7s linear infinite;
  }
  @keyframes spin{to{transform:rotate(360deg)}}
body.page-home 
  .waitbar{
    height:3px;width:min(340px,100%);margin:0 auto 10px;
    border-radius:999px;background:var(--line);overflow:hidden;
    opacity:0;transition:opacity .25s;
  }
body.page-home .waitbar.on{opacity:1}
body.page-home .waitbar i{
    display:block;height:100%;width:40%;border-radius:999px;
    background:var(--x);animation:slide 1.3s ease-in-out infinite;
  }
  @keyframes slide{
    0%{transform:translateX(-110%)}
    100%{transform:translateX(360%)}
  }
body.page-home .hp{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}
body.page-home .note{font-size:13.5px;color:var(--ink-soft);text-align:center;margin:0 0 8px}
body.page-home .ok{
    text-align:center;font-weight:650;color:var(--y);
    min-height:24px;font-size:15px;margin:2px 0 0;
  }
body.page-home 
  .dose{
    position:fixed;right:20px;bottom:20px;z-index:50;
    width:min(370px,calc(100vw - 40px));
  }
body.page-home 
  .dose-panel{
    position:relative;
    
    background:
      radial-gradient(120% 120% at 100% 0%, rgba(255,201,150,.38), rgba(255,201,150,0) 62%),
      linear-gradient(180deg, #ffffff, var(--card));
    border:1px solid var(--line);
    border-radius:16px;padding:12px 12px 12px 14px;
    box-shadow:0 1px 2px rgba(36,31,26,.06),0 12px 34px rgba(36,31,26,.16);
  }
body.page-home 
  .dose-panel::before{
    content:"";position:absolute;left:14px;right:14px;top:0;height:1px;
    background:linear-gradient(90deg,transparent,rgba(194,65,12,.45),transparent);
    pointer-events:none;
  }
body.page-home .dose-head{
    display:flex;align-items:center;justify-content:space-between;
    gap:10px;margin:0 0 10px;
  }
body.page-home .dose-title{
    font-weight:700;font-size:14px;letter-spacing:-.01em;color:var(--ink);
    display:inline-flex;align-items:center;
  }
body.page-home 
  .dose-live{
    width:7px;height:7px;border-radius:50%;background:var(--y);
    margin-right:8px;flex:0 0 auto;
    animation:livepulse 2.6s ease-out infinite;
  }
  @keyframes livepulse{
    0%  {box-shadow:0 0 0 0 rgba(47,125,93,.55)}
    70% {box-shadow:0 0 0 8px rgba(47,125,93,0)}
    100%{box-shadow:0 0 0 0 rgba(47,125,93,0)}
  }
body.page-home .dose-bar{
    display:flex;align-items:center;gap:6px;margin:0;
    background:var(--bg2);border:1px solid var(--line);
    border-radius:999px;padding:4px 4px 4px 6px;
  }
body.page-home .dose-bar:focus-within{border-color:var(--x);box-shadow:0 0 0 3px rgba(194,65,12,.14)}
body.page-home .dose-bar input{
    flex:1 1 auto;min-width:0;   
    font:inherit;font-size:15px;padding:11px 10px;
    border:none;background:none;color:var(--ink);outline:none;
  }
body.page-home .dose-bar button{
    flex:0 0 auto;white-space:nowrap;
    font:inherit;font-weight:700;font-size:15px;
    padding:11px 18px;border:none;border-radius:999px;
    color:#fff;cursor:pointer;
    
    background:linear-gradient(180deg,#3b332c,var(--ink));
    box-shadow:0 1px 2px rgba(36,31,26,.30);
    transition:background .18s,transform .1s,box-shadow .18s;
  }
body.page-home .dose-bar button:hover{
    background:linear-gradient(180deg,#d4541a,var(--x));
    box-shadow:0 2px 10px rgba(194,65,12,.35);
  }
body.page-home .dose-bar button:active{transform:translateY(2px)}
body.page-home .dose-bar button[disabled]{opacity:.65;cursor:default}
body.page-home .dose-cup{font-size:16px;line-height:1}
body.page-home 
  .dose-x{
    flex:0 0 auto;width:26px;height:26px;padding:0;
    display:inline-flex;align-items:center;justify-content:center;
    border:none;border-radius:50%;background:transparent;
    color:var(--ink-soft);cursor:pointer;
    transition:background .15s,color .15s;
  }
body.page-home .dose-x svg{display:block;width:12px;height:12px}
body.page-home .dose-x:hover{background:rgba(36,31,26,.07);color:var(--ink)}
body.page-home .dose-x:focus-visible{outline:2px solid var(--x);outline-offset:1px}
body.page-home .dose.gone{display:none}
body.page-home 
  .dose{will-change:transform}
body.page-home 
  .dose.done .dose-bar{display:none}
body.page-home .dose.done .waitbar{display:none}
body.page-home .dose.done .dose-head{margin-bottom:0}
body.page-home .dose.done .ok{margin:6px 0 0}
body.page-home 
  .dose .ok{
    text-align:left;font-size:13.5px;margin:0 0 8px;min-height:0;
    color:var(--y);
  }
body.page-home .dose .ok:empty{display:none}
body.page-home .dose .waitbar{width:100%;margin:0 0 8px}
body.page-home 
  .dose-fine{
    margin:8px 2px 0;font-size:11.5px;line-height:1.45;color:var(--ink-soft);
  }
body.page-home .dose-fine a{color:var(--ink-soft);text-underline-offset:2px}
body.page-home .dose-fine a:hover{color:var(--x)}
body.page-home .dose.done .dose-fine{display:none}
html[data-theme="dark"] body.page-home  .dose-panel{
    background:
      radial-gradient(120% 120% at 100% 0%,rgba(154,52,18,.32),transparent 62%),
      linear-gradient(180deg,#2b231e,var(--card));
    box-shadow:0 1px 2px rgba(0,0,0,.32),0 12px 34px rgba(0,0,0,.42);
  }
  html[data-theme="dark"] body.page-home .dose-panel::before{
    background:linear-gradient(90deg,transparent,rgba(251,146,60,.62),transparent);
  }
  html[data-theme="dark"] body.page-home .dose-bar button{
    background:linear-gradient(180deg,#ffd768,var(--accent));
    color:#241f1a;
    box-shadow:0 1px 2px rgba(0,0,0,.38);
  }
  html[data-theme="dark"] body.page-home .dose-bar button:hover{
    background:linear-gradient(180deg,#ffb36e,var(--x));
    color:#181411;
    box-shadow:0 2px 10px rgba(251,146,60,.28);
  }
  html[data-theme="dark"] body.page-home .dose-x:hover{background:rgba(255,250,244,.09)}
body.page-home 
  .inline-open{
    font:inherit;font-size:inherit;color:var(--x);
    background:none;border:none;padding:0;cursor:pointer;
    text-decoration:underline;text-underline-offset:2px;
  }
@media (max-width:640px){
    
    body.page-home .theme-toggle{
      top:env(safe-area-inset-top);
      right:calc(10px + env(safe-area-inset-right));
      width:40px;height:40px;padding:6px 6px 0 0;border:0;border-radius:0;
      display:flex;align-items:flex-start;justify-content:flex-end;font-size:12px;line-height:1;
      clip-path:polygon(0 0,100% 0,100% 100%);
      background:linear-gradient(135deg,rgba(255,255,255,.86),rgba(255,255,255,.58));
      -webkit-backdrop-filter:blur(16px) saturate(150%);
      backdrop-filter:blur(16px) saturate(150%);
      box-shadow:none;filter:drop-shadow(-2px 3px 5px rgba(36,31,26,.18));
    }
    body.page-home .theme-toggle .theme-label{display:none}
    body.page-home .theme-toggle .theme-suffix{display:block;position:absolute;right:7px;top:17px;margin:0;transform:none;font-size:.4em}
    html[data-theme="dark"] body.page-home .theme-toggle{background:linear-gradient(135deg,rgba(58,49,42,.88),rgba(36,31,26,.62));box-shadow:none;filter:drop-shadow(-2px 3px 5px rgba(0,0,0,.36))}
    body.page-home .dose{
      left:0;right:0;bottom:0;width:auto;
      padding:10px 12px;
      
      padding-bottom:calc(20px + env(safe-area-inset-bottom,0px));
      background:rgba(253,246,238,.86);
      -webkit-backdrop-filter:blur(16px) saturate(150%);
      backdrop-filter:blur(16px) saturate(150%);
      border-top:1px solid var(--line);
      box-shadow:0 -10px 28px rgba(36,31,26,.10);
    }
    
    body.page-home .dose-panel{
      background:none;border:none;box-shadow:none;padding:0;
    }
    body.page-home .dose-head{margin-bottom:6px}
    body.page-home .dose-title{font-size:13px;color:var(--ink-soft)}
    body.page-home .dose-bar{
      background:var(--card);
      border-radius:14px;padding:5px 5px 5px 8px;
      box-shadow:0 2px 8px rgba(36,31,26,.10);
    }
    
    body.page-home .dose-bar input{font-size:16px;padding:11px 6px}
    body.page-home .dose-bar button{border-radius:11px;padding:11px 14px;font-size:15px}
    body.page-home .dose .ok{margin-bottom:6px;font-size:13px}
    body.page-home .dose .waitbar{margin-bottom:6px}
    html[data-theme="dark"] body.page-home .dose{background:rgba(24,20,17,.88);box-shadow:0 -10px 28px rgba(0,0,0,.32)}
  }

/* On an iPhone in landscape the viewport is wide enough to miss the mobile
   breakpoint, while the keyboard makes it very short. Keep the existing
   bottom/VisualViewport placement and its bottom-right position, while
   keeping the card inside the right-hand safe area. */
@media (max-height:500px) and (orientation:landscape) and (hover:none) and (pointer:coarse){
  /* Keep the compact header balanced in iPhone landscape: the tag occupies
     the real centre while the theme control stays on the far safe edge. */
  body.page-home .site-header,
  body.page-about .site-header{
    display:grid;
    grid-template-columns:1fr auto 1fr;
  }
  body.page-home .site-header .logo,
  body.page-about .site-header .logo{grid-column:1;justify-self:start}
  body.page-home .site-header .site-tag,
  body.page-about .site-header .site-tag{grid-column:2;justify-self:center}
  body.page-home .dose{
    left:auto;
    right:env(safe-area-inset-right,0px);
    bottom:env(safe-area-inset-bottom,0px);
    width:min(370px,calc(100vw - env(safe-area-inset-right,0px)));
    margin:0;
  }
}
body.page-home{padding-bottom:104px}
  @media (min-width:641px){ body.page-home{padding-bottom:120px} }
body.page-home 
  .kicker{
    text-align:center;margin:78px 0 26px;
    font-weight:700;font-size:14px;letter-spacing:.1em;
    text-transform:uppercase;color:var(--ink-soft);
  }
body.page-home .grid{display:grid;gap:16px;grid-template-columns:repeat(3,1fr)}
body.page-home .card{
    background:var(--card);border:1px solid var(--line);
    border-radius:18px;padding:24px 22px;
    box-shadow:0 3px 0 rgba(36,31,26,.05);
    transition:transform .16s ease,box-shadow .16s ease;
  }
body.page-home .card:hover{transform:translateY(-4px);box-shadow:0 9px 0 rgba(36,31,26,.05)}
body.page-home .card .ico{font-size:30px;line-height:1;display:block;margin-bottom:12px}
body.page-home .card h3{margin:0 0 8px;font-size:18px;letter-spacing:-.01em}
body.page-home .card p{margin:0;color:var(--ink-soft);font-size:15.5px;line-height:1.6}
body.page-home .card .daily-cta{margin-top:10px}
body.page-home .card .when{
    display:inline-block;margin-top:12px;font-size:12px;font-weight:700;
    letter-spacing:.06em;text-transform:uppercase;
    border-radius:999px;padding:3px 10px;
  }
body.page-home .when.now{background:#e6f2ea;color:var(--y)}
body.page-home .when.next{background:#fdeee3;color:var(--x)}
body.page-home 
  .steps{
    display:grid;gap:14px;grid-template-columns:repeat(3,1fr);
    counter-reset:s;
  }
body.page-home .step{
    background:var(--bg2);border:1px dashed var(--line);
    border-radius:16px;padding:22px;position:relative;
  }
body.page-home .step::before{
    counter-increment:s;content:counter(s);
    position:absolute;top:-13px;left:20px;
    width:28px;height:28px;border-radius:50%;
    background:var(--accent);color:var(--ink);
    font-weight:800;font-size:14px;
    display:grid;place-items:center;
    border:1px solid rgba(36,31,26,.12);
  }
body.page-home .step h4{margin:6px 0 6px;font-size:16.5px}
body.page-home .step p{margin:0;color:var(--ink-soft);font-size:15px}
body.page-home 
  .panel{
    margin-top:26px;background:var(--card);
    border:1px solid var(--line);border-radius:20px;
    padding:30px 26px;text-align:center;
  }
body.page-home .panel h2{margin:0 0 12px;font-size:clamp(21px,3.4vw,27px);letter-spacing:-.02em}
body.page-home .panel p{margin:0 auto 14px;max-width:640px;color:var(--ink-soft);font-size:16px}
body.page-home .panel p:last-child{margin-bottom:0}
body.page-home .panel strong{color:var(--ink)}
body.page-home .panel .chrom{font-weight:800;letter-spacing:.02em;color:var(--x)}
body.page-home .panel.privacy{background:var(--bg2);border-style:dashed}
body.page-home 
  .panel.name-story{
    position:relative;overflow:hidden;text-align:left;
    padding:36px 34px 32px;border-color:#edcda5;
    background:
      radial-gradient(460px 230px at 100% 0%,rgba(242,183,5,.22),transparent 72%),
      radial-gradient(350px 250px at 0% 100%,rgba(194,65,12,.11),transparent 76%),
      var(--card);
    box-shadow:0 8px 0 rgba(194,65,12,.07);
  }
body.page-home .panel.name-story::before{
    content:"";position:absolute;width:220px;height:220px;right:-82px;top:-108px;
    border:1px solid rgba(194,65,12,.18);border-radius:50%;
    box-shadow:0 0 0 28px rgba(242,183,5,.06),0 0 0 57px rgba(194,65,12,.035);
    pointer-events:none;
  }
body.page-home .name-story > *{position:relative;z-index:1}
body.page-home .panel .name-eyebrow{
    margin:0 0 6px;color:var(--x);font-size:12px;font-weight:800;
    letter-spacing:.11em;text-transform:uppercase;
  }
body.page-home .panel.name-story h2{
    display:flex;align-items:baseline;margin:0;
    font-size:clamp(42px,7vw,64px);line-height:.95;letter-spacing:-.07em;
  }
body.page-home .name-lockup .cup-word{color:var(--x)}
body.page-home .name-lockup .name-dot{color:var(--accent);margin:0 .01em}
body.page-home .panel .name-tagline{
    max-width:none;margin:12px 0 0;color:var(--ink);
    font-size:clamp(19px,2.6vw,24px);font-weight:750;letter-spacing:-.025em;
  }
body.page-home .name-meanings{
    display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px;
    margin-top:26px;
  }
body.page-home .name-meaning{
    min-width:0;padding:19px 20px 18px;border:1px solid var(--line);
    border-radius:16px;background:rgba(255,250,244,.76);
  }
body.page-home .name-meaning .word-label{
    display:inline-flex;align-items:center;gap:8px;margin:0 0 8px;
    color:var(--ink);font-size:17px;font-weight:850;letter-spacing:-.02em;
  }
body.page-home .word-label .word-icon{
    display:grid;place-items:center;width:27px;height:27px;border-radius:9px;
    background:#fff0e5;color:var(--x);font-size:15px;line-height:1;
  }
body.page-home .name-meaning p{max-width:none;margin:0;color:var(--ink-soft);font-size:15.5px;line-height:1.6}
body.page-home .name-meaning p strong{color:var(--ink)}
  html[data-theme="dark"] body.page-home .panel.name-story{
    border-color:#78441f;
    background:
      radial-gradient(460px 230px at 100% 0%,rgba(242,183,5,.16),transparent 72%),
      radial-gradient(350px 250px at 0% 100%,rgba(194,65,12,.19),transparent 76%),
      var(--card);
    box-shadow:0 8px 0 rgba(0,0,0,.2);
  }
  html[data-theme="dark"] body.page-home .panel.name-story::before{
    border-color:rgba(251,146,60,.25);
    box-shadow:0 0 0 28px rgba(246,200,66,.07),0 0 0 57px rgba(251,146,60,.05);
  }
  html[data-theme="dark"] body.page-home .name-meaning{background:rgba(36,31,26,.76)}
  html[data-theme="dark"] body.page-home .word-label .word-icon{background:#472617;color:#ffb36e}
body.page-home 
  .panel.illegal{
    position:relative;overflow:hidden;text-align:left;
    background:linear-gradient(135deg,#fff7dc 0%,var(--card) 68%);
    border:2px solid var(--accent);box-shadow:0 7px 0 rgba(194,65,12,.10);
    padding:32px 30px;
  }
body.page-home .panel.illegal::before{
    content:"";position:absolute;inset:0 auto 0 0;width:7px;background:var(--x);
  }
body.page-home .illegal-label{
    display:inline-flex;align-items:center;gap:7px;margin:0 0 10px;
    color:#8a3509;font-size:12px;font-weight:800;letter-spacing:.09em;text-transform:uppercase;
  }
body.page-home .panel.illegal h2{font-size:clamp(25px,4vw,33px);margin-bottom:13px}
body.page-home .panel.illegal p{margin-left:0;max-width:670px;font-size:17px}
body.page-home .source-links{
    display:flex;flex-wrap:wrap;gap:9px 18px;margin-top:20px;padding-top:17px;
    border-top:1px solid rgba(194,65,12,.22);font-size:14px;font-weight:650;
  }
body.page-home .source-links span{color:var(--ink-soft);font-weight:600}
body.page-home .source-links a{color:var(--x);text-underline-offset:3px}
body.page-home .source-links a:hover{color:var(--ink)}
  html[data-theme="dark"] body.page-home .panel.illegal{background:linear-gradient(135deg,#3b2c12 0%,var(--card) 68%);box-shadow:0 7px 0 rgba(0,0,0,.22)}
  html[data-theme="dark"] body.page-home .illegal-label{color:#f6c842}
body.page-home .never{
    list-style:none;padding:0;margin:18px auto 0;max-width:460px;
    text-align:left;font-size:15.5px;color:var(--ink-soft);
  }
body.page-home .never li{padding:7px 0 7px 28px;position:relative;border-top:1px solid var(--line)}
body.page-home .never li:first-child{border-top:none}
body.page-home .never li::before{
    content:"✕";position:absolute;left:4px;top:7px;
    color:var(--x);font-weight:800;font-size:13px;
  }
  @media (max-width:760px){
body.page-home .site-header{padding:calc(10px + env(safe-area-inset-top)) 0 0;align-items:center;justify-content:flex-start;gap:4px;flex-wrap:nowrap}
body.page-home .logo{margin-left:-6px}
body.page-home .logo picture,body.page-home .logo img{width:68px}
body.page-home .theme-toggle{top:calc(8px + env(safe-area-inset-top));right:calc(12px + env(safe-area-inset-right));padding:6px 9px}
body.page-home .site-tag{padding:4px 8px;font-size:11px;white-space:nowrap}
body.page-home .grid,body.page-home .steps{grid-template-columns:1fr}
body.page-home 
    .hero{padding:18px 0 4px}
body.page-home h1{margin-bottom:14px}
body.page-home .lede{margin-bottom:9px}
body.page-home .shake{
      display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);
      gap:7px;margin:20px 0 16px;align-items:stretch;
    }
body.page-home .pill{width:auto;min-width:0;padding:10px 9px;border-radius:13px}
body.page-home .pill .who{font-size:10px;letter-spacing:.06em}
body.page-home .pill .amt{font-size:22px;margin-top:1px}
body.page-home .pill .say{font-size:12px;line-height:1.35;margin-top:2px}
body.page-home .plus{align-self:center;font-size:18px}
body.page-home .note{line-height:1.45}
body.page-home .panel.name-story{padding:30px 22px 24px}
body.page-home .name-meanings{grid-template-columns:1fr;gap:10px;margin-top:20px}
body.page-home .name-meaning{padding:16px 17px}
  }
@media (max-height:500px) and (orientation:landscape) and (hover:none) and (pointer:coarse){
  body.page-home .theme-toggle,
  body.page-about .theme-toggle{
    top:calc(3px + env(safe-area-inset-top,0px));
    right:env(safe-area-inset-right,0px);
  }
}
@media (max-width:350px){
    body.page-home .site-header{padding-right:78px;flex-wrap:wrap;gap:4px 10px}
    body.page-home .site-tag{padding:4px 8px;font-size:11px}
  }

  @media (prefers-reduced-motion:reduce){body.page-home *{animation:none!important;transition:none!important}
body.page-home 
    .dose-live{animation:livepulse 2.6s ease-out infinite!important}
body.page-home 
    .signup button.busy{padding-left:24px}
body.page-home .signup button.busy::before{display:none}
body.page-home .waitbar i{width:100%}
  }

/* about page */
body.page-about{
    font:17px/1.7 ui-sans-serif,system-ui,-apple-system,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
    overflow-x:hidden;
  }
body.page-about h1{font-size:clamp(31px,6.4vw,48px);letter-spacing:-.03em;line-height:1.08;margin:10px 0 16px;font-weight:800}
body.page-about h1 .hl{background:linear-gradient(transparent 62%,#f3dfa4 62%);padding:0 .06em}
body.page-about h2{font-size:22px;letter-spacing:-.02em;margin:40px 0 10px}
body.page-about p{color:var(--ink-soft)}
body.page-about p strong{color:var(--ink)}
body.page-about a{color:var(--x)}
body.page-about .lede{font-size:19px}
body.page-about .lede strong{color:var(--ink)}
body.page-about 
  .log{list-style:none;padding:0;margin:18px 0}
body.page-about .log li{
    position:relative;padding:10px 0 10px 34px;
    border-bottom:1px dashed var(--line);color:var(--ink-soft);font-size:16px;
  }
body.page-about .log li:last-child{border-bottom:none}
body.page-about .log .tick{position:absolute;left:2px;top:9px;font-size:17px;line-height:1.4}
body.page-about .log b{color:var(--ink);font-weight:650}
body.page-about .pull{
    border-left:3px solid var(--accent);padding:2px 0 2px 16px;
    margin:24px 0;font-size:18px;color:var(--ink);
  }
body.page-about 
  .inbox{list-style:none;padding:0;margin:18px 0 8px}
body.page-about .inbox li{
    display:flex;gap:13px;align-items:flex-start;
    padding:13px 0;border-bottom:1px dashed var(--line);
  }
body.page-about .inbox li:last-child{border-bottom:none}
body.page-about .inbox .ico{font-size:19px;line-height:1.4;flex:0 0 auto}
body.page-about .inbox a.mail{font-weight:650;display:block}
body.page-about .inbox span:not(.ico){display:block;font-size:15px;color:var(--ink-soft);margin-top:2px}

  html[data-theme="dark"] body.page-about h1 .hl{background:linear-gradient(transparent 62%,#5c4c20 62%)} html[data-theme="dark"] body.page-about .card{box-shadow:0 3px 0 rgba(0,0,0,.28)}

/* privacy page */
body.page-privacy{
    color:var(--ink-soft);
    font:14px/1.65 ui-sans-serif,system-ui,-apple-system,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
  }
body.page-privacy h1{font-size:24px;letter-spacing:-.02em;margin:32px 0 4px;font-weight:800;color:var(--ink)}
body.page-privacy .updated{font-size:12.5px;margin:0 0 26px;color:var(--ink-soft)}
body.page-privacy h2{
    font-size:14px;letter-spacing:.02em;text-transform:uppercase;
    margin:26px 0 8px;color:var(--ink);font-weight:700;
  }
body.page-privacy p{margin:0 0 11px}
body.page-privacy ul{padding-left:19px;margin:0 0 11px}
body.page-privacy li{margin:5px 0}
body.page-privacy strong{color:var(--ink)}
body.page-privacy .summary{
    background:var(--card);border:1px solid var(--line);
    border-radius:14px;padding:16px 18px;margin:0 0 26px;font-size:13.5px;
  }
body.page-privacy .summary p{margin:0 0 8px}
body.page-privacy .summary p:last-child{margin:0}
  html[data-theme="dark"] body.page-privacy .summary{box-shadow:0 3px 0 rgba(0,0,0,.28)}

/* unsubscribe page */
body.page-unsubscribe{min-height:100vh;display:grid;place-items:center;padding:24px;font:17px/1.65 ui-sans-serif,system-ui,-apple-system,"Segoe UI",Roboto,Helvetica,Arial,sans-serif}
body.page-unsubscribe .card{width:min(100%,560px);padding:34px 30px;text-align:center;background:#fff;border:1px solid #e9dccb;border-radius:20px;box-shadow:0 3px 0 rgba(36,31,26,.05)}
body.page-unsubscribe .logo{display:inline-block;margin-bottom:18px;color:#241f1a;text-decoration:none;font-size:20px;font-weight:800;letter-spacing:-.02em}
body.page-unsubscribe .logo span{color:#c2410c}
body.page-unsubscribe h1{margin:0 0 14px;color:#2f7d5d;font-size:clamp(21px,4vw,27px);letter-spacing:-.02em}
body.page-unsubscribe .tone-warn{color:#c2410c}
body.page-unsubscribe p{margin:0 0 14px;color:#6f6257;font-size:15.5px}
body.page-unsubscribe p strong{color:#241f1a}
body.page-unsubscribe .btn{display:inline-block;margin-top:10px;padding:12px 22px;border:0;border-radius:12px;background:#241f1a;color:#fff;box-shadow:0 3px 0 rgba(36,31,26,.28);cursor:pointer;font:700 15.5px inherit}
body.page-unsubscribe .btn:active{transform:translateY(3px);box-shadow:none}
body.page-unsubscribe .btn[disabled]{opacity:.6;cursor:wait}
body.page-unsubscribe .quiet{display:inline-block;margin-top:12px;border:0;background:none;color:#8a7d71;cursor:pointer;font:14px inherit;text-decoration:underline}
body.page-unsubscribe .manage-form{margin:0}
body.page-unsubscribe .home{display:block;margin-top:22px;color:#8a7d71;font-size:14px;text-decoration:none}
body.page-unsubscribe .survey{margin-top:24px;text-align:left}
body.page-unsubscribe .survey fieldset{margin:0;padding:0;border:0}
body.page-unsubscribe .survey legend{margin-bottom:10px;color:#241f1a;font-size:15px;font-weight:700}
body.page-unsubscribe .survey label{display:block;margin:8px 0;color:#6f6257;font-size:14px;line-height:1.35}
body.page-unsubscribe .survey input[type=radio]{accent-color:#2f7d5d}
body.page-unsubscribe .other-label{margin-top:14px!important;color:#241f1a!important;font-weight:700}
body.page-unsubscribe .survey textarea,body.page-unsubscribe .email-input{width:100%;min-height:44px;padding:10px;resize:vertical;border:1px solid #d9cab8;border-radius:10px;background:#fff;color:#241f1a;font:14px inherit}
body.page-unsubscribe .survey textarea{min-height:78px}
body.page-unsubscribe .survey .quiet{display:block;margin-inline:auto}
body.page-unsubscribe .request-form{margin-top:20px;text-align:left}
body.page-unsubscribe .request-form label{display:block;margin-bottom:7px;color:#241f1a;font-size:14px;font-weight:700}
body.page-unsubscribe .request-form .btn{width:100%}
body.page-unsubscribe .notice{margin-top:15px;color:#2f7d5d;font-weight:700}
body.page-unsubscribe .support{margin-top:18px;font-size:14px}
body.page-unsubscribe .error{color:#c2410c;font-weight:700}
body.page-unsubscribe .progress{margin:18px 0 8px;color:#2f7d5d;font-size:14px;font-weight:700}
body.page-unsubscribe .waitbar{height:3px;width:100%;margin:0 auto 14px;border-radius:999px;background:#e9dccb;overflow:hidden;opacity:0;transition:opacity .25s}
body.page-unsubscribe .waitbar.on{opacity:1}
body.page-unsubscribe .waitbar i{display:block;height:100%;width:40%;border-radius:999px;background:#2f7d5d;animation:unsub-slide 1.3s ease-in-out infinite}
@keyframes unsub-slide{0%{transform:translateX(-110%)}100%{transform:translateX(280%)}}
@media (prefers-reduced-motion:reduce){body.page-unsubscribe .waitbar i{width:100%;animation:none}}
body.page-unsubscribe .hidden{display:none!important}

/* 404 page */
body.page-error{min-height:100vh;font:17px/1.6 ui-sans-serif,system-ui,-apple-system,"Segoe UI",Roboto,Helvetica,Arial,sans-serif}
body.page-error .wrap{width:min(760px,calc(100% - 44px));margin:0 auto}
body.page-error header{display:flex;align-items:center;justify-content:space-between;padding:26px 76px 0 0}
body.page-error main{min-height:calc(100vh - 104px);display:grid;place-items:center;padding:42px 0 64px}
body.page-error .error{text-align:center;max-width:620px}
body.page-error .error[hidden]{display:none!important}
body.page-error .code{display:inline-flex;align-items:center;justify-content:center;width:116px;height:116px;margin-bottom:20px;border:1px solid #f0cdb4;border-radius:50%;background:var(--card);color:var(--x);font-size:39px;font-weight:800;letter-spacing:-.06em;box-shadow:0 5px 0 rgba(194,65,12,.10);transform:rotate(-5deg)}
body.page-error h1{margin:0 0 14px;font-size:clamp(35px,7vw,58px);line-height:1.05;letter-spacing:-.04em}
body.page-error h1 span{background:linear-gradient(transparent 62%,#f3dfa4 62%);padding:0 .05em}
body.page-error .lede{margin:0 auto;color:var(--soft);font-size:clamp(17px,2.5vw,20px);max-width:560px}
body.page-error .lede strong{color:var(--ink)}
body.page-error .receipt{position:relative;max-width:470px;margin:34px auto 28px;padding:22px 24px 20px;text-align:left;background:var(--card);border:1px solid var(--line);border-radius:16px;box-shadow:0 4px 0 rgba(36,31,26,.06);transform:rotate(1.2deg)}
body.page-error .receipt::before{content:"";position:absolute;inset:7px;border:1px dashed var(--line);border-radius:10px;pointer-events:none}
body.page-error .receipt>*{position:relative}
body.page-error .receipt-top{display:flex;justify-content:space-between;gap:16px;padding-bottom:10px;border-bottom:1px dashed var(--line);font-size:12px;font-weight:700;letter-spacing:.1em;text-transform:uppercase;color:var(--soft)}
body.page-error .line{display:flex;justify-content:space-between;gap:16px;padding:12px 0 10px;color:var(--soft)}
body.page-error .line b{color:var(--x);white-space:nowrap}
body.page-error .total{padding-top:10px;border-top:1px dashed var(--line);font-weight:750}
body.page-error .total b{color:var(--ink)}
body.page-error .route-card,body.page-error .case-file{max-width:470px;margin:34px auto 28px;padding:21px 24px;text-align:left;background:var(--card);border:1px solid var(--line);border-radius:16px;box-shadow:0 4px 0 rgba(36,31,26,.06)}
body.page-error .code-trail{border-color:#bfdcc9;color:var(--y);transform:rotate(5deg)}
body.page-error .code-case{border-color:#f3dfa4;color:#a26b00;transform:rotate(-2deg)}
body.page-error .route-label,body.page-error .case-label{margin:0 0 10px;font-size:12px;font-weight:700;letter-spacing:.1em;text-transform:uppercase;color:var(--soft)}
body.page-error .breadcrumbs{display:flex;align-items:center;flex-wrap:wrap;gap:7px;padding:12px 0;border-top:1px dashed var(--line);border-bottom:1px dashed var(--line);font-size:15px;color:var(--soft)}
body.page-error .breadcrumbs b{color:var(--ink)}
body.page-error .breadcrumbs .lost{color:var(--x);font-weight:750}
body.page-error .crumb-arrow{color:var(--accent);font-weight:800}
body.page-error .route-foot{display:flex;justify-content:space-between;gap:14px;margin:13px 0 0;font-size:15px;color:var(--soft)}
body.page-error .route-foot b{color:var(--y)}
body.page-error .case-file{position:relative;border-color:#e4d2aa;transform:rotate(-.7deg)}
body.page-error .case-file::after{content:"OPEN";position:absolute;right:18px;top:13px;padding:2px 7px;border:2px solid var(--x);border-radius:4px;color:var(--x);font-size:11px;font-weight:800;letter-spacing:.08em;transform:rotate(7deg)}
body.page-error .case-row{display:flex;gap:12px;padding:10px 0;border-top:1px dashed var(--line);color:var(--soft);font-size:15px}
body.page-error .case-row:first-of-type{border-top:none}
body.page-error .case-row>span{width:23px;text-align:center;flex:0 0 auto}
body.page-error .case-row b{color:var(--ink)}
body.page-error .hint{margin:16px 0 0;color:var(--soft);font-size:14px}
  :root[data-theme="dark"] body.page-error h1 span{background:linear-gradient(transparent 62%,#5c4c20 62%)}
:root[data-theme="dark"] body.page-error .code{border-color:#75442d;box-shadow:0 5px 0 rgba(0,0,0,.28)}
:root[data-theme="dark"] body.page-error .receipt{box-shadow:0 4px 0 rgba(0,0,0,.28)}
  @media(max-width:640px){body.page-error .wrap{width:min(100% - 32px,760px)}
body.page-error header{padding:calc(10px + env(safe-area-inset-top)) 0 0}
body.page-error .logo img{width:68px}
body.page-error .theme-toggle{top:calc(8px + env(safe-area-inset-top));right:calc(12px + env(safe-area-inset-right));padding:6px 9px}
body.page-error .theme-label{display:none}
body.page-error .code{width:102px;height:102px;font-size:35px}
body.page-error .receipt{margin-top:28px;padding:20px}}
