:root{font-family:system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;color:#222b26;background:#f7f6f2;font-synthesis:none;--muted: #5c665f;--accent: #205744;--line: #dedfd6}*{box-sizing:border-box}body{margin:0;min-width:280px}button,textarea{font:inherit}button{cursor:pointer}button:focus-visible,textarea:focus-visible{outline:2px solid var(--accent);outline-offset:3px}.site-header{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:1rem;min-height:4.75rem;padding:.75rem clamp(1rem,4vw,3.25rem);border-bottom:1px solid var(--line)}.brand{margin:0;font-family:Georgia,serif;font-size:clamp(1.45rem,3vw,2rem);letter-spacing:-.055em;white-space:nowrap}.brand span{color:var(--accent)}.modes{display:flex;gap:.25rem;padding:.25rem;border-radius:2rem;background:#eaece4}.modes button{border:0;border-radius:2rem;background:transparent;color:var(--muted);min-height:2.3rem;padding:.25rem .85rem;font-size:.875rem;font-weight:600;white-space:nowrap}.modes button[aria-pressed=true]{background:#fff;color:var(--accent);box-shadow:0 1px 3px #222b2620}.streak{justify-self:end;color:var(--accent);font-size:.875rem;font-weight:650;white-space:nowrap}.streak span{margin-right:.2rem}.workspace{width:min(100% - 2rem,49rem);margin:clamp(1.25rem,4.5vh,3.25rem) auto 2rem}.prompt{margin:0}.painting{height:clamp(12rem,40vh,24rem);overflow:hidden;background:#e6e8de;border-radius:.75rem}.painting img{display:block;width:100%;height:100%;object-fit:contain}figcaption{padding-top:.55rem;font-size:.8125rem;color:var(--muted)}figcaption a{color:inherit}figcaption cite{font-family:Georgia,serif;font-size:.9rem}.writing{margin-top:1.25rem}.writing-toolbar{display:flex;justify-content:space-between;align-items:center;gap:.75rem;min-height:2.375rem;margin-bottom:.5rem}.timer{font-weight:650;font-size:.95rem;font-variant-numeric:tabular-nums;color:var(--accent)}.timer.urgent{color:#992b34}.actions{display:flex;align-items:center;gap:.5rem}.action{border:1px solid #c7d1c8;border-radius:.45rem;padding:.4rem .75rem;min-height:2.25rem;background:#fff;color:var(--accent);font-size:.875rem;font-weight:650}.action:disabled{opacity:.7;cursor:wait}.action:hover{background:#edf2eb}.action.primary{background:var(--accent);color:#fff;border-color:var(--accent)}.action.primary:hover{background:#174233}textarea{display:block;width:100%;min-height:10.25rem;padding:.95rem 1.15rem;resize:vertical;color:#222b26;background:#fff;border:1px solid #cfd5cb;border-radius:.65rem;font-family:Georgia,serif;font-size:1.125rem;line-height:1.65}textarea::placeholder{color:#637067}.writing-footer{display:flex;justify-content:space-between;align-items:baseline;gap:.5rem 1rem;flex-wrap:wrap;margin-top:.65rem}.status{margin:0;color:var(--muted);font-size:.875rem}.sound-toggle{padding:.35rem .55rem;border:1px solid var(--line);border-radius:.45rem;background:transparent;color:var(--accent);font-size:.875rem;white-space:nowrap}.sound-toggle:hover{background:#eaece4}@media(max-width:720px){.site-header{grid-template-columns:1fr auto;gap:.65rem}.modes{grid-column:1 / -1;grid-row:2;justify-self:start}.streak{grid-column:2;grid-row:1}}@media(max-width:580px){.painting{height:clamp(11rem,34vh,20rem)}}.library-toolbar,.story-card-actions,.story-share{display:flex;align-items:center;flex-wrap:wrap;gap:.5rem}.library-toolbar{justify-content:space-between}.story-library h2{margin:1rem 0;font-family:Georgia,serif}.story-card{margin:.75rem 0;padding:1rem;border:1px solid var(--line);border-radius:.65rem;background:#fff}.story-card summary{cursor:pointer;overflow-wrap:anywhere}.story-card time{display:inline-block;margin-inline-start:.5rem;color:var(--muted);font-size:.875rem}.story-body{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.6}.story-prompt{margin:1rem 0}.story-prompt img{display:block;max-width:100%;max-height:20rem;border-radius:.5rem}.story-share{align-items:end;margin-top:.75rem}.story-share label{flex:1 1 15rem;min-width:0;font-size:.875rem}.story-share input{display:block;box-sizing:border-box;width:100%;min-height:2.25rem;margin-top:.3rem;padding:.35rem .5rem;border:1px solid var(--line);border-radius:.45rem;font:inherit}.profile-form{display:grid;justify-items:start;gap:.75rem;margin-bottom:1.5rem}.writer-identity{display:flex;gap:.65rem;align-items:center;flex-wrap:wrap}.writer-avatar{width:2.75rem;height:2.75rem;object-fit:cover;border-radius:50%}.avatar-placeholder{display:grid;place-items:center;background:#edf2eb;color:var(--accent)}.profile-file,.profile-username{display:grid;gap:.3rem;font-size:.875rem}.profile-file input{max-width:100%;font:inherit}.profile-username input{padding:.45rem .55rem;border:1px solid var(--line);border-radius:.45rem;font:inherit}.feed-byline{margin-bottom:.55rem}.feed-byline .writer-avatar{width:1.75rem;height:1.75rem}.feed-caption{margin:.5rem 0;white-space:pre-wrap;overflow-wrap:anywhere}@media(max-width:580px){.modes{max-width:100%;flex-wrap:wrap}.modes button{padding-inline:.55rem}}.feed-interactions,.vote-controls{display:flex;align-items:center;flex-wrap:wrap;gap:.5rem}.feed-interactions{margin:.8rem 0}.vote-button{min-width:2.4rem;font-size:1.1rem;padding-inline:.4rem}.vote-button[aria-pressed=true]{background:var(--accent);color:#fff;border-color:var(--accent)}.vote-score{font-size:.875rem;font-weight:650}.feed-comments{border-top:1px solid var(--line);padding-top:.8rem}.comment-form,.caption-form{display:grid;gap:.5rem;justify-items:start}.comment-form label,.caption-form label{width:100%}.comment-form textarea,.caption-form textarea{margin-top:.35rem;min-height:4.5rem;font:inherit}.comment-list{margin:.75rem 0;padding:0;list-style:none}.comment-list li{padding:.6rem 0;border-bottom:1px solid var(--line)}.comment-list p{margin:.35rem 0;white-space:pre-wrap;overflow-wrap:anywhere}.caption-form{margin-bottom:.75rem}.writing-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(13rem,17rem);gap:clamp(1rem,3vw,2rem);width:min(72rem,calc(100% - 2rem));align-items:start}.writing-main{min-width:0}@media(min-width:761px){.writing-layout:has(.leaderboard[data-expanded=false]){grid-template-columns:minmax(0,1fr) auto}}.deletion-toggle{display:inline-flex;align-items:center;gap:.3rem;font-size:.875rem}.editor-publish{margin-top:1rem}.editor-publish>.status{margin-top:.5rem}.leaderboard{border:1px solid var(--line);border-radius:.65rem;padding:.8rem;background:var(--paper, #fff)}.leaderboard h2{margin:0}.leaderboard-toggle{width:100%;display:flex;justify-content:space-between;align-items:center}.badge-tiers{list-style:none;margin:.8rem 0;padding:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.5rem}.badge-tiers li{display:grid;justify-items:start;gap:.22rem}.badge-tiers small{color:var(--muted)}.rank-badge{display:inline-block;padding:.15rem .36rem;border-radius:.3rem;font-size:.75rem;font-weight:650;white-space:nowrap}.rank-silver{color:#343d48;background:#ebedf1}.rank-gold{color:#60470b;background:#f7edcd}.rank-diamond{color:#214e68;background:#e0f2fc}.rank-plant{color:#1a553d;background:#e0f1e6}.leaderboard-ranks{padding-inline-start:1.75rem;margin-bottom:0;max-height:25rem;overflow:auto}.leaderboard-ranks li{padding:.4rem .12rem;border-top:1px solid var(--line);font-size:.875rem}.leaderboard-ranks li>div{display:inline-grid;gap:.2rem;justify-items:start;vertical-align:top;overflow-wrap:anywhere;max-width:68%}.leaderboard-ranks li>span{float:right;white-space:nowrap}@media(max-width:760px){.writing-layout{grid-template-columns:minmax(0,1fr)}}
