/* rjmabanta.com test slice */
:root {
  --parchment: #EFE6D2;
  --parchment-deep: #E3D6BB;
  --ink: #1D2A3A;
  --ink-soft: #46505C;
  --walnut: #3B2416;
  --walnut-deep: #26170E;
  --moss: #2F4A3A;
  --mustard: #B7791F;
  --orange: #C2501A;
  --navy: #1F3550;
  --green-deep: #24402F;
  --chalk: #F3F0E7;
  --plaster: #E6DAC3;
  --accent: var(--ink);
  --display: "Young Serif", "Iowan Old Style", Georgia, serif;
  --body: "Newsreader", "Iowan Old Style", Georgia, serif;
  --ease: cubic-bezier(.65, 0, .35, 1);
  --floor-line: 72%;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  background: var(--parchment) url("../assets/parchment.webp") repeat;
  background-size: 640px;
  color: var(--ink);
  font-family: var(--body);
  font-size: 18px;
  line-height: 1.45;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }

.label, .site-header, .site-footer, .room-name, .circle-name, .plan-caption, .list-toggle {
  font-variant-caps: all-small-caps;
  letter-spacing: .14em;
}

:focus-visible { outline: 3px solid var(--mustard); outline-offset: 3px; border-radius: 4px; }
[tabindex="-1"]:focus { outline: none; }

.skip {
  position: fixed; left: 12px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--parchment); padding: 10px 14px; border-radius: 6px; text-decoration: none;
}
.skip:focus { top: 12px; }

.sr-live { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- header and footer ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 40;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 14px 18px; pointer-events: none;
  font-size: 17px;
}
.site-header > * { pointer-events: auto; }
.wordmark, .list-toggle {
  background: rgba(239, 230, 210, .92); color: var(--ink);
  border: 1px solid rgba(29, 42, 58, .18); border-radius: 999px;
  padding: 6px 14px 8px; text-decoration: none; cursor: pointer;
  box-shadow: 0 1px 6px rgba(20, 14, 8, .12);
}
.wordmark { font-weight: 500; }
.list-toggle { text-align: left; }

