/* Words written in WordPress, set in the garden's own hand.
   A page Andie adds becomes a room; the built-in rooms show their page's words under the title. */

.entry { font: 400 clamp(18px, 1.6vw, 21px)/1.6 var(--f-read); color: var(--ink); max-width: 38em; }
.entry > * { margin: 0 0 1.1em; }
.entry h2, .entry h3, .entry h4 { font-family: var(--f-display); font-weight: 600; line-height: 1.1; margin: 1.4em 0 .5em; color: var(--ink); }
.entry h2 { font-size: clamp(30px, 3.4vw, 42px); }
.entry h3 { font-size: clamp(24px, 2.6vw, 32px); }
.entry h4 { font-size: 22px; }
.entry a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: .18em; }
.entry blockquote { margin: 1.4em 0; padding: .2em 0 .2em 1em; border-left: 3px solid var(--accent); font: italic 500 1.15em/1.45 var(--f-display); }
.entry ul, .entry ol { padding-left: 1.3em; }
.entry li { margin: 0 0 .4em; }
.entry hr { border: 0; border-top: 1.5px solid rgba(62, 59, 82, .25); margin: 2em 0; }
.entry img { max-width: 100%; height: auto; display: block; }
.entry figure { margin: 1.6em 0; }
.entry figure img { border: 1.5px solid var(--ink); background: #fff; padding: 8px; box-shadow: 0 10px 24px -14px rgba(62, 59, 82, .5); transform: rotate(-.6deg); }
.entry figure:nth-of-type(even) img { transform: rotate(.7deg); }
.entry figcaption { font: italic 400 15px/1.4 var(--f-display); margin-top: .6em; opacity: .8; }
.entry .wp-block-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 18px; }
.entry .wp-block-gallery figure { margin: 0; }
.entry iframe, .entry video { max-width: 100%; }
.entry .wp-block-embed__wrapper { position: relative; aspect-ratio: 16 / 9; }
.entry .wp-block-embed__wrapper iframe { position: absolute; inset: 0; width: 100%; height: 100%; }
.entry .wp-block-button__link { display: inline-block; padding: 10px 22px 9px; border: 1.5px solid var(--ink); border-radius: 3px; background: #f6dbe4; color: var(--ink); text-decoration: none; font: 500 19px/1.2 var(--f-display); }
.entry .has-text-align-center { text-align: center; }
.entry .alignwide, .entry .alignfull { max-width: none; }

/* under a built-in room's title */
.room-intro { margin: 8px 0 34px; }
.room-wall .room-intro { margin: 6px 0 0; }
.room-wall .room-intro p { font: italic 500 clamp(22px, 2.6vw, 30px)/1.25 var(--f-display); }

/* a room of her own */
.room-page .page-body { margin-top: 26px; }

/* the player hides a link a garden song doesn't have */
.dock__links [hidden] { display: none !important; }

/* opening a letter in the Reading Room: the card lifts and turns edge-on, the others fade, and the letter turns in */
.letters { perspective: 1600px; }
.letter-card.is-opening { position: relative; z-index: 5; pointer-events: none; animation: letter-turn-out .52s cubic-bezier(.4, 0, .3, 1) forwards; }
/* the rest of the room steps back while the letter is picked up */
#readIndex.is-picking > :not(.letters) { transition: opacity .35s ease; opacity: 0; }
.letter-card.is-leaving { pointer-events: none; transition: opacity .3s ease, transform .3s ease; opacity: 0; transform: rotate(var(--tilt, 0deg)) scale(.97); }
@keyframes letter-turn-out {
  0% { transform: rotate(var(--tilt, 0deg)) translateY(0) scale(1) rotateY(0); opacity: 1; }
  30% { transform: rotate(0deg) translateY(-18px) scale(1.08) rotateY(0); opacity: 1; box-shadow: 0 28px 44px -18px rgba(62, 59, 82, .5); }
  100% { transform: rotate(0deg) translateY(-18px) scale(1.16) rotateY(88deg); opacity: 0; }
}
#readArticle { perspective: 2000px; }
#readArticle .sheet-paper { --rest: -.45deg; }
#readArticle.is-turning-in > * { animation: letter-turn-in .6s cubic-bezier(.2, .7, .25, 1) backwards; transform-origin: 50% 30%; }
#readArticle.is-turning-in > .back-room { animation-name: letter-fade-in; }
@keyframes letter-turn-in {
  0% { opacity: 0; transform: rotateY(-75deg) scale(.92); }
  55% { opacity: 1; }
  100% { opacity: 1; transform: rotate(var(--rest, 0deg)); }
}
@keyframes letter-fade-in { from { opacity: 0; } to { opacity: 1; } }
.letters.is-settling .letter-card { animation: letter-settle .45s ease both; }
.letters.is-settling .letter-card:nth-child(2) { animation-delay: .05s; }
.letters.is-settling .letter-card:nth-child(3) { animation-delay: .1s; }
.letters.is-settling .letter-card:nth-child(n+4) { animation-delay: .15s; }
@keyframes letter-settle { from { opacity: 0; transform: rotate(var(--tilt, 0deg)) translateY(10px); } to { opacity: 1; transform: rotate(var(--tilt, 0deg)); } }
@media (prefers-reduced-motion: reduce) { .letter-card.is-opening, #readArticle.is-turning-in > *, .letters.is-settling .letter-card { animation: none !important; } }

/* the Archives: the film strip starts at the left edge of the page, with films all the way across */
.strip { padding-left: 0 !important; padding-right: 0 !important; }
/* films snap to the middle, so the one you play sits centered; the first and last can't go past the ends, so the strip still starts at the left edge */
.tape-frame { scroll-snap-align: center !important; }

/* the Listening Room: two, three or four records to a row, by Andie's choice or to suit how many there are */
.records[data-cols="2"] { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 820px; }
.records[data-cols="3"] { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.records[data-cols="4"] { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px 26px; }
.records[data-cols="4"] .placard b { font-size: 21px; }
@media (max-width: 1100px) { .records[data-cols="4"] { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 860px) { .records[data-cols] { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .records[data-cols] { grid-template-columns: 1fr; } }

/* a letter opened full size is a real sheet: ragged on every edge, a soft shadow under it, a little askew,
   with the tape lying across the top edge instead of trimmed off by it */
.sheet-paper { background: none !important; clip-path: none !important; isolation: isolate; transform: rotate(-.45deg);
  filter: drop-shadow(0 1px 0 rgba(74, 42, 28, .16)) drop-shadow(5px 12px 14px rgba(74, 42, 28, .26)); }
.sheet-paper::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background: #e9e1d4 url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='p'><feTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3'/><feColorMatrix values='0 0 0 0 .4  0 0 0 0 .34  0 0 0 0 .28  0 0 0 .2 0'/></filter><rect width='100%' height='100%' filter='url(%23p)'/></svg>");
  clip-path: polygon(1.20% 0.30%, 2.10% 0.30%, 2.99% 0.32%, 3.89% 0.12%, 4.78% 0.25%, 5.68% 0.29%, 6.57% 0.35%, 7.47% 0.05%, 8.36% 0.13%, 9.26% 0.05%, 10.15% 0.35%, 11.05% 0.30%, 11.94% 0.05%, 12.84% 0.44%, 13.74% 0.44%, 14.63% 0.31%, 15.53% 0.30%, 16.42% 0.10%, 17.32% 0.05%, 18.21% 0.27%, 19.11% 0.06%, 20.00% 0.11%, 20.90% 0.13%, 21.79% 0.05%, 22.69% 0.21%, 23.59% 0.19%, 24.48% 0.35%, 25.38% 0.19%, 26.27% 0.23%, 27.17% 0.15%, 28.06% 0.21%, 28.96% 0.11%, 29.85% 0.05%, 30.75% 0.33%, 31.64% 0.33%, 32.54% 0.26%, 33.43% 0.20%, 34.33% 0.05%, 35.23% 0.05%, 36.12% 0.05%, 37.02% 0.05%, 37.91% 0.29%, 38.81% 0.15%, 39.70% 0.36%, 40.60% 0.18%, 41.49% 0.45%, 42.39% 0.42%, 43.28% 0.07%, 44.18% 0.18%, 45.08% 0.50%, 45.97% 0.32%, 46.87% 0.55%, 47.76% 0.30%, 48.66% 0.16%, 49.55% 0.41%, 50.45% 0.48%, 51.34% 0.25%, 52.24% 0.16%, 53.13% 0.27%, 54.03% 0.54%, 54.92% 0.44%, 55.82% 0.16%, 56.72% 0.21%, 57.61% 0.15%, 58.51% 0.13%, 59.40% 0.46%, 60.30% 0.19%, 61.19% 0.37%, 62.09% 0.33%, 62.98% 0.23%, 63.88% 0.48%, 64.77% 0.23%, 65.67% 0.47%, 66.57% 0.26%, 67.46% 0.41%, 68.36% 0.33%, 69.25% 0.37%, 70.15% 0.69%, 71.04% 0.63%, 71.94% 0.41%, 72.83% 0.67%, 73.73% 0.38%, 74.62% 0.45%, 75.52% 0.65%, 76.41% 0.55%, 77.31% 0.30%, 78.21% 0.67%, 79.10% 0.31%, 80.00% 0.32%, 80.89% 0.52%, 81.79% 0.31%, 82.68% 0.28%, 83.58% 0.16%, 84.47% 0.15%, 85.37% 0.36%, 86.26% 0.20%, 87.16% 0.34%, 88.06% 0.24%, 88.95% 0.27%, 89.85% 0.49%, 90.74% 0.28%, 91.64% 0.33%, 92.53% 0.46%, 93.43% 0.16%, 94.32% 0.15%, 95.22% 0.49%, 96.11% 0.45%, 97.01% 0.21%, 97.90% 0.18%, 98.80% 0.42%, 99.65% 0.45%, 99.80% 1.20%, 99.84% 2.10%, 99.87% 2.99%, 99.92% 3.89%, 99.93% 4.78%, 99.77% 5.68%, 99.89% 6.57%, 99.82% 7.47%, 99.89% 8.36%, 99.80% 9.26%, 99.84% 10.15%, 99.89% 11.05%, 99.92% 11.94%, 99.83% 12.84%, 99.94% 13.74%, 99.91% 14.63%, 99.85% 15.53%, 99.80% 16.42%, 99.83% 17.32%, 99.89% 18.21%, 99.77% 19.11%, 99.89% 20.00%, 99.91% 20.90%, 99.86% 21.79%, 99.82% 22.69%, 99.88% 23.59%, 99.85% 24.48%, 99.82% 25.38%, 99.78% 26.27%, 99.85% 27.17%, 99.80% 28.06%, 99.71% 28.96%, 99.70% 29.85%, 99.75% 30.75%, 99.75% 31.64%, 99.77% 32.54%, 99.85% 33.43%, 99.88% 34.33%, 99.89% 35.23%, 99.75% 36.12%, 99.79% 37.02%, 99.75% 37.91%, 99.92% 38.81%, 99.82% 39.70%, 99.86% 40.60%, 99.82% 41.49%, 99.89% 42.39%, 99.78% 43.28%, 99.94% 44.18%, 99.86% 45.08%, 99.83% 45.97%, 99.80% 46.87%, 99.83% 47.76%, 99.83% 48.66%, 99.81% 49.55%, 99.79% 50.45%, 99.88% 51.34%, 99.83% 52.24%, 99.79% 53.13%, 99.80% 54.03%, 99.87% 54.92%, 99.81% 55.82%, 99.80% 56.72%, 99.86% 57.61%, 99.85% 58.51%, 99.90% 59.40%, 99.87% 60.30%, 99.88% 61.19%, 99.97% 62.09%, 99.89% 62.98%, 99.84% 63.88%, 99.87% 64.77%, 99.90% 65.67%, 99.96% 66.57%, 99.91% 67.46%, 99.94% 68.36%, 99.96% 69.25%, 99.90% 70.15%, 99.97% 71.04%, 99.91% 71.94%, 99.97% 72.83%, 99.93% 73.73%, 99.94% 74.62%, 99.97% 75.52%, 99.89% 76.41%, 99.92% 77.31%, 99.89% 78.21%, 99.84% 79.10%, 99.94% 80.00%, 99.97% 80.89%, 99.92% 81.79%, 99.86% 82.68%, 99.93% 83.58%, 99.94% 84.47%, 99.81% 85.37%, 99.85% 86.26%, 99.89% 87.16%, 99.82% 88.06%, 99.91% 88.95%, 99.86% 89.85%, 99.94% 90.74%, 99.90% 91.64%, 99.84% 92.53%, 99.83% 93.43%, 99.83% 94.32%, 99.91% 95.22%, 99.88% 96.11%, 99.92% 97.01%, 99.94% 97.90%, 99.88% 98.80%, 99.60% 99.30%, 98.80% 99.47%, 97.90% 99.90%, 97.01% 99.90%, 96.11% 99.74%, 95.22% 99.83%, 94.32% 99.84%, 93.43% 99.67%, 92.53% 99.49%, 91.64% 99.55%, 90.74% 99.65%, 89.85% 99.26%, 88.95% 99.13%, 88.06% 99.49%, 87.16% 99.74%, 86.26% 99.76%, 85.37% 99.17%, 84.47% 99.75%, 83.58% 99.29%, 82.68% 99.39%, 81.79% 99.58%, 80.89% 99.26%, 80.00% 99.80%, 79.10% 99.73%, 78.21% 99.51%, 77.31% 99.82%, 76.41% 99.25%, 75.52% 99.66%, 74.62% 99.72%, 73.73% 99.77%, 72.83% 99.35%, 71.94% 99.46%, 71.04% 99.31%, 70.15% 99.26%, 69.25% 99.13%, 68.36% 98.99%, 67.46% 99.16%, 66.57% 99.47%, 65.67% 99.25%, 64.77% 99.44%, 63.88% 99.54%, 62.98% 99.20%, 62.09% 99.03%, 61.19% 99.40%, 60.30% 99.34%, 59.40% 99.29%, 58.51% 99.06%, 57.61% 99.20%, 56.72% 99.16%, 55.82% 99.09%, 54.92% 99.37%, 54.03% 99.12%, 53.13% 99.07%, 52.24% 99.67%, 51.34% 99.11%, 50.45% 99.28%, 49.55% 99.72%, 48.66% 99.51%, 47.76% 99.41%, 46.87% 99.22%, 45.97% 99.60%, 45.08% 99.47%, 44.18% 99.25%, 43.28% 99.30%, 42.39% 99.20%, 41.49% 99.52%, 40.60% 99.38%, 39.70% 99.69%, 38.81% 99.32%, 37.91% 99.25%, 37.02% 99.37%, 36.12% 99.32%, 35.23% 99.68%, 34.33% 99.21%, 33.43% 99.17%, 32.54% 99.19%, 31.64% 99.52%, 30.75% 99.37%, 29.85% 99.72%, 28.96% 99.34%, 28.06% 99.41%, 27.17% 99.80%, 26.27% 99.90%, 25.38% 99.79%, 24.48% 99.74%, 23.59% 99.61%, 22.69% 99.82%, 21.79% 99.90%, 20.90% 99.62%, 20.00% 99.90%, 19.11% 99.62%, 18.21% 99.90%, 17.32% 99.90%, 16.42% 99.58%, 15.53% 99.90%, 14.63% 99.90%, 13.74% 99.70%, 12.84% 99.53%, 11.94% 99.42%, 11.05% 99.50%, 10.15% 99.30%, 9.26% 99.60%, 8.36% 99.26%, 7.47% 99.85%, 6.57% 99.75%, 5.68% 99.53%, 4.78% 99.69%, 3.89% 99.39%, 2.99% 99.46%, 2.10% 99.55%, 1.20% 99.33%, 0.35% 99.40%, 0.19% 98.80%, 0.20% 97.90%, 0.07% 97.01%, 0.17% 96.11%, 0.19% 95.22%, 0.10% 94.32%, 0.10% 93.43%, 0.03% 92.53%, 0.08% 91.64%, 0.07% 90.74%, 0.08% 89.85%, 0.03% 88.95%, 0.13% 88.06%, 0.05% 87.16%, 0.03% 86.26%, 0.10% 85.37%, 0.06% 84.47%, 0.05% 83.58%, 0.09% 82.68%, 0.03% 81.79%, 0.07% 80.89%, 0.06% 80.00%, 0.16% 79.10%, 0.16% 78.21%, 0.05% 77.31%, 0.09% 76.41%, 0.04% 75.52%, 0.10% 74.62%, 0.16% 73.73%, 0.18% 72.83%, 0.11% 71.94%, 0.08% 71.04%, 0.06% 70.15%, 0.13% 69.25%, 0.18% 68.36%, 0.04% 67.46%, 0.15% 66.57%, 0.03% 65.67%, 0.05% 64.77%, 0.05% 63.88%, 0.13% 62.98%, 0.07% 62.09%, 0.07% 61.19%, 0.12% 60.30%, 0.04% 59.40%, 0.15% 58.51%, 0.05% 57.61%, 0.13% 56.72%, 0.09% 55.82%, 0.09% 54.92%, 0.16% 54.03%, 0.15% 53.13%, 0.15% 52.24%, 0.16% 51.34%, 0.19% 50.45%, 0.14% 49.55%, 0.15% 48.66%, 0.23% 47.76%, 0.23% 46.87%, 0.22% 45.97%, 0.27% 45.08%, 0.23% 44.18%, 0.27% 43.28%, 0.16% 42.39%, 0.24% 41.49%, 0.25% 40.60%, 0.26% 39.70%, 0.15% 38.81%, 0.15% 37.91%, 0.24% 37.02%, 0.12% 36.12%, 0.25% 35.23%, 0.23% 34.33%, 0.10% 33.43%, 0.12% 32.54%, 0.20% 31.64%, 0.12% 30.75%, 0.09% 29.85%, 0.22% 28.96%, 0.15% 28.06%, 0.22% 27.17%, 0.11% 26.27%, 0.16% 25.38%, 0.21% 24.48%, 0.10% 23.59%, 0.13% 22.69%, 0.21% 21.79%, 0.25% 20.90%, 0.26% 20.00%, 0.11% 19.11%, 0.17% 18.21%, 0.21% 17.32%, 0.16% 16.42%, 0.18% 15.53%, 0.09% 14.63%, 0.06% 13.74%, 0.05% 12.84%, 0.03% 11.94%, 0.11% 11.05%, 0.09% 10.15%, 0.10% 9.26%, 0.03% 8.36%, 0.03% 7.47%, 0.03% 6.57%, 0.12% 5.68%, 0.15% 4.78%, 0.13% 3.89%, 0.03% 2.99%, 0.03% 2.10%, 0.15% 1.20%, 0.30% 0.40%); }
.sheet-paper .tape--l { top: -6px; left: 3%; z-index: 2; }

/* buttons, menu tabs and links ease into their hover color instead of switching at once */
.btn, .back-walk, .back-room, .walk__prompt .btn, .walk__end .btn, .reel__go, .file-pick, .pc-styles label, .menu-btn, .close, .threshold__skip {
  transition: background-color .28s ease, color .28s ease, border-color .28s ease, box-shadow .28s ease, transform .28s ease !important;
}
.rooms-nav a { transition: background-color .28s ease, color .28s ease, transform .28s ease !important; }
.menu__card nav a, .entry a, .letter-share a, .foot a, .dock__links a { transition: color .25s ease, opacity .25s ease; }
.btn:hover, .back-walk:hover, .back-room:hover { transform: translateY(-1px); }
@media (prefers-reduced-motion: reduce) { .btn, .back-walk, .back-room, .rooms-nav a { transition: none !important; } }
/* the tabs paint their paper from --rc; registered as a color, it can ease from one to the next */
@property --rc { syntax: '<color>'; inherits: true; initial-value: #fffdf8; }
.rooms-nav a, .menu-btn { transition: --rc .1s ease-out, color .1s ease-out, transform .1s ease-out !important; }
/* the hover paint is Andie's pick on The Road screen */
.rooms-nav a:hover, .rooms-nav a:focus-visible, .menu-btn:hover { --rc: var(--nav-hover, #f7ecc8) !important; }
.rooms-nav a::before, .menu-btn::before { transition: none !important; }   /* one fade only: --rc on the tab itself */

/* no underlined links anywhere: a way back is a proper button, and links in text read by their color */
a, a:hover, .file-pick, .mod, .postcard .mod, .clips a:hover, .foot__social a:hover { text-decoration: none !important; }
.back-room { display: inline-block !important; border: 1px solid rgba(62, 59, 82, .45) !important; background: #fbf6ee !important; padding: 9px 18px 8px !important;
  border-radius: 2px !important; font: 500 16px/1.2 var(--f-display) !important; color: var(--ink) !important; margin-bottom: 18px; }
.back-room:hover { background: #f1e3c9 !important; }
.letter-share a { display: inline-block; border: 1px solid rgba(62, 59, 82, .45); background: #fbf6ee; padding: 8px 16px 7px; border-radius: 2px;
  font: 500 15px/1.2 var(--f-display); color: var(--ink); letter-spacing: 0; transition: background-color .28s ease, transform .28s ease; }
.letter-share a:hover { background: #f1e3c9; transform: translateY(-1px); }
.file-pick { display: inline-block; border: 1px solid rgba(62, 59, 82, .45); background: #fbf6ee; padding: 8px 14px 7px; border-radius: 2px; font: 500 14px/1.2 var(--f-display) !important; color: var(--ink); }
.file-pick:hover { background: #f1e3c9; }
.entry a { color: var(--accent); font-weight: 500; transition: color .25s ease, background-color .25s ease; border-radius: 2px; }
.entry a:hover { background: rgba(246, 219, 228, .7); color: var(--ink); }
.dock__links a { border-bottom: 0 !important; transition: color .25s ease; }
.dock__links a:hover { color: #c9688b !important; }
/* footer links behave like Design by BOA: the ink color, fading from soft to full */
.foot__social a { color: inherit !important; transition: opacity .28s ease; }
.foot__social a:hover { opacity: 1; color: inherit !important; }
.boa-credit { transition: opacity .28s ease; }

/* the film strip's arrows fade in only when there is a film that way */
.reel__go { transition: opacity .3s ease, visibility 0s linear 0s, background-color .28s ease !important; }
.reel__go.is-off { opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .3s ease, visibility 0s linear .3s !important; }

/* the film strip can be grabbed with a mouse; while it is held, snapping waits so it follows the hand */
@media (hover: hover) { .strip { cursor: grab; } }
.strip.is-grabbing { cursor: grabbing; scroll-snap-type: none !important; scroll-behavior: auto !important; user-select: none; }
.strip.is-grabbing video, .strip.is-grabbing .tape-frame__play { pointer-events: none; }
/* fingers: smooth native swiping, sideways for the strip and up and down for the page */
.strip { touch-action: pan-x pan-y; -webkit-overflow-scrolling: touch; scroll-behavior: smooth; }

/* the film strip arrows: a drawn chevron, centered in its circle */
.reel__go { display: flex !important; align-items: center; justify-content: center; padding: 0 !important; }
.reel__go svg { width: 22px; height: 22px; fill: none; stroke: var(--ink); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; display: block; }

/* the watering can and every button: no grey tap flash or focus box from the browser when tapped or clicked */
.can, button, a, label { -webkit-tap-highlight-color: transparent; }
.can { -webkit-appearance: none; appearance: none; background: none; border: 0; padding: 0; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.can:focus, button:focus:not(:focus-visible), a:focus:not(:focus-visible) { outline: none; }
.can:focus-visible { outline: 2px dashed #c9688b; outline-offset: 6px; }

/* the walking instructions wait until the garden has finished painting */
.walk:not(.is-ready) .walk__hint { opacity: 0 !important; visibility: hidden !important; transition: none !important; }

/* phones: iPhone Safari colors the strip behind the status bar from a solid fixed element at the top of the page, and shows
   the page through when there isn't one. so in the rooms the header is a solid color, with its soft fade hung underneath it */
body:not(.on-walk) .topbar { background: none !important; background-color: var(--bg) !important; padding-top: max(14px, env(safe-area-inset-top)); padding-bottom: 12px; }
body:not(.on-walk) .topbar::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 22px; pointer-events: none;
  background: linear-gradient(var(--bg), color-mix(in srgb, var(--bg) 0%, transparent)); }
/* the Rooms menu: a solid strip at the very top takes the dimmed color at once, so the status bar doesn't lag behind the menu */
html.menu-open::before { content: ""; position: fixed; top: 0; left: 0; right: 0; height: 4px; z-index: 130; pointer-events: none;
  background-color: color-mix(in srgb, var(--bg) 65%, rgb(40, 38, 52)); }

/* while the garden paints: the progress bar waits, and the dots on the card rise and fade one after another */
.walk:not(.is-ready) .walk__bar { opacity: 0; visibility: hidden; }
.walk__bar { transition: opacity .5s ease; }
.walk__load .dots { display: inline-block; white-space: nowrap; }
.walk__load .dots i { font-style: normal; display: inline-block; animation: load-dot 1.3s ease-in-out infinite both; }
.walk__load .dots i:nth-child(2) { animation-delay: .18s; }
.walk__load .dots i:nth-child(3) { animation-delay: .36s; }
@keyframes load-dot { 0%, 70%, 100% { opacity: .2; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-4px); } }
@media (prefers-reduced-motion: reduce) { .walk__load .dots i { animation-duration: 2.4s; transform: none !important; } }

/* phones and tablets: a room scrolls inside its own full-screen frame and the page itself stays still, so newer iPhone
   Safari has nothing to draw up behind the status bar */
@media (hover: none) {
  html:has(body:not(.on-walk)), body:not(.on-walk) { height: 100%; overflow: hidden; }
  body:not(.on-walk) .rooms { position: fixed; inset: 0; overflow-y: auto; overflow-x: hidden; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; z-index: 2; }
}

/* a film's still is a picture of its own, cropped to the frame; iPhone Safari stretches a video's built-in still instead */
.tape-frame__still { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; pointer-events: none; transition: opacity .3s ease; }
.tape-frame.has-played .tape-frame__still { opacity: 0; }
.tape-frame__play { z-index: 2; }

/* Upcoming Shows: each show is a paper handbill. the paper sits on a layer of its own with a torn edge (drawn to its size by
   tear() in app3.js), the show's color is only a faint, dusty tint on it, and the shadow follows the torn shape */
.bill { background: none !important; border: 0 !important; box-shadow: none !important; overflow: visible !important; isolation: isolate;
  filter: drop-shadow(0 1px 1px rgba(62, 59, 82, .14)) drop-shadow(0 8px 12px rgba(62, 59, 82, .18)); }
.bill::before { display: block !important; content: "" !important; position: absolute !important; inset: 0 !important; z-index: -1; width: auto !important; height: auto !important;
  border-radius: 0 !important; opacity: 1 !important; mix-blend-mode: normal !important; transform: none !important;
  background:
    url(../img/paper-grain.png) 0 0 / 220px,
    linear-gradient(100deg, color-mix(in oklab, color-mix(in oklab, var(--bill, #f6c445) 80%, #b5b4b2) 27%, #f7f4ef) 0%,
      color-mix(in oklab, color-mix(in oklab, var(--bill, #f6c445) 80%, #b5b4b2) 16%, #f7f4ef) 70%,
      color-mix(in oklab, color-mix(in oklab, var(--bill, #f6c445) 80%, #b5b4b2) 22%, #f7f4ef) 100%) !important;
  -webkit-mask: var(--torn, none) 0 0 / 100% 100% no-repeat; mask: var(--torn, none) 0 0 / 100% 100% no-repeat; }
/* a strip of tape holding each handbill up */
.bill::after { content: ""; position: absolute; top: -9px; left: 46%; width: 86px; height: 20px; transform: rotate(-3deg);
  background: rgba(246, 222, 160, .72); box-shadow: 0 1px 2px rgba(74, 42, 28, .18); pointer-events: none; }
.bill:nth-child(even)::after { left: 30%; transform: rotate(2.5deg); }
.bill .when { border-right-color: rgba(62, 59, 82, .3) !important; }
.bill.is-past::before { background: url(../img/paper-grain.png) 0 0 / 220px, #f1ebe0 !important; }
.bill .go { background: #fbf6ee !important; }

/* the Reading Room: letters gather in the middle of the page, and only fill the width once there are enough to fill a row.
   the sign-up sits centered under them */
.letters { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 340px)) !important; justify-content: center; }
.reading-foot { margin-left: auto !important; margin-right: auto !important; text-align: center; }
.reading-foot .sign-up .row, .reading-foot .sign-up > .btn { margin-left: auto; margin-right: auto; }
.reading-foot .form-msg { text-align: center; }

/* Upcoming Shows: the handbills, the note when there are none, and the words above them sit in the middle of the page */
#room-stage .bills, #room-stage .room-intro, #room-stage .empty-note { margin-left: auto !important; margin-right: auto !important; }
#room-stage .room-intro, #room-stage .empty-note { max-width: 920px; }

/* "Back to the road" always sits above the header and its fade (the header is 60; the Rooms menu, 120, still covers both) */
.back-walk { z-index: 65 !important; }
body.on-walk .back-walk, body.at-door .back-walk { display: none !important; }   /* it lives outside the rooms now, so it hides itself on the walk */

/* the loading card keeps "Painting the garden…" on one line, a touch smaller on narrow phones so it fits */
.walk__load { white-space: nowrap; max-width: calc(100vw - 32px); }
@media (max-width: 480px) { .walk__load { font-size: clamp(20px, 6.2vw, 26px) !important; padding: 12px 18px 10px !important; } }

/* the Rooms menu fades in and out: the dimmed backdrop eases in and the card drifts up into place, and the reverse on close */
.menu { display: grid !important; opacity: 0; visibility: hidden; pointer-events: none; animation: none !important;
  transition: opacity .32s ease, visibility 0s linear .32s; }
.menu.is-open { opacity: 1; visibility: visible; pointer-events: auto; transition: opacity .32s ease, visibility 0s; }
.menu .menu__card { transform: translateY(14px) scale(.98) rotate(-.8deg) !important; transition: transform .38s cubic-bezier(.2, .7, .25, 1); }
.menu.is-open .menu__card { transform: rotate(-.8deg) !important; }   /* keeps its slight paper tilt */
html.menu-open::before { animation: menu-strip .32s ease both; }
@keyframes menu-strip { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .menu, .menu .menu__card { transition: none; } }

/* the Reading Room's cards wait for their pictures, then fade in together; the picture keeps its height so nothing shifts */
.letters { transition: opacity .45s ease; }
.letters.is-loading { opacity: 0; }
.letter-card img { height: 180px; width: auto; max-width: 100%; }
/* the goodnight at the door: two lines, each kept whole */
.walk__end > div { max-width: none !important; }
.walk__end h2 { white-space: nowrap; font-size: clamp(22px, 5.6vw, 30px) !important; }

/* the nav tabs: the whole slip of paper takes the click, edges and shadow included.
   the tab no longer lifts on hover, because the lift pulled its bottom edge out from under the cursor */
.rooms-nav a:hover, .rooms-nav a:focus-visible { transform: none !important; }
.rooms-nav a:nth-child(odd):hover, .rooms-nav a:nth-child(odd):focus-visible { transform: rotate(-1deg) !important; }
.rooms-nav a:nth-child(even):hover, .rooms-nav a:nth-child(even):focus-visible { transform: rotate(.8deg) !important; }
.rooms-nav a::after, .menu-btn::after { content: ''; position: absolute; inset: -5px -3px -7px; }
.rooms-nav { position: relative; z-index: 2; }
