/* Rebeet website. One stylesheet for every page.
   Colours, radii and sizes are taken from reference/design-tokens.json (version 1.0, 2026-10-08);
   change them there first, then here. The page is a day you scroll through: each section takes
   the pale tint of one meal, in the order of a day. */

/* ---------- Font: Bricolage Grotesque, served from this site (licence: fonts/OFL.txt) ---------- */
@font-face{font-family:"Bricolage Grotesque";font-style:normal;font-weight:400;font-display:swap;src:url("../fonts/bricolage-grotesque-latin-400-normal.woff2") format("woff2")}
@font-face{font-family:"Bricolage Grotesque";font-style:normal;font-weight:600;font-display:swap;src:url("../fonts/bricolage-grotesque-latin-600-normal.woff2") format("woff2")}
@font-face{font-family:"Bricolage Grotesque";font-style:normal;font-weight:700;font-display:swap;src:url("../fonts/bricolage-grotesque-latin-700-normal.woff2") format("woff2")}
@font-face{font-family:"Bricolage Grotesque";font-style:normal;font-weight:800;font-display:swap;src:url("../fonts/bricolage-grotesque-latin-800-normal.woff2") format("woff2")}

/* ---------- Tokens (from design-tokens.json) ---------- */
:root{
  /* color */
  --ground:#F1F2EE; --card:#FFFFFF; --ink:#17181A; --muted:#55574F; --on-ink-muted:#D5D7CF; --line:#E4E5DF; --open:rgba(23,24,26,.09);
  --b-fill:#F4D35E; --b-edge:#C9A227; --b-pale:#FBEFC4;
  --l-fill:#9FD9A0; --l-edge:#4FA45A; --l-pale:#DDF1DD;
  --d-fill:#9CC3F0; --d-edge:#4C86C6; --d-pale:#DCE9F9;
  --s-fill:#F5A48B; --s-edge:#D9694A; --s-pale:#FBDDD3;
  --o-fill:#C9B5EC; --o-edge:#8A6CC4; --o-pale:#EBE3F8;
  /* font */
  --font:"Bricolage Grotesque","Trebuchet MS",system-ui,sans-serif;
  /* radius */
  --r-block:16px; --r-card:16px; --r-tile:12px; --r-tick:9px; --r-pic:20px; --r-btn:16px; --r-bar:32px; --r-pill:20px;
  /* border */
  --b-planned:2px; --b-tick:2.5px;
  /* shadow (only for things that float above the page, as in the app) */
  --shadow-bar:0 6px 20px rgba(23,24,26,.12);
  /* size */
  --touch:44px; --tick:30px;
  /* page layout (website only) */
  --wrap:1120px; --gutter:20px;
}

