/* The walk-in. The town is the page: everything here is only what somebody
   standing in Ashmere needs, drawn in the town's own materials. The guide
   talks from a wooden board like the shop signs, actions are the gold of the
   door knobs and pennants, and anything to fill in is on paper. */

:root {
  --wood: #6d4526; --wood-2: #7a4d2b; --wood-3: #68401f; --wood-edge: #47301a; --wood-hi: rgb(255 236 200 / .2);
  --cream: #fff3d6; --paper: #fbf1dc; --paper-2: #fffaf0;
  --ink: #2a2018; --ink-2: #5b4633; --ink-3: #8a735a;
  --gold: #f2c245; --gold-hi: #f6d064; --gold-edge: #b8862a; --gold-ink: #3a2410;
  --display: "Baloo 2", ui-rounded, "SF Pro Rounded", system-ui, sans-serif;
  --voice: "Literata", Georgia, "Times New Roman", serif;
  --slab: 22px; --pill: 999px;
  --safe-t: env(safe-area-inset-top, 0px); --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-l: env(safe-area-inset-left, 0px); --safe-r: env(safe-area-inset-right, 0px);
  color-scheme: light;
}

html, body { margin: 0; height: 100%; overflow: hidden; overscroll-behavior: none; background: #f8efe0; }
body { font: 400 1.0625rem/1.45 var(--voice); color: var(--ink); -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
[hidden] { display: none !important; }

#world { position: fixed; inset: 0; width: 100vw; height: 100vh; height: 100dvh; display: block; touch-action: none; cursor: grab; outline: none; }
#world:active { cursor: grabbing; }

/* ---- buttons: gold for doing, an outline for declining ---- */
.btn {
  font: 700 1rem/1 var(--display); min-height: 46px; padding: .1em 1.15em 0; border-radius: var(--pill); border: 0; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; text-decoration: none; white-space: nowrap;
  transition: transform .12s ease, box-shadow .12s ease, background-color .12s ease;
}
.btn-gold { background: var(--gold); color: var(--gold-ink); box-shadow: 0 3px 0 var(--gold-edge), inset 0 1px 0 rgb(255 255 255 / .55); }
.btn-gold:hover { background: var(--gold-hi); }
.btn-gold:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--gold-edge), inset 0 1px 0 rgb(255 255 255 / .4); }
.btn-quiet { background: transparent; color: var(--cream); box-shadow: inset 0 0 0 2px rgb(255 243 214 / .42); }
.btn-quiet:hover { box-shadow: inset 0 0 0 2px var(--cream); }
.btn-quiet:active { transform: translateY(1px); }
.btn:focus-visible, .talk-skip:focus-visible, .talk-next:focus-visible, .scrolllink:focus-visible, .wordmark:focus-visible, .sheet-close:focus-visible { outline: 3px solid var(--cream); outline-offset: 3px; }
.btn[disabled] { opacity: .6; cursor: default; }
.btn-small { min-height: 42px; font-size: .9375rem; padding: .1em .95em 0; }
/* on paper, for a second action that sits beside the gold one */
.btn-paper { background: rgb(251 241 220 / .94); color: var(--wood); box-shadow: inset 0 0 0 2px rgb(109 69 38 / .26), 0 2px 0 rgb(71 48 26 / .14); }
.btn-paper:hover { box-shadow: inset 0 0 0 2px var(--wood), 0 2px 0 rgb(71 48 26 / .14); }
.btn-paper:active { transform: translateY(1px); }
.btn-paper:focus-visible { outline-color: var(--wood); }

/* ---- the bar across the top ---- */
.topbar {
  position: fixed; inset: 0 0 auto; z-index: 5; pointer-events: none;
  display: flex; align-items: center; gap: 10px;
  padding: calc(12px + var(--safe-t)) calc(14px + var(--safe-r)) 0 calc(14px + var(--safe-l));
}
.topbar > * { pointer-events: auto; }
.wordmark, .clock { background: rgb(251 241 220 / .92); border-radius: var(--pill); box-shadow: 0 2px 0 rgb(71 48 26 / .16); }
.wordmark { font: 800 1.3rem/1 var(--display); color: var(--wood); text-decoration: none; letter-spacing: -.01em; padding: 10px 15px 7px; }
.clock { font: 700 .875rem/1 var(--display); color: var(--ink-2); margin: 0 auto 0 0; padding: 9px 12px 7px; font-variant-numeric: tabular-nums; }
#readme { margin-left: auto; }

