body {background:#faf9f3;color:#211f1b}
.bar {padding:12px max(5vw,16px);background:#faf9f3}
.showcase {max-width:1440px;margin:auto;padding:0 max(5vw,16px)}
.masthead {display:flex;align-items:end;justify-content:space-between;gap:30px;padding:54px 0 38px;border-bottom:2px solid}
.masthead p,.submissions p {margin:0;line-height:1.35}
.masthead p {max-width:310px;font-size:17px}
.catalog-head {display:flex;justify-content:space-between;align-items:center;padding:18px 0}
.catalog-head h2,.catalog-head span,.meta,.prototype-note {font:400 12px/1.45 UI,monospace;color:#56554b}
.catalog-head h2 {margin:0;font-weight:700;letter-spacing:.07em}
.shelf {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:clamp(16px,2.4vw,36px)}
.shelf article {min-width:0;display:flex;flex-direction:column;align-items:flex-start}
button {font:inherit;color:inherit;cursor:pointer}
.stage {isolation:isolate;display:grid;grid-template: minmax(0,1fr) / minmax(0,1fr);place-items:center;position:relative;width:100%;aspect-ratio:1.24;border:0;padding:0;overflow:hidden;background:var(--mat)}
.meadow {--mat:#c8d3c7;--tilt:-6deg}.rose {--mat:#e7c7b7;--tilt:5deg}.lilac {--mat:#cbc8dc;--tilt:-4deg}
.stage::before {content:"";position:absolute;inset:0;background:linear-gradient(125deg,#ffffff38,transparent 50%,#29271812)}
.stage img {position:relative;max-width:70%;height:76%;object-fit:contain;transform:rotate(var(--tilt));box-shadow:1px 2px #bbb6a6,2px 3px #eee9d9,3px 4px #aaa79c,7px 10px 13px #221d202e;transition:transform .2s}
.stage.square img {height:auto;width:60%}
.stage:hover img {transform:rotate(0deg)}
.meta {margin-top:17px;font-size:11px}
.shelf h3 {font:700 clamp(24px,2.2vw,33px)/1.12 Text,sans-serif;letter-spacing:-.04em;margin:6px 0}
.shelf article>p {margin:0 0 18px;line-height:1.4;max-width:34ch}
.actions {margin-top:auto;display:flex;align-items:center;gap:18px;flex-wrap:wrap}
.actions button,.actions a,.submissions a,#reader button {font:700 12px/1.2 UI,monospace}
.actions button {border:1px solid #211f1b;background:#211f1b;color:white;padding:10px 13px}
.actions span {margin-left:6px}
.actions a,.submissions a {text-underline-offset:4px}
.submissions {margin:40px 0 0;padding:22px 0;border-block:1px solid #aaa89e;display:flex;align-items:center;justify-content:space-between;gap:20px}
.submissions h2 {font:700 22px/1.2 Text,sans-serif;text-transform:none;letter-spacing:-.025em;color:inherit;margin:0 0 5px}
.prototype-note {margin:12px 0 24px;font-size:11px}
#reader {box-sizing:border-box;width:min(980px,96vw);max-width:96vw;color:#211f1b;background:#f5f3eb;border:1px solid;padding:0}
#reader::backdrop {background:#25231ee0}
#reader header,#reader footer {display:flex;align-items:center;justify-content:space-between;padding:10px 16px;gap:12px}
#reader header {flex-wrap:wrap}
.reader-actions {display:flex;align-items:center;gap:6px;margin-left:auto;flex-wrap:wrap}
#edition-details {font:700 12px/1.2 UI,monospace;padding:8px 6px;text-underline-offset:3px}
#reader h2 {font:700 20px/1.15 Text;text-transform:none;color:inherit;letter-spacing:0;margin:0}
#reader button {border:1px solid;background:transparent;padding:8px 12px}
#reader button:disabled {opacity:.35;cursor:default}
.reading-page {background:#d4d1c8;padding:12px;display:grid;place-items:center;container-type:inline-size}
.reader-book {position:relative;display:flex;height:min(65vh,calc(50cqw * var(--page-ratio,1.414)));max-width:100%;min-width:0;box-shadow:1px 3px 8px #29251e30}
.reader-book img {display:block;width:auto;height:100%;max-width:100%;object-fit:contain}
.reader-book img[hidden] {display:none}
.reader-book.spread img {max-width:50%;min-width:0;object-fit:contain}
.reader-book.spread::after {
  content:"";position:absolute;inset:0 auto 0 50%;width:clamp(8px,1.5vw,18px);transform:translateX(-50%);pointer-events:none;
  background:linear-gradient(90deg,transparent,rgba(35,28,21,.12) 45%,rgba(35,28,21,.19) 50%,rgba(35,28,21,.07) 60%,transparent);
}
#reader output {font:12px UI}
@media(max-width:720px){.masthead{display:block;padding:32px 0 22px}.masthead p{margin-top:14px;font-size:15px}.shelf{grid-template-columns:1fr;gap:32px}.stage{aspect-ratio:1.5}.shelf h3{font-size:30px}.meta{margin-top:12px}.submissions{align-items:start;flex-direction:column}}
@media(prefers-reduced-motion:reduce){.stage img{transition:none}}

.catalog-head {gap:12px;flex-wrap:wrap}
.filters {display:flex;gap:4px;flex-wrap:wrap}
.filters button {font:400 12px/1.3 UI,monospace;background:transparent;border:1px solid #aaa89e;padding:7px 11px}
.filters button[aria-pressed="true"] {color:#fff;background:#211f1b;border-color:#211f1b}
.sky {--mat:#ccd9df;--tilt:3deg}.blush {--mat:#e5ccd9;--tilt:-4deg}.violet {--mat:#cfcee5;--tilt:4deg}
.sand {--mat:#e3d9bd;--tilt:-4deg}.aqua {--mat:#c9dfd8;--tilt:4deg}.peach {--mat:#e8cbbd;--tilt:-3deg}
@media(max-width:410px){.bar{gap:6px}.bar-right{gap:6px}.bar-cta{padding:5px;font-size:11px}.lang button{padding:0 5px}}

.filters[hidden] {display:none}
#count {margin-left:auto}
.credit {font:400 11px/1.5 UI,monospace;color:#56554b;margin:0 0 10px;overflow-wrap:anywhere}

#reader-views { display:flex; gap:4px; padding:0 16px 10px; }
#reader-views [aria-pressed="true"] { color:white; background:#211f1b; }
#reader-views[hidden], #reader footer[hidden] { display:none; }

.edition {max-width:900px;padding:0 max(4vw,18px) 64px}
.edition-intro {display:grid;grid-template-columns:minmax(110px,32%) 1fr;align-items:center;gap:clamp(20px,5vw,64px);padding:40px 0}
.edition-intro img {width:100%;height:auto;box-shadow:4px 6px 12px #211f1b30}
.edition h1 {font:700 clamp(32px,5vw,64px)/1 Text,sans-serif;letter-spacing:-.045em;margin:0}
.edition-read {padding:10px 16px;background:#211f1b;color:white;text-decoration:none}
.edition summary {cursor:pointer;padding:18px 0;border-block:1px solid;font:700 20px Text,sans-serif}
.edition details section {padding:22px 0;max-width:68ch}
.edition details h2 {margin:0 0 12px}
.edition details p,.edition td,.edition th {white-space:pre-line;overflow-wrap:anywhere}
.edition-table {overflow-x:auto}
.edition td,.edition th {padding:4px 10px;border:1px solid var(--line)}
@media(max-width:550px){.edition-intro {grid-template-columns:1fr}.edition-intro img {width:36%}}

.sky {--mat:#cbdde8;--tilt:-4deg}
.shelf article > p, .edition-intro p {white-space:pre-line}