/* ---------- Base ---------- */
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;text-size-adjust:100%;scroll-padding-top:96px;overflow-x:clip}
body{margin:0;overflow-x:clip;max-width:100%;background:var(--ground);color:var(--ink);font-family:var(--font);font-size:17px;font-weight:600;line-height:1.45;font-variant-numeric:tabular-nums}
h1,h2,h3,p{margin:0}
h1,h2{font-weight:800;letter-spacing:-.025em;line-height:1.02;text-wrap:balance}
h1{font-size:clamp(2.6rem,7.4vw,5.4rem)}
h2{font-size:clamp(2.1rem,5.4vw,3.9rem)}
h1 span,h2 span{font-weight:400}
h1 .h-strong{font-weight:800}
h3{font-size:1.35rem;font-weight:800;letter-spacing:-.01em;line-height:1.15}
img{max-width:100%;height:auto}
a{color:inherit}
:focus-visible{outline:3px solid var(--ink);outline-offset:3px}
.muted{color:var(--muted)}
.wrap{max-width:var(--wrap);margin-inline:auto;padding-inline:var(--gutter)}
.band{padding-block:clamp(64px,10vw,128px)}
.band.b{background:var(--b-pale)} .band.l{background:var(--l-pale)} .band.d{background:var(--d-pale)} .band.s{background:var(--s-pale)} .band.o{background:var(--o-pale)}
.sub{font-size:clamp(1.1rem,2.2vw,1.4rem);font-weight:600;max-width:34ch;margin-top:22px}
.small{font-size:13px;font-weight:600;color:var(--muted)}
.vh{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
.skip{position:absolute;left:12px;top:-100px;z-index:50;background:var(--ink);color:#fff;padding:10px 16px;border-radius:12px;text-decoration:none;font-weight:700}
.skip:focus{top:12px}

/* ---------- Buttons ---------- */
.btn{font:inherit;font-size:16px;font-weight:700;background:var(--ink);color:#fff;border:0;border-radius:var(--r-btn);padding:15px 22px;min-height:var(--touch);cursor:pointer;text-decoration:none;display:inline-block;text-align:center}
.btn:hover{background:#2b2d30}
.btn[aria-busy="true"]{opacity:.7;cursor:progress}

/* ---------- Floating top bar ---------- */
.bar{position:sticky;top:calc(env(safe-area-inset-top,0px) + 12px);z-index:20;margin:calc(env(safe-area-inset-top,0px) + 12px) auto 0;max-width:calc(var(--wrap) - 2*var(--gutter));width:calc(100% - 2*var(--gutter));background:var(--card);border-radius:var(--r-bar);box-shadow:var(--shadow-bar);display:flex;align-items:center;justify-content:space-between;gap:12px;padding:8px 8px 8px 22px}
.word{font-size:1.45rem;font-weight:800;letter-spacing:-.03em;text-decoration:none}
.bar .btn{border-radius:26px;padding:11px 18px}

/* ---------- Top: photo behind the headline and the form ---------- */
.top{position:relative;margin-top:calc(-76px - env(safe-area-inset-top,0px));padding-block:calc(140px + env(safe-area-inset-top,0px)) 72px;background:#2a2620;color:#fff;overflow:hidden}
.top-photo,.top-photo img{position:absolute;inset:0;width:100%;height:100%}
.top-photo img{object-fit:cover;object-position:center}
/* Darkened so the white text reads. The picture used 50 %; 60 % keeps the small white text
   above a contrast of 4.5 on the brightest parts of the photo (Claude's default, see HANDOVER.md). */
.top::before{content:"";position:absolute;inset:0;z-index:1;background:rgba(23,24,26,.6)}
.top .wrap{position:relative;z-index:2}
.eyebrow{font-size:14px;font-weight:700;display:flex;flex-wrap:wrap;gap:8px;margin:0 0 22px;padding:0;list-style:none}
.eyebrow li{background:rgba(255,255,255,.92);color:var(--ink);border-radius:var(--r-pill);padding:6px 12px}
.top .sub{color:#fff}
/* The sheet is wider, with the waving beet standing in it right of the form (docs A462) */
.formcard{position:relative;background:var(--card);color:var(--ink);border-radius:24px;padding:20px;margin-top:28px;max-width:720px;display:grid;grid-template-columns:minmax(0,1fr) 190px;gap:24px;align-items:end}
.top-beet{grid-column:2;grid-row:1;align-self:end}
.top-beet img{display:block;width:100%;height:auto}

/* ---------- The sign-up form ---------- */
.form{display:flex;flex-direction:column;gap:12px;max-width:460px}
.formcard .form{max-width:none;grid-column:1;grid-row:1}
.final .form{margin-top:28px}
.lab{font-size:13px;font-weight:700}
.field{font:inherit;font-size:17px;font-weight:600;width:100%;min-height:52px;padding:13px 16px;border-radius:var(--r-btn);border:var(--b-planned) solid var(--ink);background:var(--card);color:var(--ink)}
.field::placeholder{color:var(--muted);opacity:1}
.field[aria-invalid="true"]{border-width:3px}
.seg{border:0;margin:0;padding:0;display:grid;grid-template-columns:1fr 1fr;gap:8px;min-width:0}
.seg input{position:absolute;opacity:0;width:1px;height:1px;margin:0}
.seg label{display:block;text-align:center;padding:12px 10px;min-height:var(--touch);border-radius:14px;border:var(--b-planned) solid var(--ink);background:transparent;font-size:16px;font-weight:700;cursor:pointer}
.seg input:checked+label{background:var(--ink);color:#fff}
.seg input:focus-visible+label{outline:3px solid var(--ink);outline-offset:3px}
.msg{font-size:15px;font-weight:700;border-radius:12px;padding:10px 14px;background:var(--ground)}
.msg:empty{display:none}
.msg.error{background:var(--card);border:var(--b-planned) solid var(--ink)}
.hp{position:absolute!important;left:-9999px;width:1px;height:1px;overflow:hidden}

/* ---------- The tickable day ---------- */
.stackband{padding-block:clamp(48px,7vw,88px)}
.two{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:clamp(28px,5vw,72px);align-items:center}
/* The day stays in place while the visitor scrolls a little further, and lunch ticks on the way
   (Theo, 2026-10-14). The empty space under the day (.pin-space) is the scroll distance. */
.stackband .two{align-items:start}
.stackband .two>:first-child,.pin .day{position:sticky;top:max(96px,calc(50vh - 280px))}
.pin-space{height:70vh}
/* Safari tints the strip above the page with the page's colour: dark, so it meets the photo
   instead of showing a light band (Theo's screenshots, 2026-10-14). */
html:has(.top),html:has(.top) body{background:#2a2620}
main{background:var(--ground)}
.day{background:var(--card);border-radius:28px;padding:20px;display:flex;flex-direction:column;gap:12px;max-width:440px;width:100%;margin-inline:auto}
.day-head{display:flex;justify-content:space-between;align-items:baseline;gap:12px;flex-wrap:wrap}
.day-head strong{font-size:1.5rem;font-weight:800;letter-spacing:-.02em}
.kcal{font-size:1.75rem;font-weight:800;letter-spacing:-.02em;line-height:1.1}
.kcal small{font-size:1rem;font-weight:600;color:var(--muted)}
/* The meter: one segment per meal, sized by its calories. Outline = planned, filled = eaten. */
.meter{display:flex;gap:4px;height:14px}
.meter i{flex:1 1 0;border-radius:6px;border:var(--b-planned) solid var(--c-edge);background:transparent;transition:background-color .25s,border-color .25s}
.meter i.on{background:var(--c-fill);border-color:var(--c-fill)}
.meter .k490{flex-grow:490} .meter .k570{flex-grow:570} .meter .k218{flex-grow:218} .meter .k516{flex-grow:516}
.blk{font:inherit;text-align:left;width:100%;min-height:76px;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 14px 14px 16px;border-radius:var(--r-block);border:var(--b-planned) solid var(--c-edge);background:transparent;color:var(--ink);cursor:pointer;transition:background-color .25s,border-color .25s}
.blk[aria-pressed="true"]{background:var(--c-fill);border-color:var(--c-fill)}
.blk .meal{font-size:13px;font-weight:700;display:block}
.blk .name{font-size:18px;font-weight:700;display:block;line-height:1.2}
.blk .num{font-size:15px;font-weight:700;white-space:nowrap}
.blk .num em{font-style:normal;font-weight:600;font-size:13px}
.blk .right{display:flex;align-items:center;gap:12px}
.tick{width:var(--tick);height:var(--tick);border-radius:var(--r-tick);border:var(--b-tick) solid var(--ink);display:grid;place-items:center;flex:none}
.tick svg{opacity:0}
.blk[aria-pressed="true"] .tick{background:var(--ink)}
.blk[aria-pressed="true"] .tick svg{opacity:1}
.c-b{--c-fill:var(--b-fill);--c-edge:var(--b-edge)} .c-l{--c-fill:var(--l-fill);--c-edge:var(--l-edge)} .c-d{--c-fill:var(--d-fill);--c-edge:var(--d-edge)} .c-s{--c-fill:var(--s-fill);--c-edge:var(--s-edge)}

/* ---------- Steps beside the phone ---------- */
.steps{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,340px);gap:clamp(28px,6vw,96px);align-items:start;margin-top:clamp(32px,5vw,64px)}
.steplist{display:flex;flex-direction:column;gap:14px;margin:0;padding:0;list-style:none}
.step{position:relative;border-radius:24px;padding:22px;display:grid;grid-template-columns:auto minmax(0,1fr);gap:16px;transition:background-color .25s}
.step.is-on{background:var(--card)}
.step .n{width:40px;height:40px;border-radius:13px;background:var(--ink);color:#fff;display:grid;place-items:center;font-weight:800;font-size:18px}
.step h3 button{font:inherit;color:inherit;letter-spacing:inherit;background:none;border:0;padding:0;text-align:left;cursor:pointer}
/* the whole step is the tap area */
.step h3 button::after{content:"";position:absolute;inset:0;border-radius:24px}
.step h3 button:focus-visible{outline:0}
.step h3 button:focus-visible::after{outline:3px solid var(--ink);outline-offset:3px}
.step p{margin-top:6px;font-weight:600;color:var(--muted);max-width:44ch}
.phonecol{position:sticky;top:calc(50vh - var(--ph)/2 + 24px);--ph:min(620px,calc(100vh - 150px))}
.phone{height:var(--ph,520px);width:auto;max-width:100%;margin-inline:auto;aspect-ratio:9/18.75;background:var(--ink);border-radius:46px;padding:10px;box-shadow:0 18px 50px rgba(23,24,26,.22)}
.screen{position:relative;height:100%;background:var(--ground);border-radius:37px;overflow:hidden}
/* The iPhone's camera pill (Dynamic Island) on every phone, at its share of the screen's width (Theo, 2026-10-31, A471) */
.screen::before{content:"";position:absolute;z-index:2;top:8px;left:50%;transform:translateX(-50%);width:32%;aspect-ratio:126/37;border-radius:999px;background:#000}
.view{position:absolute;inset:0;padding:38px 14px 14px;display:flex;flex-direction:column;gap:9px;opacity:0;transition:opacity .35s}
.phone[data-step="1"] .v1,.phone[data-step="2"] .v2,.phone[data-step="3"] .v3{opacity:1}
.view.shot{padding:0;background:var(--ground)}
.view.shot img{width:100%;height:100%;object-fit:cover;object-position:center bottom}
.view .h{margin:0;font-size:22px;font-weight:800;letter-spacing:-.02em;line-height:1.1}
.view .cap{font-size:11px;font-weight:700;color:var(--muted)}
.pcard{background:var(--card);border-radius:14px;padding:11px 12px;display:flex;flex-direction:column;gap:7px}
.pcard b{font-size:19px;font-weight:800;letter-spacing:-.02em}
.pcard b small{font-size:11px;font-weight:600;color:var(--muted)}
.pb{border-radius:13px;border:var(--b-planned) solid var(--c-edge);padding:9px 11px;display:flex;justify-content:space-between;align-items:center;gap:8px;font-size:13px;font-weight:700;line-height:1.2}
.pb span small{display:block;font-size:10.5px;font-weight:700}
.pb.on{background:var(--c-fill);border-color:var(--c-fill)}
.pb .t{width:20px;height:20px;border-radius:7px;border:2px solid var(--ink);flex:none}
.pb.on .t{background:var(--ink)}
.pb .when{font-size:10.5px;font-weight:700;background:var(--open);border-radius:10px;padding:3px 8px;white-space:nowrap}
.meter.sm{height:9px}

/* ---------- What is inside ---------- */
.cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-top:clamp(32px,5vw,64px)}
.fcard{background:var(--card);border-radius:24px;padding:24px;display:flex;flex-direction:column;gap:10px}
.fcard p{color:var(--muted)}
.chiprow{display:flex;gap:6px;margin-bottom:6px}
.chiprow i{height:28px;flex:1;border-radius:var(--r-tick);border:var(--b-planned) solid var(--c-edge)}
.chiprow i.on{background:var(--c-fill);border-color:var(--c-fill)}

/* ---------- The day, all locked in (docs A316) ---------- */
.done-line{text-align:center;font-size:1.1rem;font-weight:800;background:var(--ink);color:#fff;border-radius:var(--r-pill);padding:12px 18px}
.done-line[hidden]{display:none}

/* ---------- Recipes: the app's picture cards, version A of docs A446 (white card, 4:3 picture on top,
   name, numbers, a muted line with the diet mark first and the time), here at the page's size (docs A462) ---------- */
.rgrid{list-style:none;margin:clamp(32px,5vw,56px) 0 0;padding:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.rcard{background:var(--card);border-radius:var(--r-card);overflow:hidden;display:flex;flex-direction:column}
.rcard img{display:block;width:100%;height:auto;aspect-ratio:4/3;object-fit:cover;background:var(--b-fill)}
.rbody{display:flex;flex-direction:column;gap:3px;padding:12px 14px 14px;flex:1}
.rcard h3{font-size:1.15rem;font-weight:700;line-height:1.2;letter-spacing:0}
.rnum{margin-top:auto;padding-top:6px;font-size:15px;font-weight:700}
.rmeta{font-size:14px;font-weight:600;color:var(--muted)}
.diet{color:var(--ink);font-weight:700}
.diet svg{vertical-align:-2px;margin-right:3px}
.ai-note{margin-top:12px}
.extras{list-style:none;margin:clamp(28px,4vw,48px) 0 0;padding:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.extras li{background:var(--card);border-radius:18px;padding:18px 20px;color:var(--muted)}
.extras strong{display:block;color:var(--ink);font-size:1.1rem;font-weight:800;margin-bottom:4px}

/* ---------- Your numbers, no drama ---------- */
.cards.two-cards{grid-template-columns:repeat(2,minmax(0,1fr))}
/* The workouts band: black, like a workout in the app (A472); the phones get a thin light rim so they stand out from it */
.band.w{background:var(--ink);color:#fff}
.band.w .tphone p{color:var(--on-ink-muted)}
.band.w .phone{box-shadow:0 0 0 1.5px rgba(255,255,255,.22),0 18px 50px rgba(0,0,0,.45)}
.train{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:clamp(24px,5vw,72px);margin-top:clamp(28px,4vw,48px)}
.tphone{display:flex;flex-direction:column;align-items:center;text-align:center;gap:10px}
.tphone .phone{height:min(560px,calc(100vh - 160px));margin-bottom:14px}
.tphone .screen img{position:absolute;inset:0;display:block;width:100%;height:100%;object-fit:cover;object-position:center bottom}
.tphone p{color:var(--muted);font-weight:600;max-width:36ch}
.over{margin-top:12px;background:var(--ground);border-radius:14px;padding:12px 14px;display:flex;flex-direction:column;gap:8px}
.over b{font-size:1.5rem;font-weight:800;letter-spacing:-.02em}
.over small{font-size:.95rem;font-weight:600;color:var(--muted)}
.over .meter{position:relative}
/* every segment filled, a short ink line where the goal is (as in the app, A196) */
.over .goal{position:absolute;top:-4px;bottom:-4px;left:89%;width:3px;border-radius:2px;background:var(--ink)}

/* ---------- Built by Theo: his photo and line come from config.js ---------- */
.founder{display:flex;align-items:center;gap:clamp(18px,4vw,40px);margin-bottom:clamp(48px,7vw,88px)}
.founder img{width:clamp(96px,16vw,160px);height:auto;aspect-ratio:1;object-fit:cover;border-radius:28px;flex:none}
.founder .line{margin-top:14px;font-size:clamp(1.1rem,2.2vw,1.35rem);max-width:40ch}

/* ---------- Built by, questions ---------- */
.by{font-size:clamp(1.3rem,2.6vw,1.7rem);font-weight:700;max-width:30ch;margin-top:18px}
.faq{margin-top:clamp(28px,4vw,48px);display:flex;flex-direction:column;gap:10px;max-width:760px}
.faq details{background:var(--card);border-radius:18px;padding:0 20px}
.faq summary{cursor:pointer;list-style:none;padding:18px 0;min-height:var(--touch);font-size:18px;font-weight:700;display:flex;justify-content:space-between;gap:16px;border-radius:12px}
.faq summary::-webkit-details-marker{display:none}
.faq summary::after{content:"+";font-weight:800;font-size:22px;line-height:1}
.faq details[open] summary::after{content:"\2212"}
.faq details p{padding-bottom:18px;color:var(--muted);max-width:60ch}

/* ---------- The form again, with the mascot ---------- */
.final{display:grid;grid-template-columns:minmax(0,220px) minmax(0,1fr);gap:clamp(20px,5vw,64px);align-items:center}
.mascot{width:100%;max-width:220px;height:auto;margin-inline:auto;display:block}

/* ---------- Footer ---------- */
footer{background:var(--ink);color:var(--on-ink-muted);padding-block:36px;font-size:14px}
footer .row{display:flex;flex-wrap:wrap;gap:10px 24px;align-items:center;justify-content:space-between}
footer .word{color:#fff;font-size:1.3rem}
footer nav ul{display:flex;flex-wrap:wrap;gap:4px 20px;margin:0;padding:0;list-style:none}
footer nav a{display:inline-block;padding-block:10px}
footer :focus-visible{outline-color:#fff}

/* ---------- Thank-you, legal and 404 pages ---------- */
.page{padding-block:clamp(56px,9vw,112px)}
.thanks{background:var(--o-pale);border-radius:28px;padding:32px 24px;display:grid;grid-template-columns:minmax(0,170px) minmax(0,1fr);gap:28px;align-items:center;max-width:760px;margin-inline:auto}
.thanks h1{font-size:clamp(2.2rem,5vw,3.2rem)}
.thanks p{margin-top:12px;max-width:42ch}
.legal{max-width:760px}
.legal h1{font-size:clamp(2.2rem,5vw,3.4rem)}
.legal section{margin-top:40px}
.legal h2{font-size:clamp(1.6rem,3.4vw,2.2rem)}
.legal h3{margin-top:32px}
.legal p,.legal ul{margin-top:12px;max-width:68ch}
.legal ul{padding-left:1.2em}
.legal li+li{margin-top:4px}
.lost{max-width:640px}
.lost p{margin-top:16px}
.lost .btn{margin-top:28px}

/* ---------- Gentle movement while scrolling (only with JavaScript, only without "reduce motion") ---------- */
.motion .reveal{opacity:0;transform:translateY(16px);transition:opacity .6s ease,transform .6s ease}
.motion .reveal.is-in{opacity:1;transform:none}

/* Wide screens: each step takes most of a screen, so the phone stays in place while all three pass
   and changes with each (Theo, 2026-10-14, after looking on his laptop) */
@media (min-width:861px){
  .steplist{gap:0}
  .step{min-height:72vh;align-content:center;background:transparent}
  .step.is-on{background:transparent}
  .step:not(.is-on){opacity:.45;transition:opacity .3s}
  .mini{display:none}
}

/* Phones: each step shows its own screen under its text, so nothing has to be tapped or pinned
   (Theo, 2026-10-14: the pinned phone did not work on the iPhone) */
.mini{display:none}

/* ---------- Narrow screens: one column, phone above the steps ---------- */
@media (max-width:860px){
  .two,.steps,.final{grid-template-columns:minmax(0,1fr)}
  .stackband .two>:first-child{position:static}
  .pin .day{top:calc(env(safe-area-inset-top,0px) + 84px)}
  .pin-space{height:60vh}
  .phonecol{position:static;order:-1}
  /* On phones the screen takes the screenshot's own shape (600 x 1299) and the phone wraps it, so nothing is
     zoomed or cut at the sides (iOS Safari made the screen taller than the frame's ratio, A475); a thinner rim */
  .phone{height:auto;width:min(250px,100%);aspect-ratio:auto;padding:7px;border-radius:38px}
  .phone .screen,.mini .screen{height:auto;aspect-ratio:600/1299;border-radius:31px}
  .tphone .phone{height:auto}
  .steps.has-minis .phonecol{display:none}
  .steps.has-minis .step{background:var(--card);overflow:hidden}
  /* the whole screen, not its top only (Theo, 2026-10-31, A471) */
  .mini{display:block;grid-column:1/-1;justify-self:center;width:min(240px,100%);margin-top:4px;background:var(--ink);border-radius:37px;padding:7px}
  .mini .view{opacity:1;position:absolute}
  .cards{grid-template-columns:minmax(0,1fr)}
  .extras,.cards.two-cards,.train{grid-template-columns:minmax(0,1fr)}
  /* two cards side by side at about the app's card width (171), a little into the page's margin */
  .rgrid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-inline:-8px}
  .rbody{padding:10px 10px 12px}
  .rcard h3{font-size:16px}
  .rnum,.rmeta{font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .founder{flex-direction:column;align-items:flex-start}
  .mascot{max-width:150px}
  .thanks{grid-template-columns:minmax(0,1fr)}
  .thanks .mascot{max-width:120px;margin-inline:0}
  .bar .btn{padding:10px 14px;font-size:15px}
  /* Phones: no room beside the form, so the beet sits on the sheet's top-right corner and peeks over its edge */
  .formcard{display:block;margin-top:92px}
  .top-beet{position:absolute;right:16px;top:-84px;width:100px}
}
@media (max-width:380px){
  .bar{padding-left:16px}
  .blk{padding-inline:12px;gap:8px}
  .blk .right{gap:8px}
}

@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{transition:none!important;animation:none!important}
}
@media (prefers-reduced-motion:no-preference){
  html{scroll-behavior:smooth}
}