/* ---- how to move, for the first few seconds ---- */
.tips {
  position: fixed; left: calc(16px + var(--safe-l)); bottom: calc(18px + var(--safe-b)); z-index: 4; max-width: 23rem;
  background: var(--wood); color: var(--cream); border-radius: 18px; padding: 13px 16px 11px;
  font: 600 .98rem/1.35 var(--display); box-shadow: 0 4px 0 var(--wood-edge), inset 0 1px 0 var(--wood-hi);
  opacity: 0; transform: translateY(10px); transition: opacity .45s ease, transform .45s ease;
}
.tips.in { opacity: 1; transform: none; }
.tips p { margin: 0; }
.tips p + p { margin-top: 7px; }
.keys { white-space: nowrap; }
kbd {
  font: 800 .8rem/1 var(--display); display: inline-grid; place-items: center; min-width: 1.75em; height: 1.75em; padding-top: .12em; box-sizing: border-box;
  border-radius: 6px; background: var(--cream); color: var(--wood); box-shadow: 0 2px 0 #c9ad80; margin-right: 3px;
}

/* ---- names over heads, and what they are saying ---- */
#tags { position: fixed; inset: 0; pointer-events: none; z-index: 2; overflow: hidden; }
.nametag {
  position: absolute; left: 0; top: 0; white-space: nowrap;
  font: 700 .78rem/1 var(--display); color: var(--cream); background: rgb(109 69 38 / .9);
  padding: 5px 9px 3px; border-radius: var(--pill);
}
.bubble {
  position: fixed; left: 0; top: 0; z-index: 3; width: max-content; max-width: min(21rem, 72vw); pointer-events: none;
  background: var(--paper); color: var(--ink); border-radius: 16px; padding: 9px 13px 10px; box-shadow: 0 3px 0 rgb(71 48 26 / .2);
}
.bubble::after { content: ""; position: absolute; left: 50%; bottom: -8px; translate: -50% 0; border: 8px solid transparent; border-bottom: 0; border-top-color: var(--paper); }
.bubble b { display: block; font: 800 .78rem/1 var(--display); color: var(--wood); margin-bottom: 4px; }
.bubble q { font: italic 450 .95rem/1.38 var(--voice); quotes: "“" "”"; }

/* ---- the thumbstick, where a thumb lands ---- */
.stick {
  position: fixed; left: 0; top: 0; width: 96px; height: 96px; margin: -48px 0 0 -48px; z-index: 4; pointer-events: none;
  border-radius: 50%; background: rgb(251 241 220 / .22); box-shadow: inset 0 0 0 2px rgb(251 241 220 / .65);
  display: grid; place-items: center; opacity: 0; transition: opacity .15s;
}
.stick.on { opacity: 1; }
.stick i { width: 42px; height: 42px; border-radius: 50%; background: var(--paper); box-shadow: 0 3px 0 rgb(71 48 26 / .3); }
/* where the stick lives, shown while you are free to walk on a touch screen */
.stickhome {
  position: fixed; right: calc(26px + var(--safe-r)); bottom: calc(30px + var(--safe-b)); width: 96px; height: 96px; z-index: 4; pointer-events: none;
  border-radius: 50%; background: rgb(251 241 220 / .2); box-shadow: inset 0 0 0 2px rgb(251 241 220 / .7), 0 2px 10px rgb(42 32 24 / .15);
  display: grid; place-items: center; opacity: 0; transition: opacity .25s;
}
.stickhome.on { opacity: 1; }
.stickhome i { width: 42px; height: 42px; border-radius: 50%; background: rgb(251 241 220 / .92); box-shadow: 0 3px 0 rgb(71 48 26 / .28); }

