/* The same pen, restrained highlights, and clear alternate access to each room. */
.scene-object-link{pointer-events:all;cursor:pointer;outline:none;color:var(--study-ink)}
.scene-object-hit{stroke:none}
.scene-object-label{font:21px 'Atelier Footer Hand',cursive;fill:currentColor;opacity:0;pointer-events:none;transition:opacity .3s ease}
.scene-object-link:is(:hover,:focus-visible,.is-inviting) .scene-object-label{opacity:1}
.scene-object-link .diary-drawing,.scene-object-link .pen-drawing{transition:color .4s ease}
.podcast-screen{color:#b8a16e;transition:color .4s ease}
.podcast-screen-title,.podcast-listen text{font:6.7px 'Atelier Footer Hand',cursive;fill:currentColor;stroke:none}
.podcast-screen-title{font-size:7.2px}
.podcast-wave{opacity:.8;transition:opacity .35s ease}
.podcast-wave-bar{transform-box:view-box}
.podcast-link:is(:hover,:focus-visible,.is-inviting) .podcast-screen{color:#dfc791}
.podcast-link:is(:hover,:focus-visible,.is-inviting) .podcast-wave{opacity:1}
.podcast-link:is(:hover,:focus-visible,.is-inviting) .podcast-wave-bar{animation:podcast-equalizer var(--beat) ease-in-out var(--phase) infinite}
:root[data-mode="day"] .podcast-screen{color:#5d4828}
:root[data-mode="day"] .podcast-link:is(:hover,:focus-visible,.is-inviting) .podcast-screen{color:#382a19}
@keyframes podcast-equalizer{0%,100%{transform:scaleY(.65)}24%{transform:scaleY(1.2)}58%{transform:scaleY(.45)}80%{transform:scaleY(.95)}}
@media(prefers-reduced-motion:reduce){.podcast-screen,.podcast-wave{transition:none}.podcast-link .podcast-wave-bar{animation:none!important}}
.scene-object-link:is(:hover,:focus-visible,.is-inviting) .diary-drawing,
.scene-object-link:is(:hover,:focus-visible,.is-inviting) .pen-drawing{color:#b9ad92}
.diary-link:is(:hover,:focus-visible,.is-inviting) .study-journal-key{color:#e0cfa6;filter:drop-shadow(0 0 1.2px #ddc58c55)}
:root[data-mode="day"] .scene-object-link:is(:hover,:focus-visible,.is-inviting) .diary-drawing,
:root[data-mode="day"] .scene-object-link:is(:hover,:focus-visible,.is-inviting) .pen-drawing,
:root[data-mode="day"] .diary-link:is(:hover,:focus-visible,.is-inviting) .study-journal-key{color:#fff8e8}
.scene-object-link:focus-visible .scene-object-hit{stroke:currentColor;stroke-width:.6;stroke-dasharray:5 5}
.study-wall-thought{fill:currentColor;color:#bfb096;font:25px/1.25 'Atelier Footer Hand',cursive;opacity:0;pointer-events:none;transition:opacity 1.2s ease}
.study-wall-thought[data-lit="true"]{opacity:.86}
:root[data-mode="day"] .study-wall-thought{color:#f0e5d0}
.room-menu-toggle .menu-word{opacity:.8;font-size:14px}
.room-menu-panel{max-height:calc(100svh - 85px);overflow:auto}
.room-menu-panel .motion-toggle{display:block;width:100%;min-height:44px;text-align:left;border-top:1px solid color-mix(in srgb,currentColor 25%,transparent);margin-top:12px;font:17px 'Atelier Footer Hand',cursive}
.room-menu-panel .motion-toggle:focus-visible{outline:1px dashed currentColor;outline-offset:3px}
.scene-guide{display:flex;justify-content:center;gap:20px;flex-wrap:wrap;margin:0 auto 14px;max-width:650px;font:18px 'Atelier Footer Hand',cursive;color:var(--study-ink)}
.scene-guide a{display:flex;align-items:center;min-height:44px;text-decoration:underline;text-underline-offset:5px;text-decoration-thickness:.6px}
.scene-guide a:focus-visible{outline:1px dashed currentColor;outline-offset:4px}
.skip-link{position:fixed;z-index:100;top:10px;left:12px;padding:10px 16px;background:var(--frame-bg);color:var(--frame-fg);transform:translateY(-180%)}
.skip-link:focus{transform:none}
.writing-page{padding:0 24px;display:block;--writing-accent:#d5be91}
:root[data-mode="day"] .writing-page{--writing-accent:#263c31}
.writing-main{width:min(880px,100%);margin:0 auto;padding:145px 0 70px;color:var(--frame-fg)}
.writing-back{display:inline-flex;align-items:center;min-height:44px;font:21px 'Atelier Footer Hand',cursive;color:var(--study-ink)}
.writing-eyebrow{margin:25px 0 12px;color:var(--writing-accent);font:18px 'Atelier Footer Hand',cursive}
.writing-main h1{font:400 clamp(43px,7vw,76px)/1.1 'Atelier Footer Hand',cursive;margin:0 0 25px}
.writing-lead{max-width:590px;font:20px/1.8 Georgia,serif;margin-bottom:58px}
.writing-index{display:flex;gap:20px;flex-wrap:wrap;margin:0 0 28px;font:22px 'Atelier Footer Hand',cursive}
.writing-index a{min-height:44px;display:flex;align-items:center;border-bottom:1px solid var(--study-ink)}
.writing-section{display:grid;grid-template-columns:70px 1fr;gap:18px;border-top:1px solid var(--study-ink);padding:30px 0 36px;scroll-margin-top:110px}
.writing-number{font:28px 'Atelier Footer Hand',cursive;color:var(--study-ink)}
.writing-section h2{font:400 36px/1.2 'Atelier Footer Hand',cursive;margin:0 0 14px}
.writing-section p{font:17px/1.85 Georgia,serif;max-width:580px;margin:0 0 15px}
.writing-section .writing-status{font:19px 'Atelier Footer Hand',cursive;color:var(--writing-accent)}
.writing-main a:focus-visible{outline:1px dashed currentColor;outline-offset:5px}
.writing-note{max-width:580px;margin:45px 0;font:18px/1.7 Georgia,serif;color:var(--writing-accent)}
.writing-footer{border-top:1px solid var(--study-ink);padding:24px 0 40px;color:var(--study-ink);font:17px 'Atelier Footer Hand',cursive;display:flex;gap:20px;flex-wrap:wrap}
@media(max-width:700px){.study-wall-thought{font-size:27px}.scene-guide{gap:7px 18px;font-size:17px;max-width:310px}.writing-main{padding-top:125px}.writing-lead{font-size:18px;margin-bottom:38px}.writing-section{grid-template-columns:34px 1fr;gap:12px}.writing-section h2{font-size:32px}}
:root[data-motion="still"] *, :root[data-motion="still"] *::before, :root[data-motion="still"] *::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}
:root[data-motion="still"] .walk-camera{transform:none!important;will-change:auto}
:root[data-motion="still"] .poodle-front-assembly,:root[data-motion="still"] .poodle-head{transform:none!important}
@media(prefers-reduced-motion:reduce){.scene-object-label,.scene-object-link .diary-drawing,.scene-object-link .pen-drawing,.study-wall-thought{transition:none}}

.desk-initials .initial-carve-shadow{stroke:#10100e}
:root[data-mode="day"] .desk-initials .initial-carve-shadow{stroke:#806d51}

/* Align the header to the plant axis and left desk edge. The window's left
   casing follows the right desk edge whenever the viewport has room for it. */
:root:is([data-project="2"],[data-project="3"]) .room-home{--room-page-width:min(1402px,100vw,calc((100svh - 150px)*1.369));--room-header-gap:max(5px,calc(var(--room-page-width)/1402*67 - 44px))}
:root:is([data-project="2"],[data-project="3"]) .room-home .room-controls{position:absolute;top:clamp(24px,5svh,56px);left:calc((100vw - var(--room-page-width))/2 + var(--room-page-width)*.09272468 - 22px);gap:var(--room-header-gap)}
:root:is([data-project="2"],[data-project="3"]) .room-home .room-controls .room-signature.name.hand{padding-left:22px;font-size:clamp(38px,3.5vw,54px)}
:root:is([data-project="2"],[data-project="3"]) .room-home .room-menu-panel{top:76px}
:root:is([data-project="2"],[data-project="3"]) .room-home .study-candle-flame{display:block;color:#d9b95f;animation:study-flame-dance 2.9s ease-in-out infinite}
:root:is([data-project="2"],[data-project="3"]) .room-home .study-candle-sparks{display:block;color:#b8a060;animation:study-candle-breathe 4.8s ease-in-out infinite}
:root:is([data-project="2"],[data-project="3"])[data-mode="day"] .room-home .study-candle-flame{color:#ffe29a;filter:drop-shadow(0 0 .65px #674a25)}
:root:is([data-project="2"],[data-project="3"])[data-mode="day"] .room-home .study-candle-sparks{color:#6b502b}
/* Separate, infrequent twig responses in either light; the static plate never moves. */
:root:is([data-project="2"],[data-project="3"]) .study-lemon-tree .lemon-branch-a{animation:lemon-twig-a 17s ease-in-out infinite}
:root:is([data-project="2"],[data-project="3"]) .study-lemon-tree .lemon-branch-b{animation:lemon-twig-b 23s ease-in-out infinite}
:root:is([data-project="2"],[data-project="3"]) .study-lemon-tree .lemon-branch-c{animation:lemon-twig-c 19s ease-in-out infinite}
@keyframes lemon-twig-a{0%,9%,33%,100%{transform:rotate(0deg)}19%{transform:rotate(3.6deg)}27%{transform:rotate(-.5deg)}}
@keyframes lemon-twig-b{0%,40%,65%,100%{transform:rotate(0deg)}49%{transform:rotate(-3deg)}58%{transform:rotate(.4deg)}}
@keyframes lemon-twig-c{0%,63%,88%,100%{transform:rotate(0deg)}73%{transform:rotate(-4deg)}81%{transform:rotate(.55deg)}}
.podcast-page-mark{display:block;width:min(310px,80%);height:70px;color:var(--writing-accent);margin:0 0 32px}
@media(max-width:900px){
 :root:is([data-project="2"],[data-project="3"]) .room-home .room-controls{left:12px;top:16px;gap:5px}
 :root:is([data-project="2"],[data-project="3"]) .room-home .room-controls .room-signature.name.hand{padding-left:9px;font-size:clamp(24px,calc((100vw - 132px)/8.5),38px)}
 :root:is([data-project="2"],[data-project="3"]) .room-home .room-menu-panel{top:66px}
}
@media(prefers-reduced-motion:reduce){:root:is([data-project="2"],[data-project="3"]) .study-lemon-tree .lemon-branch,:root:is([data-project="2"],[data-project="3"]) .room-home .study-candle-flame,:root:is([data-project="2"],[data-project="3"]) .room-home .study-candle-sparks{animation:none!important}}

/* All paper-colour cutouts inherit the same interpolated colour as the wall.
   A second background transition on body would leave the sash one step ahead. */
@property --frame-bg{syntax:'<color>';inherits:true;initial-value:#1d1d1b}
:root:is([data-project="2"],[data-project="3"]){transition:--frame-bg .4s ease}
:root:is([data-project="2"],[data-project="3"]) body{transition:color .4s ease}
@media(prefers-reduced-motion:reduce){:root:is([data-project="2"],[data-project="3"]){transition:none}}

/* Slightly clearer vapour; the existing fourteen-second pauses stay intact. */
:root:is([data-project="2"],[data-project="3"]) .room-home .coffee-steam-wisp{animation-name:coffee-steam-room}
@keyframes coffee-steam-room{0%,4%{opacity:0;stroke-dashoffset:1;transform:translateY(3px) scale(.72,.65)}10%{opacity:.24;stroke-dashoffset:.5}21%{opacity:.38;stroke-dashoffset:0;transform:translateY(-7px) scale(1,1)}34%{opacity:.16;stroke-dashoffset:-.5}43%,100%{opacity:0;stroke-dashoffset:-1;transform:translateY(-20px) scale(1.2,1.15)}}

/* Project 2 mobile framing, independent of the navigation. */
@media(max-width:700px){
 :root[data-project="2"] .room-stage{overflow-x:auto;overflow-y:hidden;justify-content:flex-start;padding-top:64px;-webkit-overflow-scrolling:touch}
 :root[data-project="2"] .room-home .study-room{width:118vw;max-width:none;flex:0 0 118vw}
 :root[data-project="2"] .room-home .room-controls .room-signature.name.hand{font-size:clamp(24px,7vw,32px)}
}

/* A drawn index of the room: four objects, rather than a tall list. */
:root[data-project="2"] .room-menu-panel.room-map{
 --map-ink:#c9bb9c;--map-line:#a38f68;
 box-sizing:border-box;width:min(326px,calc(100vw - 24px));padding:12px 15px 8px;
 color:var(--map-ink);background:var(--frame-bg);border:0;border-radius:1px 4px 2px 0;
 box-shadow:0 14px 35px #0002;isolation:isolate;overflow:auto;
 font:17px/1.15 'Atelier Footer Hand',cursive;
 max-height:calc(100svh - 110px);overscroll-behavior:contain;
}
:root[data-project="2"][data-mode="day"] .room-map{--map-ink:#362d22;--map-line:#55452c}
.room-map::before{content:"";position:absolute;inset:0;pointer-events:none;border-top:1px solid color-mix(in srgb,var(--map-line) 65%,transparent);border-bottom:1px solid color-mix(in srgb,var(--map-line) 45%,transparent);transform:rotate(-.35deg)}
:root[data-project="2"] .room-map:not([hidden]){animation:room-map-unfold .24s ease-out both}
:root[data-project="2"] .room-map .room-map-head{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:32px;margin-bottom:5px}
:root[data-project="2"] .room-map .room-map-home{display:flex;align-items:center;gap:7px;min-height:32px;padding:0;font:16px 'Atelier Footer Hand',cursive}
.room-map-home::before{content:"";width:4px;height:4px;border:1px solid currentColor;border-radius:50%}
.room-map-title{font:15px 'Atelier Footer Hand',cursive;opacity:.7;transform:rotate(-3deg);margin-right:10px}
.room-map-close{display:grid;place-items:center;width:44px;height:44px;min-height:44px;border:0;background:none;color:inherit;cursor:pointer}
.room-map-close svg{width:15px;height:15px}
.room-map-heading{display:flex;align-items:center}
.room-map-routes{position:relative;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:0 10px;padding:4px 0 8px}
.room-map-trail{position:absolute;inset:2px 0;width:100%;height:calc(100% - 4px);color:var(--map-line);opacity:.23;pointer-events:none}
:root[data-project="2"] .room-map .room-map-route{position:relative;display:flex;flex-direction:column;justify-content:center;align-items:center;box-sizing:border-box;gap:4px;min-height:76px;padding:5px 0;text-align:center;text-decoration:none;font:17px/1.1 'Atelier Footer Hand',cursive;touch-action:manipulation;-webkit-tap-highlight-color:transparent}
.room-map-route::before{content:"";position:absolute;inset:6px 2px;border-radius:42% 53% 47% 48%;background:radial-gradient(ellipse,color-mix(in srgb,var(--map-line) 18%,transparent),transparent 74%);opacity:0;transition:opacity .18s}
.room-map-route svg{width:37px;height:36px;overflow:visible;color:var(--map-line);transition:transform .22s,color .22s;filter:none}
.room-map-route .map-route-label{position:relative;white-space:nowrap}
.room-map-route .map-route-label::after{content:"";position:absolute;left:12%;right:14%;bottom:-4px;height:1px;background:currentColor;transform:scaleX(0) rotate(-2deg);transform-origin:left;opacity:.55;transition:transform .22s}
.room-map-route:is(:focus-visible,.is-pressed)::before{opacity:1}
.room-map-route:is(:focus-visible,.is-pressed) svg{color:var(--map-ink);transform:translateY(-2px) rotate(-3deg)}
.room-map-route:is(:focus-visible,.is-pressed) .map-route-label::after{transform:scaleX(1) rotate(-2deg)}
@media(hover:hover){.room-map-route:hover::before{opacity:1}.room-map-route:hover svg{color:var(--map-ink);transform:translateY(-2px) rotate(-3deg)}.room-map-route:hover .map-route-label::after{transform:scaleX(1) rotate(-2deg)}}
:root[data-project="2"] .room-map .room-map-foot{display:flex;align-items:center;justify-content:space-between;gap:8px;border-top:1px solid color-mix(in srgb,var(--map-line) 22%,transparent);padding-top:2px}
:root[data-project="2"] .room-map .room-map-privacy{font:14px 'Atelier Footer Hand',cursive;min-height:38px;padding:0;display:flex;align-items:center;opacity:.8}
:root[data-project="2"] .room-map .motion-toggle{font:14px 'Atelier Footer Hand',cursive;display:block;width:auto;min-height:38px;padding:0;margin:0;border:0;text-align:right;color:inherit;cursor:pointer}
:root[data-project="2"] .room-map :is(a,button):focus-visible{outline:1px dashed var(--map-line);outline-offset:1px}
:root[data-project="2"] .room-menu-toggle{touch-action:manipulation;-webkit-tap-highlight-color:transparent;border-radius:50%;transition:background .15s,color .15s}
:root[data-project="2"] .room-menu-toggle:is(:active,.is-pressed){background:color-mix(in srgb,currentColor 14%,transparent)}
:root[data-project="2"] .room-menu-toggle[aria-expanded="true"]{color:var(--frame-fg)}
:root[data-project="2"] .room-menu-toggle .menu-word{display:none}
@keyframes room-map-unfold{from{opacity:0;transform:translateY(-4px)}to{opacity:1;transform:none}}
@media(max-width:900px){:root[data-project="2"] .room-home .room-map{top:54px}}
@media(prefers-reduced-motion:reduce){:root[data-project="2"] .room-map:not([hidden]){animation:none}.room-map-route svg,.room-map-route::before,.room-map-route .map-route-label::after{transition:none}}

/* The index points back into the illustration without moving an object. */
:root[data-project="2"] .room-home[data-map-destination="walk"] .study-window :is(.window-casing,.window-church,.window-sash-outline,.window-sash-rails,.window-handle),
:root[data-project="2"] .room-home[data-map-destination="world"] .diary-link,
:root[data-project="2"] .room-home[data-map-destination="articles"] .pen-link,
:root[data-project="2"] .room-home[data-map-destination="podcast"] .podcast-screen{color:#d5c39c}
:root[data-project="2"][data-mode="day"] .room-home[data-map-destination="walk"] .study-window :is(.window-casing,.window-church,.window-sash-outline,.window-sash-rails,.window-handle),
:root[data-project="2"][data-mode="day"] .room-home[data-map-destination="world"] .diary-link,
:root[data-project="2"][data-mode="day"] .room-home[data-map-destination="articles"] .pen-link,
:root[data-project="2"][data-mode="day"] .room-home[data-map-destination="podcast"] .podcast-screen{color:#fff1d1}
:root[data-project="2"] .room-home[data-map-destination="world"] .diary-link .scene-object-label,
:root[data-project="2"] .room-home[data-map-destination="articles"] .pen-link .scene-object-label,
:root[data-project="2"] .room-home[data-map-destination="podcast"] .podcast-link .scene-object-label{opacity:1}
:root[data-project="2"] .room-home[data-map-destination="podcast"] .podcast-wave-bar{animation:podcast-equalizer var(--beat) ease-in-out var(--phase) infinite}