.site-footer {
  position: fixed; inset: auto 0 0 0; z-index: 40;
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px 18px;
  padding: 7px 14px 9px; font-size: 15px;
  background: rgba(239, 230, 210, .94); border-top: 1px solid rgba(29, 42, 58, .14);
}
.site-footer a { text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.site-footer a:hover span, .site-footer a:hover { text-decoration: underline; text-underline-offset: 3px; }
.footer-press { font-weight: 500; }
.footer-credit { margin: 0; color: var(--ink-soft); font-variant-caps: normal; letter-spacing: 0; font-size: 14px; }

/* ---------- plain list ---------- */
.room-list {
  position: fixed; inset: 0; z-index: 60;
  background: rgba(29, 24, 18, .5);
  display: grid; place-items: start end; padding: 64px 16px 16px;
}
.room-list-inner {
  width: min(380px, 100%); background: var(--parchment) url("../assets/parchment.webp"); background-size: 640px;
  border-radius: 10px; padding: 20px 22px; box-shadow: 0 10px 40px rgba(0, 0, 0, .3);
}
.room-list h2 { font-family: var(--display); font-weight: 400; font-size: 26px; margin: 0 0 10px; }
.room-list ul { list-style: none; margin: 0 0 14px; padding: 0; }
.room-list li a { display: block; padding: 9px 2px; border-bottom: 1px solid rgba(29, 42, 58, .15); text-decoration: none; font-size: 19px; }
.room-list li a:hover { text-decoration: underline; text-underline-offset: 4px; }
.room-list li a[aria-current="page"]::after { content: " · here"; color: var(--ink-soft); font-size: 15px; }
.room-list-close { background: none; border: 1px solid rgba(29, 42, 58, .3); border-radius: 999px; padding: 6px 14px; cursor: pointer; }

/* ---------- main stage ---------- */
main { position: fixed; inset: 0; outline: none; }

/* ---------- plan view ---------- */
.plan {
  position: absolute; inset: 0; overflow: hidden;
  background: var(--parchment) url("../assets/parchment.webp") repeat; background-size: 640px;
}
.plan-camera {
  position: absolute; inset: 0; transform-origin: 0 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 70px 16px 56px;
}
.plan-title {
  font-family: var(--display); font-weight: 400; font-size: clamp(26px, 3.4vw, 40px);
  margin: 0; line-height: 1.1; color: var(--ink);
}
.plan-caption { margin: 4px 0 6px; font-size: 18px; color: var(--ink-soft); text-align: center; }
.plan-stage {
  position: relative; aspect-ratio: 1000 / 700;
  width: min(96vw, calc((100dvh - 190px) * 1.4286), 1300px);
}
.plan-rooms { position: absolute; inset: 0; }
.plan-thread { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; z-index: 3; }
.plan-thread .t-base { fill: none; stroke: url(#weave); stroke-width: 7; stroke-linecap: round; }
.plan-thread .t-weft { fill: none; stroke: var(--walnut); stroke-opacity: .55; stroke-width: 2.2; stroke-dasharray: 3 4; stroke-linecap: round; }
.plan-thread .t-shadow { fill: none; stroke: rgba(40, 25, 10, .18); stroke-width: 9; stroke-linecap: round; transform: translate(1.5px, 2.5px); }

.circle {
  position: absolute; border: 0; padding: 0; background: none; cursor: pointer;
  border-radius: 50%; -webkit-tap-highlight-color: transparent;
}
.circle:focus-visible { outline-offset: 6px; border-radius: 50%; }
.circle-inner {
  position: absolute; inset: 0; border-radius: 50%;
  animation: drift var(--dur, 24s) ease-in-out var(--delay, 0s) infinite alternate;
}
.circle-disc {
  position: absolute; inset: 6%; border-radius: 50%; overflow: hidden;
  background: var(--wash, rgba(29, 42, 58, .05));
}
.circle-peek {
  position: absolute; inset: 0; background-position: center; background-size: cover;
  opacity: .22; mix-blend-mode: multiply; transition: opacity .4s var(--ease);
}
.circle:hover .circle-peek, .circle:focus-visible .circle-peek { opacity: .42; }
.circle-ring { position: absolute; inset: -2%; width: 104%; height: 104%; mix-blend-mode: multiply; pointer-events: none; }
svg.circle-ring path { fill: none; stroke: var(--ink); stroke-width: 2.2; stroke-linecap: round; opacity: .85; }
.circle-name {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -38%);
  width: 90%; text-align: center; font-size: clamp(14px, 1.45vw, 19px); line-height: 1.15; font-weight: 500;
  color: var(--ink); opacity: .62; transition: opacity .35s var(--ease), transform .35s var(--ease);
  text-shadow: 0 0 10px var(--parchment), 0 0 3px var(--parchment);
  pointer-events: none;
}
.circle:hover .circle-name, .circle:focus-visible .circle-name { opacity: 1; transform: translate(-50%, -50%); }
.circle.visited .circle-name::after { content: ""; display: block; width: 18px; height: 2px; margin: 6px auto 0; background: currentColor; opacity: .5; }

.circle--loom .circle-disc { background: url("../assets/binakul.webp") center / 120%; }

.circle--loom .circle-band {
  position: absolute; inset: 1%; border-radius: 50%;
  background: url("../assets/banded-cloth.webp") center / cover;
  -webkit-mask: radial-gradient(closest-side, transparent 88%, #000 89%, #000 99%, transparent 100%);
          mask: radial-gradient(closest-side, transparent 88%, #000 89%, #000 99%, transparent 100%);
}
.circle--loom .circle-name { color: var(--parchment); text-shadow: 0 1px 6px rgba(0, 0, 0, .9), 0 0 2px #000; opacity: .95; }
.circle--loom.is-revealing { animation: loomIn 1.1s var(--ease) both; }
@keyframes loomIn { from { opacity: 0; transform: scale(.86); } to { opacity: 1; transform: none; } }

@keyframes drift {
  0% { transform: translate(0, 0); }
  50% { transform: translate(var(--dx, 6px), var(--dy, -5px)); }
  100% { transform: translate(calc(var(--dx, 6px) * -.6), calc(var(--dy, -5px) * .8)); }
}

/* ---------- room view ---------- */
.room { position: absolute; inset: 0; overflow: hidden; z-index: 5; }
.room-inner { position: relative; min-height: 100%; height: 100%; }
.room:empty { display: none; }
.scene { position: absolute; inset: 0; overflow: hidden; background: var(--walnut-deep); }
.layer { position: absolute; inset: 0; pointer-events: none; }
.layer .px {
  position: absolute; inset: 0;
  transform: translate3d(calc(var(--px, 0) * var(--d, 0) * 1px), calc(var(--py, 0) * var(--d, 0) * 1px), 0);
}
.layer.interactive, .layer.interactive .px { pointer-events: none; }
.layer.interactive .board, .layer.interactive a, .layer.interactive button { pointer-events: auto; }

/* walls and floors */
.wall-upper { position: absolute; inset: -20px -20px auto -20px; height: calc(46% + 20px); background: var(--plaster) url("../assets/parchment.webp"); background-size: 520px; background-blend-mode: multiply; }
.wall-upper::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(60, 40, 20, .18), rgba(60, 40, 20, 0) 40%); }
.wainscot { position: absolute; left: -20px; right: -20px; top: 46%; height: 27%; background: url("../assets/walnut-wainscot.webp") center top / auto 100% repeat-x; box-shadow: inset 0 10px 14px -8px rgba(0, 0, 0, .5); }
.wainscot::before { content: ""; position: absolute; left: 0; right: 0; top: -10px; height: 12px; background: linear-gradient(#5a3a22, #2e1b0f); box-shadow: 0 2px 4px rgba(0, 0, 0, .35); }
.floor { position: absolute; left: -30px; right: -30px; top: var(--floor-line); bottom: -30px; background: url("../assets/lane-maple.webp") center / cover; filter: saturate(.62) brightness(.62) sepia(.22) contrast(1.05); }
.floor::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, .45), rgba(0, 0, 0, 0) 30%, rgba(0, 0, 0, .25)); }
.floor-dark { background: linear-gradient(180deg, #3a2618, #24160d); filter: none; }
.floor-dark::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(90deg, rgba(0, 0, 0, .18) 0 2px, transparent 2px 180px); }
.skirting { position: absolute; left: -20px; right: -20px; top: calc(var(--floor-line) - 1.4%); height: 1.6%; background: linear-gradient(#4a2e1a, #24150b); box-shadow: 0 3px 6px rgba(0, 0, 0, .4); }

.light { position: absolute; left: -16%; top: -26%; width: 78%; height: 120%; background: url("../assets/light-beams.webp") left top / cover no-repeat; mix-blend-mode: screen; opacity: .5;
  -webkit-mask: radial-gradient(ellipse 85% 80% at 20% 25%, #000 45%, transparent 100%); mask: radial-gradient(ellipse 85% 80% at 20% 25%, #000 45%, transparent 100%); }

.dust { position: absolute; inset: 0; background: url("../assets/dust.webp") center bottom / cover; mix-blend-mode: screen; opacity: .1;
  -webkit-mask: linear-gradient(180deg, transparent 40%, #000 100%); mask: linear-gradient(180deg, transparent 40%, #000 100%); }

/* pendant lamps */
.lamp { position: absolute; top: 0; width: 7vw; min-width: 64px; max-width: 120px; transform: translateX(-50%); }
.lamp-cord { width: 2px; height: 8vh; margin: 0 auto; background: #2a1d12; }
.lamp-shade { height: 0; padding-bottom: 42%; border-radius: 50% 50% 6% 6% / 90% 90% 10% 10%;
  background: radial-gradient(ellipse at 40% 25%, #f4eedc 0 18%, #d8cdb0 45%, #9b8c6a 100%); box-shadow: inset 0 -3px 0 #b08b3c, 0 4px 10px rgba(0, 0, 0, .25); position: relative; }
.lamp-shade::before { content: ""; position: absolute; left: 44%; top: -6px; width: 12%; height: 8px; border-radius: 3px 3px 0 0; background: linear-gradient(#c79a45, #8a6420); }
.lamp-glow { position: absolute; left: 50%; top: 100%; width: 340%; height: 260%; transform: translate(-50%, -18%);
  background: radial-gradient(ellipse at 50% 0%, rgba(255, 214, 140, .55), rgba(255, 200, 120, .16) 40%, transparent 70%); mix-blend-mode: screen; }

/* door */
.door { position: absolute; right: 3.5vw; bottom: calc(100% - var(--floor-line) - .4%); height: 54%; aspect-ratio: 2 / 3;
  background: url("../assets/schoolhouse-door.webp") center / cover; box-shadow: -10px 10px 30px rgba(0, 0, 0, .45); border-radius: 2px; }

/* rug */
.rug { position: absolute; left: 50%; bottom: 5%; width: 38vw; height: 11%; transform: translateX(-50%);
  background: url("../assets/binakul.webp") center / 22vw; box-shadow: 0 6px 16px rgba(0, 0, 0, .45); border-radius: 2px;
  filter: saturate(.9) brightness(.92); }
.rug::before, .rug::after { content: ""; position: absolute; top: 0; bottom: 0; width: 10px;
  background: repeating-linear-gradient(180deg, #e7dcc2 0 2px, transparent 2px 5px); }
.rug::before { left: -10px; } .rug::after { right: -10px; }

/* ---------- the chalkboard ---------- */
.board-wrap { position: absolute; left: 50%; top: 13vh; width: min(56vw, 860px); transform: translateX(-50%); }
.room--threshold .board-wrap { left: 44%; }
.room--stub .board-wrap { width: min(48vw, 760px); }
.board {
  position: relative; color: var(--chalk);
  background: linear-gradient(rgba(16, 24, 20, .24), rgba(16, 24, 20, .24)), #33433b url("../assets/slate.webp") center / cover;
  border: clamp(9px, 1.1vw, 15px) solid #4a2f1c;
  border-image: linear-gradient(135deg, #6b4428, #3a2314 40%, #5a381f 70%, #2f1c10) 1;
  box-shadow: 0 16px 34px rgba(0, 0, 0, .45), inset 0 0 40px rgba(0, 0, 0, .45);
  padding: clamp(18px, 3.2vw, 46px) clamp(18px, 3.4vw, 54px) clamp(22px, 3vw, 40px);
  min-height: 46vh; overflow: hidden;
  touch-action: manipulation;
}
.board::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: url("../assets/dust.webp") center bottom / cover; mix-blend-mode: screen; opacity: .16;
  -webkit-mask: linear-gradient(180deg, transparent 35%, #000 100%); mask: linear-gradient(180deg, transparent 35%, #000 100%); }
.ledge { position: relative; height: clamp(14px, 1.8vw, 22px); margin: 0 -1.5%;
  background: url("../assets/woven-band.webp") left center / auto 100% repeat-x; box-shadow: 0 6px 10px rgba(0, 0, 0, .4); }
.ledge::before { content: ""; position: absolute; left: 0; right: 0; top: -4px; height: 4px; background: #2e1c10; }
.chalk-stick { position: absolute; top: -9px; width: 34px; height: 8px; border-radius: 3px; background: #f1eee6; box-shadow: inset -4px 0 0 #d9d4c6; }
.chalk-eraser { position: absolute; top: -14px; width: 70px; height: 13px; border-radius: 2px; background: linear-gradient(#5b4532 0 55%, #c9c1ad 55%); }

.chalk { filter: url(#chalk); }
.line { position: relative; }
.ghost { position: absolute; left: 0; top: 0; white-space: nowrap; pointer-events: none; user-select: none; }
.ghost span { position: absolute; left: 0; top: 0; filter: blur(.5px) url(#chalk); }
.ghost .g-base { opacity: var(--go, .12); }
.ghost .g-hi { opacity: .42;
  -webkit-mask: radial-gradient(circle 150px at var(--gx, -999px) var(--gy, -999px), #000 0, rgba(0, 0, 0, .6) 35%, transparent 100%);
          mask: radial-gradient(circle 150px at var(--gx, -999px) var(--gy, -999px), #000 0, rgba(0, 0, 0, .6) 35%, transparent 100%); }
.board.reveal .ghost .g-hi { -webkit-mask: none; mask: none; transition: opacity .3s; }
.live { position: relative; z-index: 1; }

.room-name { display: block; font-size: clamp(15px, 1.4vw, 18px); color: rgba(243, 240, 231, .78); margin: 0 0 .4em; font-weight: 500; }
.hero { font-family: var(--display); font-weight: 400; font-size: clamp(34px, 5.6vw, 82px); line-height: 1.04; margin: .05em 0 .5em; letter-spacing: -.005em; }
.hero .live { display: block; }
.invites { list-style: none; margin: 0; padding: 0; display: grid; gap: .32em; font-size: clamp(19px, 1.9vw, 26px); }
.invites a, .chalk-link { color: var(--chalk); text-decoration: none; display: inline-flex; align-items: center; gap: .5em; border-bottom: 2px solid rgba(243, 240, 231, .28); padding: 2px 0; }
.invites a:hover, .chalk-link:hover { border-bottom-color: rgba(243, 240, 231, .85); }
.invites .mark, .board .mark { width: 1.25em; height: 1.25em; object-fit: contain; filter: brightness(0) invert(.94); opacity: .9; }
.invites .mark-none { width: 1.25em; height: 1.25em; display: inline-grid; place-items: center; }
.invites .mark-none::before { content: ""; width: .5em; height: .5em; border: 2px solid currentColor; border-radius: 50%; opacity: .85; }
.board-foot { margin-top: 1.1em; font-size: clamp(16px, 1.4vw, 19px); }

/* ---------- classroom ---------- */
.room--classroom .board-wrap { top: 9vh; width: min(84vw, 1180px); }
.room--classroom .board { min-height: 52vh; }
.notes-head { display: flex; align-items: center; gap: .6em; margin: 0 0 .7em; }
.notes-head .mark { width: 2.4em; height: 2.4em; }
.notes-head .hero { margin: 0; font-size: clamp(32px, 4.4vw, 64px); }
.entries { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(14px, 2.2vw, 32px) clamp(18px, 3vw, 44px); }
.entry { position: relative; border-top: 2px solid rgba(243, 240, 231, .35); padding-top: .6em; }
.entry time { font-size: 15px; letter-spacing: .12em; font-variant-caps: all-small-caps; opacity: .8; }
.entry h2 { font-family: var(--display); font-weight: 400; font-size: clamp(20px, 1.8vw, 26px); line-height: 1.15; margin: .2em 0 .35em; }
.entry p { margin: 0; font-size: clamp(16px, 1.3vw, 19px); }
.entry .entry-credit { margin-top: .5em; font-size: 14px; letter-spacing: .02em; opacity: .75; }
.entry[data-age="1"] .live { opacity: .9; filter: blur(.35px) url(#chalk); }
.entry[data-age="2"] .live { opacity: .8; filter: blur(.6px) url(#chalk); }
.pinned { position: absolute; width: clamp(130px, 12vw, 190px); padding: 22px 14px 16px; color: var(--ink);
  background: var(--parchment) url("../assets/parchment.webp") center / 400px; font-size: 16px; line-height: 1.3;
  box-shadow: 0 8px 18px rgba(0, 0, 0, .35); }
.pinned::before { content: ""; position: absolute; left: 50%; top: -9px; width: 34px; height: 18px; transform: translateX(-50%);
  border-radius: 3px 3px 2px 2px; background: linear-gradient(#2b2b2b, #111); box-shadow: inset 0 2px 0 rgba(255, 255, 255, .2); }
.pinned::after { content: ""; position: absolute; left: 50%; top: -18px; width: 22px; height: 12px; transform: translateX(-50%);
  border: 2px solid #9a9a9a; border-bottom: 0; border-radius: 10px 10px 0 0; }
.pinned.left { left: 2vw; top: 56vh; transform: rotate(-3deg); }
.pinned.right { right: 2vw; top: 15vh; transform: rotate(2.5deg); }

/* ---------- stubs ---------- */
.room--stub .board { min-height: 40vh; display: flex; flex-direction: column; justify-content: center; }
.chalk-line-floor { position: absolute; left: -2%; width: 104%; top: calc(var(--floor-line) + 9%); height: 60px; overflow: visible; }
.chalk-line-floor path { fill: none; stroke: #f3f0e7; stroke-width: 3; stroke-linecap: round; opacity: .72; filter: url(#chalkline); }

.room--rehearsal .wall-full { position: absolute; inset: -20px -20px 0 -20px; height: calc(var(--floor-line) + 20px); background: #2b2724 url("../assets/parchment.webp"); background-size: 520px; background-blend-mode: multiply; }
.room--rehearsal .floor { background-image: url("../assets/rehearsal-floor.webp"); filter: saturate(.85) brightness(.82); }
.room--listening .wall-full { position: absolute; inset: -20px -20px 0 -20px; height: calc(var(--floor-line) + 20px); background: url("../assets/green-plaster.webp") center / cover; filter: brightness(.82); }
.room--workshop .wall-full { position: absolute; inset: -20px -20px 0 -20px; height: calc(var(--floor-line) + 20px); background: #34445a url("../assets/parchment.webp"); background-size: 520px; background-blend-mode: multiply; }
.room--window .wall-upper { background: url("../assets/stucco.webp") center / cover; filter: saturate(.5) brightness(.97) hue-rotate(-6deg); height: calc(var(--floor-line) + 20px); }
.room--loom .wall-full { position: absolute; inset: -20px -20px 0 -20px; height: calc(var(--floor-line) + 20px); background: #d9ccb2 url("../assets/parchment.webp"); background-size: 520px; background-blend-mode: multiply; }

.cork { position: absolute; right: 3.5vw; top: 16%; width: 22vw; height: 52%; border: 10px solid #5a3a22;
  background: url("../assets/cork.webp") center / 420px; filter: saturate(.6) brightness(.93); box-shadow: -8px 10px 24px rgba(0, 0, 0, .35); }
.cork::after { content: ""; position: absolute; inset: 0; background: url("../assets/cork-pinholed.webp") center / 420px; mix-blend-mode: multiply; opacity: .4; }

/* window room: the keepsake cork board */
.room--window .board-wrap { left: 3vw; transform: none; top: 12vh; width: min(18vw, 280px); }
.room--window .board { min-height: 0; }
.room--window .cork { left: 23vw; right: 3vw; top: 8%; width: auto; height: 62%; }
.keep { position: absolute; margin: 0; cursor: zoom-in; transform: rotate(var(--rot, 0deg)); filter: drop-shadow(3px 6px 5px rgba(0, 0, 0, .38)); }
.keep img { display: block; width: 100%; height: auto; }
.keep .tack { position: absolute; left: 50%; top: -5px; width: 15px; height: 15px; margin-left: -7px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #f1e5c9 0 14%, #b8302a 16% 60%, #6d1814 100%); box-shadow: 1px 2px 3px rgba(0, 0, 0, .5); }
.keep .tape { position: absolute; left: 50%; bottom: -14px; transform: translateX(-50%) rotate(calc(var(--rot, 0deg) * -.6)); white-space: nowrap;
  padding: 2px 12px 3px; background: rgba(238, 227, 196, .92); color: #3a2a1c; font-size: 13px; letter-spacing: .12em; font-variant-caps: all-small-caps;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .3); clip-path: polygon(0 0, 100% 0, 98% 50%, 100% 100%, 0 100%, 2% 50%); }

.keep:focus-visible { outline: 2px solid #f3f0e7; outline-offset: 6px; }
.keep:hover { filter: drop-shadow(4px 9px 7px rgba(0, 0, 0, .45)); }
.keep-zoom { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; align-content: center; gap: 14px; background: rgba(20, 14, 10, .82); cursor: zoom-out; padding: 24px; }
.keep-zoom img { max-width: min(86vw, 720px); max-height: 72vh; width: auto; height: auto; filter: drop-shadow(0 14px 24px rgba(0, 0, 0, .55)); }
.keep-zoom-cap { margin: 0; color: #f3f0e7; letter-spacing: .14em; font-variant-caps: all-small-caps; font-size: 18px; }
.keep-zoom-x { background: none; border: 1px solid rgba(243, 240, 231, .6); color: #f3f0e7; padding: 6px 16px; cursor: pointer; font: inherit; }

/* loom room */
.loom-photo { position: absolute; right: 2.5vw; top: 16%; width: 22vw; aspect-ratio: 3 / 2.2; border: 12px solid #4a2f1c;
  background: url("../assets/pedal-loom.webp") center / cover; box-shadow: -10px 12px 28px rgba(0, 0, 0, .4); }
.hanging { position: absolute; left: 3vw; top: 12%; width: 18vw; height: 54%; }
.hanging-rod { position: absolute; left: -8%; right: -8%; top: -10px; height: 10px; border-radius: 5px; background: linear-gradient(#7a5530, #3b2416); box-shadow: 0 3px 5px rgba(0, 0, 0, .35); }
.hanging-cloth { position: absolute; inset: 0; background: url("../assets/banded-cloth.webp") center / cover; box-shadow: 0 10px 20px rgba(0, 0, 0, .35); }
.hanging-cloth.css-bands { background: linear-gradient(180deg, #A8261E 0 18%, #EFE6D2 18% 19%, #D49A1A 19% 34%, #1A1714 34% 36%, #5E1A22 36% 52%, #EFE6D2 52% 53%, #C8571B 53% 68%, #6B6B2A 68% 84%, #1A1714 84% 100%); }
.star-band { position: absolute; left: 0; right: 0; top: 40%; height: 13%; background: #1A1714; display: flex; align-items: center; overflow: hidden; color: #EFE6D2; }
.star-band svg.stars { width: 100%; height: 100%; }
.fringe { position: absolute; left: 2%; right: 2%; bottom: -16px; height: 16px; background: repeating-linear-gradient(90deg, #d8c8a6 0 2px, transparent 2px 6px); }
.loom-thread { position: absolute; left: 0; top: 0; width: 100%; height: 100%; overflow: visible; }
.loom-thread path { fill: none; stroke: url(#weave); stroke-width: 6; stroke-linecap: round; }
.loom-thread path.weft { stroke: var(--walnut); stroke-width: 2; stroke-dasharray: 3 4; stroke-opacity: .6; }
.loom-thread use { color: #EFE6D2; }

/* ---------- mobile ---------- */
@media (max-width: 760px) {
  body { font-size: 17px; }
  .site-header { padding: 10px 10px; font-size: 15px; }
  .list-toggle { max-width: 58vw; line-height: 1.15; padding: 6px 12px 7px; }
  .plan { overflow-y: auto; -webkit-overflow-scrolling: touch; }
  .plan-camera { position: relative; inset: auto; min-height: 100%; justify-content: flex-start; padding-top: 78px; padding-bottom: 90px; }
  .plan-stage { aspect-ratio: auto; width: 100%; }
  .plan-rooms { position: relative; display: flex; flex-direction: column; align-items: center; padding: 10px 0 20px; }
  .circle { position: relative !important; left: auto !important; top: auto !important; width: 62vw !important; height: 62vw !important; margin-top: -9vw; }
  .circle:first-child { margin-top: 0; }
  .circle:nth-child(odd) { transform: translateX(-12vw); }
  .circle:nth-child(even) { transform: translateX(12vw); }
  .circle-name { font-size: 17px; opacity: 1; transform: translate(-50%, -50%); }
  .room { overflow-y: auto; }
  .room-inner { height: auto; }
  .scene { position: relative; min-height: 100dvh; overflow: hidden; }
  .layer.interactive, .layer.interactive .px { position: relative; inset: auto; }
  .board-wrap, .room--classroom .board-wrap, .room--threshold .board-wrap, .room--stub .board-wrap { position: relative; left: auto; top: auto; transform: none; width: 94vw; margin: 62px auto 70px; }
  .board { min-height: 0; padding-bottom: 28px; }
  .door, .lamp, .rug, .cork, .loom-photo, .pinned, .hanging { display: none; }
  .entries { grid-template-columns: 1fr; }
  .site-footer { font-size: 14px; gap: 4px 12px; }
  .footer-credit { display: none; }
}
@media (hover: none) { .circle-name { opacity: 1; transform: translate(-50%, -50%); } }

@media (prefers-reduced-motion: reduce) {
  .circle-inner { animation: none; }
  .layer .px { transform: none !important; }
  *, *::before, *::after { scroll-behavior: auto !important; }
}

/* Field Notes: long ghost drafts wrap inside their column */
.entry .ghost { white-space: normal; width: 100%; right: 0; }
.entry .ghost span { white-space: normal; width: 100%; right: 0; }

.room--window .board .hero, .room--window .board h1.hero { font-size: clamp(24px, 2.5vw, 36px); }

@media (max-width: 760px) {
  .room--window .scene { display: flex; flex-direction: column; }
  .room--window .layer--cork, .room--window .layer--cork .px { position: relative; inset: auto; order: 2; }
  .room--window .cork { display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-end; gap: 44px 22px; position: relative; left: auto; right: auto; top: auto;
    width: 94vw; height: auto; margin: 0 auto 80px; padding: 36px 14px 54px; border-width: 8px; }
  .room--window .keep { position: relative; left: auto !important; top: auto !important; width: calc(var(--cm) * 2.5vw) !important; }
  .room--window .board-wrap { margin-bottom: 40px; width: 94vw; }
}

/* Workshop: longer title and a door list, so the board runs a little tighter. */
.room--workshop .board .hero{font-size:clamp(26px,3vw,44px)}
@media (min-width:761px){.room--workshop .board{padding-top:2.2rem}.room--workshop .invites li{margin:.1rem 0}}

/* Workshop: one painted plate (studs, lamps, blueprint, lane maple). Board stands left so the blueprint reads. */
.room--workshop .plate{position:absolute;inset:-20px;background:#0c121d url("../assets/workshop-plate.webp") 0 0 / 131.6% auto no-repeat}
.room--workshop .board-wrap{left:3vw;transform:none;top:7vh;width:min(42vw,600px)}
.room--workshop .board{min-height:0}
@media (max-width:760px){
  .room--workshop .plate{background-size:cover;background-position:50% 100%}
  .room--workshop .board-wrap{left:auto;width:auto;top:auto}
}

.hero .live { white-space: pre-line; }
.chalk { opacity: .94; }

/* Chalk handwriting: Schoolbell, self-hosted. Small lines get a gentler grain so they stay readable. */
@font-face { font-family: "Schoolbell"; src: url("../fonts/schoolbell.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
.board, .board .hero, .board .live, .board .chalk, .invites a, .chalk-link, .entry h2, .entry p, .room-name, .board-foot, .ghost span { font-family: "Schoolbell", "Segoe Print", "Bradley Hand", cursive; }
.invites a, .chalk-link, .entry p, .room-name, .board-foot, .board p:not(.hero) { font-size: 1.14em; letter-spacing: .01em; }
.invites a .chalk, .chalk-link .chalk, .entry p .chalk, .entry p.live, .room-name.chalk, .board p:not(.hero) .live, .board-foot .chalk, .entry-credit { filter: url(#chalksm); }
.invites a, .chalk-link, .board p:not(.hero), .entry p, .board-foot { color: #f7f4ec; }
.entry-credit { opacity: .8; }
.entry[data-age="1"] .live { filter: blur(.25px) url(#chalksm); }
.entry[data-age="2"] .live { filter: blur(.4px) url(#chalksm); }
.room--classroom .entry p { font-size: clamp(14px, 1.2vw, 17px); line-height: 1.38; }
.room--classroom .board-wrap { top: 9vh; }
.room--classroom .board { padding-bottom: clamp(18px, 2.2vw, 30px); }
.door-item .chalk { filter: url(#chalksm); }
.room--loom .board .hero { font-size: clamp(28px, 3.2vw, 46px); }
.room--loom .board-wrap { top: 7vh; }

/* threshold: See the work. opens three chalk links beneath it */
.invites .sublinks{display:flex;flex-wrap:wrap;gap:.2em 1.1em;margin:.15em 0 .1em 1.75em;font-size:.82em}
.invites a.sublink{border-bottom-width:1px;padding:0}
.invites a:not([href]){border-bottom-color:transparent;cursor:default}

/* legibility pass: gentler chalk on body text, larger type, wider Window Room board */
.entry p, .board p:not(.hero) { font-size: 1.3em; line-height: 1.5; letter-spacing: .015em; color: #fbf9f3; }
.entry h2 { font-size: clamp(24px, 2.1vw, 32px); }
.entry .ghost span, .entry .ghost { font-size: inherit; }
@media (min-width: 761px) {
  .room--window .board-wrap { width: min(25vw, 380px); top: 10vh; }
  .room--window .cork { left: 31vw; }
  .room--window .board .hero, .room--window .board h1.hero { font-size: clamp(30px, 3vw, 44px); line-height: 1.1; }
  .room--window .board .room-name { font-size: 1.2em; }
  .room--window .invites a, .room--window .chalk-link { font-size: 1.3em; }
}
.keep .tape { font-size: 15px; }
.entry p, .board p:not(.hero) { font-size: 1.18em; line-height: 1.4; }
.entry h2, .entry h2 .chalk, .entry[data-age] h2 { filter: url(#chalksm); }
.room--window .board .hero .chalk, .room--window .board .hero { filter: url(#chalksm); }
.entry p, .board p:not(.hero) { font-size: 1.1em; line-height: 1.38; }
@media (max-width: 760px) { .keep .tape { font-size: 12px; padding: 2px 8px 3px; } }

/* Loom Room on phones: the pedal loom photo and hanging cloth stay in the room, stacked under the board */
@media (max-width: 760px) {
  .room--loom .scene { display: flex; flex-direction: column; }
  .room--loom .layer--board { order: 1; }
  .room--loom .layer--loomphoto, .room--loom .layer--loomphoto .px { position: relative; inset: auto; order: 2; }
  .room--loom .layer--hanging, .room--loom .layer--hanging .px { position: relative; inset: auto; order: 3; }
  .room--loom .loom-photo { display: block; position: relative; right: auto; top: auto; width: 86vw; margin: 0 auto 36px; border-width: 9px; }
  .room--loom .hanging { display: block; position: relative; left: auto; top: auto; width: 62vw; height: 150px; margin: 14px auto 70px; }
  .room--loom .board-wrap { margin-bottom: 36px; }
}
@media (max-width: 760px) { .room--loom .board-wrap { margin-bottom: 64px; } .room--loom .loom-photo { margin-bottom: 24px; } }