/* ---- the guide's board ---- */
.talk {
  position: fixed; left: 0; right: 0; bottom: calc(18px + var(--safe-b)); z-index: 6;
  width: min(44rem, calc(100vw - 24px)); margin: 0 auto;
  opacity: 0; transform: translateY(18px); transition: opacity .26s ease, transform .32s cubic-bezier(.2, .9, .3, 1.15);
}
.talk.in { opacity: 1; transform: none; }
.talk-card {
  position: relative; border-radius: var(--slab); padding: 30px 26px 12px; color: var(--cream);
  background:
    repeating-linear-gradient(178deg, rgb(255 236 200 / .035) 0 2px, transparent 2px 11px, rgb(0 0 0 / .03) 11px 12px, transparent 12px 19px),
    linear-gradient(180deg, var(--wood-2), var(--wood-3));
  box-shadow: 0 6px 0 var(--wood-edge), 0 22px 40px -16px rgb(42 32 24 / .6), inset 0 2px 0 var(--wood-hi);
}
.talk-name {
  position: absolute; top: -17px; left: 20px; margin: 0; padding: 10px 16px 7px; border-radius: var(--pill);
  font: 800 1rem/1 var(--display); color: var(--gold-ink); background: var(--gold); box-shadow: 0 3px 0 var(--gold-edge);
}
.talk-name::before {
  content: ""; display: inline-block; width: .72em; height: .72em; margin-right: .45em; vertical-align: -.04em;
  border-radius: 50%; background: var(--guide, #b8a894); box-shadow: inset 0 0 0 2px rgb(58 36 16 / .3);
}
button.talk-name { border: 0; cursor: pointer; display: inline-flex; align-items: center; white-space: nowrap; }
button.talk-name::after { /* it opens the guide picker */
  content: ""; width: 0; height: 0; margin-left: .5em; border-left: 4.5px solid transparent; border-right: 4.5px solid transparent; border-top: 5.5px solid currentColor; opacity: .75;
}
button.talk-name:hover { background: var(--gold-hi); }
button.talk-name:focus-visible { outline: 3px solid var(--cream); outline-offset: 2px; }
.talk-choose { margin-left: 14px; }
.talk-skip[hidden] + .talk-choose { margin-left: 0; }
.talk-line {
  margin: 0; min-height: 3em; text-wrap: pretty;
  font: 450 clamp(1.1rem, .98rem + .42vw, 1.36rem)/1.5 var(--voice); font-optical-sizing: auto;
}
.talk-extra:empty { display: none; }
.talk-extra { margin-top: 14px; }
.talk-foot { display: flex; align-items: center; min-height: 34px; margin-top: 4px; }
.talk-skip {
  background: none; border: 0; padding: 8px 2px; min-height: 44px; cursor: pointer;
  font: 600 .92rem/1 var(--display); color: rgb(255 243 214 / .78); text-decoration: underline; text-underline-offset: 3px; border-radius: 6px;
}
.talk-skip:hover { color: var(--cream); }
.talk-next { margin-left: auto; width: 46px; height: 36px; border: 0; background: none; cursor: pointer; display: grid; place-items: center; border-radius: 8px; }
.talk-next span { width: 0; height: 0; border-left: 9px solid transparent; border-right: 9px solid transparent; border-top: 12px solid var(--gold); animation: nudge 1.1s ease-in-out infinite; }
@keyframes nudge { 50% { transform: translateY(4px); } }

.talk-ask { display: grid; gap: 11px; }
.talk-field input {
  width: 100%; box-sizing: border-box; min-height: 50px; border: 0; border-radius: 14px; padding: .2em 16px 0;
  font: 600 1.15rem/1 var(--display); color: var(--ink); background: var(--paper); box-shadow: inset 0 2px 0 rgb(71 48 26 / .22);
}
.talk-field input::placeholder { color: #a48d70; }
.talk-field input:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.talk-buttons { display: flex; flex-wrap: wrap; gap: 10px; }
.talk-choices .btn { flex: 1 1 13rem; }
.talk-help { margin: 0; font: 500 .86rem/1.35 var(--display); color: rgb(255 243 214 / .72); }
.talk-err { margin: 0; font: 600 .92rem/1.3 var(--display); color: #ffd98a; }
.talk-err:empty { display: none; }

/* The one question: the town's lettering at full size, pressed in word by word. */
.talk-question {
  margin: 2px 0 6px; color: var(--cream); letter-spacing: -.012em; text-wrap: balance;
  font: 800 clamp(2.1rem, 1.15rem + 3.7vw, 4.3rem)/.9 var(--display); text-shadow: 0 3px 0 var(--wood-edge);
}
.talk-question span { display: inline-block; animation: press .55s cubic-bezier(.2, .9, .3, 1.2) both; animation-delay: calc(var(--i) * 110ms + 80ms); }
@keyframes press { from { opacity: 0; transform: translateY(12px) scale(1.12); } }

.gift { margin: 0; display: flex; align-items: center; gap: 16px; }
.gift svg { width: 58px; height: auto; flex: none; filter: drop-shadow(0 3px 0 rgb(0 0 0 / .2)); }
.gift figcaption { font: 800 clamp(1.7rem, 1.2rem + 1.6vw, 2.5rem)/1 var(--display); color: var(--gold); overflow-wrap: anywhere; }

/* ---- small ways out ---- */
.scrolllink {
  position: fixed; right: calc(14px + var(--safe-r)); bottom: calc(14px + var(--safe-b)); z-index: 4;
  font: 600 .86rem/1 var(--display); color: var(--wood); text-decoration: none;
  background: rgb(251 241 220 / .92); padding: 10px 13px 8px; border-radius: var(--pill); box-shadow: 0 2px 0 rgb(71 48 26 / .16);
  transition: opacity .2s;
}
.scrolllink:hover { text-decoration: underline; text-underline-offset: 3px; }
body:has(.talk.in) .scrolllink { opacity: 0; pointer-events: none; }

/* ---- the replay, over everything ---- */
.replay { position: fixed; inset: 0; z-index: 8; background: #2a2018; opacity: 0; pointer-events: none; transition: opacity .6s ease; }
.replay.in { opacity: 1; pointer-events: auto; }
.replay iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ---- the waitlist on paper ---- */
.sheet { position: fixed; inset: 0; z-index: 9; display: grid; justify-items: end; background: rgb(42 32 24 / 0); transition: background-color .26s; }
.sheet.in { background: rgb(42 32 24 / .32); }
.sheet-card {
  position: relative; width: min(27rem, 100vw); height: 100%; box-sizing: border-box; overflow: auto;
  background: var(--paper); color: var(--ink); padding: calc(58px + var(--safe-t)) 28px calc(28px + var(--safe-b));
  box-shadow: -6px 0 0 rgb(71 48 26 / .12); transform: translateX(100%); transition: transform .32s cubic-bezier(.2, .9, .3, 1);
}
.sheet.in .sheet-card { transform: none; }
.sheet-close {
  position: absolute; top: calc(12px + var(--safe-t)); right: 12px; width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgb(109 69 38 / .1); color: var(--wood); font: 700 1.6rem/1 var(--display);
}
.sheet-close:focus-visible { outline-color: var(--wood); }

/* ---- the loader: the town's name, and how far along it is ---- */
.loader {
  position: fixed; inset: 0; z-index: 20; display: grid; place-content: center; justify-items: center; gap: 16px;
  background: radial-gradient(ellipse 80% 70% at 50% 58%, #fbf3e4, #efe3cc);
  transition: opacity .7s ease, visibility 0s linear .7s;
}
.loader.out { opacity: 0; visibility: hidden; }
.loader-town { margin: 0; font: 800 clamp(3.4rem, 2rem + 6vw, 7.2rem)/.9 var(--display); color: var(--wood); letter-spacing: -.02em; }
.loader-bar { width: min(15rem, 60vw); height: 6px; border-radius: 99px; background: rgb(109 69 38 / .16); overflow: hidden; }
.loader-bar span { display: block; height: 100%; background: var(--wood); transform-origin: left; transform: scaleX(0); transition: transform .35s ease; }
.loader-pct { margin: 0; font: 700 .95rem/1 var(--display); color: var(--ink-2); font-variant-numeric: tabular-nums; }

/* ---- notes when the 3D town is not the right thing ---- */
.card {
  position: fixed; left: 16px; right: 16px; bottom: calc(16px + var(--safe-b)); z-index: 21; max-width: 30rem; margin: 0 auto;
  background: var(--paper); color: var(--ink); border-radius: 20px; padding: 20px 22px;
  box-shadow: 0 4px 0 rgb(71 48 26 / .2), 0 20px 40px -20px rgb(42 32 24 / .5); font: 400 1rem/1.5 var(--voice);
}
#nogl { top: 0; bottom: 0; height: fit-content; margin: auto; }
.card p { margin: 0; }
.card-title { font: 800 1.35rem/1.15 var(--display); margin-bottom: 8px !important; }
.card-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px !important; }
.card .btn-quiet { color: var(--wood); box-shadow: inset 0 0 0 2px rgb(109 69 38 / .35); }
.card .btn:focus-visible { outline-color: var(--wood); }

/* ---- phones ---- */
@media (max-width: 40rem), (pointer: coarse) {
  .tips { left: 50%; right: auto; bottom: auto; top: calc(66px + var(--safe-t)); width: max-content; max-width: calc(100vw - 32px); transform: translate(-50%, -8px); text-align: center; }
  .tips.in { transform: translate(-50%, 0); }
  .clock { display: none; }
  .scrolllink { left: calc(12px + var(--safe-l)); right: auto; bottom: calc(12px + var(--safe-b)); font-size: .8rem; padding: 8px 11px 6px; }
}
@media (max-width: 40rem) {
  .talk { width: calc(100vw - 16px); bottom: calc(8px + var(--safe-b)); }
  .talk-card { padding: 21px 15px 4px; border-radius: 18px; }
  .talk-name { top: -13px; left: 14px; font-size: .86rem; padding: 7px 12px 5px; }
  .talk-line { font-size: 1rem; line-height: 1.42; min-height: 0; }
  .talk-extra { margin-top: 9px; }
  .talk-ask { gap: 8px; }
  .talk-field input { min-height: 44px; font-size: 1.05rem; border-radius: 12px; }
  .talk-help { font-size: .78rem; }
  .talk-question { font-size: clamp(1.55rem, 1.1rem + 3.2vw, 2.1rem); margin: 0 0 2px; text-shadow: 0 2px 0 var(--wood-edge); }
  .talk-foot { min-height: 26px; margin-top: 0; }
  .talk-skip { min-height: 36px; padding: 6px 2px; font-size: .84rem; }
  .talk-next { width: 40px; height: 28px; }
  .gift svg { width: 40px; }
  .gift figcaption { font-size: 1.5rem; }
  .btn { min-height: 44px; }
  .wordmark { font-size: 1.1rem; padding: 9px 12px 6px; }
  .topbar { gap: 7px; }
  .topbar .btn-small { font-size: .875rem; padding: .1em .8em 0; }
  .sheet { justify-items: stretch; align-items: end; }
  .sheet-card { width: 100%; height: auto; max-height: 90vh; border-radius: 22px 22px 0 0; transform: translateY(100%); padding-top: 52px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
}

/* the narrowest phones: the name in the corner steps aside for the two actions */
@media (max-width: 23.9rem) {
  .wordmark { font-size: 1rem; padding: 8px 10px 5px; }
  .topbar .btn-small { font-size: .82rem; padding: .1em .65em 0; }
}

/* ---- choosing a guide: four portraits on paper ---- */
.picker { position: fixed; inset: 0; z-index: 10; display: grid; place-items: end center; background: rgb(42 32 24 / 0); transition: background-color .24s; }
.picker.in { background: rgb(42 32 24 / .34); }
.picker-card {
  position: relative; box-sizing: border-box; width: min(46rem, calc(100vw - 20px)); margin-bottom: calc(14px + var(--safe-b));
  background: var(--paper); color: var(--ink); border-radius: 22px; padding: 20px 20px 18px;
  box-shadow: 0 4px 0 rgb(71 48 26 / .18), 0 24px 50px -24px rgb(42 32 24 / .6);
  opacity: 0; transform: translateY(20px); transition: opacity .24s ease, transform .3s cubic-bezier(.2, .9, .3, 1.15);
}
.picker.in .picker-card { opacity: 1; transform: none; }
.picker-close { top: 10px; right: 10px; }
.picker-title { margin: 2px 48px 14px 4px; font: 800 clamp(1.3rem, 1.1rem + .8vw, 1.65rem)/1.1 var(--display); letter-spacing: -.01em; }
.picker-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.guide-opt {
  display: grid; justify-items: center; align-content: start; gap: 6px; text-align: center; cursor: pointer;
  padding: 12px 10px 14px; border: 0; border-radius: 16px; font: inherit; color: inherit;
  background: var(--paper-2); box-shadow: inset 0 0 0 2px #e4d2b0; transition: box-shadow .15s, transform .12s, background-color .15s;
}
.guide-opt:hover { box-shadow: inset 0 0 0 2px var(--wood); }
.guide-opt:active { transform: translateY(1px); }
.guide-opt:focus-visible { outline: 3px solid var(--wood); outline-offset: 2px; }
.guide-opt[aria-pressed="true"] { background: #fff2cf; box-shadow: inset 0 0 0 3px var(--gold-edge); }
.guide-opt img {
  width: 96px; height: 96px; border-radius: 50%; object-fit: cover; object-position: 50% 12%;
  background: radial-gradient(circle at 50% 38%, #fffaf0 0 38%, color-mix(in srgb, var(--tint) 32%, #fbf1dc) 72%);
}
.guide-opt-name { font: 800 1.02rem/1.1 var(--display); color: var(--ink); }
.guide-opt { position: relative; }
.guide-opt[aria-pressed="true"]::before {
  content: "With you"; position: absolute; top: 8px; right: 8px; padding: 4px 8px 2px; border-radius: var(--pill);
  font: 700 .7rem/1 var(--display); color: var(--gold-ink); background: var(--gold); box-shadow: 0 2px 0 var(--gold-edge);
}
.guide-opt-intro { font: 400 .88rem/1.38 var(--voice); color: var(--ink-2); text-wrap: pretty; }
@media (max-width: 40rem) {
  .picker-card { padding: 16px 12px 12px; margin-bottom: calc(8px + var(--safe-b)); border-radius: 20px; }
  .picker-title { margin: 2px 46px 10px 6px; }
  .picker-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .guide-opt { padding: 10px 8px 12px; }
  .guide-opt img { width: 70px; height: 70px; }
  .guide-opt-intro { font-size: .8rem; }
  .talk-choose { margin-left: 10px; }
}

/* ---- the top bar: the name and every button share one height ---- */
/* The pills look as small as the name; each button's tap area still reaches 44px. */
.topbar { --bar-h: 38px; }
.topbar .wordmark, .topbar .clock, .topbar .btn, .rp-title {
  box-sizing: border-box; height: var(--bar-h); min-height: 0; display: inline-flex; align-items: center; padding-top: 2px; padding-bottom: 0;
}
.topbar .wordmark { padding-inline: 15px; }
.topbar .btn { position: relative; padding-inline: 15px; font-size: .92rem; }
.topbar .btn::after { content: ""; position: absolute; left: -2px; right: -2px; top: calc((var(--bar-h) - 44px) / 2); bottom: calc((var(--bar-h) - 44px) / 2); }
@media (max-width: 40rem), (pointer: coarse) {
  .topbar { --bar-h: 34px; }
  .topbar .clock { display: none; }
  .topbar .wordmark { font-size: 1.08rem; padding-inline: 12px; }
  .topbar .btn { font-size: .86rem; padding-inline: 12px; }
}
@media (max-width: 23.9rem) {
  .topbar .wordmark { font-size: .98rem; padding-inline: 10px; }
  .topbar .btn { font-size: .8rem; padding-inline: 9px; }
}

/* ---- three buttons on a phone: tighter, and on the narrowest the name gives way ---- */
@media (max-width: 40rem), (pointer: coarse) {
  .topbar { gap: 6px; }
  .topbar .btn { font-size: .8rem; padding-inline: 9px; }
  .topbar .wordmark { font-size: 1rem; padding-inline: 10px; }
}
@media (max-width: 26rem) {
  .topbar .btn { font-size: .76rem; padding-inline: 8px; }
  .topbar .wordmark { font-size: .95rem; padding-inline: 9px; }
}

/* the mark: the yellow dot, then the name (as on the scroll version) */
.wordmark .dot { display: inline-block; flex: none; width: .5em; height: .5em; margin: -.08em .36em 0 0; border-radius: 50%; background: #f2a93b; box-shadow: 0 0 0 .13em rgb(242 169 59 / .25); }
@media (max-width: 26rem) {
  .topbar { gap: 5px; padding-left: calc(10px + var(--safe-l)); padding-right: calc(10px + var(--safe-r)); }
  .topbar .btn { font-size: .74rem; padding-inline: 7px; }
  .topbar .wordmark { font-size: .9rem; padding-inline: 8px; }
}
/* the narrowest phones: the mark alone, the yellow dot */
@media (max-width: 24rem) {
  .topbar .wordmark .word { display: none; }
  .topbar .wordmark { width: var(--bar-h); padding: 0; justify-content: center; }
  .topbar .wordmark .dot { margin: 0; width: .62em; height: .62em; }
}
