/* Andie Mechanic. Paper, ink, flower-power color, and something watching. */

:root {
  --paper: #f2ead8;
  --paper-2: #e9dfc7;
  --ink: #1d1813;
  --ink-soft: #4a4136;
  --tangerine: #ee7a2c;
  --pink: #e6468a;
  --yolk: #f2c230;
  --avocado: #87973a;
  --lilac: #a78bd8;
  --sky: #7fb7d6;
  --rec: #e3262b;
  --bg: var(--paper);
  --fg: var(--ink);
  --accent: var(--pink);
  --accent-2: var(--tangerine);
  --line: rgba(29, 24, 19, .28);
  --dock-h: 84px;
  --gutter: clamp(16px, 4vw, 56px);
  --f-display: 'Fraunces', 'Cooper Black', serif;
  --f-scrawl: 'Rock Salt', 'Marker Felt', cursive;
  --f-mono: 'IBM Plex Mono', ui-monospace, monospace;
  --f-read: 'Newsreader', Georgia, serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* rooms re-tint the whole building */
body[data-room="foyer"] { --bg: #f5dccb; --fg: #2a1712; --accent: var(--pink); --accent-2: var(--tangerine); --line: rgba(42, 23, 18, .25); }
body[data-room="stage"] { --bg: #230b10; --fg: #f6e9d6; --accent: var(--yolk); --accent-2: #e8473b; --line: rgba(246, 233, 214, .22); }
body[data-room="listening"] { --bg: #ebe2f0; --fg: #221a2e; --accent: var(--pink); --accent-2: var(--tangerine); --line: rgba(34, 26, 46, .25); }
body[data-room="wing-truman"] { --bg: #0d1114; --fg: #e9f1f2; --accent: #8fd3e8; --accent-2: var(--rec); --line: rgba(233, 241, 242, .22); }
body[data-room="wing-chuckle"] { --bg: #bfe0ea; --fg: #13202b; --accent: #165c86; --accent-2: var(--pink); --line: rgba(19, 32, 43, .25); }
body[data-room="wing-allaboutme"] { --bg: #101a33; --fg: #f1ecf7; --accent: var(--lilac); --accent-2: #9ad3ff; --line: rgba(241, 236, 247, .22); }
body[data-room="wing-instate"] { --bg: #d9d5cc; --fg: #161514; --accent: #3d3a35; --accent-2: var(--avocado); --line: rgba(22, 21, 20, .28); }
body[data-room="wing-singles"] { --bg: #f6d6c4; --fg: #2a1712; --accent: #c2352f; --accent-2: var(--avocado); --line: rgba(42, 23, 18, .25); }
body[data-room="reading"] { --bg: #f7f1e3; --fg: #1d1813; --accent: var(--avocado); --accent-2: var(--tangerine); }
body[data-room="wall"] { --bg: #f2e8d5; --fg: #2a1d14; --accent: var(--pink); --accent-2: #c2352f; --line: rgba(42, 29, 20, .25); }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--f-mono);
  font-variation-settings: 'SOFT' 100, 'WONK' 1;
  font-size: 15px;
  line-height: 1.55;
  min-height: 100vh;
  overflow-x: hidden;
  transition: background-color .6s var(--ease), color .6s var(--ease);
  padding-bottom: calc(var(--dock-h) + 24px);
}
/* paper grain over everything, light enough to read through */
body::before {
  content: "";
  position: fixed; inset: -50%;
  pointer-events: none;
  z-index: 90;
  opacity: .16;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 .55 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  mix-blend-mode: multiply;
}
body[data-room="stage"]::before, body[data-room^="wing-truman"]::before, body[data-room="wing-allaboutme"]::before { mix-blend-mode: screen; opacity: .07; }

a { color: inherit; }
img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px dashed var(--accent); outline-offset: 3px; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.ink { filter: url(#boil); }
.ink-hard { filter: url(#boil-hard); }
@media (prefers-reduced-motion: reduce) { .ink, .ink-hard { filter: none; } }

/* ---------- top bar ---------- */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px var(--gutter) 22px;
  pointer-events: none;
  background: linear-gradient(var(--bg) 55%, color-mix(in srgb, var(--bg) 0%, transparent));
  transition: background .6s var(--ease);
}
.topbar > * { pointer-events: auto; }
.mark {
  font-family: var(--f-display); font-style: italic; font-weight: 800;
  font-size: 22px; line-height: 1;
  text-decoration: none;
  color: var(--fg);
  letter-spacing: .01em;
}
.mark span { color: var(--accent); }
.topbar__right { display: flex; align-items: center; gap: 14px; }
.cam-tag {
  font-size: 11px; letter-spacing: .18em; text-transform: uppercase;
  display: inline-flex; align-items: center; gap: 8px;
  opacity: .8;
}
.cam-tag i { width: 8px; height: 8px; border-radius: 50%; background: var(--rec); animation: rec 1.6s steps(2) infinite; }
@keyframes rec { 50% { opacity: .15; } }
.map-btn {
  font-family: var(--f-scrawl); font-size: 14px;
  padding: 8px 16px 6px;
  position: relative;
}
.map-btn svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }

/* ---------- rooms ---------- */
.room { display: none; min-height: 100vh; position: relative; padding: 96px var(--gutter) 40px; }
.room.is-on { display: block; animation: roomIn .7s var(--ease) both; }
@keyframes roomIn { from { opacity: 0; transform: translateY(14px); } }
.eyebrow { font-size: 11px; letter-spacing: .24em; text-transform: uppercase; opacity: .75; }
.room-title {
  font-family: var(--f-display);
  font-weight: 800; font-style: italic;
  font-size: clamp(44px, 9vw, 120px);
  line-height: .92;
  margin: .1em 0 .2em;
  letter-spacing: -.01em;
}
.wall-text { max-width: 560px; font-size: 15px; }
.wall-text p { margin: 0 0 1em; }
.scrawl { font-family: var(--f-scrawl); }

/* door transition */
.door { position: fixed; inset: 0; z-index: 80; pointer-events: none; display: flex; }
.door i {
  flex: 1; background: var(--door, #1d1813);
  transform: scaleX(0);
  transition: transform .34s var(--ease);
}
.door i:first-child { transform-origin: left; }
.door i:last-child { transform-origin: right; }
.door.shut i { transform: scaleX(1.02); }
.door b {
  position: absolute; inset: 0; display: grid; place-items: center;
  font: italic 800 clamp(28px, 6vw, 64px)/1 var(--f-display); color: var(--paper);
  opacity: 0; transition: opacity .2s;
}
.door.shut b { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .door i { transition: none; } }

/* ---------- foyer ---------- */
.foyer { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 32px; align-items: center; min-height: calc(100vh - 140px); }
.foyer__name {
  font-family: var(--f-display);
  font-weight: 900; font-style: italic;
  font-size: clamp(64px, 10.5vw, 168px);
  line-height: .82;
  margin: 0;
  color: var(--fg);
}
.foyer__name .a { color: var(--pink); display: block; }
.foyer__name .m { color: var(--tangerine); display: block; transform: translateX(.2em) rotate(-3deg); }
.foyer__lede { max-width: 470px; font-size: 15px; margin: 26px 0 0; }
.foyer__lede strong { font-weight: 600; }
.ticket {
  display: inline-grid; grid-template-columns: auto 1fr; gap: 0 18px; align-items: center;
  margin-top: 28px; padding: 14px 20px;
  background: var(--yolk); color: var(--ink);
  transform: rotate(-2deg);
  position: relative;
  font-size: 12px; letter-spacing: .08em; text-transform: uppercase;
  -webkit-mask: radial-gradient(circle 7px at 0 50%, #0000 98%, #000) left / 51% 100% no-repeat,
                radial-gradient(circle 7px at 100% 50%, #0000 98%, #000) right / 51% 100% no-repeat;
          mask: radial-gradient(circle 7px at 0 50%, #0000 98%, #000) left / 51% 100% no-repeat,
                radial-gradient(circle 7px at 100% 50%, #0000 98%, #000) right / 51% 100% no-repeat;
}
.ticket b { font: italic 800 30px/1 var(--f-display); letter-spacing: 0; text-transform: none; grid-row: span 2; }
.now-showing { margin-top: 30px; display: flex; gap: 16px; align-items: center; }
.now-showing img { width: 84px; height: 84px; object-fit: cover; transform: rotate(3deg); box-shadow: 4px 5px 0 var(--pink); }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--f-scrawl); font-size: 14px;
  padding: 12px 20px 9px;
  position: relative; text-decoration: none;
  color: var(--fg);
}
.btn svg.rough { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; z-index: -1; }
.btn--fill { color: var(--ink); }
.garden { position: relative; height: min(78vh, 720px); }
/* her photo, with ink drawn over it and eyes in the roses */
.portrait { position: relative; margin: 0 auto; width: min(100%, 560px); aspect-ratio: 1; }
.portrait__photo { position: absolute; inset: 0; overflow: hidden; border-radius: 3px; }
.portrait__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: saturate(.9) contrast(1.02) sepia(.08); }
.portrait__photo img.ghost { mix-blend-mode: screen; opacity: 0; }
.portrait__photo img.ghost.r { filter: url(#onlyRed); }
.portrait__photo img.ghost.c { filter: url(#onlyCyan); }
.portrait.glitch .ghost.r { opacity: .9; transform: translate(-7px, 1px); }
.portrait.glitch .ghost.c { opacity: .9; transform: translate(6px, -1px); }
.portrait__photo::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 42%, transparent 60%, rgba(120, 70, 50, .22) 100%); pointer-events: none; }
.portrait svg.rough { position: absolute; inset: -18px; width: calc(100% + 36px); height: calc(100% + 36px); overflow: visible; pointer-events: none; z-index: 3; }
.portrait .ink-over { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; z-index: 2; }
.portrait .peek { position: absolute; z-index: 2; pointer-events: none; }
.portrait figcaption { position: absolute; left: -8px; bottom: -54px; font-family: var(--f-scrawl); font-size: 12px; color: var(--fg); transform: rotate(-2deg); opacity: .85; }
.next-show { display: block; margin-top: 18px; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; text-decoration: none; color: #c2352f; }
.next-show b { font-weight: 600; }

/* performance hall */
.bills { display: grid; gap: 22px; margin-top: 40px; max-width: 860px; }
.bill { display: grid; grid-template-columns: 120px 1fr auto; gap: 22px; align-items: center; padding: 22px 26px; background: #f6e9d6; color: #230b10; position: relative; transform: rotate(var(--tilt, -.6deg)); box-shadow: 4px 6px 0 rgba(0,0,0,.35); }
.bill:nth-child(even) { --tilt: .5deg; }
.bill .when { font: italic 800 34px/0.95 var(--f-display); text-align: center; border-right: 2px dashed rgba(35, 11, 16, .4); padding-right: 18px; }
.bill .when small { display: block; font: 500 11px/1.4 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; margin-top: 6px; }
.bill h3 { font: italic 800 26px/1.05 var(--f-display); margin: 0 0 6px; }
.bill p { margin: 0; font-size: 13px; }
.bill .go { font-family: var(--f-scrawl); font-size: 13px; text-decoration: none; color: #230b10; padding: 10px 16px 8px; position: relative; }
.bill.is-past { opacity: .7; background: #e8dcc6; }
.past-head { margin-top: 60px; }
.stage-quote { max-width: 620px; margin-top: 30px; }
@media (max-width: 860px) { .bill { grid-template-columns: 84px 1fr; } .bill .go { grid-column: 1 / -1; justify-self: start; } .bill .when { font-size: 26px; } }

/* 3D world */
.world-btn { font-family: var(--f-scrawl); font-size: 14px; padding: 8px 16px 6px; position: relative; color: #1d1813; white-space: nowrap; }
.world-btn span, .map-btn span { position: relative; z-index: 1; }
.map-btn { white-space: nowrap; }
.mark { white-space: nowrap; }
.world-btn svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.world { position: fixed; inset: 0; z-index: 64; display: none; background: #120f1f; touch-action: none; }
.world.is-open { display: block; }
.world canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.world__ui { position: absolute; inset: 0; pointer-events: none; color: #f6efe0; font-family: var(--f-mono); }
.world__ui > * { pointer-events: auto; }
.world__close { position: absolute; top: 16px; right: var(--gutter); font-family: var(--f-scrawl); font-size: 14px; color: #f6efe0; padding: 8px 12px; }
.world__title { position: absolute; top: 18px; left: var(--gutter); font: italic 800 20px/1 var(--f-display); }
.world__hint { position: absolute; left: 50%; top: 64px; transform: translateX(-50%); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; opacity: .85; text-align: center; transition: opacity .8s; pointer-events: none; text-shadow: 0 1px 6px rgba(0,0,0,.6); }
.world__bar { position: absolute; left: var(--gutter); right: var(--gutter); bottom: calc(var(--dock-h) + 30px); height: 2px; background: rgba(246,239,224,.2); pointer-events: none; }
.world__bar i { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: var(--yolk); }
.world__card { position: absolute; left: var(--gutter); bottom: calc(var(--dock-h) + 48px); max-width: 340px; background: #f6efe0; color: #1d1813; padding: 16px 18px; transform: rotate(-1deg); box-shadow: 4px 5px 0 rgba(0,0,0,.4); display: none; }
.world__card.is-on { display: block; animation: roomIn .35s var(--ease) both; }
.world__card b { display: block; font: italic 800 24px/1.05 var(--f-display); margin: 2px 0 6px; }
.world__card a { font-size: 12px; }
.world__end { position: absolute; inset: 0; display: none; place-items: center; text-align: center; background: rgba(246, 239, 224, .0); transition: background 1.2s; padding: 0 var(--gutter); }
.world__end.is-on { display: grid; background: rgba(246, 239, 224, .9); color: #1d1813; }
.world__end h2 { font: italic 900 clamp(40px, 7vw, 84px)/.95 var(--f-display); margin: 0 0 12px; }
.world__end p { max-width: 460px; margin: 0 auto 18px; }
.world__end button { font-family: var(--f-scrawl); font-size: 14px; padding: 10px 16px; border: 2px solid #1d1813; border-radius: 30px; margin: 0 6px 8px; }
.world__load { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--f-scrawl); color: #f6efe0; }
body.in-world { overflow: hidden; }
body.in-world .topbar, body.in-world .seccam { visibility: hidden; }
@media (max-width: 860px) { .world-btn .long, .map-btn .long { display: none; } .mark { font-size: 19px; } .portrait { margin-bottom: 64px !important; } .map-btn { padding: 8px 12px 6px; } .topbar__right { gap: 8px; } }
@media (min-width: 861px) { .world-btn .short, .map-btn .short { display: none; } }
.garden svg.daisy { position: absolute; overflow: visible; }

.directory { margin-top: 60px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
@media (max-width: 860px) { .directory { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .directory { grid-template-columns: 1fr; } }
.door-card--walk { text-align: left; width: 100%; }
.door-card {
  position: relative; text-decoration: none; color: var(--ink);
  padding: 22px 22px 20px; min-height: 170px;
  display: flex; flex-direction: column; justify-content: space-between;
  transition: transform .3s var(--ease);
}
.door-card:hover, .door-card:focus-visible { transform: rotate(-1.2deg) translateY(-4px); }
.door-card svg.rough { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; z-index: -1; }
.door-card h3 { font: italic 800 28px/1 var(--f-display); margin: 0; }
.door-card p { margin: 10px 0 0; font-size: 13px; }
.door-card .no { font-size: 11px; letter-spacing: .2em; }

.monitor-strip { margin-top: 70px; display: flex; gap: 24px; flex-wrap: wrap; align-items: flex-end; }
.crt { position: relative; width: 220px; }
.crt canvas, .crt img { width: 100%; aspect-ratio: 4/3; display: block; border-radius: 18px / 22px; background: #111; object-fit: cover; }
.crt__screen { position: relative; margin: 14px; }
.crt svg.crt-shell { position: absolute; left: -14px; top: -14px; width: calc(100% + 28px); height: calc(100% + 28px); overflow: visible; pointer-events: none; }
.crt figcaption { margin-top: 34px; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; }
.crt .scan { position: absolute; inset: 0; aspect-ratio: 4/3; border-radius: 18px / 22px; pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(0,0,0,.28) 0 2px, transparent 2px 4px); mix-blend-mode: multiply; }

/* security camera that follows you */
.seccam { position: fixed; top: 64px; right: calc(var(--gutter) - 6px); width: 86px; height: 70px; z-index: 55; pointer-events: none; color: var(--fg); }
.seccam .head { transform-origin: 66px 18px; transition: transform .5s var(--ease); }
.seccam .led { animation: rec 1.6s steps(2) infinite; }

/* ---------- listening room ---------- */
.records { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 46px 34px; margin-top: 48px; }
@media (max-width: 860px) { .records { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .records { grid-template-columns: 1fr; } }
.record { text-decoration: none; color: var(--fg); display: block; position: relative; z-index: 1; }
/* the hovered record rises over its neighbors so its vinyl slides out on top of the next sleeve */
.record:hover, .record:focus-visible { z-index: 5; }
.record__art { position: relative; aspect-ratio: 1; }
.record__art img { width: 100%; height: 100%; object-fit: cover; position: relative; z-index: 1; transition: transform .5s var(--ease); }
.record__vinyl { position: absolute; inset: 4%; border-radius: 50%; z-index: 0;
  background: repeating-radial-gradient(circle, #111 0 2px, #222 2px 4px); transition: transform .6s var(--ease); }
.record__vinyl::after { content: ""; position: absolute; inset: 36%; border-radius: 50%; background: var(--accent); }
.record:hover .record__vinyl, .record:focus-visible .record__vinyl { transform: translateX(30%) rotate(40deg); }
.record:hover .record__art img { transform: translateX(-6%) rotate(-2deg); }
.record svg.rough { position: absolute; inset: -10px; width: calc(100% + 20px); height: calc(100% + 20px); z-index: 2; pointer-events: none; overflow: visible; }
.placard { margin-top: 18px; font-size: 12px; line-height: 1.5; }
.placard b { display: block; font: italic 800 24px/1.05 var(--f-display); margin-bottom: 4px; }

/* ---------- wings ---------- */
.wing-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 80px); align-items: center; }
.hung { position: relative; max-width: 520px; justify-self: center; width: 100%; }
.hung img { width: 100%; aspect-ratio: 1; object-fit: cover; box-shadow: 0 30px 60px -20px rgba(0,0,0,.55); }
.hung svg.rough { position: absolute; inset: -22px; width: calc(100% + 44px); height: calc(100% + 44px); overflow: visible; pointer-events: none; }
.hung .spot { position: absolute; left: 50%; top: -140px; width: 160%; height: 200px; transform: translateX(-50%); pointer-events: none;
  background: radial-gradient(ellipse at 50% 100%, rgba(255,255,230,.18), transparent 60%); }
.label-card {
  background: var(--paper); color: var(--ink);
  padding: 18px 20px; max-width: 360px; margin-top: 26px;
  font-size: 12px; line-height: 1.6;
  box-shadow: 3px 4px 0 rgba(0,0,0,.25);
}
.label-card b { font-weight: 600; }
.label-card i { font-style: normal; opacity: .7; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; align-items: center; }

.tracks { list-style: none; padding: 0; margin: 64px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 18px; }
.track {
  display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: 12px;
  padding: 14px 16px; width: 100%; text-align: left;
  border: 1px dashed var(--line);
  transition: background .2s, transform .2s var(--ease);
}
.track:hover { background: color-mix(in srgb, var(--fg) 7%, transparent); transform: rotate(-.6deg); }
.track .n { font-size: 11px; opacity: .6; }
.track .t { font-family: var(--f-display); font-style: italic; font-weight: 700; font-size: 18px; line-height: 1.1; }
.track .d { font-size: 11px; opacity: .6; }
.track.is-playing { border-style: solid; border-color: var(--accent); background: color-mix(in srgb, var(--accent) 16%, transparent); }
.track.is-playing .n::before { content: "▶ "; color: var(--accent); }
.track.is-playing .n { font-size: 0; }
.track.is-playing .n::before { font-size: 12px; }

.quote-wall { margin-top: 72px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 30px; }
.quote { margin: 0; padding: 22px 24px; position: relative; }
.quote p { margin: 0; font-family: var(--f-read); font-size: 21px; line-height: 1.35; font-style: italic; }
.quote cite { display: block; margin-top: 12px; font-style: normal; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; opacity: .7; }
.quote cite a { text-decoration: none; border-bottom: 1px dotted currentColor; }
.quote svg.rough { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }

.surveil {
  margin-top: 70px; padding: 14px 0; border-top: 1px dashed var(--line); border-bottom: 1px dashed var(--line);
  font-size: 11px; letter-spacing: .16em; text-transform: uppercase; overflow: hidden; white-space: nowrap;
}
.surveil span { display: inline-block; padding-left: 100%; animation: tick 38s linear infinite; }
@keyframes tick { to { transform: translateX(-100%); } }
@media (prefers-reduced-motion: reduce) { .surveil span { animation: none; padding-left: 0; } }

/* ---------- reading room ---------- */
.reading-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 56px; margin-top: 40px; align-items: start; }
.cards { display: grid; gap: 26px; }
.index-card {
  display: grid; grid-template-columns: 1fr 150px; gap: 20px;
  text-decoration: none; color: var(--ink);
  background: #fffdf6; padding: 22px 24px;
  border-top: 22px solid color-mix(in srgb, var(--accent) 40%, #fffdf6);
  background-image: repeating-linear-gradient(#fffdf6 0 27px, #c8dbe6 27px 28px);
  background-position: 0 6px;
  box-shadow: 2px 3px 0 rgba(0,0,0,.15);
  transition: transform .25s var(--ease);
}
.index-card:nth-child(odd) { transform: rotate(-.6deg); }
.index-card:nth-child(even) { transform: rotate(.5deg); }
.index-card:hover { transform: rotate(0) translateY(-3px); }
.index-card.no-cover { grid-template-columns: 1fr; }
.index-card h3 { font: italic 800 30px/1.05 var(--f-display); margin: 4px 0 8px; }
.index-card p { font-family: var(--f-read); font-size: 17px; line-height: 28px; margin: 0; }
.index-card img { width: 150px; height: 150px; object-fit: cover; transform: rotate(2deg); box-shadow: 2px 2px 0 var(--ink); }
.empty-note { font-family: var(--f-read); font-size: 19px; padding: 30px 0; max-width: 520px; }
.side h4 { font: italic 800 22px/1.1 var(--f-display); margin: 0 0 10px; }
.side .box { position: relative; padding: 22px; margin-bottom: 30px; }
.side .box svg.rough { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.field { display: block; width: 100%; padding: 12px 12px; font: inherit; color: var(--ink); background: #fffdf6; border: 1.5px solid var(--ink); border-radius: 2px; }
textarea.field { resize: vertical; min-height: 120px; font-family: var(--f-read); font-size: 17px; }
.hp { position: absolute; left: -9999px; }
.form-msg { font-size: 12px; margin-top: 10px; min-height: 1em; }
.clips { list-style: none; padding: 0; margin: 0; }
.clips li { padding: 12px 0; border-bottom: 1px dashed var(--line); font-size: 12px; }
.clips a { font-family: var(--f-read); font-size: 16px; font-style: italic; text-decoration: none; display: block; margin-top: 2px; }
.clips a:hover { text-decoration: underline; }

.article { max-width: 680px; margin: 30px auto 0; }
.article .back { font-size: 12px; text-decoration: none; letter-spacing: .14em; text-transform: uppercase; }
.article h1 { font: italic 800 clamp(40px, 7vw, 76px)/.98 var(--f-display); margin: 26px 0 14px; }
.article .dek { font-family: var(--f-read); font-size: 23px; line-height: 1.35; font-style: italic; margin: 0 0 14px; }
.article .meta { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; opacity: .7; margin-bottom: 36px; }
.article .cover { width: 100%; margin: 0 0 36px; box-shadow: 4px 5px 0 var(--ink); }
.prose { font-family: var(--f-read); font-size: 20px; line-height: 1.62; }
.prose p { margin: 0 0 1.1em; }
.prose > p:first-of-type::first-letter { font-family: var(--f-display); font-weight: 800; font-style: italic; float: left; font-size: 3.4em; line-height: .9; padding: .06em .12em 0 0; color: var(--accent-2); }
.prose h2, .prose h3, .prose h4 { font-family: var(--f-display); font-weight: 800; font-style: italic; line-height: 1.05; margin: 1.6em 0 .5em; }
.prose blockquote { margin: 1.4em 0; padding-left: 22px; border-left: 3px solid var(--accent); font-style: italic; }
.prose figure { margin: 1.6em -40px; }
.prose img { width: 100%; height: auto; }
.prose hr { border: 0; text-align: center; margin: 2em 0; }
.prose hr::after { content: "✿ ✿ ✿"; color: var(--accent-2); letter-spacing: .6em; }
.prose a { color: var(--accent-2); }

/* ---------- the wall ---------- */
body[data-room="wall"] .room-wall {
  background-image:
    radial-gradient(circle at 20% 30%, rgba(0,0,0,.06) 0 2px, transparent 3px),
    radial-gradient(circle at 70% 60%, rgba(0,0,0,.05) 0 1.5px, transparent 2.5px),
    radial-gradient(circle at 40% 80%, rgba(255,255,255,.06) 0 2px, transparent 3px);
  background-size: 23px 23px, 31px 31px, 17px 17px;
}
.wall-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 420px); gap: 40px; align-items: start; }
.compose {
  background: #fffdf6; color: var(--ink); padding: 22px; position: relative;
  transform: rotate(1deg); box-shadow: 4px 6px 0 rgba(0,0,0,.25);
}
.compose .tape, .note .tape { position: absolute; top: -12px; left: 50%; width: 96px; height: 26px; transform: translateX(-50%) rotate(-3deg); background: rgba(255, 250, 220, .7); box-shadow: 0 1px 2px rgba(0,0,0,.15); }
.compose label { display: block; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; margin: 10px 0 6px; }
.compose .row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 14px; justify-content: space-between; }
.file-pick { font-size: 12px; text-decoration: underline; cursor: pointer; }
.file-pick input { display: none; }
.thumb-preview { max-height: 80px; margin-top: 10px; display: none; }
.notes { margin-top: 56px; columns: 4 240px; column-gap: 26px; }
.note {
  break-inside: avoid; display: block; width: 100%; text-align: left;
  margin: 0 0 30px; padding: 22px 20px 16px; position: relative;
  background: var(--note, #fff7a8); color: var(--ink);
  transform: rotate(var(--tilt, 0deg));
  box-shadow: 2px 4px 0 rgba(0,0,0,.2), 0 14px 22px -14px rgba(0,0,0,.45);
  transition: transform .25s var(--ease);
}
.note:hover, .note:focus-visible { transform: rotate(0) scale(1.02); z-index: 2; }
.note .pin { position: absolute; top: 8px; left: 50%; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #fff 0 2px, var(--pin, #d33) 3px); box-shadow: 1px 2px 2px rgba(0,0,0,.4); }
.note .who { font-family: var(--f-scrawl); font-size: 13px; margin-bottom: 8px; }
.note .who .badge { font-family: var(--f-mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; background: var(--ink); color: var(--yolk); padding: 2px 6px; margin-left: 6px; vertical-align: middle; }
.note .txt { font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; }
.note .txt a { color: inherit; }
.note .pic { background: #fff; padding: 8px 8px 26px; margin: 10px 0 4px; box-shadow: 1px 2px 3px rgba(0,0,0,.25); transform: rotate(-2deg); }
.note .pic img { width: 100%; height: auto; }
.note .foot { display: flex; justify-content: space-between; font-size: 10px; letter-spacing: .1em; text-transform: uppercase; margin-top: 12px; opacity: .65; }
.note.is-hidden { opacity: .45; outline: 2px dashed var(--rec); }
.note.is-andie { --note: #fbe3ef; }
.more { display: block; margin: 10px auto 0; }

/* thread overlay */
.sheet { position: fixed; inset: 0; z-index: 70; display: none; background: rgba(20, 14, 8, .62); overflow-y: auto; padding: 70px var(--gutter) calc(var(--dock-h) + 40px); }
.sheet.is-open { display: block; animation: roomIn .35s var(--ease) both; }
.sheet__inner { max-width: 640px; margin: 0 auto; }
.sheet .note { transform: rotate(-1deg); }
.sheet .replies { margin: 0 0 0 clamp(14px, 6vw, 60px); }
.sheet .replies .note { --note: #fffdf6; transform: rotate(var(--tilt)); }
.sheet .close { position: fixed; top: 16px; right: var(--gutter); z-index: 72; font-family: var(--f-scrawl); color: #fff; font-size: 14px; padding: 8px 12px; }
.mod { margin-top: 10px; font-size: 11px; text-decoration: underline; color: var(--rec); }

/* ---------- map ---------- */
.map { position: fixed; inset: 0; z-index: 75; display: none; background: var(--paper); color: var(--ink); overflow-y: auto; }
.map.is-open { display: block; animation: roomIn .4s var(--ease) both; }
.map__inner { max-width: 1100px; margin: 0 auto; padding: 80px var(--gutter) 120px; }
.map h2 { font: italic 800 clamp(40px, 7vw, 80px)/.95 var(--f-display); margin: 0; }
.map .plan { position: relative; margin-top: 30px; aspect-ratio: 16/10; }
.map .plan svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.map .plan a { position: absolute; display: grid; place-items: center; text-align: center; text-decoration: none; font-family: var(--f-display); font-size: clamp(12px, 1.7vw, 24px); line-height: 1; padding: 6px; overflow-wrap: anywhere; }
.map .plan a small { display: block; font: 11px/1.3 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; margin-top: 6px; }
.map .here { font-family: var(--f-scrawl); font-size: 12px; color: var(--rec); }
.map .close { position: absolute; top: 18px; right: var(--gutter); font-family: var(--f-scrawl); font-size: 14px; padding: 8px 12px; }

/* ---------- player dock ---------- */
.dock {
  position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 65;
  height: var(--dock-h);
  display: grid; grid-template-columns: auto 64px minmax(0, 1fr) minmax(0, 1.3fr) auto; gap: 14px; align-items: center;
  padding: 10px 18px;
  background: var(--ink); color: var(--paper);
  border-radius: 18px 22px 16px 20px / 20px 16px 22px 18px;
  box-shadow: 0 16px 40px -18px rgba(0,0,0,.7);
}
.dock__btns { display: flex; gap: 6px; align-items: center; }
.dock__btns button { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; }
.dock__btns button svg { width: 20px; height: 20px; }
.dock__btns .play { width: 50px; height: 50px; background: var(--yolk); color: var(--ink); }
.dock__btns .play svg { width: 24px; height: 24px; }
.dock__art { width: 64px; height: 64px; object-fit: cover; border-radius: 4px; transform: rotate(-3deg); background: #333; }
.dock__meta { min-width: 0; }
.dock__title { font-family: var(--f-scrawl); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dock__sub { font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; opacity: .65; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 4px; }
.dock__scope { position: relative; height: 56px; cursor: pointer; touch-action: none; }
.dock__scope canvas { width: 100%; height: 100%; display: block; }
.dock__time { position: absolute; right: 0; bottom: -2px; font-size: 10px; opacity: .6; }
.dock__links { display: flex; gap: 10px; font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; }
.dock__links a { text-decoration: none; opacity: .8; border-bottom: 1px dotted; }
.dock__links a:hover { opacity: 1; }

/* ---------- footer ---------- */
.foot {
  padding: 40px var(--gutter) 20px;
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: nowrap;
  font-size: 12px; border-top: 1px dashed var(--line); margin-top: 40px;
}
.foot__social { display: flex; gap: 14px; flex-wrap: wrap; }
.foot__social a { text-decoration: none; opacity: .8; }
.foot__social a:hover { opacity: 1; text-decoration: underline; }
.boa-credit { text-decoration: none; color: inherit; opacity: .7; white-space: nowrap; margin-left: auto; text-align: right; }
.boa-credit:hover { opacity: 1; text-decoration: none; }

/* ---------- phones ---------- */
@media (max-width: 860px) {
  :root { --dock-h: 128px; }
  .portrait { width: min(100%, 420px); margin-top: 10px; }
  .portrait figcaption { bottom: -44px; }
  .foyer, .wing-head, .reading-grid, .wall-head { grid-template-columns: 1fr; }
  .garden, .portrait { order: -1; }
  .garden { height: 380px; margin-top: -20px; }
  .foyer__name { font-size: clamp(56px, 17vw, 120px); }
  .foyer__name .m { transform: rotate(-3deg); }
  .seccam { width: 60px; top: 56px; }
  .cam-tag { display: none; }
  .dock { grid-template-columns: 52px minmax(0, 1fr) auto; grid-template-rows: auto auto; gap: 8px 12px; padding: 10px 14px; left: 8px; right: 8px; bottom: 8px; }
  .dock__art { width: 52px; height: 52px; grid-row: 1; grid-column: 1; }
  .dock__meta { grid-row: 1; grid-column: 2; }
  .dock__btns { grid-row: 1; grid-column: 3; }
  .dock__btns .prev { display: none; }
  .dock__scope { grid-row: 2; grid-column: 1 / -1; height: 40px; }
  .dock__links { display: none; }
  .index-card { grid-template-columns: 1fr; }
  .index-card img { width: 100%; height: 180px; }
  .prose figure { margin: 1.4em 0; }
  .map .plan { aspect-ratio: 3/4; }
  .foot { font-size: 11px; }
}
@media (max-width: 420px) {
  .track { grid-template-columns: 28px 1fr auto; }
}

.room > * { position: relative; z-index: 1; }
.room > .decor { z-index: 0; }
.wing-crts { display: flex; gap: 26px; flex-wrap: wrap; margin-top: 70px; align-items: flex-end; }
.wing-crts .crt { width: 200px; }

@media (max-width: 860px) { .room > .decor { opacity: .28 !important; } }

/* wide screens: keep the content in one comfortable column, backgrounds stay full width */
:root { --page: max(var(--gutter), calc((100vw - 1360px) / 2)); }
.room, .topbar, .foot { padding-left: var(--page); padding-right: var(--page); }
.seccam { right: calc(var(--page) - 6px); }
.seccam svg { width: 100%; height: 100%; overflow: visible; }
.foyer__name { padding: .06em .12em .1em 0; margin-left: -.04em; }
#room-foyer .foyer { min-height: 0; padding-top: clamp(10px, 4vh, 48px); gap: clamp(32px, 5vw, 72px); grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
#room-foyer .portrait { width: min(100%, 600px); }
@media (max-width: 860px) { #room-foyer .foyer { grid-template-columns: 1fr; } }

@media (min-width: 861px) { #room-foyer .foyer__name { font-size: clamp(64px, 8.2vw, 128px); } }

/* phones: nothing decorative may widen the page sideways (iOS ignores overflow on body alone) */
html { overflow-x: clip; }
.room { overflow-x: clip; }
.world__title .short { display: none; }
@media (max-width: 560px) { .world__title .long { display: none; } .world__title .short { display: inline; } }
.world__close, .world__title { text-shadow: 0 1px 8px rgba(20, 12, 30, .75); }
/* Safari crops a filtered element to its own box, so the italic overhang needs real padding, pulled back with margins */
.foyer__name { padding: .14em .18em .18em .16em; margin: -.08em -.06em -.08em -.2em; }
.portrait__photo { box-shadow: 0 30px 60px -22px rgba(70, 35, 20, .5); }

/* the wall: posts hang off a mycelial network under the forest floor */
body[data-room="wall"] .room-wall { background-image: none; }
.notes.myco { background: linear-gradient(transparent 0, transparent 175px, #e9dcc4 200px, #e4d4b8 700px, #e7d9bf); margin-left: calc(var(--page, var(--gutter)) * -1); margin-right: calc(var(--page, var(--gutter)) * -1); padding-left: var(--page, var(--gutter)); padding-right: var(--page, var(--gutter)); }
.notes.myco { columns: auto; position: relative; margin-top: 10px; padding-top: 300px; padding-bottom: 140px; display: flex; flex-direction: column; }
.myco > svg.myco-net { position: absolute; left: 0; top: 0; width: 100%; overflow: visible; pointer-events: none; z-index: 0; }
.myco .note, .myco .empty-note { width: min(var(--w, 340px), calc(50% - 70px)); margin: 0 0 40px; position: relative; z-index: 1; break-inside: auto; }
.myco > :is(.note, .empty-note):nth-of-type(odd) { align-self: flex-start; margin-left: max(0px, calc(50% - 70px - var(--w, 340px))); }
.myco > :is(.note, .empty-note):nth-of-type(even) { align-self: flex-start; margin-left: calc(50% + 70px); }
.myco > :is(.note, .empty-note) + :is(.note, .empty-note) { margin-top: -80px; }
.myco .note { box-shadow: 0 16px 26px -14px rgba(60, 35, 20, .45), 0 0 0 1px rgba(60, 35, 20, .12); }
.myco .note .pin { display: none; }
.myco .note .pic { transform: rotate(-1.5deg); }
.myco .empty-note { color: var(--fg); background: #fffaf0; padding: 18px 20px; border-left: 2px solid #4b3627; margin-left: calc(50% + 70px) !important; }
.myco-date { font: 500 10px var(--f-mono); letter-spacing: .14em; text-transform: uppercase; fill: rgba(42, 29, 20, .6); }
.myco .branch path[pathLength] { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.3s var(--ease); }
.myco .branch.in path[pathLength] { stroke-dashoffset: 0; }
.myco .trunk path { stroke-dasharray: 1; }
.myco .branch .shroom { transform: scale(0); transition: transform .7s cubic-bezier(.3, 1.6, .5, 1) .9s; }
.myco .branch.in .shroom { transform: scale(1); }
.myco .branch .myco-date, .myco .branch circle { opacity: 0; transition: opacity .6s .4s; }
.myco .branch.in .myco-date, .myco .branch.in circle { opacity: 1; }
.myco .branch path:not([pathLength]) { opacity: 0; transition: opacity .6s .5s; }
.myco .branch.in path:not([pathLength]) { opacity: 1; }
.myco .note { opacity: 0; translate: 0 26px; transition: opacity .7s var(--ease) .35s, translate .7s var(--ease) .35s, transform .3s var(--ease); }
.myco .note.in { opacity: 1; translate: 0 0; }
.myco .spo { fill: #6b4a33; opacity: 0; animation: spo 6s ease-in infinite; }
.myco .spo-print { fill: #6b4a33; fill-opacity: .55; }
@keyframes spo { 0% { opacity: 0; transform: translate(0, 0); } 12% { opacity: .85; } 80% { opacity: .5; } 100% { opacity: 0; transform: translate(var(--dx), var(--dy)); } }
@media (prefers-reduced-motion: reduce) { .myco .spo { animation: none; opacity: .6; } .myco .note { opacity: 1; translate: none; } .myco .trunk path { stroke-dasharray: none; } }
@media (max-width: 700px) {
  .notes.myco { padding-top: 210px; }
  .myco .note, .myco .empty-note { width: calc(100% - 56px); margin-left: 56px !important; }
  .myco > :is(.note, .empty-note) + :is(.note, .empty-note) { margin-top: 0; }
}
.myco .note { text-decoration: none; }
.myco-date { paint-order: stroke; stroke: #e6d7bd; stroke-width: 5px; stroke-linejoin: round; }
.myco > svg.myco-dates { z-index: 2; }
/* the italic display face leans past its box; give the ink filter room so the first letter keeps its foot */
.room-title, .article h1 { padding: 0 .14em; margin-left: -.14em; margin-right: -.14em; }
