/* A room style changes the whole reading system, never just the large title.
   Load after the legacy room sheets; scope keeps the homepage untouched. */
@font-face{font-family:RoomCormorant;src:url('/assets/fonts/CormorantSC-Regular.76770a49119a.woff2') format('woff2');font-style:normal;font-weight:400;font-display:swap}
@font-face{font-family:RoomForum;src:url('/assets/fonts/Forum-Regular.8bbe61e5fd50.woff2') format('woff2');font-style:normal;font-weight:400;font-display:swap}
@font-face{font-family:RoomTenor;src:url('/assets/fonts/TenorSans-Regular.8ea4095a86c2.woff2') format('woff2');font-style:normal;font-weight:400;font-display:swap}
@font-face{font-family:RoomPlex;src:url('/assets/fonts/IBMPlexMono-Regular.e2820a098dfa.woff2') format('woff2');font-style:normal;font-weight:400;font-display:swap}
body[data-room-typography]{--room-title:RoomCormorant,Georgia,serif;--room-body:RoomForum,Georgia,serif;--room-ui:var(--room-body);--title:var(--room-title);font-family:var(--room-body);font-weight:400}
body[data-room-typography=forum]{--room-title:RoomForum,Georgia,serif;--room-body:RoomTenor,Arial,sans-serif}
body[data-room-typography=mono]{--room-title:RoomPlex,monospace;--room-body:RoomPlex,monospace}
/* Existing room and garden typeface selectors have higher specificity. */
body[data-room-typography][data-typeface]{--title:var(--room-title)}
body[data-room-typography] :is(p,li,dd,dt,figcaption,small,label,.eyebrow,.meta,.room-footer,.group-title,.verse-number,.room-map-number,.step-number,.step-check,.journey-storage,.space-hint){font-family:var(--room-body)!important}
body[data-room-typography] :is(button,input,textarea,select,summary,.site-header nav,.primary-action,.source-link,.journey-submit,.journey-exits a,.room-map-arrow,#records-count){font-family:var(--room-ui)!important}
body[data-room-typography] :is(h1,h2,h3,.brand,.portal strong,.entry strong,.room-map-caption strong,.hall-enter,.hall-door>span,#journey-nav li button,.name-terms dt,#lighthouse-title){font-family:var(--room-title)!important;font-weight:400;font-synthesis:none}
body[data-room-typography] #room-title{line-height:1.12;letter-spacing:0;font-weight:400}
body[data-room-typography=mono] #room-title{font-size:clamp(2.35rem,4.7vw,4.5rem);letter-spacing:-.045em;max-width:20ch}
body[data-room-typography] #room-caption{font-family:var(--room-body)!important;line-height:1.65;letter-spacing:0}
body[data-room-typography] :is(#artifact-content,#journey-content) :is(p,li,dd,blockquote){font-family:var(--room-body)!important;line-height:1.8;letter-spacing:0}
body[data-room-typography=serif] :is(#artifact-content,#journey-content) :is(p,li,dd,blockquote){font-size:1.25rem}
body[data-room-typography=mono] :is(#artifact-content,#journey-content) :is(p,li,dd,blockquote){font-size:1rem}
body[data-room-typography] #artifact-content :is(.meta,.insert-label){font-size:.875rem}
/* The studio stylesheet is appended dynamically with !important declarations.
   Override only its font families in rooms, leaving geometry and samples intact. */
body[data-room-typography] #settings.official-appearance{font-family:var(--room-ui)!important}
body[data-room-typography] #settings.official-appearance :is(button,input,select,label,legend,small,p,.official-font-name,.official-kicker){font-family:var(--room-ui)!important}
body[data-room-typography] #settings.official-appearance .official-header h2{font-family:var(--room-title)!important;font-weight:400!important;letter-spacing:0!important}
body[data-room-typography] #settings.official-appearance .official-pair-body{font-family:var(--specimen-body)!important;font-size:13px!important;line-height:1.6!important}
body[data-room-typography] #settings .room-style-note{font-family:var(--room-ui);font-size:13px;line-height:1.6;color:var(--muted)}
@media(max-width:720px){body[data-room-typography=mono] #room-title{font-size:clamp(1.8rem,7.5vw,3rem);max-width:100%}body[data-room-typography=serif] :is(#artifact-content,#journey-content) :is(p,li,dd,blockquote){font-size:1.1875rem}}
/* Garden controls only belong to the garden, including inside the shared editor. */
body:not([data-room=garden]) #settings #garden-settings{display:none!important}
body[data-room-typography] .room-heading #room-caption{text-shadow:0 1px 8px #06111b99}
/* Long reader titles must remain inside the dialog on narrow screens. */
@media(max-width:600px){#reader #artifact-title{font-size:clamp(1.8rem,8vw,2.2rem);line-height:1.12;overflow-wrap:anywhere;max-width:100%}}

/* ET-source {"v":1,"homepage":"https://elias-thorn.com/","source":"https://elias-thorn.com/rooms/typography.css","sha256":"c443713f19111ca4aa2dead1ba1adfddd600044e2981dbf7d52d0fe270ca26b9","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."} */
