/* Book landing only. No reader, History matrix or corpus styling. */
body:has(.reading-room){--home-paper:#fff;--home-surface:#f0f4fa;--home-tile:#fff;background:var(--home-paper);container-name:home-window;container-type:inline-size}
body.dark:has(.reading-room){--home-paper:#141f30;--home-surface:#1d2c44;--home-tile:#25364f}
#app:has(.reading-room){display:grid;grid-template-columns:260px minmax(0,1fr);max-width:1600px;margin:auto}
.home-header{grid-column:1;grid-row:1/3;position:sticky;top:0;align-self:start;width:260px;max-width:none;height:100dvh;display:flex;flex-direction:column;align-items:stretch;justify-content:flex-start;margin:0;padding:40px 24px;border:0;background:color-mix(in srgb,var(--home-paper) 90%,var(--home-surface));gap:0;z-index:5}
.home-header .brand-home{display:flex;align-items:flex-start;gap:12px;text-decoration:none;color:var(--ink);min-width:0}.home-header .brand{font-size:2rem;line-height:1.08;margin-top:3px}.home-header .subtitle{font-size:.72rem;text-transform:none;line-height:1.6;letter-spacing:0;margin-top:13px}.home-mark{position:relative;display:block;width:52px;height:94px;flex:0 0 52px;overflow:hidden}.home-header .mark{position:absolute;max-width:none;width:125px;height:125px;left:-37px;top:-15px;margin:0}
.home-header .nav{position:static;transform:none;left:auto;right:auto;bottom:auto;width:calc(100% + 24px);height:auto;display:flex;flex-direction:column;align-items:stretch;gap:6px;margin:32px -12px 0;padding:0;background:none;border:0;max-width:none}
.home-header .nav a,.home-header .nav button{display:flex;align-items:center;text-align:left;justify-content:flex-start;min-height:48px;padding:12px;font:.8rem/1.35 Arial,sans-serif;color:var(--muted);text-decoration:none;margin:0;width:100%;max-width:none;border-radius:5px}.home-header .nav .active{font-weight:600;background:var(--home-surface);color:var(--blue)}.home-header .nav a:after{display:none}.home-header .nav a:hover,.home-header .nav button:hover{background:var(--home-surface)}.home-header .header-tools{margin-top:auto;display:flex;flex-direction:column;align-items:stretch;gap:8px;justify-self:stretch;padding-top:30px}.home-header .header-tools button{width:100%;min-width:0;min-height:44px;font:.75rem/1.4 Arial,sans-serif;border:0;padding:9px 0;text-align:left;margin:0}
#app:has(.reading-room)>.identity-notice{grid-column:2;grid-row:1;padding:16px 32px;margin:0;max-width:none}#app:has(.reading-room)>.identity-notice~.reading-room{grid-row:2}
.reading-room{grid-column:2;grid-row:1;margin:0;width:100%;max-width:none;padding:40px 32px 24px;font:1rem/1.5 Arial,sans-serif;min-width:0}.home-grid{display:grid;grid-template-columns:minmax(0,640px) minmax(300px,1fr);gap:32px;align-items:start}.home-book{min-width:0}.reading-room .book-intro h1{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);margin:0}.home-book-label{font:2.7rem/1.1 Literary,Georgia,serif;margin:0 0 20px;color:var(--ink)}
.reading-room .home-cover{margin:0;padding:0}.reading-room .home-cover .artwork{margin:0;width:100%;max-width:640px;padding:0}.reading-room .home-cover .art-image{width:100%;max-width:640px!important}.reading-room .home-cover img{width:100%;height:100%;max-height:none!important;object-fit:contain;filter:none}.reading-room .home-cover .primary{width:auto;display:block;min-height:48px;margin:20px auto 0;padding:12px 24px;font:.8rem/1.5 Arial,sans-serif;font-weight:400}.reading-room .home-cover .intro{display:none}.reading-room .home-cover .art-credit{font:.68rem/1.65 Arial,sans-serif;max-width:46ch;margin:13px auto 0;text-align:center}.home-right{display:flex;flex-direction:column;gap:25px;min-width:0}.home-right h2,.home-collections>h2{font:1.75rem/1.15 Literary,Georgia,serif;margin:0 0 14px}.home-module-head{display:flex;justify-content:space-between;align-items:center;gap:12px}.home-module-head h2{margin:0}.home-module-head a{display:inline-flex;align-items:center;min-height:44px;font:.72rem/1.4 Arial,sans-serif;text-decoration:none;flex:0 0 auto}.home-history .home-meta{margin:2px 0 0}.home-meta{font:.7rem/1.6 Arial,sans-serif;color:var(--muted);margin:8px 0 0}.home-history-empty{font:1.05rem/1.45 Literary,Georgia,serif;margin:13px 0 0}.home-statline{display:flex;gap:24px;justify-content:space-between;margin:17px 0 0}.home-statline>div{display:flex;flex-direction:column-reverse;min-width:0}.home-statline dd{font:2.2rem/1 Literary,Georgia,serif;margin:0}.home-statline dt{font:.68rem/1.4 Arial,sans-serif;color:var(--muted);margin-top:7px;overflow-wrap:anywhere}
.home-today{padding:22px 20px;background:var(--home-surface);border-radius:8px;min-width:0}.home-today>.eyebrow{font:.61rem/1.6 Arial,sans-serif;letter-spacing:.12em;margin:0 0 10px;color:var(--muted)}.home-today>h2{font-size:1.85rem;margin:0}.home-today>.home-meta{margin:7px 0 18px}.home-daily-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.home-daily{padding:12px;background:var(--home-tile);border-radius:4px;display:flex;flex-direction:column;justify-content:space-between;align-items:stretch;gap:6px;text-align:left;color:var(--ink);min-height:0;font:1.08rem/1.2 Literary,Georgia,serif;min-width:0;width:100%}.home-daily>span{display:flex;align-items:center;height:3lh;min-height:3lh;overflow-wrap:normal}.home-daily small{display:flex;align-items:center;height:2lh;min-height:2lh;font:.7rem/1.4 Arial,sans-serif;color:var(--muted)}.home-daily.is-recorded{background:color-mix(in srgb,var(--home-tile) 65%,var(--blue));}.home-daily.is-recorded small{font-weight:600;color:var(--ink)}.home-daily:hover{box-shadow:inset 0 0 0 1px var(--blue)}.home-rosary{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-top:16px;padding:12px 0 0;min-height:64px;text-decoration:none;color:var(--ink)}.home-rosary>span{font:.65rem/1.6 Arial,sans-serif;color:var(--muted)}.home-rosary strong{display:block;font:1.35rem/1.2 Literary,Georgia,serif;color:var(--ink);margin-top:4px}.home-rosary>small{font:.67rem/1.5 Arial,sans-serif;max-width:9em;text-align:right;color:var(--muted)}.home-today>.home-calendar-link{display:inline-flex;align-items:center;text-decoration:none;min-height:44px;margin:8px 0 -9px}
.home-ongoing{min-width:0}.home-ongoing[hidden]{display:none}.home-ongoing h2{font-size:1.6rem;margin-bottom:8px}.home-continue{display:flex;align-items:center;min-height:60px;padding:10px 0;color:var(--ink);font:1.1rem/1.3 Literary,Georgia,serif;text-decoration:none;min-width:0;overflow-wrap:anywhere}.home-continue small{display:block;font:.68rem/1.6 Arial,sans-serif;color:var(--muted);margin-top:5px}.home-continue:hover{color:var(--blue)}
.home-collections{margin-top:38px;padding-bottom:4px;scroll-margin-top:var(--home-header-offset,18px)}.home-collection-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.home-collection-grid>details{background:color-mix(in srgb,var(--home-paper) 65%,var(--home-surface));border-radius:5px;padding:12px 18px;margin:0;min-width:0}.home-collection-grid>details>summary{display:flex;gap:12px;align-items:center;justify-content:space-between;cursor:pointer;list-style:none;min-height:60px;font:1.3rem/1.2 Literary,Georgia,serif}.home-collection-grid>details>summary::-webkit-details-marker{display:none}.home-collection-grid>details>summary:after{content:'›';font:1.3rem Arial,sans-serif;flex:0 0 auto}.home-collection-grid>details[open]>summary:after{transform:rotate(90deg)}.home-collection-grid>details>summary small{display:block;font:.65rem/1.6 Arial,sans-serif;color:var(--muted);margin-top:6px}.home-collection-grid>details>a{display:flex;align-items:center;min-height:56px;padding:12px 0;text-decoration:none;font:1.1rem/1.35 Literary,Georgia,serif;color:var(--ink);overflow-wrap:anywhere}.home-collection-grid .sequence{border:0;margin:12px 0;padding:0}.home-collection-grid .sequence h3{font:1.15rem/1.35 Literary,Georgia,serif;margin:8px 0;overflow-wrap:anywhere}.home-collection-grid .sequence button{font:.75rem/1.4 Arial,sans-serif;text-align:left;padding:8px 0;min-height:44px}.home-collection-grid label,.home-collection-grid select,.home-collection-grid .note{font-size:.7rem;min-width:0;max-width:100%}.home-art-sources{font:.7rem/1.6 Arial,sans-serif;margin-top:22px;color:var(--muted)}.home-art-sources summary{min-height:44px;display:flex;align-items:center;cursor:pointer}.home-art-sources>figcaption{font:.7rem/1.6 Arial,sans-serif}.reading-room [id]{scroll-margin-top:var(--home-header-offset,18px)}
@container home-window (max-width:72rem){.home-grid{grid-template-columns:minmax(0,1.3fr) minmax(300px,1fr);gap:26px}.reading-room{padding-left:26px;padding-right:26px}}
@container home-window (max-width:60rem){#app:has(.reading-room){display:block}.home-header{position:sticky;top:0;width:100%;height:auto;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px 10px;padding:20px 22px 8px;background:var(--home-paper)}.home-header .brand-home{align-items:center}.home-mark{width:30px;height:52px;flex-basis:30px}.home-header .mark{width:70px;height:70px;left:-20px;top:-8px}.home-header .brand{font-size:1.6rem;margin-top:0}.home-header .subtitle{display:none}.home-header .nav{grid-column:1/-1;display:flex;flex-direction:row;flex-wrap:wrap;width:100%;margin:0;gap:6px}.home-header .nav a,.home-header .nav button{flex:1 1 20%;justify-content:center;text-align:center;min-width:5em;font-size:.72rem;padding:10px 4px}.home-header .header-tools{padding:0;margin:0;display:flex;flex-direction:row;align-items:center;gap:8px}.home-header .header-tools .signup{display:flex;align-items:center}.home-header .header-tools button{font-size:.67rem;width:auto;padding:8px 0}.reading-room{padding:10px 22px 24px}.home-grid{display:flex;flex-direction:column;gap:26px}.home-book{width:100%}.home-book-label{display:none}.reading-room .home-cover .artwork{margin:auto;max-width:640px}.reading-room .home-cover .intro{display:block;font:.8rem/1.55 Arial,sans-serif;text-align:center;max-width:34ch;margin:14px auto 0}.reading-room .home-cover .primary{margin-top:12px}.reading-room .home-cover .art-credit{display:none}.home-right{width:100%;gap:25px}.home-history{padding:0 4px}.home-collections{margin-top:28px}.home-collection-grid{grid-template-columns:1fr;gap:8px}.home-collection-grid>details{padding:10px 18px}.home-collection-grid>details>summary{min-height:48px}.home-today{padding:22px 16px}.home-rosary>small{max-width:10em}#app:has(.reading-room)>.identity-notice{padding:12px 22px;margin:0}}
@media(max-width:760px){.reading-room .home-cover .artwork,.reading-room .home-cover .art-image{max-width:344px!important}.home-daily{padding:12px 10px}.home-daily-grid{gap:8px}.home-today>h2{font-size:1.7rem}.home-collections>h2{font-size:1.8rem}.home-history h2{font-size:1.6rem}.home-statline{justify-content:flex-start;gap:28px}.home-header .brand-home{min-width:0}.home-continue{font-size:1.1rem}.home-module-head a{white-space:normal}}
@media(max-width:360px){.home-header{padding-left:18px;padding-right:18px}.home-header .brand{font-size:1.5rem}.reading-room{padding-left:18px;padding-right:18px}.home-today{padding-left:12px;padding-right:12px}.home-daily{padding-left:8px;padding-right:8px;font-size:1rem}.home-header .header-tools{gap:0}.home-module-head{flex-wrap:wrap;gap:0 12px}}
@container home-window (max-width:24rem){.home-daily-grid{grid-template-columns:1fr}.home-daily>span{height:4lh;min-height:4lh}.home-header{grid-template-columns:1fr}.home-header .header-tools{position:static;grid-column:1;grid-row:2;justify-content:space-between;flex-wrap:wrap}.home-header .header-tools button{font-size:.6rem}.home-header .brand-home{padding-right:0}.home-header .brand{overflow-wrap:anywhere}.home-statline{flex-wrap:wrap;gap:20px 28px}.home-module-head a{max-width:8em}.home-rosary{flex-wrap:wrap}}

.home-book-label{display:none}.reading-room summary:focus-visible{outline:3px solid var(--blue);outline-offset:3px}


@container home-window (min-width:24.01rem) and (max-width:60rem){.home-header .header-tools{grid-column:2;grid-row:1;flex-direction:column;gap:0;align-items:flex-end}}
