#atlas{--forest:#354e41;--paper:#fbf7ef;--line:#d6c6aa;--brown:#645442;box-sizing:border-box;width:min(730px,calc(100vw - 24px));max-height:92dvh;margin:auto;padding:0;color:#342e26;background:var(--paper);border:1px solid #baaa8c;border-radius:19px;overscroll-behavior:contain;scroll-behavior:auto;color-scheme:light}
#atlas *{box-sizing:border-box}
#atlas button{font:inherit;cursor:pointer}
#atlas :focus-visible{outline:3px solid #56785e;outline-offset:-3px}
.atlas-bar{display:flex;justify-content:space-between;align-items:center;position:sticky;z-index:3;top:0;padding:3px 16px;background:#fbf7effa;border-bottom:1px solid var(--line)}
.atlas-bar button,.atlas-return,.atlas-magnify{border:0;background:transparent;color:var(--forest);min-height:44px;padding:8px 12px;font-weight:600}
.atlas-bar [data-atlas-close]{margin-left:auto}
#atlas-body{padding:0 clamp(14px,4vw,38px) 24px}
.atlas-header{text-align:center;padding:24px 0 20px}
#atlas-heading{font:600 clamp(26px,5vw,40px)/1.35 var(--serif,serif);letter-spacing:.08em;color:#334936;margin:0}
.atlas-header p{font-size:15px;line-height:1.7;margin:8px 0 0;color:#615342}
.atlas-cards,.atlas-scenes{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.atlas-card,.atlas-scene{min-width:0;background:#fffdf7;border:1px solid var(--line);color:#3e3529;padding:8px;border-radius:9px;text-align:center}
.atlas-card:hover,.atlas-scene:hover{border-color:#6e806a;box-shadow:0 2px 12px #44523822}
.atlas-face{display:block;aspect-ratio:1.2;overflow:hidden;background:#f2e9d7;border-radius:64px 64px 4px 4px}
.atlas-face img,.atlas-scene img{width:100%;height:100%;object-fit:contain}
.atlas-code,.atlas-header p.atlas-code{font:12px/1.5 Georgia,serif;letter-spacing:.12em;color:#706147;display:block;margin:8px 0 3px}
.atlas-card strong{font:600 clamp(15px,2vw,18px)/1.7 var(--serif,serif)}
.atlas-window{margin-top:18px;display:flex;align-items:center;justify-content:center;gap:12px;padding:18px 8px;background:#253a3c;color:#eee5ce;border-radius:8px;font:15px/1.65 var(--serif,serif)}
.atlas-window i{width:22px;height:28px;border:2px solid #998468;border-radius:11px 11px 2px 2px;background:linear-gradient(90deg,transparent 45%,#626452 45% 54%,transparent 54%),radial-gradient(ellipse at bottom,#b59c62,#354d46 85%);box-shadow:0 0 14px #d1b57128}
.atlas-portrait{display:block;position:relative;margin:auto;width:100%;padding:8px 8px 38px;background:radial-gradient(ellipse at 52% 35%,#fffdf6 10%,#ecebd8 75%,#e1d5bf);border:1px solid var(--line);border-radius:100px 100px 10px 10px}
.atlas-portrait img{width:100%;height:clamp(275px,56dvh,520px);object-fit:contain}
.atlas-portrait span{position:absolute;bottom:9px;left:0;right:0;text-align:center;color:#4e5949;font-size:14px}
.atlas-copy{max-width:580px;margin:24px auto 0}
.atlas-copy h3{margin:0 0 10px;color:#354e41;font:600 21px/1.5 var(--serif,serif)}
.atlas-copy>p,.atlas-caption{font:16px/1.95 var(--serif,serif)}
.atlas-scenes{grid-template-columns:repeat(2,minmax(0,1fr))}
.atlas-scene{padding:0 0 10px;overflow:hidden;text-align:left}
.atlas-scene img{aspect-ratio:1.44;height:auto;object-fit:cover}
.atlas-scene strong,.atlas-scene span{display:block;padding:5px 10px 0}
.atlas-scene span,.atlas-boundary,.atlas-pending{font-size:14px;line-height:1.65;color:#635b50}
.atlas-boundary,.atlas-pending{max-width:580px;margin:18px auto 0}
.atlas-return,.atlas-magnify{display:block;margin:12px auto 0;border:1px solid var(--line);border-radius:8px}
.atlas-magnify{margin:0 auto 10px}
.atlas-lightbox{background:#eee8db;border:1px solid var(--line);overflow:auto;max-height:68dvh;border-radius:10px;overscroll-behavior:contain}
.atlas-lightbox img{display:block;margin:auto;width:auto;height:auto;max-width:100%;max-height:64dvh;object-fit:contain}
.atlas-lightbox.native-size img{max-width:none;max-height:none;margin:0}
.atlas-caption{text-align:center}
@media(max-width:620px){.atlas-cards{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:440px){.atlas-cards{grid-template-columns:repeat(2,minmax(0,1fr))}#atlas{width:calc(100vw - 12px);max-height:95dvh}.atlas-header{padding:18px 0}.atlas-scenes,.atlas-cards{gap:9px}.atlas-bar{padding:2px 6px}}
@media(prefers-reduced-motion:reduce){#atlas,#atlas *{scroll-behavior:auto}}
.atlas-card small{display:block;font:14px/1.55 var(--serif,serif);color:#665948;margin:5px 0}
.atlas-filter{display:flex;justify-content:center;gap:6px;margin:0 auto 16px}
.atlas-filter button,.atlas-save,.atlas-sheet{min-height:44px;padding:7px 14px;color:#37503b;border:1px solid #c6c6af;border-radius:12px;background:#fffdf6}
.atlas-filter [aria-pressed="true"],.atlas-save[aria-pressed="true"]{background:#354e41;color:#fffaf0;border-color:#354e41}
.atlas-save{margin-top:10px}.atlas-sheet{display:block;margin:20px auto 0}.atlas-feedback{display:block}
.atlas-facts{display:grid;grid-template-columns:auto 1fr;gap:6px 16px;padding:15px 18px;background:#eeeedd;border-radius:10px}.atlas-facts dt{color:#546449}.atlas-facts dd{margin:0}
.visitor-sheet{max-height:65dvh;overflow:auto}.visitor-sheet img{width:100%;height:auto;display:block}.report-advice{margin:15px 0;border-left:3px solid #a38d5e;padding:9px 12px}.report-advice p{margin-top:6px}
.atlas-profile[data-theme="night"]{--ink:#3e426b;--wash:#e9e6f2}
.atlas-profile[data-theme="rose"]{--ink:#813950;--wash:#f8e7e7}
.atlas-profile[data-theme="violet"]{--ink:#5a3e75;--wash:#efe5f2}
.atlas-profile[data-theme="tea"]{--ink:#66526d;--wash:#efe8e4}
.atlas-profile[data-theme="brass"]{--ink:#394d76;--wash:#f3e8cf}
.atlas-profile[data-theme="sand"]{--ink:#62516c;--wash:#eae5ec}
.atlas-profile[data-theme="strings"]{--ink:#51426d;--wash:#eee5f1}
.atlas-profile[data-theme="strings"] .atlas-scene img{aspect-ratio:3.6;object-fit:contain;background:#f5edeb}
.resident-card img.detail-portrait[src^="/art/atlas/"]{object-fit:contain;object-position:center}
.atlas-profile #atlas-heading,.atlas-profile .atlas-copy h3{color:var(--ink,#354e41)}
.atlas-profile .atlas-facts{background:var(--wash,#eeeedd)}
.atlas-wide{padding:0;overflow:hidden;border-radius:16px 16px 7px 7px;background:var(--wash,#f1ece3)}
.atlas-wide img{display:block;height:auto;max-height:52dvh;object-fit:contain}
.atlas-wide span{display:block;position:static;padding:9px;color:var(--ink,#354e41)}
.atlas-look{width:100%;display:flex;align-items:center;gap:12px;margin:10px 0 0;padding:8px 12px;border:1px solid var(--line);border-radius:8px;background:#fffaf4;color:var(--ink,#354e41);text-align:left}
.atlas-look img{height:64px;width:45px;object-fit:contain}
.atlas-look span{margin-left:auto;font-size:14px}
.atlas-profile[data-theme="rose"] .atlas-scene img{object-fit:contain;background:#fdf1eb}

.atlas-profile[data-theme="R01"]{--ink:#655075;--wash:#efe8f4}
.atlas-profile[data-theme="R03"]{--ink:#883e32;--wash:#f5e4da}
.atlas-profile[data-theme="R04"]{--ink:#844a54;--wash:#f8e8e4}
.atlas-profile[data-theme="R05"]{--ink:#6b4e75;--wash:#efe5ef}
.atlas-profile[data-theme="R06"]{--ink:#75523a;--wash:#f1e5d4}
.atlas-profile[data-theme="R07"]{--ink:#934747;--wash:#f6e5df}
.atlas-profile[data-theme="R08"]{--ink:#64502e;--wash:#f5e9cb}
.atlas-profile[data-theme="R10"]{--ink:#6f547c;--wash:#f3e9f3}
.atlas-profile[data-theme="R11"]{--ink:#813943;--wash:#f2e2e1}
.atlas-profile[data-theme="R12"]{--ink:#805132;--wash:#f3e5d7}
.atlas-profile[data-theme="R17"]{--ink:#4e6343;--wash:#e6ead9}
.atlas-profile[data-theme="R20"]{--ink:#83502d;--wash:#f5e8d4}
.atlas-profile .atlas-scene img{object-fit:contain;background:var(--wash,#f5eee0)}
.atlas-pager{display:flex;align-items:center;justify-content:center;gap:14px;margin:0 auto 14px;color:#665948}
.atlas-pager button{min-height:44px;min-width:70px;padding:6px 12px;border:1px solid var(--line);border-radius:8px;background:#fffaf4;color:var(--forest)}
.atlas-pager button:disabled{color:#746d62;background:#efeae0;border-color:#ded6c8;cursor:default}

/* Residents and the stories they share */
.bond-jump,.bond-read{border:1px solid #65785f;border-radius:8px;min-height:44px;padding:8px 17px;background:#354e41;color:#fffdf4}
.bond-jump{display:block;margin:0 auto 18px;background:#fffdf6;color:#354e41}
#bond-heading{scroll-margin-top:62px}
.bonds .bond-life{margin:0 0 16px}
.bond-card,.bond-cross{padding:16px clamp(14px,3vw,24px);border:1px solid #d8c9af;border-radius:12px;background:#fffdf8}
.bond-card{border-top:3px solid var(--ink,#53684f);background:linear-gradient(110deg,var(--wash,#e8eddf),#fffcf5 58%)}
.bond-card h4{margin:14px 0 5px;font:600 22px/1.45 var(--serif,serif);color:var(--ink,#354e41)}
.bond-card p,.bond-cross p,.bond-clue{margin:6px 0 14px;font:16px/1.75 var(--serif,serif)}
.bond-cross{margin-top:10px}.bond-cross p{margin:8px 0 0}
.bond-neighbor{color:#3b4638;background:#fffdf5;border:1px solid #d3c6af;border-radius:28px 8px 8px 28px;padding:4px 14px 4px 5px;display:inline-flex;align-items:center;gap:9px;text-align:left}
.bond-neighbor img,.bond-cast img{width:46px;height:46px;border-radius:50%;object-fit:cover;background:#f5ecdf}
.bond-neighbor small,.bond-neighbor strong{display:block}.bond-neighbor small{color:#655846;font-size:14px}
.bond-clue{border-left:2px solid #b2976b;padding:3px 12px;color:#63513e}
.bond-reader{max-width:38em;margin:auto;padding-bottom:18px}
.bond-cast{display:flex;align-items:center;justify-content:center;margin-bottom:13px}
.bond-cast img{width:55px;height:55px;border:2px solid #fffaf0}.bond-cast img+img{margin-left:-8px}
.bond-reader .atlas-header{border-bottom:1px solid #d4c5ac}
.bond-reader .bond-motifs{font-size:14px;color:#71604c}
.bond-prose{font:17px/1.9 var(--serif,serif);text-align:start;overflow-wrap:anywhere}
.bond-prose p,.hidden-dialog .bond-prose p{margin:.68em 0;font:inherit;color:inherit}
.bond-prose hr{border:0;border-top:1px solid #baaa8d;width:3rem;margin:1.8em auto}
.bond-reader>.bond-read{margin:16px 0 0}
.visitor-chapter{margin:18px 0;padding:12px;text-align:start;border:1px solid #a28d67;border-radius:10px;color:#f4e8cf}
.visitor-chapter summary{cursor:pointer;padding:10px 0;font-size:17px}.visitor-chapter dd{margin:0 0 12px}.visitor-chapter dt{font-weight:600}
.bond-quote{margin:12px 0 6px;color:var(--ink,#354e41);font:600 18px/1.7 var(--serif,serif)}
