/* The tidy-up (Ben, 10 November 2026): one menu, a shelf of paintings, pictures in the lower
   halves of pages, and comfortable text. Loaded last (tidy.finish_tidy) so it settles the
   earlier layers; nothing here changes the palette, the type or evening.css. */

/* ---------- one menu ---------- */
.primary a{white-space:nowrap}
.primary a,.brand{text-shadow:0 1px 3px #06111b,0 0 14px #06111bcc}
.moment-article .small-discoveries{margin:0;border:0;padding:0}.moment-article .mini-cards{max-width:340px}
@media(max-width:700px){.primary{gap:6px 10px}.quiet-toggle{font-size:15px}.world-tabs{gap:6px 18px}.world-tabs a{font-size:18px}}
@media(max-width:370px){.primary{flex-wrap:wrap;font-size:16px}}
.world-tabs a{font-size:19px}

/* ---------- breadcrumb: no strip, readable on any painting ---------- */
.breadcrumb{background:none;font-size:16px;color:var(--ink);text-shadow:0 1px 2px #06111b,0 0 12px #06111b,0 0 22px #06111b}
.breadcrumb span[aria-hidden]{color:var(--brass)}
@media(max-width:700px){.breadcrumb{font-size:15px}}

/* ---------- story pages: let the painting show ---------- */
.story-page .scene-shade{background:linear-gradient(180deg,#07131ed0,transparent 24%),linear-gradient(90deg,#07131ee8,#07131ecc 28%,#07131e59 52%,#07131e1f 74%,#07131e14)}
.story-detail{max-width:600px}
.story-detail h1,.story-detail .intro,.story-detail .story-duration,.story-detail .source-note,.story-detail .actions{text-shadow:0 1px 3px #06111b,0 0 18px #06111bcc}
.story-detail .story-duration{font-size:20px}
.quiet.story-page .scene-shade{background:#07131eda}
@media(max-width:1050px){.story-detail{max-width:62%}}
@media(max-width:700px){
  .story-detail{max-width:none}
  .story-page .scene-shade{background:linear-gradient(180deg,#07131ee6,#07131eb8 15%,#07131e42 27%,#07131e4d 36%,#07131ed4 52%,#07131ffa 68%,#07131fff 80%)}
  .quiet.story-page .scene-shade{background:#07131eeb}
}

/* ---------- comfortable text: nothing to read under 15px ---------- */
.footer,.footer a{font-size:16px}
.quiet-toggle{font-size:16px}
.source-note,.reading .source-note{font-size:16px}
.cast-line{font-size:16px!important}
.story-row .metadata,.keepsake-row .metadata{font-size:16px}
.in-scene-note,.playback-note,.result-count{font-size:17px}
.scene-note small{font-size:16px}
.map-inset-text small{font-size:15px;letter-spacing:.02em}
.player-label small{font-size:16px}
.portrait-invite{font-size:17px}
.gallery-grid figcaption,.world-portrait figcaption{font-size:17px}
.character-connection figcaption,.character-art-note,.place-art-note,.place-person .place-art-note{font-size:16px}
.eyebrow{font-size:17px}
.journey-navigation span{font-size:16px}
.ch-kicker,.ch-people small,.sp-words small,.pm-faces a,.letter-form small,.pocket-head p,.pocket-key,.op-where{font-size:15px}
.ch-kicker,.pocket-head p{letter-spacing:.1em}
@media(max-width:700px){
  .footer,.footer a{font-size:16px}
  .quiet-toggle{font-size:15px}
  .story-row .metadata{font-size:15px}
  .scene-note small{font-size:15px}
  .character-connection figcaption{font-size:15px}
  .guide-scale-note{font-size:16px}
}

/* faces and their one-line descriptions: whole, and bright enough to read */
.face-tiles,.place-profile .place-people-list{grid-template-columns:repeat(auto-fill,minmax(176px,1fr));gap:34px 24px}
.face-tile small,.place-profile .place-person p,.people-directory .world-card p{display:block;overflow:visible;-webkit-line-clamp:unset;font-size:16px;line-height:1.45;color:var(--muted);opacity:1;margin-top:7px}
.face-tile strong,.place-profile .place-person h3{font-size:22px}
.people-directory .world-card{width:172px}
.people-directory .world-card h2,.people-area .world-card h2{font-size:22px}
@media(max-width:700px){
  .face-tiles,.place-profile .place-people-list{grid-template-columns:none;grid-auto-columns:47%}
  .people-directory .world-card{width:auto}
  .people-directory .world-card p{display:none}
  .people-directory .world-card h2,.people-area .world-card h2{font-size:18px}
}

/* the stock credit stays for the large viewer and for screen readers only */
.credit-only{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}

/* ---------- small picture cards in place of plain link lists ---------- */
.mini-cards{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:16px 20px}
.mini-card{display:grid;grid-template-columns:96px minmax(0,1fr);align-items:center;gap:16px;min-height:76px;text-decoration:none;border:1px solid #d4b47a33;background:#0f212bd9;transition:border-color .5s ease,background .5s ease}
.mini-card img{display:block;width:96px;height:100%;min-height:76px;aspect-ratio:auto;object-fit:cover}
.mini-faces .mini-card img{object-position:50% 22%}
.mini-card span{font-size:19px;line-height:1.3;padding:10px 14px 10px 0}
.mini-card.plain{grid-template-columns:1fr}.mini-card.plain span{padding-left:16px}
@media(hover:hover){.mini-card:hover{border-color:var(--brass);background:#16303a}}
.connections{grid-template-columns:1fr}
.connection h3,.small-discoveries h3{margin-bottom:16px}
.small-discoveries{border-bottom:0;padding-bottom:0}

/* ---------- the Stories page: a shelf of paintings ---------- */
.story-shelf-page{margin-top:22px}
.story-shelf-page .collection-title{display:flex;align-items:baseline;flex-wrap:wrap;gap:6px 34px}
.story-shelf-page .collection-title h1{font-size:54px;margin:0}
.story-shelf-page .collection-title .intro{margin:0;font-size:21px;color:var(--muted)}
.story-shelf-page .quick-listen{margin:14px 0 0;padding:8px 0}
.story-shelf-page .story-search{margin:16px 0 0;gap:14px 20px}
.story-shelf-page .story-search label{gap:6px;font-size:16px;color:var(--muted)}
.story-shelf-page .story-search input,.story-shelf-page .story-search select{min-height:48px;padding:8px 14px;color:var(--ink)}
.shelf-bar{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:0 26px;margin:8px 0 14px}
.shelf-bar .result-count{margin:0}
.shelf-bar .suggest-a-story{margin:0}
.story-shelf-page .story-suggestion{margin:0 0 26px;padding:14px 20px 18px;border:1px solid var(--line);background:#0f212b}
.story-shelf-page .story-suggestion>a{font:400 28px/1.25 var(--display);border:0;padding:4px 0}
.story-shelf-page .world-search-results{margin:0 0 26px}
.shelf-note{margin:34px 0 0}
.story-shelf{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:40px 30px}
.story-shelf .story-row{display:flex;flex-direction:column;gap:0;padding:0;border:1px solid #d4b47a3d;background:#0f212b;min-width:0}
.story-shelf .story-art{min-height:0;overflow:hidden;background:#142329}
.story-shelf .story-art img{display:block;width:100%;height:auto;aspect-ratio:3/2;object-fit:cover;transition:transform 1.4s cubic-bezier(.2,.7,.2,1),filter .8s ease}
.story-shelf .story-row>div{display:flex;flex-direction:column;flex:1;padding:18px 22px 12px}
.story-shelf .story-row .metadata{order:-1;margin:0;font-size:16px;color:var(--brass)}
.story-shelf .story-row h2{font:400 28px/1.2 var(--display);margin:6px 0 10px}
.story-shelf .story-row p{font-size:18px;line-height:1.5;max-width:none;margin-bottom:10px}
.story-shelf .story-row .cast-line{color:var(--muted)}
.story-shelf .row-actions{margin-top:auto;padding-top:4px;border-top:1px solid #d4b47a26;justify-content:space-between;gap:16px}
.story-shelf .row-actions .text-link,.story-shelf .row-actions .save{font-size:18px;border-bottom:0}
.story-shelf .row-actions .text-link{color:var(--ink);text-decoration:underline;text-decoration-color:var(--brass);text-underline-offset:6px}
@media(hover:hover){.story-shelf .story-art:hover img{transform:scale(1.04);filter:brightness(1.06)}.story-shelf .story-row:hover{border-color:#d4b47a88}}
@media(max-width:1100px){.story-shelf{grid-template-columns:repeat(2,minmax(0,1fr));gap:32px 24px}}
@media(max-width:700px){
  .story-shelf-page{margin-top:14px}
  .story-shelf-page .collection-title h1{font-size:40px}
  .story-shelf-page .collection-title .intro{font-size:19px}
  .story-shelf-page .quick-listen{margin-top:10px;gap:0 22px}
  .story-shelf-page .quick-listen>span{padding-top:6px}
  .story-shelf-page .story-search{gap:10px 14px}
  .story-shelf-page .story-search>button{min-height:44px;padding:6px 0}
  .shelf-bar{margin:2px 0 12px}
  .story-shelf{grid-template-columns:minmax(0,1fr);gap:26px}
  .story-shelf .story-row>div{padding:16px 18px 10px}
  .story-shelf .story-row h2{font-size:27px}
  .story-shelf .story-row .metadata{font-size:15px}
}

/* stories listed inside place, person and almanac pages: fuller picture cards */
.world-page .world-stories .story-list,.world-expansion .world-stories .story-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:34px 28px}
.world-expansion .world-stories .story-row{display:flex;flex-direction:column;gap:0;padding:0;border:0}
.world-expansion .world-stories .story-art{min-height:0;border:1px solid #d4b47a2e}
.world-expansion .world-stories .story-art img,.world-page .world-stories .story-art img{width:100%;height:auto;aspect-ratio:3/2;object-fit:cover}
.world-expansion .world-stories .story-row h2,.world-page .world-stories .story-row h2{font-size:26px;margin:10px 0 8px}
.world-expansion .world-stories .story-row p,.world-page .world-stories .story-row p{font-size:18px}
.world-expansion .world-stories .cast-line{display:none}
.world-expansion .world-stories{margin-top:46px;padding-top:36px;border-top:1px solid var(--line)}
.world-expansion .world-stories>h2{font:400 clamp(28px,2.6vw,35px)/1.2 var(--display)}
@media(max-width:700px){
  .world-page .world-stories .story-list,.world-expansion .world-stories .story-list{grid-template-columns:none;grid-auto-flow:column;grid-auto-columns:78%;overflow-x:auto;scroll-snap-type:x mandatory;margin:0 -24px;padding:0 24px 10px;scroll-padding:0 24px;scrollbar-width:none;gap:16px}
}

/* ---------- homepage and Library: the last story you opened, as a card ---------- */
.recent-visit>h2{font:400 34px/1.15 var(--display);margin:0 0 20px}
.recent-card{display:grid;grid-template-columns:minmax(0,300px) minmax(0,1fr);align-items:center;gap:26px;max-width:860px;border:1px solid var(--line);background:#0f212b}
.recent-art{display:block;align-self:stretch}
.recent-art img{display:block;width:100%;height:100%;min-height:190px;aspect-ratio:auto;object-fit:cover}
.recent-words{padding:20px 26px 16px 0}
.recent-visit .recent-card h3{font:400 28px/1.15 var(--display);margin:0}
.recent-card h3 a{text-decoration:none}
.recent-card .recent-meta{margin:8px 0 10px;font-size:16px;color:var(--brass)}
.recent-card p{font-size:18px;line-height:1.5;color:var(--muted);margin:0 0 6px;max-width:none}
.recent-card .text-link{font-size:18px}
.recent-visit .source-note{margin:16px 0 0;font-size:16px}
.home-recent{background:var(--night);border-bottom:0;padding:26px max(24px,calc((100% - 1136px)/2)) 46px}
@media(max-width:700px){
  .recent-visit>h2{font-size:30px}
  .recent-card{grid-template-columns:1fr;gap:0}
  .recent-art img{min-height:0;aspect-ratio:3/2;height:auto}
  .recent-words{padding:16px 20px 14px}
  .recent-visit .recent-card h3{font-size:26px}
  .home-recent{padding:20px 24px 36px}
}

/* ---------- person pages: use the width ---------- */
.character-biography .world-prose:has(.character-detail){max-width:none;display:grid;grid-template-columns:minmax(0,1.35fr) minmax(0,1fr);column-gap:64px;align-items:start}
.character-biography .world-prose:has(.character-detail)>*{grid-column:1}
.character-biography .world-prose:has(.character-detail)>.character-detail{grid-column:2;grid-row:1/span 30;margin:6px 0 0;padding:24px 28px 26px;border:1px solid var(--line);background:#0f212bcc}
.character-place-list{grid-template-columns:repeat(3,minmax(0,1fr));gap:36px 30px}
.character-place-picture img{aspect-ratio:3/2;object-fit:cover}
.character-place-list h3{font-size:27px}
.character-place-list>li>p:not(.character-art-note){font-size:19px}
.character-reading-links{max-width:none;display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,340px),1fr));gap:30px 56px;align-items:start}
.character-reading-links .small-discoveries{margin:0;padding:25px 0 0}
.character-customs{padding-top:25px;border-top:1px solid var(--line)}
.character-customs ul{display:flex;flex-wrap:wrap;gap:10px}
.character-customs .text-link{display:inline-flex;align-items:center;min-height:44px;padding:0 16px;border:1px solid #d4b47a55;border-radius:999px}
@media(min-width:701px){.character-connections{grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:34px 26px}}
.character-relationship-summary{font-size:18px}
@media(max-width:950px){
  .character-biography .world-prose:has(.character-detail){display:block}
  .character-biography .world-prose:has(.character-detail)>.character-detail{margin-top:30px}
  .character-place-list{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:700px){.character-place-list{grid-template-columns:1fr}}

/* ---------- place, almanac and short-scene pages ---------- */
/* A sticky picture slid over the full-width rows below it; it now stays where it was put. */
.world-article .world-portrait{position:static}
.world-opening .connections{margin:34px 0 0}
.detail-year img{aspect-ratio:3/2;object-fit:cover}
.detail-place-art{display:block}
.detail-year .detail-art-caption{font-size:16px;min-height:0}
.detail-year .text-link{margin-top:12px}
.place-profile .place-particulars h3{font-size:24px}
.moment-article .connections{margin-top:30px}

/* the signpost and the customs chips share a row instead of leaving the right half empty */
@media(min-width:901px){
  .place-profile .place-neighbourhood:has(>.signpost):has(>.place-particulars){display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);column-gap:70px;align-items:start}
  .place-profile .place-neighbourhood:has(>.signpost):has(>.place-particulars)>*{grid-column:1/-1}
  .place-profile .place-neighbourhood:has(>.signpost):has(>.place-particulars)>.signpost{grid-column:1;max-width:none}
  .place-profile .place-neighbourhood:has(>.signpost):has(>.place-particulars)>.place-particulars{grid-column:2}
}

/* ---------- the map page: the slow way, in two columns with its picture ---------- */
.canal-journey>div{display:flex;flex-direction:column;align-items:flex-start}
.canal-journey>div>.button{margin-top:6px}
.canal-art{order:5;display:block;width:100%;margin-top:30px;border:1px solid #d4b47a44}
.canal-art img{display:block;width:100%;height:auto;aspect-ratio:16/9;object-fit:cover}
.canal-journey ol{columns:2;column-gap:44px;border-left:0;padding-left:0}
.canal-journey li{break-inside:avoid;border-left:1px solid #8eb5b6;padding:10px 0 10px 26px;font-size:21px}
.canal-journey li:before{left:-5px;top:21px}
.place-guide .guide-scale-note a{color:var(--ink);text-decoration-color:var(--brass);text-underline-offset:5px;white-space:nowrap}
@media(max-width:1050px){.canal-journey ol{columns:1}}

/* ---------- Your Library: two columns while it is empty, a shelf once it fills ---------- */
@media(min-width:901px){
  [data-page=library] main:has(.library-empty:not([hidden])){display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);column-gap:60px;max-width:1300px;margin:0 auto;padding:0 5%}
  [data-page=library] main:has(.library-empty:not([hidden]))>*{grid-column:1/-1}
  [data-page=library] main:has(.library-empty:not([hidden]))>.collection{margin:50px 0 40px;padding:0;max-width:none}
  [data-page=library] main:has(.library-empty:not([hidden]))>.collection:first-child{grid-column:1}
  [data-page=library] main:has(.library-empty:not([hidden]))>.keepsakes{grid-column:2;border-top:0;border-left:1px solid var(--line);padding:0 0 0 60px;align-self:start}
}
.keepsake-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:28px}
.keepsake-row{display:flex;flex-direction:column;gap:0;padding:0;border:1px solid #d4b47a3d;background:#0f212b}
.keepsake-art img{width:100%;height:auto;aspect-ratio:3/2;object-fit:cover}
.keepsake-row>div{padding:14px 18px 10px}
.keepsake-row h3{font-size:25px;margin:4px 0 8px}
[data-page=library] .library-list{margin-top:30px}
