:root{--sea:#194766;--ink:#d8ddc7;--muted:#9bbbc8;--line:#527c94;--dark:#12364d;color-scheme:dark}*{box-sizing:border-box}body{margin:0;background:var(--sea);color:var(--ink);font-family:ui-monospace,"SFMono-Regular","PingFang SC",monospace;font-size:13px}button,a,input,textarea,select{-webkit-tap-highlight-color:transparent}button{font:inherit;color:inherit;cursor:pointer;background:transparent;border:1px solid var(--line);padding:13px 20px;border-radius:0}button:hover{background:#d8ddc710;border-color:var(--ink)}button:focus-visible,a:focus-visible{outline:2px solid var(--ink);outline-offset:5px}button:disabled{opacity:.4;cursor:default}#sea{position:fixed;inset:0;width:100%;height:100%;image-rendering:pixelated;z-index:-1}header{height:116px;display:flex;align-items:center;justify-content:space-between;padding:0 5.5vw;position:relative;z-index:2}.wordmark{font-size:32px;letter-spacing:-2px;color:var(--ink);text-decoration:none;font-weight:bold}.wordmark span{display:block;font-size:9px;font-weight:normal;letter-spacing:2px;margin-top:10px;color:var(--muted)}nav{display:flex;gap:24px}nav button{border:0;padding:10px 0;font-size:11px;letter-spacing:1px}nav span{margin-left:10px}main{height:calc(100svh - 178px);min-height:560px;position:relative}.coordinates{position:absolute;top:20px;left:5.5vw;font-size:10px;line-height:2.3;letter-spacing:2px;color:var(--muted)}.coordinates span{font-size:10px;letter-spacing:1px;opacity:.6}.intro{position:absolute;left:50%;top:45%;transform:translate(-50%,-50%);width:450px;text-align:center;pointer-events:none}.intro button{pointer-events:auto}.eyebrow{font-size:9px;letter-spacing:3px;color:var(--muted);margin-bottom:28px}h1{font-family:"Songti SC","STSong",serif;font-weight:400;font-size:42px;line-height:1.65;letter-spacing:7px;margin:0}.subtitle{color:var(--muted);font-size:12px;letter-spacing:2px;margin:22px 0 36px}.actions{display:flex;gap:12px;justify-content:center}.actions button{font-size:12px}.primary{background:var(--ink);color:var(--dark);border-color:var(--ink)}.primary:hover{background:#edf0df;color:var(--dark)}.actions span{margin-left:15px}#islands{position:absolute;inset:0}.island{position:absolute;border:0;padding:10px;transform:translate(-50%,-50%);background:none!important;transition:filter .3s}.island:hover{filter:brightness(1.3)}.island svg{width:100px;height:80px;image-rendering:pixelated;overflow:visible;animation:bob 6s ease-in-out infinite}.island small{display:block;color:var(--muted);font-size:9px;letter-spacing:2px;opacity:.7;margin-top:6px}.island:hover small{opacity:1;color:var(--ink)}@keyframes bob{50%{transform:translateY(-5px)}}.sea-note{position:absolute;bottom:35px;left:50%;transform:translateX(-50%);color:var(--muted);font-size:10px;letter-spacing:2px;white-space:nowrap}.tiny-island{display:block;text-align:center;font-size:18px;letter-spacing:-4px;margin-bottom:14px;color:var(--ink)}footer{height:62px;margin:0 5.5vw;border-top:1px solid #527c9465;display:flex;align-items:center;justify-content:space-between;color:var(--muted);font-size:9px;letter-spacing:1px}footer i{display:inline-block;width:4px;height:4px;background:var(--ink);margin-right:9px}dialog{background:var(--dark);color:var(--ink);border:1px solid var(--line);width:min(540px,calc(100% - 32px));padding:48px;max-height:90svh;box-shadow:8px 8px 0 #0d2d4380}dialog::backdrop{background:#0d2d43a8;backdrop-filter:blur(4px)}.close{position:absolute;right:14px;top:10px;border:0;font-size:25px;padding:4px 10px}.label{font-size:10px;color:var(--muted);letter-spacing:2px;text-transform:uppercase}.poem{font-family:"Songti SC","STSong",serif;font-size:23px;line-height:2.1;white-space:pre-line;letter-spacing:2px;margin:30px 0}.poem-icon{text-align:center;margin:6px 0 20px}.poem-icon svg{width:88px;height:64px;image-rendering:pixelated}.poem-meta{color:var(--muted);font-size:10px;margin-bottom:25px;line-height:2}.row{display:flex;gap:10px;flex-wrap:wrap}.row button{padding:11px 14px;font-size:12px}h2{font-family:"Songti SC",serif;font-size:28px;font-weight:normal;letter-spacing:3px;line-height:1.5;margin:18px 0}.hint{font-size:11px;line-height:1.9;color:var(--muted)}textarea{width:100%;height:130px;resize:vertical;margin:16px 0;background:var(--sea);border:1px solid var(--line);padding:15px;color:var(--ink);font:inherit;line-height:1.8}label.field{display:block;color:var(--muted);font-size:11px;margin:18px 0 8px}select{width:100%;font:inherit;padding:12px;background:var(--sea);color:var(--ink);border:1px solid var(--line);border-radius:0}.upload{display:inline-block;border-bottom:1px dashed var(--muted);padding:5px 0;color:var(--muted);cursor:pointer;font-size:11px}#photo{position:absolute;width:1px;height:1px;opacity:0}#preview{max-height:90px;max-width:100%;display:block;margin:10px 0}.full{width:100%;margin-top:22px}.book{border-top:1px solid var(--line);padding:20px 0}.book p{font-family:"Songti SC",serif;font-size:18px;line-height:1.9;white-space:pre-line}.book small{color:var(--muted)}#toast{position:fixed;bottom:80px;left:50%;transform:translateX(-50%);background:var(--ink);color:var(--dark);padding:12px 22px;max-width:90%;opacity:0;pointer-events:none;transition:opacity .2s;text-align:center;font-size:12px;z-index:5}#toast.show{opacity:1}.danger{color:var(--muted);border:0;padding-left:0!important}.privacy{margin-top:22px;font-size:10px;color:var(--muted);line-height:1.8}details{margin:16px 0;color:var(--muted);font-size:12px;line-height:1.8}summary{cursor:pointer}@media(max-width:600px){header{height:90px;padding:0 24px}.wordmark{font-size:26px}.wordmark span{font-size:8px;letter-spacing:1px}nav{gap:15px}nav button{font-size:9px}main{height:calc(100svh - 150px);min-height:610px}.coordinates{top:8px;left:24px;font-size:8px}.coordinates span{display:none}.intro{width:100%;top:44%;padding:0 18px}.eyebrow{font-size:7px;letter-spacing:2px}h1{font-size:32px;letter-spacing:5px}.subtitle{font-size:10px;letter-spacing:1px}.actions button{padding:12px 14px;font-size:11px}.island svg{width:65px;height:50px}.island small{font-size:8px;letter-spacing:1px}.sea-note{bottom:20px;font-size:9px}footer{margin:0 24px;font-size:8px;gap:10px}.desktop,#count{display:none}dialog{padding:40px 26px}.poem{font-size:21px}}@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}

/* v0.2: pixel lettering and grounded silhouettes */
.pixel-logo{display:block;width:108px;height:28px;fill:var(--ink);image-rendering:pixelated}
.island svg{height:94px;width:106px}.poem-icon svg{height:88px;width:100px}
#preview[hidden]{display:none}
@media(max-width:600px){.pixel-logo{width:81px;height:21px}.island svg{width:79px;height:70px}.island small{margin-top:0}}

/* v0.3: a quieter headline and a small person behind the island */
h1{line-height:1.32}
.developer{position:fixed;right:4.5vw;bottom:83px;z-index:3}
.developer-girl{display:block;padding:0;width:56px;height:63px;border:0;background:none!important;image-rendering:pixelated}
.developer-girl svg{display:block;width:100%;height:100%}
.developer-bubble{position:absolute;right:8px;bottom:100%;width:max-content;max-width:calc(100vw - 48px);padding:16px 18px;background:var(--dark);border:1px solid var(--muted);box-shadow:4px 4px 0 #102e43;color:var(--ink);opacity:0;visibility:hidden;transform:translateY(4px);transition:opacity .15s,transform .15s,visibility .15s}
.developer-bubble:after{content:"";position:absolute;right:24px;bottom:-6px;width:10px;height:10px;background:var(--dark);border-right:1px solid var(--muted);border-bottom:1px solid var(--muted);transform:rotate(45deg)}
.developer-bubble span{display:block;font-size:11px;letter-spacing:1px;color:var(--muted);margin-bottom:10px}
.developer-bubble a{font-size:12px;color:var(--ink);text-decoration:none;border-bottom:1px dashed var(--line);padding-bottom:3px;display:inline-block}
.developer-bubble a:hover{border-color:var(--ink)}
.developer:hover .developer-bubble,.developer:focus-within .developer-bubble,.developer.is-open .developer-bubble{opacity:1;visibility:visible;transform:translateY(0)}
.developer.is-dismissed .developer-bubble{opacity:0;visibility:hidden}
@media(max-width:600px){.developer{right:22px;bottom:82px}.developer-girl{width:44px;height:50px}.developer-bubble{right:0;padding:14px 16px}}

/* Share cards are designed separately from the reading interface. */
.poster-formats{display:flex;gap:10px;margin:18px 0}
.poster-formats button{font-size:11px;padding:9px 12px}
.poster-formats button[aria-pressed="true"]{color:var(--dark);background:var(--ink);border-color:var(--ink)}
.poster-preview{display:flex;justify-content:center;margin:20px 0;min-height:120px}
.poster-preview img{display:block;max-width:100%;max-height:48svh;width:auto;height:auto;box-shadow:4px 4px 0 #102e43}

/* 方案二：白纸、墨线、一点草绿。仅覆盖视觉。 */
:root{--sea:#fcfcf8;--ink:#292722;--muted:#77786b;--line:#c5c9bb;--dark:#fcfcf8;color-scheme:light}
body{font-family:"PingFang SC","Microsoft YaHei",sans-serif}
#sea{image-rendering:auto}
.wordmark{transform:rotate(-3deg)}.drawn-logo{display:block;width:117px;height:43px}.wordmark span{font-size:9px;letter-spacing:2px;margin-top:4px}
nav{gap:28px}nav button{font-size:10px;letter-spacing:2px}nav button:hover{background:none;color:#708e28}
.coordinates{letter-spacing:2px}.coordinates span{opacity:.8}
h1{font-family:"Island Serif",serif;font-size:40px;line-height:1.4;letter-spacing:7px;transform:rotate(-2deg)}
.eyebrow{font-size:8px;letter-spacing:2.5px}.subtitle{font-size:11px;letter-spacing:2px;margin-top:25px}
button{border:1.3px solid var(--ink);border-radius:48% 3% 45% 4% / 5% 52% 6% 45%}
button:hover{background:#8ba63d12;border-color:#708e28}
.actions{gap:18px}.actions button{font-size:11px;letter-spacing:1px;padding:14px 19px;transform:rotate(1deg)}
.actions .primary{transform:rotate(-2deg)}.primary,.primary:hover{background:#e7edda;color:#292722;border-color:#292722}
#drift{border-color:transparent;border-bottom:1.3px solid #292722;border-radius:0 0 45% 15% / 0 0 8% 5%}
.island{border:0;border-radius:0}.island:hover{filter:none}.island:hover svg{color:#708e28}
.island svg{width:124px;height:113px;image-rendering:auto;animation:bob 8s ease-in-out infinite}
.island:nth-child(2n) svg{animation-delay:-3s}.island:nth-child(3n) svg{animation-delay:-5s}
.island small{font-size:9px;letter-spacing:2px;opacity:.85;margin-top:0}
.sea-note{font-size:10px}.tiny-island{letter-spacing:0;color:#7e973d;margin-bottom:8px}.tiny-island svg{width:65px;height:25px}
footer{border-color:#dedfd5;font-size:9px}footer i{background:#8ba63d;border-radius:45%;width:5px;height:6px;transform:rotate(15deg)}
dialog{border:1.5px solid #292722;border-radius:2% 1% 2% 1% / 1% 3% 1% 2%;box-shadow:5px 6px 0 #dfE2d5;background:#fcfcf8}
dialog::backdrop{background:#f6f6eecc;backdrop-filter:blur(3px)}
.close{border:0}.label{font-size:9px;letter-spacing:2px}.poem-icon svg{width:122px;height:112px;image-rendering:auto}
.poem{font-size:23px;line-height:2;letter-spacing:2px}h2{font-family:"Island Serif",serif;font-size:27px}
textarea,select{background:#fff;border:1px solid #b6baa9;border-radius:2px}textarea:focus,select:focus{outline:1px solid #8ba63d}
.row button{font-size:11px}.book{border-color:#dedfd5}.book small{color:#7b8b55}.poem-meta{line-height:2.2}
.developer-girl{border:0;image-rendering:auto;width:52px;height:61px}.developer-girl svg{image-rendering:auto}
.developer-bubble{border-color:#292722;border-radius:4% 2% 3% 2%;box-shadow:3px 3px 0 #e0e4d5}
.developer-bubble:after{border-color:#292722}.poster-preview img{box-shadow:0 0 0 1px #e2e3d9,3px 4px 0 #e7e9df}
.poster-formats button[aria-pressed="true"]{background:#e7edda;color:#292722;border-color:#292722}
#toast{background:#292722;color:#fcfcf8}
@media(max-width:600px){.drawn-logo{width:91px;height:33px}.wordmark span{font-size:8px;letter-spacing:1px}h1{font-size:31px;letter-spacing:4px}.intro{top:44%}.eyebrow{font-size:6.5px;letter-spacing:1.8px}.subtitle{font-size:10px;letter-spacing:1px}.actions{gap:12px}.actions button{padding:12px 14px;font-size:10px}.island svg{width:86px;height:80px}.island small{font-size:8px;letter-spacing:1px}.developer-girl{width:40px;height:48px}.poem{font-size:21px}nav{gap:16px}}
