*{box-sizing:border-box}body{margin:0;padding:24px;background:#eee9d5;color:#222;font:18px/1.6 Georgia,'Times New Roman',serif}a{color:#55266e;text-underline-offset:3px}a:hover{color:#9a251d}.paper{max-width:1180px;margin:auto;background:#fffced;padding:30px 42px;border:1px solid #c5bfa9;box-shadow:0 3px 16px #0000000a}header{text-align:center;border-bottom:3px double #242424}.home{display:block;text-align:left;font:14px/1.5 Arial,sans-serif}h1{font-size:clamp(36px,6vw,72px);line-height:1.05;letter-spacing:-2px;margin:28px 0 8px}h1 a{color:inherit;text-decoration:none}.subtitle{font-style:italic;margin:10px 0 22px}nav{display:flex;justify-content:center;gap:28px;flex-wrap:wrap;border-top:1px solid;padding:12px 0}.layout{display:grid;grid-template-columns:minmax(0,1fr) 240px;gap:32px;padding:22px 0}.section-title{text-transform:uppercase;font-size:19px;border-bottom:1px solid;padding-bottom:8px;margin:0}.story{padding:25px 0;border-bottom:1px solid #999}.story h2{font-size:clamp(27px,3vw,39px);line-height:1.15;margin:8px 0 20px}.story h2 a{color:inherit;text-decoration:none}.summary.with-photo{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);gap:22px}.summary img{width:100%;height:auto;max-height:360px;object-fit:contain;display:block}.summary p{margin-top:0}.date{font:13px/1.6 Arial,sans-serif;color:#59564f}.intro{font-style:italic}aside{border-left:1px solid #aaa;padding-left:24px}aside h2{text-transform:uppercase;font-size:17px}aside h3{font-size:23px;line-height:1.3;margin-bottom:8px}aside p{font-size:16px}.aside-note{font-style:italic}.reading{max-width:790px;margin:30px auto 55px}.article-title{font-size:clamp(32px,5vw,52px);line-height:1.12;margin:8px 0 35px}.reading article p{overflow-wrap:anywhere;margin:1.4em 0}.reading article{font-size:20px}figure{margin:32px 0}figure img{max-width:100%;height:auto;display:block;margin:auto}figcaption{font-size:15px;font-style:italic;color:#555;text-align:center;margin-top:10px}.pagination{justify-content:space-between;border:0;margin-top:25px;font-size:15px}.empty{padding:40px 0}footer{border-top:3px double;padding-top:15px;font-size:13px;display:flex;justify-content:space-between;gap:20px}label{display:block;margin:16px 0;font:15px/1.5 Arial,sans-serif;font-weight:bold}input,textarea,select{display:block;width:100%;padding:10px;margin-top:6px;font:17px/1.5 Georgia,serif;border:1px solid #aaa;background:#fffefa;color:#222}textarea{resize:vertical}button{font:15px/1.4 Arial,sans-serif;border:1px solid #555;background:#ece7d7;color:#222;padding:9px 14px;cursor:pointer}button:hover{background:#e0d8bf}button:disabled{opacity:.5;cursor:default}.primary{background:#292822;color:#fff;padding:12px 24px}.primary:hover{background:#504c3d}.editor{max-width:900px;margin:25px auto}.editor-top,.block-tools,.tools{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.editor-top{justify-content:space-between}.fields{display:grid;grid-template-columns:1fr 1fr 1fr;gap:20px}.edit-block{border:1px solid #bdb6a3;padding:20px;margin:20px 0;background:#f5f1e5}.block-tools strong{margin-right:auto}.editor-photo{max-height:220px;max-width:100%;object-fit:contain;margin:20px 0}.hint,small{font:14px/1.6 Arial,sans-serif}.notice{padding:14px 18px;background:#eee3ba;border:1px solid #9b8a55}.post-list{border-top:3px double;margin-top:45px;padding-top:20px}.post-list p{border-bottom:1px solid #ccc;padding-bottom:15px}:focus-visible{outline:3px solid #397a9c;outline-offset:3px}[hidden]{display:none!important}@media(max-width:760px){body{padding:0}.paper{padding:20px;border:0}.layout{grid-template-columns:1fr}aside{border-left:0;border-top:3px double;padding:20px 0}.summary.with-photo{grid-template-columns:1fr}nav{gap:15px}.fields{grid-template-columns:1fr;gap:0}h1{letter-spacing:-1px}.edit-block{padding:12px}.block-tools button{font-size:13px}footer{flex-direction:column}}
/* Burgundy diary: a quiet early-web reading page. */
body{background:#fff6bd;color:#211b17;padding:32px 22px;font-family:Georgia,'Times New Roman',serif;font-size:19px;line-height:1.7}
.paper{max-width:850px;background:transparent;padding:0;border:0;box-shadow:none}
header{text-align:left;border:0}
.home{font:14px/1.5 Georgia,serif;margin-bottom:20px}
a{color:#791b2d}a:hover{color:#a32b46}a:visited{color:#67213f}
.title-row{display:flex;align-items:center;justify-content:space-between;gap:24px}
h1{font-size:clamp(30px,5vw,46px);letter-spacing:-1px;line-height:1.2;margin:0 0 14px}h1 a,h1 a:visited{color:#791b2d}
.pixel-flower{width:24px;height:38px;flex-shrink:0;align-self:center;margin-bottom:14px}
header nav{border-top:1px solid #791b2d;border-bottom:1px solid #791b2d;justify-content:flex-start;gap:8px 24px;padding:12px 0;font-size:17px}
.diary,.reading{max-width:740px;margin:32px auto 45px}.diary .story{padding:0 0 28px;margin:0 0 30px;border-bottom:1px solid #9a4a51}
.date{font:15px/1.6 Georgia,serif;color:#473b31;margin:0 0 6px}
.story h2,.article-title{font-size:clamp(26px,4vw,34px);line-height:1.25;margin:0 0 18px;color:#791b2d;letter-spacing:-.4px}.story h2 a,.story h2 a:visited{color:#791b2d}
.story p,.reading article p{font-size:19px;line-height:1.75;margin:0 0 22px;overflow-wrap:anywhere}
.story figure,.reading figure{margin:26px auto;max-width:580px}.story img,.reading figure img{display:block;max-width:100%;height:auto;margin:auto}
figcaption{font-size:14px;line-height:1.5;color:#55463b;margin-top:10px}
.story .scan-thumb{width:auto;max-width:210px;max-height:300px;margin:18px 0;border:1px solid #ab9675}
.story .post-link{font-size:15px;margin:15px 0 0}.section-title{color:#791b2d;border:0;text-transform:none;font-size:28px}.intro{font-style:normal;color:#514135}
.archive-link{font-size:15px;margin:30px 0}.pagination{border:0;font-size:15px;gap:20px;align-items:center}.pagination a{max-width:45%;overflow-wrap:anywhere}
footer{border-top:1px solid #791b2d;font-size:13px;color:#55463b;padding:16px 0;align-items:baseline}.empty{padding:10px 0 40px}
.editor{max-width:850px}.editor p{font-size:16px}.edit-block{background:#fff9d9;border-color:#c4a777}.notice{background:#fae8a5;border-color:#b79766}input,textarea,select{background:#fffdf0;border-color:#ad9275}button{background:#f4e5ac;border-color:#987259}button:hover{background:#ecd28b}.primary{background:#791b2d;color:#fff}.primary:hover{background:#962d43}.post-list{border-top:1px solid #9a4a51}.post-list h2,.editor h2{color:#791b2d}details{margin:20px 0}summary{cursor:pointer;color:#791b2d;text-decoration:underline}.post-list form{margin-bottom:24px}
@media(max-width:760px){body{padding:22px 18px}.paper{padding:0}header nav{gap:9px 18px;font-size:16px}.diary,.reading{margin-top:28px}.story p,.reading article p{font-size:18px;line-height:1.7}.pixel-flower{width:19px;height:30px}.story h2,.article-title{font-size:28px}footer{flex-direction:column;gap:8px}.fields{grid-template-columns:1fr}.title-row{gap:12px}}
/* Image header, home GIF, random dividers and inline media. */
#random-home-button{position:fixed;top:10px;left:10px;z-index:9999;display:block}#random-home-image{display:block;width:auto;height:auto;max-width:100px;max-height:100px;border:0}
.gif-title{margin:0 0 22px;line-height:1}.gif-title img{display:block;max-width:100%;height:auto;border:0}
header nav,.story,.diary .story,.post-list,.post-list p,footer,.section-title,.pagination{border:0}
header nav{padding:6px 0;gap:10px 24px}.random-divider{display:flex;justify-content:center;align-items:center;margin:22px auto;min-height:1px;max-width:100%}.random-divider img{display:block;width:auto;height:auto;max-width:100%;border:0}
.diary .story{margin:0;padding:0 0 8px}.new-badge{display:inline-block;width:auto;height:auto;max-width:85px;max-height:40px;margin-left:8px;vertical-align:middle;border:0}
button.expand-image{display:block;padding:0;margin:0 auto;border:0;background:none;cursor:zoom-in;max-width:100%;line-height:0}button.expand-image:hover{background:none}button.expand-image img{max-width:100%;height:auto}button.scan-preview{margin:18px 0;max-width:210px}button.scan-preview img{max-height:300px;width:auto;max-width:100%;object-fit:contain}
figure video{display:block;width:100%;height:auto;max-height:70vh;background:#141414}.editor-photo{max-width:100%;height:auto}
#image-viewer{padding:16px;background:#fff6bd;border:1px solid #791b2d;max-width:92vw;max-height:88vh;overflow:auto;color:#211b17}#image-viewer::backdrop{background:rgba(0,0,0,.75)}#viewer-close{display:block;margin:0 0 12px auto}#viewer-image{display:block;max-width:min(84vw,1000px);max-height:70vh;width:auto;height:auto;object-fit:contain;margin:auto}#viewer-caption{font:16px/1.5 Georgia,serif;max-width:700px;margin:12px auto 0}.viewer-open{overflow:hidden}
@media(max-width:1050px){body{padding-top:120px}}@media(max-width:760px){#random-home-image{max-width:80px;max-height:80px}body{padding-top:105px}.random-divider{margin:20px auto}}
.story .new-badge,.reading .new-badge{display:inline-block;width:auto;height:auto;max-width:85px;max-height:40px;margin:0 0 0 8px;vertical-align:middle;border:0}
/* Clean page routes, centered image heading and draggable article pages. */
h1.gif-title{text-align:center}h1.gif-title a{display:inline-block;max-width:100%}h1.gif-title img{margin-left:auto;margin-right:auto}
header nav{justify-content:center;align-items:center}header nav a{display:inline-flex;align-items:center;max-width:100%}.category-gif{display:block;width:auto;height:auto;max-width:220px;max-height:90px;border:0}
.magazine-layout .paper{max-width:1420px}.magazine-index,.magazine-article{max-width:none}.magazine-board{position:relative;display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:35px;margin:28px 0 45px;isolation:isolate}.magazine-board.sheets-ready{display:block}
.magazine-board .magazine-sheet{position:relative;width:100%;max-width:280px;margin:0!important;padding:6px;background:#fff8d6;touch-action:pan-y;box-sizing:border-box;transform-origin:center center}
.magazine-board.sheets-ready .magazine-sheet{position:absolute}.magazine-board .expand-image{display:block;width:100%;aspect-ratio:3/4;margin:0;padding:0}.magazine-board .expand-image img{width:100%;height:100%;max-width:100%;object-fit:contain;user-select:none;-webkit-user-drag:none}
.magazine-board figcaption{font:14px/1.5 Georgia,serif;margin:8px 0 0;overflow-wrap:anywhere}.sheet-handle{display:block;width:100%;padding:4px 6px;margin:0 0 4px;border:0;background:none;color:#791b2d;font:13px/1.4 Georgia,serif;text-align:left;cursor:grab;touch-action:none;user-select:none}.sheet-handle:hover{background:#f6e8a9}.is-dragging,.is-dragging .sheet-handle{cursor:grabbing}.is-dragging .expand-image{cursor:grabbing}
.board-controls{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;font:15px/1.5 Georgia,serif;margin:16px 0}.board-controls button{font-size:13px;padding:6px 10px}
.magazine-board .new-badge{display:inline-block;width:auto;height:auto;max-width:55px;max-height:25px;margin:0 0 0 5px;vertical-align:middle}.magazine-article>article>.article-title,.magazine-article>article>.date,.magazine-article>article>p{max-width:740px;margin-left:auto;margin-right:auto}
@media(max-width:760px){.category-gif{max-width:145px;max-height:65px}header nav{gap:12px 18px}.magazine-board{margin-left:0;margin-right:0}.board-controls{font-size:14px}}
/* Article spread: only the original page images, without labels or backing. */
.magazine-board .magazine-sheet{max-width:420px;background:transparent;padding:0;border:0;box-shadow:none;touch-action:none;cursor:grab}
.magazine-board .expand-image{background:transparent!important;border:0;box-shadow:none;touch-action:none}.magazine-board .expand-image img{background:transparent}.magazine-index{margin-top:24px}.magazine-article{margin-top:24px}
#viewer-stage{position:relative;display:inline-block;max-width:100%;line-height:0;vertical-align:top}#viewer-stage:focus{outline:none}#viewer-stage:focus-visible{outline:2px solid #791b2d;outline-offset:3px}
#magnify-toggle{position:absolute;right:8px;top:8px;padding:3px;border:0;background:transparent;z-index:5;line-height:0;cursor:pointer}#magnify-toggle:hover{background:transparent}#magnify-toggle img{display:block;width:auto;height:auto;max-width:55px;max-height:55px}#magnify-toggle[aria-pressed=true]{outline:2px solid #791b2d;outline-offset:2px}
#magnify-glass{position:fixed;pointer-events:none;z-index:4;margin:0;border:0;background:transparent}.magnifying{touch-action:none}.magnifying #viewer-image{cursor:none}
button.danger{background:#791b2d;color:white}.delete-link{color:#9b1d2f!important}
@media(max-width:760px){#magnify-toggle img{max-width:42px;max-height:42px}.magazine-board .magazine-sheet{max-width:100%}}
/* Transparent article viewer, Win95 close button and selected-icon glow. */
#image-viewer{background:transparent;border:0;box-shadow:none;padding:0;overflow:visible}
#viewer-stage{background:transparent;border:0;box-shadow:none}
#viewer-close{position:relative;z-index:6;display:block;min-width:100px;margin:0 0 12px auto;padding:7px 16px;background:#c0c0c0;color:#000;font:bold 13px/1.3 Tahoma,'MS Sans Serif',Arial,sans-serif;text-transform:uppercase;border:2px solid;border-top-color:#fff;border-left-color:#fff;border-right-color:#000;border-bottom-color:#000;box-shadow:inset -1px -1px #808080,inset 1px 1px #dfdfdf;border-radius:0;cursor:pointer}
#viewer-close:hover{background:#c0c0c0;color:#000}#viewer-close:active{border-top-color:#000;border-left-color:#000;border-right-color:#fff;border-bottom-color:#fff;box-shadow:inset 1px 1px #808080;padding:8px 15px 6px 17px}#viewer-close:focus-visible{outline:1px dotted #000;outline-offset:-6px}
#viewer-caption{color:#fff;text-shadow:1px 1px 2px #000;max-height:12vh;overflow:auto}
#magnify-toggle[aria-pressed=true]{outline:none;box-shadow:none;background:transparent}
#magnify-toggle[aria-pressed=true] img{filter:drop-shadow(0 0 3px #ffff00) drop-shadow(0 0 8px #ffed00) drop-shadow(0 0 14px #ffbd00);animation:magnify-yellow-glow 1.4s ease-in-out infinite alternate}
#magnify-toggle:focus-visible{outline:1px dotted #ffff00;outline-offset:3px}
@keyframes magnify-yellow-glow{from{filter:drop-shadow(0 0 3px #ffff00) drop-shadow(0 0 7px #ffed00) drop-shadow(0 0 12px #ffbd00)}to{filter:drop-shadow(0 0 5px #ffff80) drop-shadow(0 0 12px #ffff00) drop-shadow(0 0 20px #ffbd00)}}
@media(prefers-reduced-motion:reduce){#magnify-toggle[aria-pressed=true] img{animation:none}}
/* Viewer toolbar: magnify on the left, close on the right. */
#viewer-toolbar{position:relative;z-index:6;display:flex;align-items:center;justify-content:space-between;gap:20px;margin:0 0 12px;width:100%;min-height:44px}
#viewer-toolbar #magnify-toggle{position:static;inset:auto;margin:0;flex-shrink:0}
#viewer-toolbar #viewer-close{margin:0;flex-shrink:0}
/* An opt-in exception for an individual double-page article scan. */
.magazine-board .magazine-sheet.is-double-spread{max-width:none}
.magazine-board .is-double-spread .expand-image{aspect-ratio:var(--spread-ratio,1.5)}
.spread-option{display:flex;align-items:flex-start;gap:10px;font-weight:normal}
.spread-option input[type=checkbox]{display:inline-block;flex:0 0 auto;width:auto;margin:5px 0 0}
