/* Andie Mechanic, third version. Old postcards, typed letters and a sunny
   painted garden. Warm color everywhere, and the darkest thing on the page is brown ink. */

:root {
  --paper: #fbf3e4;
  --paper-2: #f3e6cf;
  --ink: #4a2a1c;
  --ink-soft: #7a5440;
  --pen: #2f4b8a;
  --tomato: #e8553e;
  --tangerine: #f08a3c;
  --yolk: #f6c445;
  --pink: #ec6fa4;
  --sky: #5bb8db;
  --leaf: #7cc35a;
  --lilac: #c985d1;
  --bg: var(--paper);
  --fg: var(--ink);
  --accent: var(--tomato);
  --accent-2: var(--yolk);
  --line: rgba(74, 42, 28, .28);
  --f-type: 'Special Elite', 'Courier Prime', 'Courier New', monospace;
  --f-hand: 'Caveat', 'Bradley Hand', cursive;
  --f-sig: 'Mrs Saint Delafield', 'Snell Roundhand', cursive;
}
body[data-room="walk"] { --bg: #8fd0ea; }
body[data-room="listening"] { --bg: #fde3cf; --fg: var(--ink); --accent: var(--tomato); --accent-2: var(--yolk); }
body[data-room="stage"] { --bg: #fbe0ec; --fg: var(--ink); --accent: var(--pink); --accent-2: var(--yolk); }
body[data-room="reading"] { --bg: #f4ecdd; --fg: var(--ink); --accent: #9aa24e; --accent-2: var(--tomato); }
body[data-room="wall"] { --bg: #f6e3c6; --fg: var(--ink); --accent: var(--sky); --accent-2: var(--tomato); }
body[data-room="archives"] { --bg: #fdeab0; --fg: var(--ink); --accent: var(--tangerine); --accent-2: var(--tomato); }
body[data-room="about"] { --bg: #e3f1e0; --fg: var(--ink); --accent: var(--leaf); --accent-2: var(--pink); }
body[data-room="wing-truman"] { --bg: #cfe8f2; --fg: var(--ink); --accent: var(--tomato); --accent-2: var(--sky); --line: rgba(74, 42, 28, .28); }
body[data-room="wing-chuckle"] { --bg: #d7ecf2; --fg: var(--ink); --accent: #2f7fae; --accent-2: var(--pink); --line: rgba(74, 42, 28, .28); }
body[data-room="wing-allaboutme"] { --bg: #ece0f7; --fg: var(--ink); --accent: #8a5cc4; --accent-2: var(--yolk); --line: rgba(74, 42, 28, .28); }
body[data-room="wing-instate"] { --bg: #efe6d3; --fg: var(--ink); --accent: #9aa24e; --accent-2: var(--tangerine); --line: rgba(74, 42, 28, .28); }
body[data-room="wing-singles"] { --bg: #fcdccb; --fg: var(--ink); --accent: var(--tomato); --accent-2: var(--leaf); --line: rgba(74, 42, 28, .28); }
body[data-room]::before { mix-blend-mode: multiply !important; opacity: .13 !important; }

body { font-family: var(--f-type); font-size: 15px; }
.ink, .ink-hard { filter: none; }

/* ---------- top bar ---------- */
.topbar { align-items: center; gap: 18px; }
.mark { font-size: 24px; color: var(--ink); text-shadow: 2px 2px 0 var(--yolk); }
.mark span { color: var(--tomato); }
.rooms-nav { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.rooms-nav a {
  font: 700 17px/1 var(--f-hand); text-decoration: none; color: var(--ink);
  padding: 8px 12px 7px; border: 2px solid var(--ink); border-radius: 14px 18px 12px 16px / 16px 12px 18px 14px;
  background: #fffaf0; box-shadow: 2px 3px 0 var(--ink); transition: transform .2s var(--ease), background .2s;
}
.rooms-nav a:hover, .rooms-nav a:focus-visible { transform: translateY(-2px) rotate(-1.5deg); background: var(--yolk); }
.rooms-nav a.is-here { background: var(--tomato); color: #fffaf0; }
.menu-btn { display: none; font: 700 19px/1 var(--f-hand); color: var(--ink); padding: 9px 16px 8px; background: #fffaf0; border: 2px solid var(--ink); border-radius: 16px 12px 18px 14px; box-shadow: 2px 3px 0 var(--ink); }
body.on-walk .topbar { background: none; }
body.on-walk .mark { color: #fffaf0; text-shadow: 2px 2px 0 var(--ink), -1px -1px 0 var(--ink), 1px -1px 0 var(--ink), -1px 1px 0 var(--ink); }
body.on-walk .mark span { color: var(--yolk); }
@media (max-width: 1040px) { .rooms-nav { display: none; } .menu-btn { display: inline-block; } }

.menu { position: fixed; inset: 0; z-index: 120; display: none; place-items: center; background: rgba(74, 42, 28, .45); padding: 20px; }
.menu.is-open { display: grid; animation: roomIn .3s var(--ease) both; }
.menu__card {
  position: relative; width: min(440px, 100%); padding: 34px 28px 28px; background: #fffaf0; color: var(--ink);
  border: 10px solid transparent; border-image: repeating-linear-gradient(45deg, var(--tomato) 0 12px, #fffaf0 12px 22px, var(--sky) 22px 34px, #fffaf0 34px 44px) 10;
  box-shadow: 0 30px 60px -20px rgba(74, 42, 28, .6); transform: rotate(-1.2deg);
}
.menu__over { font: 400 13px var(--f-type); letter-spacing: .2em; text-transform: uppercase; margin: 0; }
.menu__card h2 { font: italic 900 40px/1 var(--f-display); margin: 4px 0 18px; color: var(--tomato); text-shadow: 2px 2px 0 var(--yolk); }
.menu__card nav { display: grid; gap: 2px; }
.menu__card nav a { font: 700 26px/1.25 var(--f-hand); color: var(--ink); text-decoration: none; padding: 4px 0; border-bottom: 1.5px dashed var(--line); }
.menu__card nav a:hover { color: var(--tomato); }
.menu .close { position: absolute; top: 8px; right: 12px; font: 700 18px var(--f-hand); }

/* ---------- the threshold ---------- */
.threshold {
  position: fixed; inset: 0; z-index: 200; display: none; place-items: center; overflow: auto;
  padding: 20px 16px; touch-action: none;
  background:
    url(../img/paper-grain.png),
    radial-gradient(circle at 50% 46%, #fff6e2 0 22%, transparent 60%),
    repeating-conic-gradient(from 0deg at 50% 46%, #fde3cf 0 7.5deg, #fbd2c4 7.5deg 15deg);
}
.threshold.is-on { display: grid; }
.threshold.is-leaving { animation: thOut .9s var(--ease) both; }
@keyframes thOut { to { opacity: 0; transform: scale(1.08); filter: blur(4px); } }
body.at-door { overflow: hidden; }
body.at-door .topbar, body.at-door .dock { visibility: hidden; }
.threshold__card {
  position: relative; width: min(520px, 100%); text-align: center; color: var(--ink);
  background: #fffaf0; padding: 26px 22px 22px;
  border: 2px solid var(--ink); border-radius: 6px; box-shadow: 8px 10px 0 rgba(74, 42, 28, .85);
}
.threshold__card::before { content: ""; position: absolute; inset: 8px; border: 1.5px dashed rgba(74, 42, 28, .35); pointer-events: none; }
.threshold__over { font: 400 12px var(--f-type); letter-spacing: .24em; text-transform: uppercase; margin: 0; }
.threshold__name { font: italic 900 clamp(40px, 9vw, 64px)/1 var(--f-display); margin: 6px 0 4px; color: var(--tomato); text-shadow: 3px 3px 0 var(--yolk); padding: .05em .15em; }
.garden-pot { position: relative; width: min(320px, 74vw); aspect-ratio: 400 / 500; margin: 0 auto; }
.garden-pot.pop .pot-art { animation: pop .5s var(--ease); }
@keyframes pop { 40% { transform: scale(1.04, .97); } 70% { transform: scale(.98, 1.03); } }
.pot-art { width: 100%; height: 100%; overflow: visible; transform-origin: 50% 100%; }
.can { position: absolute; left: 66%; top: 30%; width: 34%; aspect-ratio: 160 / 110; cursor: grab; touch-action: none; z-index: 3; transition: transform .35s var(--ease), left .6s var(--ease), top .6s var(--ease); transform-origin: 70% 60%; }
.can svg { width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.can:hover { transform: rotate(-6deg); }
.can.held { cursor: grabbing; transition: transform .25s var(--ease); }
.can.pour { transform: rotate(-34deg); }
.can.auto { left: 46%; top: 6%; }
.can:focus-visible { outline: 2px dashed var(--tomato); outline-offset: 4px; }
.drop { position: absolute; left: -2.5px; top: -3.5px; width: 5px; height: 7px; border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%; z-index: 4; pointer-events: none; will-change: transform; background: radial-gradient(circle at 35% 30%, rgba(255,255,255,.95) 0 18%, rgba(170,215,240,.8) 40%, rgba(90,160,210,.75) 100%); box-shadow: 0 0 1px rgba(60,120,170,.35); }
.splash { position: absolute; left: -7px; top: -3px; width: 14px; height: 6px; border: 1.5px solid rgba(120,185,225,.8); border-bottom: 0; border-radius: 50% 50% 0 0; z-index: 2; pointer-events: none; animation: splash .4s ease-out forwards; }
@keyframes splash { from { opacity: 1; scale: .4; } to { opacity: 0; scale: 1.3; } }
.threshold__how { font: 700 22px/1.2 var(--f-hand); margin: 8px 0 10px; }
.threshold__meter { height: 10px; border: 2px solid var(--ink); border-radius: 8px; overflow: hidden; background: #fff; margin: 0 auto; width: min(260px, 70%); }
.threshold__meter i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--tomato), var(--tangerine), var(--yolk), var(--leaf), var(--sky), #7b80d4, var(--lilac)) 0 0 / 260px 100% no-repeat; transition: width .2s; }
.threshold__song { font: 400 11px var(--f-type); letter-spacing: .14em; text-transform: uppercase; opacity: .7; margin: 14px 0 6px; }
.threshold__skip { font: 400 12px var(--f-type); color: var(--ink-soft); }

/* ---------- the walk ---------- */
.walk { position: fixed; inset: 0; z-index: 1; background: #fbf3e4; touch-action: none; overflow: hidden; }
body:not(.on-walk) .walk { display: none; }
body.on-walk { overflow: hidden; height: 100%; }
body.on-walk .rooms, body.on-walk .foot { display: none; }
.walk__canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: 0; transition: opacity .7s ease; }
.walk.is-ready .walk__canvas { opacity: 1; }
.walk__load { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); font: 700 26px var(--f-hand); color: var(--ink); background: #fffaf0; padding: 10px 18px; border: 2px solid var(--ink); border-radius: 14px; }
.walk__ui { position: absolute; inset: 0; pointer-events: none; color: var(--ink); }
.walk__ui > * { pointer-events: auto; }
.walk__hint {
  position: absolute; left: 50%; top: 84px; transform: translateX(-50%); pointer-events: none;
  font: 700 21px/1.15 var(--f-hand); text-align: center; color: var(--ink); background: #fffaf0; padding: 7px 16px 6px;
  border: 2px solid var(--ink); border-radius: 16px 12px 18px 14px; box-shadow: 2px 3px 0 var(--ink); transition: opacity .8s, transform .8s; max-width: calc(100vw - 32px);
}
.walk__hint.is-gone { opacity: 0; transform: translate(-50%, -10px); }
.walk__bar { position: absolute; left: var(--gutter); right: var(--gutter); bottom: calc(var(--dock-h) + 26px); height: 8px; border: 2px solid var(--ink); border-radius: 6px; background: #fffaf0; pointer-events: none; overflow: hidden; }
.walk__bar i { position: absolute; inset: 0 auto 0 0; width: 0; background: repeating-linear-gradient(90deg, var(--tomato) 0, var(--tangerine) 50px, var(--yolk) 100px, var(--leaf) 150px, var(--sky) 200px, #7b80d4 250px, var(--lilac) 300px, var(--tomato) 350px); }
.walk__card, .walk__prompt {
  position: absolute; left: 50%; bottom: calc(var(--dock-h) + 50px); transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  background: #fffaf0; color: var(--ink); border: 2px solid var(--ink); border-radius: 18px 14px 20px 16px; box-shadow: 4px 5px 0 var(--ink);
  padding: 14px 20px; text-align: center; transition: opacity .4s, transform .4s var(--ease); width: max-content; max-width: min(420px, calc(100vw - 32px));
}
.walk__card.is-on, .walk__prompt.is-on { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.walk__card span { display: block; font: 400 11px var(--f-type); letter-spacing: .16em; text-transform: uppercase; opacity: .7; }
.walk__card b { display: block; font: italic 800 24px/1.1 var(--f-display); margin: 4px 0 8px; }
.walk__card a { font: 700 19px var(--f-hand); color: var(--tomato); }
.walk__prompt p { margin: 0 0 10px; font: 700 21px/1.2 var(--f-hand); }
.walk__prompt .btn { font-family: var(--f-hand); font-weight: 700; font-size: 20px; padding: 10px 22px 8px; background: var(--yolk); border: 2px solid var(--ink); border-radius: 16px 12px 18px 14px; color: var(--ink); }
.walk__prompt .btn[hidden] { display: none; }
.walk.has-card .walk__prompt { bottom: calc(var(--dock-h) + 160px); }
.walk__tally { position: absolute; left: var(--gutter); top: 74px; margin: 0; font: 700 19px var(--f-hand); background: var(--yolk); color: var(--ink); padding: 5px 12px 4px; border: 2px solid var(--ink); border-radius: 12px 16px 12px 16px; transform: rotate(-2deg); pointer-events: none; }
.walk__end { position: absolute; inset: 0; display: grid; place-items: end start; padding-left: calc(50% + 150px) !important; opacity: 0; pointer-events: none; transition: opacity .8s; padding: 20px 20px calc(var(--dock-h) + 52px); }
.walk__end.is-on { opacity: 1; }
.walk__end.is-on > div { pointer-events: auto; }
.walk__end > div { background: #fffaf0; color: var(--ink); padding: 26px 30px; text-align: center; border: 2px solid var(--ink); border-radius: 6px; box-shadow: 6px 8px 0 var(--ink); max-width: 330px; transform: rotate(-1.5deg); }
.walk__end h2 { font: italic 900 27px/1.05 var(--f-display); margin: 0 0 8px; color: var(--sky); text-shadow: 2px 2px 0 var(--ink); }
.walk__end p { margin: 0 0 14px; font-family: var(--f-read); font-size: 16px; }
.walk__end .btn { font: 700 21px var(--f-hand); background: var(--yolk); border: 2px solid var(--ink); border-radius: 16px 12px 18px 14px; padding: 10px 22px 8px; color: var(--ink); }
.walk__wipe { position: absolute; inset: 0; background: radial-gradient(circle, #fffaf0 0 40%, #d6f1fb 100%); opacity: 0; pointer-events: none; transition: opacity .6s; z-index: 5; }
.walk__wipe.is-on { opacity: 1; }
.walk__fallback { position: absolute; inset: 0; display: grid; place-items: center; padding: 100px 20px calc(var(--dock-h) + 40px); text-align: center;
  background: linear-gradient(#8fd0ea, #cfeaf5 48%, #fde7c4 58%, #9ad46a 58%, #7cc35a); }
.walk__fallback > div { background: #fffaf0; border: 2px solid var(--ink); box-shadow: 6px 8px 0 var(--ink); padding: 24px; max-width: 440px; }
.walk__fallback h2 { font: italic 900 34px var(--f-display); margin: 0 0 6px; color: var(--tomato); }
.fallback-rooms { display: grid; gap: 4px; margin-top: 12px; }
.fallback-rooms a { font: 700 22px var(--f-hand); color: var(--ink); }
@media (max-width: 640px) { .walk__hint { top: 72px; font-size: 18px; } .walk__tally { top: auto; bottom: calc(var(--dock-h) + 46px); font-size: 16px; } .walk__bar { bottom: calc(var(--dock-h) + 20px); } }

/* ---------- rooms over the walk ---------- */
.rooms { position: relative; z-index: 2; }
.back-walk { position: fixed; left: var(--page, var(--gutter)); top: 70px; z-index: 55; font: 700 18px var(--f-hand); color: var(--ink); text-decoration: none; background: #fffaf0; padding: 4px 12px 3px; border: 2px solid var(--ink); border-radius: 12px 16px 12px 16px; box-shadow: 2px 3px 0 var(--ink); }
.back-walk:hover { background: var(--yolk); }
.back-room { display: inline-block; font: 700 19px var(--f-hand); color: var(--ink); margin-bottom: 14px; }
.room { padding-top: 120px; }
.eyebrow { font-family: var(--f-type); letter-spacing: .2em; }
.room-title { font-weight: 900; color: var(--accent); text-shadow: 3px 3px 0 var(--accent-2), 6px 6px 0 rgba(74, 42, 28, .85); padding: .05em .12em .12em 0; }
.wall-text { font-family: var(--f-read); font-size: 18px; line-height: 1.5; }
.btn { font-family: var(--f-hand); font-weight: 700; font-size: 19px; }
.empty-note { font-family: var(--f-read); }

/* the player is a cream ticket now */
.dock { background: #fffaf0; color: var(--ink); border: 2px solid var(--ink); box-shadow: 4px 6px 0 rgba(74, 42, 28, .9); }
.dock__btns .play { background: var(--yolk); border: 2px solid var(--ink); color: var(--ink); }
.dock__title { font: 700 19px var(--f-hand); }
.dock__sub, .dock__links, .dock__time { font-family: var(--f-type); }
.dock__art { background: var(--paper-2); }

.foot { position: relative; z-index: 2; font-family: var(--f-type); }
.sheet { background: rgba(74, 42, 28, .55); }
.sheet .close { color: #fffaf0; font: 700 20px var(--f-hand); text-shadow: 1px 1px 0 var(--ink); }
.sheet-wait { color: #fffaf0; font: 700 24px var(--f-hand); }

/* ---------- records ---------- */
.record__art img { box-shadow: 6px 8px 0 rgba(74, 42, 28, .85); }
.placard { font-family: var(--f-type); }
.placard b { font-family: var(--f-display); }
.hung img { box-shadow: 8px 10px 0 rgba(74, 42, 28, .85); }
.label-card { background: #fffaf0; font-family: var(--f-type); }
.track { font-family: var(--f-type); background: color-mix(in srgb, #fffaf0 55%, transparent); }

/* ---------- shows: handbills ---------- */
.bills { display: grid; gap: 28px; margin-top: 36px; max-width: 920px; }
.bill { background: var(--bill, var(--yolk)); color: var(--ink); border: 2.5px solid var(--ink); box-shadow: 6px 8px 0 var(--ink); overflow: hidden; }
.bill::before { content: ""; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%; pointer-events: none;
  background: repeating-conic-gradient(rgba(255, 250, 240, .45) 0 10deg, transparent 10deg 20deg); }
.bill > * { position: relative; }
.bill h3 { font-size: 30px; }
.bill .when { border-right-color: rgba(74, 42, 28, .45); color: var(--ink); }
.bill .go { color: var(--ink); font: 700 19px var(--f-hand); }
.bill.is-past { background: color-mix(in srgb, var(--bill) 40%, #fffaf0); opacity: .85; }
@media (max-width: 640px) { .bill { grid-template-columns: 1fr; } .bill .when { border-right: 0; border-bottom: 2px dashed rgba(74, 42, 28, .45); padding: 0 0 10px; text-align: left; } }

/* ---------- reading room: typed letters ---------- */
.letters { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 40px 34px; margin-top: 40px; }
.letter-card {
  position: relative; display: block; text-decoration: none; color: var(--ink); text-align: center;
  background: #eee6d8; padding: 34px 26px 26px; transform: rotate(var(--tilt));
  box-shadow: 0 1px 0 rgba(74, 42, 28, .2), 6px 10px 18px -8px rgba(74, 42, 28, .45);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='p'><feTurbulence type='fractalNoise' baseFrequency='.7' numOctaves='3'/><feColorMatrix values='0 0 0 0 .45  0 0 0 0 .38  0 0 0 0 .3  0 0 0 .18 0'/></filter><rect width='100%' height='100%' filter='url(%23p)'/></svg>");
  transition: transform .3s var(--ease);
}
.letter-card:hover { transform: rotate(0) translateY(-4px); }
.letter-card h3 { font: 400 20px/1.3 var(--f-type); letter-spacing: .14em; text-transform: uppercase; margin: 0 0 14px; }
.letter-card p { font: 400 14px/1.8 var(--f-type); margin: 0 0 16px; }
.letter-card img { max-height: 180px; margin: 0 auto 14px; object-fit: cover; }
.letter-card small { font: 400 11px var(--f-type); letter-spacing: .14em; opacity: .7; }
.tape { position: absolute; width: 96px; height: 26px; background: rgba(246, 222, 160, .78); box-shadow: 0 1px 2px rgba(74, 42, 28, .2); left: 50%; top: -12px; transform: translateX(-50%) rotate(-4deg); }
.reading-foot { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 40px; margin-top: 70px; max-width: 980px; }
.sign-up h4, .clippings h4 { font: italic 800 26px var(--f-display); margin: 0 0 10px; }
.sign-up .field { font-family: var(--f-type); margin-bottom: 12px; }
@media (max-width: 760px) { .reading-foot { grid-template-columns: 1fr; } }
.letter-page { max-width: 720px; margin: 0 auto; text-align: center; }
.letter-title { font: 400 clamp(24px, 4vw, 34px)/1.25 var(--f-type); letter-spacing: .12em; text-transform: uppercase; margin: 20px 0 10px; }
.burst { width: 40px; height: 40px; margin: 0 auto 20px; display: block; stroke: #5d6b2f; stroke-width: 2.6; stroke-linecap: round; }
.sheet-paper {
  position: relative; margin: 30px auto 0; padding: 50px clamp(22px, 6vw, 60px) 70px; text-align: left; color: #2e2620;
  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(0 0, 100% 0, 100% 97%, 96% 98.6%, 92% 97.4%, 87% 99%, 82% 97.6%, 76% 98.8%, 70% 97.5%, 64% 99.2%, 58% 97.7%, 52% 98.9%, 46% 97.4%, 40% 99%, 34% 97.6%, 28% 98.8%, 22% 97.3%, 16% 99%, 10% 97.7%, 5% 98.8%, 0 97.5%);
}
.sheet-paper.is-short { text-align: center; }
.sheet-paper .tape--l { left: 6%; top: 10px; transform: rotate(-32deg); width: 120px; }
.typed { font: 400 17px/1.95 var(--f-type); }
.typed p { margin: 0 0 1.4em; }
.typed img { margin: 1.4em auto; max-width: 100%; box-shadow: 4px 6px 0 rgba(74, 42, 28, .5); }
.typed a { color: var(--pen); }
.typed h2, .typed h3 { font: 400 18px var(--f-type); letter-spacing: .12em; text-transform: uppercase; }
.typed blockquote { margin: 1.4em 0; padding-left: 1em; border-left: 2px solid rgba(46, 38, 32, .4); }
.sheet-paper .dek { font: 400 15px/1.7 var(--f-type); opacity: .8; text-align: center; }
.sheet-paper .cover { margin: 0 auto 24px; max-height: 420px; object-fit: cover; }
.sig { font: 400 clamp(48px, 8vw, 70px)/1 var(--f-sig); text-align: right; margin: 10px 0 0; color: #2e2620; }
.hearts { position: absolute; right: -6px; top: 6px; width: 90px; fill: none; stroke: #b5604a; stroke-width: 3; stroke-linecap: round; transform: rotate(12deg); }
.hearts--low { right: auto; left: 10px; top: auto; bottom: 30px; transform: rotate(-10deg); }
.letter-date { font: 400 15px/1.6 var(--f-type); letter-spacing: .08em; margin: 40px 0 6px; }
.letter-share { font: 400 12px var(--f-type); }

/* ---------- the wall: postcards ---------- */
body[data-room="wall"] .room-wall {
  background-color: #f6e3c6;
  background-image:
    radial-gradient(circle at 20px 20px, rgba(236, 111, 164, .55) 0 3px, transparent 3.5px),
    radial-gradient(circle at 20px 20px, rgba(253, 226, 155, .8) 0 7px, transparent 7.5px),
    radial-gradient(circle at 65px 65px, rgba(124, 195, 90, .5) 0 2.5px, transparent 3px),
    radial-gradient(circle at 65px 65px, rgba(255, 250, 240, .8) 0 6px, transparent 6.5px);
  background-size: 90px 90px;
}
.wall-head { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); align-items: start; }
.pc-compose { position: relative; display: grid; gap: 12px; }
.pc-styles { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.pc-styles legend { font: 700 20px var(--f-hand); margin-bottom: 6px; padding: 0; }
.pc-styles label { display: inline-flex; align-items: center; gap: 6px; font: 400 12px var(--f-type); letter-spacing: .06em; cursor: pointer; padding: 5px 9px 5px 5px; background: #fffaf0; border: 2px solid var(--ink); border-radius: 12px; }
.pc-styles input { position: absolute; opacity: 0; pointer-events: none; }
.pc-styles label:has(input:checked) { background: var(--yolk); box-shadow: 2px 2px 0 var(--ink); }
.pc-styles label:has(input:focus-visible) { outline: 2px dashed var(--tomato); outline-offset: 2px; }
.sw { width: 26px; height: 18px; border: 1.5px solid var(--ink); border-radius: 3px; }
.sw--airmail { background: repeating-linear-gradient(45deg, var(--tomato) 0 4px, #fffaf0 4px 7px, var(--sky) 7px 11px, #fffaf0 11px 14px); }
.sw--botanical { background: #fbf3e4 radial-gradient(circle, var(--leaf) 0 3px, transparent 3.5px) 0 0 / 9px 9px; }
.sw--sunset { background: linear-gradient(#f6c445, #f08a3c 55%, #ec6fa4); }
.sw--meadow { background: linear-gradient(#cfeaf5 50%, #9ad46a 50%); }
.sw--rainbow { background: linear-gradient(90deg, #e8553e, #f08a3c, #f6c445, #7cc35a, #5bb8db, #7b80d4, #c985d1); }
.sw--greetings { background: #fde29b; position: relative; }
.sw--greetings::after { content: "Hi"; position: absolute; inset: 0; display: grid; place-items: center; font: italic 900 11px var(--f-display); color: var(--tomato); }

.postcard {
  --pc-bg: #fbf3e4; --pc-edge: #fbf3e4;
  position: relative; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 0;
  aspect-ratio: 3 / 2; min-height: 0; color: var(--ink); text-decoration: none;
  background: var(--pc-bg); padding: 16px; border: 9px solid var(--pc-edge);
  box-shadow: 0 1px 0 rgba(74, 42, 28, .25), 6px 10px 18px -8px rgba(74, 42, 28, .5);
  transform: rotate(var(--tilt, 0deg)); transition: transform .3s var(--ease);
}
.postcard__msg { position: relative; padding-right: 14px; border-right: 1.5px solid rgba(74, 42, 28, .35); overflow: hidden; }
.postcard__addr { position: relative; padding-left: 14px; display: flex; flex-direction: column; justify-content: flex-end; gap: 4px; font: 400 12px var(--f-type); }
.pc-ink, .pc-text {
  font: 600 clamp(19px, 2.1vw, 24px)/1.32 var(--f-hand); color: var(--pen); white-space: pre-wrap; overflow-wrap: break-word; word-break: break-word;
  margin: 0; padding: 2px 2px 0; border: 0; width: 100%; letter-spacing: .01em;
}
.pc-ink { height: 100%; overflow: hidden; background-image: repeating-linear-gradient(transparent 0 calc(1.32em - 1px), rgba(91, 184, 219, .35) calc(1.32em - 1px) 1.32em); background-position: 0 4px; }
.postcard.is-writing .pc-ink { position: absolute; inset: 0 14px 0 0; pointer-events: none; }
.pc-text { position: absolute; inset: 0 14px 0 0; background: transparent; color: transparent; caret-color: var(--pen); resize: none; outline: none; height: 100%; }
.pc-text::placeholder { color: rgba(47, 75, 138, .45); }
.pc-text::selection { background: rgba(246, 196, 69, .5); color: transparent; }
.pc-ink .c { transition: color .3s; }
.pc-ink .c.new { animation: inkIn .55s ease-out both; }
@keyframes inkIn { 0% { opacity: 0; filter: blur(2.5px); color: #9ec3ee; } 60% { opacity: 1; filter: blur(.4px); } 100% { filter: none; color: var(--pen); } }
@media (prefers-reduced-motion: reduce) { .pc-ink .c.new { animation: none; } }
.postcard .stamp {
  position: absolute; top: 0; right: 0; width: 54px; height: 64px; background: var(--stamp, var(--tomato)) var(--stamp-art, none) center / 70% no-repeat;
  border: 4px dotted #fffaf0; outline: 1.5px solid rgba(74, 42, 28, .45); box-shadow: 1px 2px 3px rgba(74, 42, 28, .25); transform: rotate(3deg);
}
.postcard .postmark {
  position: absolute; top: 26px; right: 34px; width: 74px; height: 74px; border: 2px solid rgba(74, 42, 28, .55); border-radius: 50%;
  display: grid; place-items: center; align-content: center; text-align: center; font: 400 8.5px/1.15 var(--f-type); letter-spacing: .02em; hyphens: auto; text-transform: uppercase; color: rgba(74, 42, 28, .7);
  padding: 8px; transform: rotate(-14deg); overflow: hidden; word-break: break-word;
}
.postcard .postmark small { display: block; font-size: 8px; margin-top: 2px; }
.postcard .pc-to, .postcard .pc-from, .postcard .pc-place { border-bottom: 1.5px solid rgba(74, 42, 28, .35); padding: 3px 0; font: 600 18px/1.1 var(--f-hand); color: var(--pen); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.postcard .pc-replies { font: 400 10.5px var(--f-type); letter-spacing: .1em; text-transform: uppercase; opacity: .7; margin-top: 6px; }
.postcard .badge { font: 400 9px var(--f-type); letter-spacing: .1em; background: var(--pink); color: #fffaf0; padding: 1px 5px; border-radius: 8px; vertical-align: 3px; }
.postcard .photo { position: absolute; z-index: 2; left: 57%; top: 14px; width: 96px; padding: 6px 6px 18px; background: #fffaf0; box-shadow: 3px 4px 8px rgba(74, 42, 28, .35); transform: rotate(-6deg); }
.postcard .photo img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.postcard label { font: 400 10.5px var(--f-type); letter-spacing: .12em; text-transform: uppercase; opacity: .75; margin-top: 4px; }
.pc-line { font: 600 19px/1.2 var(--f-hand); color: var(--pen); background: transparent; border: 0; border-bottom: 1.5px solid rgba(74, 42, 28, .4); padding: 2px 0; width: 100%; outline: none; }
.pc-line:focus { border-bottom-color: var(--tomato); }
.pc-line::placeholder { color: rgba(47, 75, 138, .4); }
.postcard .thumb-preview { position: absolute; left: -10px; top: -28px; width: 80px; height: 80px; object-fit: cover; border: 5px solid #fffaf0; box-shadow: 2px 3px 6px rgba(74, 42, 28, .4); transform: rotate(6deg); margin: 0; max-height: none; }
.pc-compose .row { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.pc-compose .postcard { transform: rotate(-.6deg); }

/* the six cards */
.postcard[data-card="airmail"] { --pc-edge: transparent; border-image: repeating-linear-gradient(45deg, var(--tomato) 0 12px, #fffaf0 12px 20px, var(--sky) 20px 32px, #fffaf0 32px 40px) 9; --stamp: var(--sky); --stamp-art: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'><path d='M4 22 L36 8 L26 34 L20 24 Z' fill='%23fffaf0' stroke='%234a2a1c' stroke-width='2' stroke-linejoin='round'/></svg>"); }
.postcard[data-card="botanical"] { --pc-bg: #f7f0de; --pc-edge: #f7f0de; outline: 2px solid #5d8a3c; outline-offset: -6px; --stamp: #7cc35a; --stamp-art: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'><path d='M20 36 C20 26 20 18 20 10' stroke='%234a2a1c' stroke-width='2' fill='none'/><ellipse cx='14' cy='20' rx='7' ry='3.5' transform='rotate(-30 14 20)' fill='%23fffaf0' stroke='%234a2a1c' stroke-width='1.5'/><ellipse cx='26' cy='16' rx='7' ry='3.5' transform='rotate(30 26 16)' fill='%23fffaf0' stroke='%234a2a1c' stroke-width='1.5'/><circle cx='20' cy='8' r='5' fill='%23ec6fa4' stroke='%234a2a1c' stroke-width='1.5'/></svg>");
  background-image: radial-gradient(circle at 0 0, rgba(124, 195, 90, .35) 0 30px, transparent 31px), radial-gradient(circle at 100% 100%, rgba(236, 111, 164, .25) 0 26px, transparent 27px); }
.postcard[data-card="sunset"] { --pc-bg: linear-gradient(160deg, #fff3d6, #fde0cf 60%, #fbd6e2); --pc-edge: #fffaf0; background: var(--pc-bg); --stamp: var(--tangerine); --stamp-art: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'><circle cx='20' cy='22' r='9' fill='%23f6c445' stroke='%234a2a1c' stroke-width='2'/><path d='M2 30 H38' stroke='%234a2a1c' stroke-width='2'/><path d='M8 35 H32' stroke='%23fffaf0' stroke-width='2'/></svg>"); }
.postcard[data-card="meadow"] { --pc-bg: #eef6e4; --pc-edge: #9ad46a; --stamp: #f6c445; --stamp-art: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'><path d='M8 22 Q20 4 32 22 Z' fill='%23e8553e' stroke='%234a2a1c' stroke-width='2'/><circle cx='15' cy='16' r='2' fill='%23fffaf0'/><circle cx='24' cy='14' r='2.4' fill='%23fffaf0'/><rect x='16' y='22' width='8' height='12' rx='3' fill='%23fff1dc' stroke='%234a2a1c' stroke-width='2'/></svg>"); }
.postcard[data-card="rainbow"] { --pc-bg: #fffaf0; --pc-edge: #fffaf0; border-top: 16px solid transparent; border-image: linear-gradient(90deg, #e8553e, #f08a3c, #f6c445, #7cc35a, #5bb8db, #7b80d4, #c985d1) 16 0 0 0; border-left: 9px solid #fffaf0; border-right: 9px solid #fffaf0; border-bottom: 9px solid #fffaf0; --stamp: var(--lilac); --stamp-art: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'><path d='M4 30 A16 16 0 0 1 36 30' fill='none' stroke='%23e8553e' stroke-width='4'/><path d='M9 30 A11 11 0 0 1 31 30' fill='none' stroke='%23f6c445' stroke-width='4'/><path d='M14 30 A6 6 0 0 1 26 30' fill='none' stroke='%235bb8db' stroke-width='4'/></svg>"); }
.postcard[data-card="greetings"] { --pc-bg: #fde9b8; --pc-edge: #fffaf0; --stamp: var(--pink); --stamp-art: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'><path d='M20 34 C6 24 4 14 11 10 C16 7 20 11 20 14 C20 11 24 7 29 10 C36 14 34 24 20 34Z' fill='%23fffaf0' stroke='%234a2a1c' stroke-width='2'/></svg>"); }
.postcard[data-card="greetings"] .postcard__msg::before { content: "Greetings!"; display: block; font: italic 900 26px/1 var(--f-display); color: var(--tomato); text-shadow: 2px 2px 0 var(--yolk); margin-bottom: 4px; }
.postcard[data-card="greetings"].is-writing .pc-ink, .postcard[data-card="greetings"].is-writing .pc-text { top: 32px; }

.cards-wall { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 380px), 1fr)); gap: 46px 34px; margin-top: 60px; }
.cards-wall .postcard::after { content: ""; position: absolute; left: 50%; top: -10px; width: 74px; height: 22px; background: rgba(246, 222, 160, .8); transform: translateX(-50%) rotate(-3deg); }
.cards-wall .postcard:hover, .cards-wall .postcard:focus-visible { transform: rotate(0) scale(1.02); z-index: 3; }
.cards-wall .pc-ink { -webkit-mask: linear-gradient(#000 78%, transparent); mask: linear-gradient(#000 78%, transparent); }
.postcard.is-hidden { opacity: .5; }
.postcard .mod { position: absolute; bottom: -26px; right: 0; font: 400 11px var(--f-type); text-decoration: underline; }
.sheet .postcard { aspect-ratio: auto; min-height: 300px; margin-bottom: 30px; }
.sheet .replies { display: grid; gap: 24px; margin: 0 0 30px clamp(14px, 6vw, 60px); }
.sheet .pc-compose--reply .postcard { min-height: 280px; aspect-ratio: auto; }
.sheet .pc-compose--reply .row, .sheet .pc-compose--reply .form-msg { color: #fffaf0; }
.pc-ink.writes .c.new { animation-duration: .5s; }
@media (max-width: 860px) { .wall-head { grid-template-columns: 1fr; } }
@media (max-width: 560px) {
  .postcard { grid-template-columns: 1fr; aspect-ratio: auto; min-height: 340px; padding: 12px; }
  .postcard__msg { border-right: 0; border-bottom: 1.5px solid rgba(74, 42, 28, .35); padding: 0 0 10px; min-height: 170px; }
  .postcard__addr { padding: 10px 70px 0 0; }
  .postcard .stamp { top: auto; bottom: 0; }
  .postcard .postmark { top: auto; bottom: 46px; right: 40px; width: 62px; height: 62px; }
  .postcard.is-writing .pc-ink, .pc-text { inset: 0 0 10px 0; }
  .cards-wall .postcard { min-height: 0; }
  .cards-wall .postcard__msg { min-height: 110px; max-height: 190px; }
}

/* ---------- archives: the film strip ---------- */
.reel { position: relative; margin: 40px calc(-1 * var(--page, var(--gutter))) 0; }
.strip {
  display: flex; gap: 0; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain;
  padding: 0 calc(50vw - min(39vw, 280px)); outline: none; background: #c8641e;
  box-shadow: 0 14px 30px -14px rgba(74, 42, 28, .7);
}
.strip::-webkit-scrollbar { display: none; }
.tape-frame {
  flex: 0 0 auto; scroll-snap-align: center; margin: 0; padding: 38px 14px 38px; width: min(78vw, 560px); position: relative;
  background:
    repeating-linear-gradient(90deg, #fde9b8 0 14px, transparent 14px 32px) 6px 10px / 100% 16px no-repeat,
    repeating-linear-gradient(90deg, #fde9b8 0 14px, transparent 14px 32px) 6px calc(100% - 10px) / 100% 16px no-repeat,
    #c8641e;
}
.tape-frame + .tape-frame { border-left: 3px solid #a94f15; }
.tape-frame__pic { position: relative; aspect-ratio: 4 / 3; background: #7a3a10; border-radius: 10px / 14px; overflow: hidden; border: 3px solid #8f4512; }
.tape-frame video { width: 100%; height: 100%; object-fit: cover; display: block; background: #7a3a10; }
.tape-frame__play { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(200, 100, 30, .18); }
.tape-frame__play svg { width: 64px; height: 64px; padding: 16px; color: var(--ink); background: var(--yolk); border: 3px solid var(--ink); border-radius: 50%; box-shadow: 3px 4px 0 var(--ink); transition: transform .2s var(--ease); }
.tape-frame__play:hover svg { transform: scale(1.08) rotate(-4deg); }
.tape-frame.is-on .tape-frame__play { display: none; }
.tape-frame figcaption { display: flex; align-items: baseline; gap: 10px; padding: 12px 4px 0; color: #fde9b8; font: 400 13px var(--f-type); letter-spacing: .06em; }
.tape-frame figcaption b { font: italic 800 21px/1.1 var(--f-display); letter-spacing: 0; color: #fffaf0; }
.tape-frame figcaption i { margin-left: auto; font-style: normal; opacity: .75; }
.reel__go { position: absolute; top: 50%; z-index: 3; width: 52px; height: 52px; margin-top: -26px; border-radius: 50%; background: #fffaf0; border: 2.5px solid var(--ink); box-shadow: 3px 4px 0 var(--ink); font: 700 32px/1 var(--f-display); color: var(--ink); }
.reel__go--prev { left: max(10px, calc(var(--page, var(--gutter)) - 10px)); }
.reel__go--next { right: max(10px, calc(var(--page, var(--gutter)) - 10px)); }
.reel__go:hover { background: var(--yolk); }
.reel__now { font: 700 22px var(--f-hand); min-height: 1.4em; text-align: center; margin: 18px 0 0; }
@media (max-width: 640px) { .reel__go { display: none; } .tape-frame { width: 84vw; padding: 34px 10px; } .strip { padding: 0 8vw; } }

/* ---------- about ---------- */
.about { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(30px, 5vw, 70px); align-items: start; margin-top: 30px; }
.about__bio p { font: 400 clamp(18px, 1.6vw, 21px)/1.6 var(--f-read); margin: 0 0 1.1em; max-width: 34em; }
.about__bio p:first-child::first-letter { float: left; font: italic 900 4.2em/.8 var(--f-display); color: var(--tomato); text-shadow: 3px 3px 0 var(--yolk); padding: .06em .08em 0 0; }
.about__bio .sig { font: 400 clamp(52px, 7vw, 74px)/1 var(--f-sig); text-align: left; color: var(--ink); margin-top: .2em; }
.about__pics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 22px; align-items: start; }
.snap { margin: 0; background: #fffaf0; padding: 10px 10px 34px; box-shadow: 4px 8px 16px -6px rgba(74, 42, 28, .5); transform: rotate(var(--tilt)); position: relative; transition: transform .3s var(--ease); }
.snap::before { content: ""; position: absolute; left: 50%; top: -10px; width: 70px; height: 20px; background: rgba(246, 222, 160, .8); transform: translateX(-50%) rotate(-4deg); }
.snap:hover { transform: rotate(0) scale(1.03); z-index: 2; }
.snap img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.snap:nth-child(3n + 2) img { aspect-ratio: 1; }
@media (max-width: 860px) { .about { grid-template-columns: 1fr; } }
.bill .when { white-space: nowrap; font-size: 30px; }
.room-wall .wall-text { background: rgba(255, 250, 240, .82); padding: 12px 16px 2px; border-radius: 4px; }
body { transition: color .6s var(--ease); }

/* the walk is laid on paper: a fine grain and a warm vignette, plain transparency so it costs nothing to draw */
.walk__canvas { z-index: 0; }
.walk__ui { z-index: 2; }
.walk::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(ellipse at 50% 45%, transparent 58%, rgba(150, 90, 50, .18) 100%), url("../img/paper-grain.png") 0 0 / 256px 256px;
}

/* receipt paper: the player, the room tabs, the hint and the friend cards are torn slips of till roll glued over the collage.
   the paper is drawn on a layer behind each one and cut along a torn outline on every side; the shadow follows the torn edge */
.dock, .rooms-nav a, .menu-btn, .walk__hint, .walk__card, .walk__prompt, .walk__tally, .walk__load, .threshold__card, .walk__end > div {
  --rc: #fffdf8;
  isolation: isolate; background: none !important; border: 0 !important; border-radius: 0 !important; box-shadow: none !important;
  filter: drop-shadow(0 1px 0 rgba(74, 42, 28, .28)) drop-shadow(2px 5px 5px rgba(74, 42, 28, .22));
}
.rooms-nav a, .menu-btn { position: relative; }
/* a slip with no words yet stays out of sight, so its paper never shows as an empty box while the page fills it in */
.walk__hint:empty, .walk__tally:empty { visibility: hidden !important; }
/* once a card has faded out it is hidden outright, so mobile Safari drops its shadow layer instead of leaving the shadow painted on screen */
.walk__hint { transition: opacity .8s, transform .8s, visibility 0s; }
.walk__hint.is-gone { visibility: hidden; transition: opacity .8s, transform .8s, visibility 0s linear .8s; }
.walk__card, .walk__prompt { visibility: hidden; transition: opacity .4s, transform .4s var(--ease), visibility 0s linear .4s; }
.walk__card.is-on, .walk__prompt.is-on { visibility: visible; transition: opacity .4s, transform .4s var(--ease), visibility 0s; }
.threshold__card::before, .walk__end > div::before, .walk__load::before, .walk__hint::before, .walk__card::before, .walk__prompt::before, .walk__tally::before, .dock::before, .rooms-nav a::before, .menu-btn::before {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; border: 0;
  background:
    repeating-linear-gradient(0deg, rgba(120, 100, 80, .02) 0 1px, transparent 1px 3px),
    url(../img/paper-grain.png),
    linear-gradient(170deg, rgba(255, 255, 255, .6), rgba(236, 228, 210, .12)),
    var(--rc);
  /* the torn outline is drawn to each slip's exact size by tear() in app3.js */
  -webkit-mask: var(--torn, none) 0 0 / 100% 100% no-repeat;
          mask: var(--torn, none) 0 0 / 100% 100% no-repeat;
}
.rooms-nav a { padding: 10px 13px 9px; }
.rooms-nav a:nth-child(odd) { transform: rotate(-1deg); }
.rooms-nav a:nth-child(even) { transform: rotate(.8deg); }
.rooms-nav a:hover, .rooms-nav a:focus-visible { --rc: var(--yolk); transform: translateY(-2px) rotate(-2deg); }
.rooms-nav a.is-here { --rc: var(--tomato); }
.walk__tally { --rc: var(--yolk); padding: 8px 14px 7px; }
.walk__hint { padding: 10px 18px 9px; }
.walk__load { padding: 14px 22px 12px; }
.walk__card, .walk__prompt { padding: 18px 22px; }
.dock { padding-top: 14px; padding-bottom: 14px; }
.walk__prompt .btn { border-radius: 3px; }

.walk__end > div { position: relative; }
.threshold__card { padding-top: 30px; padding-bottom: 26px; }
@media (max-width: 980px) { .walk__end { place-items: end center; padding-left: 20px !important; } }
@media (max-width: 640px) { .walk__end > div { max-width: 290px; padding: 18px 20px; } .walk__end h2 { font-size: 22px; } }
