/* An illustrated folio. Ink stays off the breathing space around the stones. */
*{box-sizing:border-box}[hidden]{display:none!important}
:root{color-scheme:light;--ink:#283747;--quiet:#5b5145;--wash:#f7edda;--leaf:#fff7e8;--rule:#baa78b;--chapter:#283d59;--ribbon:#c79856;--miniature:url('paper/star-margin.svg');font:16px/1.42 -apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;color:var(--ink);background:#e9deca}
body[data-chapter=sea]{--chapter:#275952;--ribbon:#bb7056;--miniature:url('paper/sea-margin.svg')}
body{margin:0;min-height:100vh;background:#e9deca url('paper/fibres.svg') repeat}
main{position:relative;width:min(100%,560px);min-height:100vh;margin:auto;padding:12px clamp(12px,4vw,25px) max(24px,env(safe-area-inset-bottom));color:var(--ink);background:var(--wash) url('paper/fibres.svg');box-shadow:0 0 24px #463a2925}
button{appearance:none;font:650 .84rem/1.2 inherit;font-family:inherit;font-size:.84rem;font-weight:650;line-height:1.2;touch-action:manipulation;cursor:pointer;min-height:44px;padding:6px 12px;color:var(--ink);border:1px solid var(--rule);border-radius:4px 7px 5px 6px;background:var(--leaf);box-shadow:0 2px 0 #a8967338}
button:focus-visible{outline:3px solid #a54c32;outline-offset:1px}button:disabled{opacity:.58;cursor:default}button:active:not(:disabled){box-shadow:none}
h1,h2,h3{margin:0;color:var(--chapter);font:normal 1.5rem/1.08 Georgia,'Times New Roman',serif}h1{font-size:clamp(1.85rem,6.5vw,2.65rem)}h3{font-size:1.25rem}p{margin:.45rem 0}
.eyebrow,.plaque{font:750 .66rem/1.35 system-ui,sans-serif;letter-spacing:.13em}.folio-head,#album .folio-head{position:relative;isolation:isolate;padding:11px 82px 11px 14px;text-align:left;color:#ffefd5;background:var(--chapter);border-radius:3px 9px 2px 4px;border-bottom:3px solid var(--ribbon)}.folio-head::after{content:'';position:absolute;z-index:-1;inset:0 0 0 auto;width:86px;background:var(--miniature) center right/contain no-repeat}.folio-head h1,.folio-head h2{color:#fff3de}.folio-head .eyebrow{color:#f2d4a8;margin:0 0 4px}
.mirror{position:relative;margin:12px 4px 8px;padding:4px;background:var(--leaf);border:1px solid var(--rule);box-shadow:2px 3px 0 #b9a58657}.mirror::before,.mirror::after{content:'';position:absolute;top:-4px;width:25px;height:10px;background:#d9bf90cf;transform:rotate(-16deg);z-index:2;pointer-events:none}.mirror::before{left:0}.mirror::after{right:0;transform:rotate(13deg)}
.portrait{position:relative;height:clamp(180px,30vh,316px);overflow:hidden;isolation:isolate;background:#293d53}.portrait[data-backdrop=sea]{background:#769b96}.portrait img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;pointer-events:none}.portrait .ghost{opacity:.5}.portrait .sparkle{filter:drop-shadow(0 0 2px #ffe3a1)}.plaque{position:absolute;bottom:8px;right:8px;padding:3px 8px;color:var(--ink);background:#fff1d6f2;letter-spacing:.025em;border-radius:2px}
.chapters{display:grid;grid-template-columns:1fr 1fr;gap:4px;margin-top:10px}.chapters button{border-radius:8px 8px 0 0;border-bottom:2px solid var(--rule);box-shadow:none}.chapters button[aria-pressed=true],button.gold{background:var(--chapter);color:var(--leaf);border-color:var(--chapter)}.chapters button[aria-pressed=true]{border-bottom:2px solid var(--ribbon)}
.set-title{display:flex;align-items:baseline;justify-content:space-between;gap:8px;margin:14px 0 4px}.set-title strong{font:italic 1.15rem Georgia,serif;color:var(--chapter)}.lead,#materials,#finishType,#message,#albumCaption{color:var(--quiet);font-size:.87rem}
#slots{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;margin:10px 0}#slots button{display:grid;place-items:center;min-width:0;gap:1px;padding:5px 1px;background:#fff7e8;border:1px solid #cabb9e}#slots button[aria-pressed=true]{border:2px solid var(--chapter);padding:4px 0;background:#f5e4c4}#slots img{width:52px;height:43px}#slots small{font:italic .74rem Georgia,serif;color:var(--quiet)}.pattern{padding:10px 12px;background:var(--leaf);border-left:3px solid var(--ribbon)}.actions{display:flex;flex-wrap:wrap;gap:6px;margin:8px 0 0}.actions button{flex:1}.kit{margin:9px 0}.albumLink{width:100%}#album{text-align:center}#album .portrait{height:clamp(230px,54vh,490px)}#albumCaption{margin:1rem auto;max-width:28em}#error{color:#8a3428}
@media(max-height:630px){main{padding-top:5px}.portrait{height:170px}.set-title{margin-top:8px}#slots img{height:37px}}
