/* COFFEE-TODAY v0.4 — handmade editorial / original illustrated notes.
   A calm utility app with human ink marks, imperfect rhythm and generous paper.
   This does not reproduce Sandbox Coffee packaging or visual assets. */
:root{
  --paper:#f9f7ef;--ink:#24231e;--muted:#6c6b63;--line:#d5d0c3;
  --soft:#eee9dc;--white:#fffdf8;--accent:#eadbd1;
  --coral:#d47366;--leaf:#d7dec5;--shadow:none;
  --hand: 'Comic Sans MS','Bradley Hand','Segoe Print',cursive;
}
body{background:var(--paper);color:var(--ink);font-family:Arial,'Helvetica Neue',sans-serif;font-size:14px}
.masthead{background:var(--paper);border-bottom:1px solid var(--ink)}
.mast-inner{min-height:72px}
.wordmark{font-family:Arial,sans-serif;font-weight:780;letter-spacing:-.087em;font-size:26px}
.wordmark-dash{color:var(--ink);position:relative}
.wordmark-dash:after{content:'';position:absolute;left:-1px;right:-1px;top:45%;height:1.8px;background:var(--coral);transform:rotate(-12deg)}
.wordmark .brand-flower,.brand-flower{font-family:Georgia,serif;font-size:23px;font-style:italic;font-weight:normal;color:var(--coral);margin-left:5px;display:inline-block;transform:rotate(-15deg)}
.masthead .header-action,.header-action{background:transparent;border:1px solid var(--ink);border-radius:2px 15px 3px 13px;padding:10px 16px;box-shadow:none;font-weight:650}
.header-action:hover{background:var(--leaf);color:var(--ink)}
.demo-note{background:#eeebe3;border:0;color:#767269;letter-spacing:.015em;padding:7px 0}
.demo-note strong{font-size:10px;font-weight:600;color:#746e65}
.location-tag{letter-spacing:.07em;font-size:10px;font-weight:500;color:#6a695f}
.location-tag .tiny-dot{background:#c87566}
.hero-board{background:transparent;border:0;border-bottom:1px solid var(--ink);box-shadow:none;min-height:385px;margin:24px 0 0;border-radius:0;overflow:visible;grid-template-columns:minmax(0,1.45fr) minmax(250px,.55fr)}
.hero-copy{padding:42px 0 42px 21px;z-index:3}
.hero-kicker{font-size:18px;color:#6d655b;letter-spacing:-.04em;transform:rotate(-1deg);margin-bottom:3px}
.kicker-dot{background:#dc7f71;border:1px solid var(--ink);width:9px;height:9px;transform:rotate(-13deg);border-radius:40% 60% 48% 60%}
.hero-title{font-family:Arial,sans-serif;max-width:850px;font-size:clamp(52px,5.7vw,86px);font-weight:600;letter-spacing:-.074em;line-height:1.06;margin:15px 0 14px}
.scribbled:after{border-radius:0;height:7px;border-bottom:3px solid #c97d6d;left:1%;bottom:-4px;width:91%;transform:rotate(-1deg)}
.scribbled:before{content:'';position:absolute;bottom:-8px;left:4%;width:77%;border-bottom:1px solid #c97d6d;transform:rotate(2deg)}
.hero-sub{font-size:14px;max-width:430px;line-height:1.62;color:#606059;margin-bottom:20px}
.hero-explore{background:#24231e;color:#f9f7ef;border:1px solid #24231e;border-radius:2px 12px 3px 9px;box-shadow:none;font-size:12px;padding:12px 17px}
.hero-explore:hover{background:#525146}
.hero-note{font-family:var(--hand);font-style:italic;color:#9b6259;font-size:16px;transform:rotate(-5deg);margin-left:20px}
.hero-art{position:relative;inset:auto;display:flex;align-items:center;justify-content:center;transform:none;width:auto;height:auto;padding:20px 0 0;opacity:1}
.hero-doodle{width:100%;max-width:335px;height:auto;filter:none;transform:rotate(3deg)}
.hero-sparkle{display:none}
.art-caption{position:absolute;right:8px;bottom:28px;color:#82635b;font-size:14px;transform:rotate(-10deg)}
.daily-strip{border-top:0;border-bottom:1px solid var(--line);padding:15px 6px 15px;margin-bottom:12px}
.daily-date,.daily-city{font-weight:500;letter-spacing:.08em;color:#555248}
.daily-note{font-family:var(--hand);font-style:italic;color:#a17766}
.browse-section{padding-top:32px}
.browse-intro .eyebrow,.eyebrow{font-weight:600;color:#888275;letter-spacing:.09em;font-size:10px}
.browse-intro .section-title,.section-title{font-size:34px;letter-spacing:-.055em;font-weight:590}
.title-star{color:#ae7c63;font-weight:400;font-size:24px;transform:rotate(11deg)}
.browse-toolbar{border:1px solid var(--ink);border-radius:2px 18px 3px 13px;box-shadow:none;background:#fffdf9;padding:19px 19px 5px}
.mobile-filter button,.mobile-filter select{border:1px solid #a9a398;background:transparent;box-shadow:none;border-radius:2px 12px 3px 10px;color:#38372f;font-weight:500}
.mobile-filter button.selected{background:#d9dfc5;border-color:#393b33;box-shadow:none}
.search-box input,.control-select,.price-select{background:#fffdfa;border:1px solid #c9c4b9;border-radius:2px 11px 3px 8px}
.search-icon{color:#716d62}
.results-topline{font-size:10px;letter-spacing:.035em}
.count-bubble{background:#e3e1d7;border:0;border-radius:1px 7px 2px 5px;color:#423e39}
.result-list{border-top:1px solid var(--ink)}
.coffee-result{border-bottom:1px solid #d3cfc4;transition:background .15s}
.coffee-result:hover{background:#f2f0e8}
.result-index{color:#c07b6b}
.place-name{font-weight:600;letter-spacing:-.045em}
.pill,.pill.active,.pill.stale,.pill.sold{border-radius:1px 8px 2px 6px;border-width:1px;box-shadow:none;text-transform:lowercase;letter-spacing:0}
.pill.active{background:#eef0e6}
.result-price{font-weight:590}
.button,.button.secondary,.button.ghost,.button.danger{border-radius:2px 13px 3px 11px;box-shadow:none;font-weight:650;letter-spacing:0}
.button{background:var(--ink);color:#fffdf6}
.button.secondary{background:#fffdfa}
.bottom-note{border:1px solid var(--ink);box-shadow:none;background:#ece9dc;border-radius:3px 22px 4px 18px;padding:38px}
.bottom-note h2,.bottom-note h2 em{font-weight:600}
.bottom-note h2 em{font-family:Georgia,serif;font-weight:400}
.foot{border-top:1px solid var(--ink)}
.studio-sidebar{background:#eeece3;border-right:1px solid #d4d0c4;border-bottom:0}
.studio-menu a{border-radius:3px 9px 2px 7px}
.studio-menu a.active{border:0;background:#d9dec9;border-radius:2px 10px 2px 8px}
.studio-title,.narrow-page .cafe-title{font-weight:610;letter-spacing:-.065em}
.studio-sun{font-family:Georgia,serif;font-weight:400;color:#b8746b;font-size:26px}
.statusdot{background:#a8b78c}
.admin-table{border-top:1px solid var(--ink)}
.admin-item{border-bottom:1px solid var(--line)}
.stat,.settings-card,.notice{border-radius:2px 13px 4px 10px;box-shadow:none}
.stat{border:1px solid #c9c5b9;background:#fffdf8}
.studio-section-head h2,.block-heading h2{font-weight:600}
.field input,.field select,.field textarea{border-radius:3px 10px 3px 8px}
.dialog{border:1px solid var(--ink);border-radius:3px 18px 4px 13px;box-shadow:0 24px 50px #1b1c1724}
.dialog-head h2{font-weight:600}
.empty{background:#eeece2;border:1px dashed #9a9487;border-radius:3px 18px 4px 14px}
.story-card{background:#f9f7ef;color:#24231e;border:1px solid #424037;box-shadow:none;border-radius:0;aspect-ratio:9/16;padding:28px 24px;position:relative;min-height:0}
.story-card.dark{background:#26251f;color:#f7f3e7}
.story-card:after{content:'';position:absolute;inset:10px 8px auto;pointer-events:none;height:4px;border-top:1px solid currentColor;transform:rotate(-.5deg);opacity:.25}
.story-head{padding-top:5px}
.story-mini{font-size:24px;font-weight:720;letter-spacing:-.08em;display:flex;justify-content:space-between;align-items:center}
.story-mini-star{font:italic 38px Georgia,serif;transform:rotate(-15deg);color:#bb7269}
.story-issue{font-size:8px;letter-spacing:.09em;line-height:1.5;color:#8d877a;margin-top:5px}
.story-card.dark .story-issue{color:#bab5aa}
.story-card h2{font-family:Arial,sans-serif;font-size:clamp(28px,3.6vw,40px);font-weight:640;line-height:1;letter-spacing:-.064em;margin:18px 0 3px}
.story-scribble{margin:5px 0 13px;width:75%;height:8px;border:0;border-bottom:2px solid #bd7f70;border-radius:50%;transform:rotate(-1deg)}
.story-marginalia{display:block;font-size:12px;color:#9c7766;margin:6px 0 10px;transform:rotate(-3deg)}
.story-list{display:flex;flex-direction:column;gap:0}
.story-coffee{padding:13px 0 14px;border-bottom:1px solid #c6c1b7}
.story-card.dark .story-coffee{border-bottom-color:#746f65}
.story-card .type{font-size:8px;letter-spacing:.075em;color:#a07062}
.story-list strong{font-size:17px;font-weight:630;letter-spacing:-.03em;display:block;line-height:1.25;margin:6px 0}
.story-list .desc{font-size:10px;line-height:1.45;color:#79776e}
.story-card.dark .desc{color:#d1cbbd}
.story-foot{border-top:1px solid currentColor;padding-top:10px;display:flex;align-items:end;justify-content:space-between;gap:8px}
.story-foot>span:first-child{font-size:8px;letter-spacing:.04em;max-width:60%}
.story-foot .handwritten{font:italic 14px Georgia,serif;transform:rotate(-7deg);color:#c58270}
.theme-switches button{border:1px solid #bbb4a8;border-radius:2px 10px 3px 8px;background:#fffdf8;color:#24231e;font-weight:550}
.theme-switches button.selected{background:#d9dfc6;border-color:#24231e}
.button.share-ig{background:#282720;border:1px solid #282720;color:#fffdf8}
.button.share-ig:hover{background:#4f4a3e}
.story-controls .small-note{max-width:460px;font-size:11px;line-height:1.7}
.story-layout{gap:38px}
.studio-panel .studio-top{margin-bottom:26px}
.mobile-tabbar{background:#f9f7ef;box-shadow:none;border-top:1px solid #777164}
.mobile-tabbar a.active .tab-icon{background:transparent;color:#24231e}
.mobile-tabbar a.active .tab-icon:after{content:'';position:absolute;bottom:1px;width:19px;border-bottom:1.5px solid #bf7468;transform:rotate(-7deg)}
.tab-icon{position:relative}
.toast{border:1px solid #a8a196;border-radius:3px 12px 4px 9px;background:#282720;color:#fffdf8}
@media(max-width:1080px){.hero-board{grid-template-columns:1.2fr .8fr}.hero-copy{padding-left:10px}}
@media(max-width:760px){
 body{padding-bottom:67px}
 .mast-inner{min-height:62px;padding:0 17px}
 .wordmark{font-size:25px}
 .wordmark .brand-flower,.brand-flower{font-size:20px}
 .masthead .header-action{padding:9px 12px;font-size:10px;border-radius:2px 9px 2px 7px}
 .demo-note{font-size:9px;line-height:1.3}
 .public-content{padding:0 19px}
 .hero-board{margin:0;min-height:330px;display:block;overflow:hidden;border-bottom:1px solid var(--ink);box-shadow:none;border-radius:0}
 .hero-copy{padding:30px 0 22px;z-index:2}
 .hero-kicker{font-size:13px;letter-spacing:-.035em}
 .kicker-dot{height:8px;width:8px}
 .hero-title{font-size:clamp(36px,9.7vw,48px);font-weight:610;line-height:1.04;margin:24px 0 18px;letter-spacing:-.067em;max-width:360px}
 .scribbled:after{border-bottom-width:2px;height:4px;bottom:-1px}
 .scribbled:before{bottom:-4px}
 .hero-sub{font-size:12px;line-height:1.54;max-width:260px;margin-bottom:16px;padding-right:0}
 .hero-copy .hero-sub{padding-right:10px;max-width:245px}
 .hero-explore{font-size:11px;padding:9px 13px}
 .hero-explore span{font-size:14px}
 .hero-note{display:none}
 .hero-art{position:absolute;right:-38px;bottom:4px;display:block;width:185px;height:190px;transform:rotate(-5deg);padding:0;opacity:.96;z-index:1}
 .hero-doodle{width:100%;height:100%;margin:0}
 .art-caption{display:none}
 .daily-strip{padding:13px 0;margin:0;gap:8px}
 .daily-date,.daily-city{font-size:9px}
 .browse-section{padding-top:26px}
 .browse-intro{margin-bottom:17px}
 .browse-intro .section-title{font-size:30px;font-weight:610}
 .title-star{font-size:19px}
 .browse-toolbar{padding:12px 12px 3px;border-radius:3px 13px 2px 10px}
 .mobile-filter button,.mobile-filter select{font-size:10px;padding:8px 12px;border-radius:2px 8px 2px 7px}
 .search-box input{font-size:12px;border-radius:2px 8px 2px 7px;padding:12px 8px 12px 31px}
 .control-select{font-size:10px;border-radius:2px 8px 2px 7px;max-width:112px}
 .result-list{border-top:1px solid var(--ink)}
 .coffee-result{padding:16px 2px 18px}
 .place-name{font-size:17px}
 .coffee-name{font-size:14px}
 .mobile-tabbar{padding:8px 5px max(7px,env(safe-area-inset-bottom));}
 .mobile-tabbar a{font-weight:600;font-size:9px}
 .tab-icon{font-size:20px;height:24px;width:34px;border-radius:0}
 .bottom-note{padding:24px 21px;border-radius:3px 15px 3px 12px}
 .bottom-note h2{font-size:34px}
 .studio-sidebar{background:#efede5;border-bottom:1px solid #bcb6aa}
 .studio-panel{padding:25px 19px 80px}
 .studio-title{font-size:clamp(30px,8vw,43px);font-weight:620}
 .story-layout{grid-template-columns:1fr;gap:27px}
 .story-card{max-width:340px;padding:24px 22px;box-shadow:none;border-radius:0}
 .story-card h2{font-size:32px;line-height:1.07}
 .story-list strong{font-size:16px}
 .story-coffee{padding:10px 0 12px}
 .story-foot .handwritten{font-size:13px}
 .story-controls{padding:0}
 .story-controls .flex-wrap{gap:9px}
 .story-controls .flex-wrap .button{font-size:11px;padding:11px 12px}
 .theme-switches button{font-size:12px;padding:11px 18px}
}
@media(max-width:375px){
 .hero-title{font-size:35px}
 .hero-art{right:-51px;width:170px;bottom:12px}
 .hero-copy .hero-sub{max-width:225px}
 .studio-panel{padding-left:16px;padding-right:16px}
 .story-card{max-width:310px}
}

/* Sharing must be reachable before the full 9:16 preview on small screens. */
@media(max-width:760px){
  .story-layout{display:flex;flex-direction:column;}
  .story-controls{order:-1;width:100%;}
  .story-layout #story-preview{order:0;width:100%;}
  .story-card{max-width:286px;}
  .story-controls>.filter-label{margin-bottom:6px;}
  .story-controls>p{margin:0 0 11px;}
  .story-controls .theme-switches{margin:10px 0;}
  .story-controls .flex-wrap{margin:10px 0 8px;}
  .story-controls .flex-wrap .button.share-ig{order:-1;}
  .dashboard-tools .button.share-ig{width:auto;}
}
