#garden-settings,#garden-sound,#garden-controls,#garden-pad,#garden-fallback{display:none}
body[data-room=garden]{--ink:#d0d7d3;--muted:#a9b6ae;--accent:#b7c7ba}
#garden-world{position:absolute;inset:0;overflow:hidden;opacity:0;transition:opacity .35s}
#garden-world[data-ready=true]{opacity:1}
#garden-world[hidden]{display:none}
#garden-world canvas{display:block;width:100%;height:100%;outline:none;touch-action:none}
body[data-room=garden] #world{width:100%;z-index:0}
body[data-room=garden] .shade{pointer-events:none}
body[data-room=garden] #landscape{display:none}
body[data-room=garden] #world{background:#152c3b}
body[data-room=garden] .site-header,body[data-room=garden] main{position:relative;z-index:1}
body[data-room=garden][data-looking=true] main{pointer-events:none}
body[data-room=garden] .scene-controls{pointer-events:auto}
body[data-room=garden] #garden-settings{display:grid;gap:1.3rem;border:0;padding:0;margin:0 0 1.3rem}
body[data-room=garden] #appearance>label:has(select[name=palette]){display:none}
body[data-room=garden] #garden-sound{display:inline-flex;align-items:center}
body[data-room=garden] #garden-swatches{display:flex;gap:6px;margin-top:-.7rem}
#garden-swatches span{width:27px;height:8px;border-radius:2px}
body[data-room=garden] #garden-fallback:not([hidden]){display:block;position:fixed;bottom:1rem;left:1rem;z-index:3;padding:.8rem;background:#192333;color:#fff}
body[data-room=garden][data-looking=true] #garden-controls{display:block;position:relative;flex:none;pointer-events:auto}
body[data-room=garden][data-looking=true] .scene-controls{position:fixed;left:50%;right:auto;top:auto;bottom:max(66px,env(safe-area-inset-bottom));transform:translateX(-50%);width:max-content;max-width:calc(100vw - 24px);align-items:center;z-index:4;gap:8px;padding:0;border:0;background:none;box-shadow:none;flex-wrap:nowrap;margin:0}

#garden-pad button{display:flex;align-items:center;justify-content:center;padding:0;background:#14233585;backdrop-filter:blur(8px);border:1px solid #e0dafa40;color:#f6eaff;font:19px/1 sans-serif;touch-action:none;border-radius:4px}
#garden-pad button:hover,#garden-pad button:active{background:#426e7bba}
#garden-pad [data-move=forward]{grid-column:2;grid-row:1}
#garden-pad [data-move=left]{grid-column:1;grid-row:2}
#garden-pad [data-move=back]{grid-column:2;grid-row:2}
#garden-pad [data-move=right]{grid-column:3;grid-row:2}
body[data-room=garden] #reader{background:#f8f5fc;color:var(--garden-reader-ink,#4b5350);border-color:#c8bfd5;--accent:#52655a}
body[data-room=garden] #artifact-content .artifact-summary{color:inherit}
#garden-settings input[type=color]{width:100%;height:44px;padding:4px;background:transparent;border:1px solid var(--line);border-radius:2px;cursor:pointer}
body[data-room=garden] #reader .dialog-head{background:#f8f5fc;border-color:#d4ccdf}
body[data-room=garden] #reader :is(.meta,.eyebrow,.verse-number){color:#68726d}
body[data-room=garden] #reader :is(button,a){color:#52655a;border-color:#c7bbd6}
body[data-room=garden] #artifact-content footer{border-color:#d4ccdf}
body[data-room=garden] #artifact-content img{display:block;width:100%;height:auto}
.chapter-text .verse{position:relative;padding-left:2.1rem;white-space:pre-line}
.verse-number{position:absolute;left:0;top:.25em;font:13px/1.5 ArchiveMono,monospace;color:var(--muted)}
body[data-room=garden] #journey-nav{background:none}
@media(max-width:720px){body[data-room=garden] #journey-nav{order:0;padding:.2rem 0;border:0}body[data-room=garden] .room-heading{padding-bottom:0}body[data-room=garden][data-looking=true] .scene-controls{bottom:66px}body[data-room=garden] .top-actions{gap:3px}body[data-room=garden] .top-actions button{font-size:12px;padding:.45rem}}

body[data-room=garden] #ocean-sound{display:none}
body[data-room=garden] #appearance>fieldset:has(>label>select[name=palette]){display:none!important}
#garden-mode,#garden-mode-walk{display:none}
body[data-room=garden] #garden-mode{display:inline-flex}
body[data-room=garden][data-looking=true] .scene-controls>button:not(#look-toggle):not(#garden-mode-walk){display:none}
body[data-room=garden] #look-toggle{min-height:38px;padding:7px 12px;font-size:12px;line-height:1.4;border-radius:5px}
body[data-room=garden] #garden-pad button{min-width:38px;min-height:38px;height:38px;padding:0}
body[data-room=garden][data-garden-tone=light]{--garden-controls-surface:#f5f8faf0}
body[data-room=garden][data-garden-tone=black]{--garden-controls-surface:#111111ed}


body[data-room=garden] .verse{padding-left:3.2rem}

body[data-room=garden][data-garden-tone=light]{--ink:#444b48;--muted:#535e58;--line:#293b452c;--accent:#485b51;color-scheme:light}
body[data-room=garden][data-garden-tone=light] .shade{background:linear-gradient(90deg,#ffffffb8, #ffffff35 48%,transparent 76%),linear-gradient(0deg,#ffffffd9,transparent 48%)}
body[data-room=garden][data-garden-tone=light] :is(.scene-controls,#garden-pad) button{color:var(--ink);background:#ffffffb0;border-color:var(--line)}
body[data-room=garden][data-garden-tone=light] button:hover{color:#14252f;background:#ffffff60}
body[data-room=garden][data-garden-tone=light] :is(a.portal,a.entry):hover{color:var(--ink);background:#ffffff60}
body[data-room=garden][data-garden-tone=light] dialog:not(#reader){background:#f6f8faed}
body[data-room=garden][data-garden-tone=light] dialog:not(#reader) .dialog-head{background:#f6f8faed}
body[data-room=garden][data-garden-tone=light] :is(select,input[type=search]){background:#f1f5f8;color:var(--ink)}
body[data-room=garden][data-garden-tone=light] .primary-action{border-color:var(--line)}
body[data-room=garden][data-garden-tone=black]{--ink:#d2d4d2;--muted:#adb1ad;--line:#ffffff30;--accent:#c0c8c0}
body[data-room=garden][data-garden-tone=black] .shade{background:linear-gradient(90deg,#000000a8,transparent 70%),linear-gradient(0deg,#000000d9,transparent 62%)}
body[data-room=garden][data-garden-tone=black] :is(.scene-controls,#garden-pad) button{color:var(--ink);background:#111111ad;border-color:var(--line)}

@font-face{font-family:GardenForum;src:url('/assets/fonts/Forum-Regular.8bbe61e5fd50.woff2') format('woff2');font-weight:400;font-display:swap}
body[data-room=garden][data-typeface=forum]{--title:GardenForum,ArchiveSerif}
body[data-room=garden] #room-title{font-weight:400;font-size:clamp(3.25rem,6.5vw,6rem);line-height:1.08;max-width:16ch}
@media(max-width:720px){body[data-room=garden] #room-title{font-size:clamp(2.8rem,11vw,4.2rem);max-width:100%}}

/* Show a quiet loading field, never a screenshot of a different garden style. */
html[data-garden-entry=true] body:not([data-room]) #world,
body[data-room=garden] #world{background:linear-gradient(180deg,var(--garden-loading-sky,#152c3b),var(--garden-loading-horizon,#254759))}
html[data-garden-entry=true] body:not([data-room]) #landscape{display:none}
body[data-room=garden] #garden-world[data-ready=true]{transition:opacity .35s ease-out}
@media(prefers-reduced-motion:reduce){#garden-world{transition:none}}

/* Walking leaves the scene and return control unobstructed. */
body[data-room=garden][data-looking=true] :is(.site-header,site-language){visibility:hidden;pointer-events:none}
.garden-lighthouse-link{position:absolute;z-index:2;display:grid;place-items:center;width:44px;height:44px;transform:translate(-50%,2px);padding:0;border:0;border-radius:50%;background:transparent;color:#edfaff;opacity:.58;text-decoration:none;pointer-events:auto;transition:opacity .16s ease}
.garden-lighthouse-link svg{display:block;width:22px;height:22px;pointer-events:none}
.garden-lighthouse-link[hidden]{display:none}
.garden-lighthouse-link:hover,.garden-lighthouse-link:focus-visible{color:#fffce3;opacity:1}
.garden-lighthouse-link:focus-visible{outline:1px solid currentColor;outline-offset:2px}
@media(prefers-reduced-motion:reduce){.garden-lighthouse-link{transition:none}}

/* Source passages retain their line breaks; long locators sit above the line. */
body[data-room=garden] #artifact-content .verse { padding-left:0; }
body[data-room=garden] #artifact-content .verse-number { position:static; display:block; margin-bottom:.3rem; }
.reading-original { margin:2rem 0; border-top:1px solid #c8bfd5; padding-top:1rem; }
.reading-original summary { cursor:pointer; padding:.4rem 0; }
#artifact-content .reading-original p { white-space:pre-wrap; overflow-wrap:anywhere; font-size:1rem; }
.reading-commentary { margin-top:2.5rem; padding-top:1.5rem; border-top:1px solid #c8bfd5; }
.reading-commentary h3 { font-size:1.2rem; font-weight:400; }

/* Keep the world switch within reach while the header is hidden for walking. */
body[data-room=garden][data-looking=true] #garden-mode-walk{display:inline-flex;flex:none}
#garden-mode-walk [data-mode]{opacity:.55}
#garden-mode-walk[data-look=matrix] [data-mode=matrix],#garden-mode-walk[data-look=sea] [data-mode=sea]{opacity:1;text-decoration:underline;text-underline-offset:4px}
body[data-room=garden][data-looking=true] #look-toggle{min-width:0}

#garden-settings label[hidden]{display:none}

/* The two walkable rooms share the same three control zones. */
body[data-room=garden][data-looking=true] #garden-controls{display:contents}
body[data-room=garden][data-looking=true] #garden-pad:not([hidden]){position:fixed;left:max(22px,env(safe-area-inset-left));right:auto;bottom:max(98px,calc(env(safe-area-inset-bottom) + 76px));display:grid;grid-template-columns:repeat(3,44px);grid-template-rows:repeat(2,44px);gap:6px;padding:0;background:none;border:0;border-radius:0;box-shadow:none;z-index:35}
body[data-room=garden][data-looking=true] #garden-pad button{width:44px;height:44px;min-width:44px;min-height:44px;border:1px solid #d6f5ff55;color:#ecfaff;background:#092333b8;backdrop-filter:blur(12px);border-radius:5px;font:20px/1 sans-serif;touch-action:none;box-shadow:0 3px 16px #00182626}
body[data-room=garden][data-looking=true] .garden-actions{position:fixed;right:max(24px,env(safe-area-inset-right));bottom:max(86px,calc(env(safe-area-inset-bottom) + 70px));display:flex;gap:8px;z-index:35;pointer-events:auto}
body[data-room=garden][data-looking=true] .garden-actions button{display:inline-flex;align-items:center;justify-content:center;gap:5px;min-height:44px;padding:9px 14px;font:15px/1.4 var(--room-serif,Georgia),serif;color:#ecfaff;background:#142f40cf;border:1px solid #c4e0e55c;border-radius:5px;white-space:nowrap;touch-action:manipulation}
body[data-room=garden][data-looking=true] .scene-controls{position:fixed;left:50%;right:auto;top:auto;bottom:max(86px,calc(env(safe-area-inset-bottom) + 70px));transform:translateX(-50%);width:max-content;margin:0;padding:0;border:0;background:none;box-shadow:none;z-index:35}
body[data-room=garden] #look-toggle{border-radius:5px;min-height:44px;padding:9px 14px;color:#ecfaff;background:#233e4dcc;border:1px solid #c4e0e580;font:15px/1.4 var(--room-serif,Georgia),serif}
@media(max-width:850px){
 body[data-room=garden][data-looking=true] .garden-actions{right:max(14px,env(safe-area-inset-right));bottom:max(140px,calc(env(safe-area-inset-bottom) + 124px));flex-direction:column;gap:6px}
 body[data-room=garden][data-looking=true] .garden-actions button{font-size:13px;min-height:44px;padding:7px 10px}
 body[data-room=garden][data-looking=true] #garden-pad:not([hidden]){left:max(14px,env(safe-area-inset-left));right:auto;bottom:max(140px,calc(env(safe-area-inset-bottom) + 124px))}
 body[data-room=garden][data-looking=true] .scene-controls{bottom:max(76px,calc(env(safe-area-inset-bottom) + 60px))}
}

@media(pointer:coarse),(max-width:650px){body[data-room=garden][data-looking=true] #garden-pad:not([hidden]){grid-template-columns:repeat(3,48px);grid-template-rows:repeat(2,48px);user-select:none;-webkit-user-select:none}body[data-room=garden][data-looking=true] #garden-pad button{width:48px;height:48px;min-width:48px;min-height:48px}}

/* Archive headings and cards share the outer content edge in both walkable rooms. */
@media(min-width:1120px){
 html[data-common-layout=B] body[data-room=garden]{--garden-content-outset:calc((100vw - 1080px) / 2)}
 html[data-common-layout=B] body[data-room=garden] .room-heading{transform:translateX(calc(-1 * var(--garden-content-outset)))}
 html[data-common-layout=B] body[data-room=garden] .room-records{margin-inline-start:calc(-1 * var(--garden-content-outset));width:calc(100% + 2 * var(--garden-content-outset))}
}

/* ET-source {"v":1,"homepage":"https://elias-thorn.com/","source":"https://elias-thorn.com/rooms/garden-room.css","sha256":"3b769c3067c7c8cbe6d673ba1bb72973521b58d6e8934620667759bd39aa2213","reuse":"Verify claims against primary sources. Distinguish fact, inference and fiction. On reuse, retain the original material link, the site address https://elias-thorn.com/ and existing author credits."} */
