:root{--bg:#faf9f6;--surface:#fff;--surface2:#f1f0eb;--text:#242522;--muted:#6b6d65;--border:#e3e3da;--accent:#b64b20;--accent-soft:#f9e9df;--shadow:0 18px 65px #292c2010;--serif:Georgia,'Times New Roman',serif;--sans:Inter,Arial,sans-serif;color-scheme:light}
:root[data-theme=dark]{--bg:#141615;--surface:#1b1e1c;--surface2:#232723;--text:#f2f0e9;--muted:#a7aca3;--border:#343b34;--accent:#f39664;--accent-soft:#38271e;--shadow:0 18px 65px #0003;color-scheme:dark}
*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--text);font:15px/1.6 var(--sans);-webkit-font-smoothing:antialiased}button,input,textarea,select{font:inherit}a{color:inherit;text-decoration:none}button,a,input,textarea,select{touch-action:manipulation}button{cursor:pointer}button:disabled{opacity:.55;cursor:wait}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:2px solid var(--accent);outline-offset:3px}[hidden]{display:none!important}h1,h2,h3,p{margin:0}img{max-width:100%}button{color:inherit}em{font-weight:400}hr{border:0;border-top:1px solid var(--border);margin:24px 0}
.site-header{height:78px;border-bottom:1px solid var(--border);background:var(--bg)}.header-inner{max-width:1320px;height:100%;padding:0 40px;margin:auto;display:flex;align-items:center;gap:24px}.brand{display:inline-flex;align-items:center;gap:10px;font-size:17px;font-weight:700;letter-spacing:-.6px;white-space:nowrap}.brand img{flex-shrink:0}.brand small{font-size:9px;letter-spacing:2px;font-weight:500;margin-left:12px;padding-left:14px;border-left:1px solid var(--border);color:var(--muted)}.site-links{display:flex;gap:28px;margin:auto;font-size:13px;color:var(--muted)}.site-links a:hover,.site-links a[aria-current]{color:var(--accent)}.header-actions{display:flex;align-items:center;gap:16px;margin-left:auto}.button{display:inline-flex;align-items:center;justify-content:center;gap:12px;background:var(--surface);border:1px solid var(--border);padding:11px 19px;border-radius:7px;font-size:13px;font-weight:600;line-height:1.5;transition:background .15s,transform .15s;white-space:nowrap}.button:hover{background:var(--surface2)}.button.primary{background:var(--accent);border-color:var(--accent);color:var(--bg)}[data-theme=dark] .button.primary{color:#21180e}.button.primary:hover{filter:brightness(.95)}.button.small{padding:8px 13px;font-size:12px}.button.full{width:100%;justify-content:space-between}.icon-button{background:transparent;border:1px solid var(--border);border-radius:50%;width:35px;height:35px;font-size:20px;line-height:1;display:grid;place-items:center;flex-shrink:0}.icon-button:hover{background:var(--surface2)}.quiet-link{font-size:12px;color:var(--muted)}.quiet-link:hover{color:var(--accent)}.menu-toggle{display:none}.eyebrow{font-size:10px;font-weight:700;letter-spacing:2.1px;color:var(--accent);line-height:1.5}
.journal-main{max-width:1240px;padding:0 40px;margin:auto}.journal-intro{display:flex;align-items:flex-end;justify-content:space-between;padding:72px 0 60px;border-bottom:1px solid var(--border);gap:40px}.journal-intro h1{font:400 clamp(48px,6.7vw,88px)/1.05 var(--serif);letter-spacing:-3px;margin-top:22px}.journal-intro h1 em{color:var(--accent)}.intro-note{padding-bottom:10px;max-width:330px}.note-line{display:block;width:40px;height:2px;background:var(--accent);margin-bottom:23px}.intro-note p{font-size:16px;line-height:1.7;margin-bottom:18px}.intro-note>span:last-child{font-size:11px;color:var(--muted)}.section-bar{display:flex;justify-content:space-between;align-items:center;gap:20px;margin:42px 0 24px}.section-bar h2{font:400 30px/1.4 var(--serif);margin-top:5px}.search-box{display:flex;align-items:center;gap:8px;max-width:300px;border-bottom:1px solid var(--border);padding:6px 0;color:var(--muted)}.search-box span{font-size:23px}.search-box input{border:0!important;background:transparent!important;margin:0!important;padding:5px!important;font-size:12px!important;width:100%;color:var(--text)}.filters{display:flex;flex-wrap:wrap;gap:6px}.filters button{border:1px solid transparent;background:transparent;color:var(--muted);font-size:12px;padding:7px 13px;border-radius:30px}.filters button[aria-pressed=true]{background:var(--text);color:var(--bg)}.filters button:hover{border-color:var(--border)}.post-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:32px;margin-top:30px}.story-card{display:flex;flex-direction:column;min-width:0;padding-bottom:22px;border-bottom:1px solid var(--border)}.story-card .card-art{aspect-ratio:1.6;border-radius:10px;overflow:hidden;background:var(--accent-soft);margin-bottom:22px}.card-art img{width:100%;height:100%;object-fit:cover;transition:transform .4s}.story-card:hover .card-art img{transform:scale(1.035)}.card-placeholder{height:100%;display:flex;align-items:center;justify-content:center;font:italic 80px var(--serif);color:var(--accent);background:linear-gradient(130deg,var(--surface2),var(--accent-soft))}.story-card h3{font:400 28px/1.2 var(--serif);letter-spacing:-.6px;margin:9px 0 12px}.story-card:hover h3{color:var(--accent)}.story-card>p:not(.eyebrow){color:var(--muted);font-size:13px;line-height:1.7}.card-meta{display:flex;justify-content:space-between;gap:12px;margin-top:auto;padding-top:24px;font-size:10px;color:var(--muted)}.story-card.featured{grid-column:1/-1;display:grid;grid-template-columns:1.1fr 1fr;column-gap:40px;padding-bottom:35px}.featured .card-art{grid-row:1/6;margin:0;aspect-ratio:1.6}.featured h3{font-size:42px;max-width:450px}.featured>.eyebrow{align-self:end}.empty-state{text-align:center;padding:70px 24px;margin:28px 0;border:1px dashed var(--border);border-radius:10px;color:var(--muted)}.empty-state .empty-mark{font:italic 55px var(--serif);color:var(--accent);margin-bottom:15px}.empty-state h2,.empty-state h3{font:400 28px var(--serif);color:var(--text);margin-bottom:12px}.empty-state p{max-width:400px;margin:auto;font-size:13px}.load-more{text-align:center;margin:35px 0 55px}.skeleton{width:50%;height:14px;margin:0 auto 20px;border-radius:4px;background:var(--surface2);animation:pulse 1.5s infinite}@keyframes pulse{50%{opacity:.3}}.journal-footer{max-width:1160px;border-top:1px solid var(--border);margin:40px auto 0;padding:35px 0;display:grid;grid-template-columns:1fr auto;align-items:center;gap:10px 30px}.journal-footer p,.journal-footer small{font-size:11px;color:var(--muted)}.journal-footer>div{grid-column:2;grid-row:1/3;display:flex;gap:25px;font-size:11px}.journal-footer small{grid-column:1/-1;margin-top:20px}
.article-navigation{display:flex;justify-content:space-between;align-items:center;padding:28px 0;color:var(--muted);font-size:12px}.article-heading{max-width:830px;margin:30px auto 40px;text-align:center}.article-heading h1{font:400 clamp(36px,5.3vw,68px)/1.1 var(--serif);letter-spacing:-1.9px;margin:20px 0;overflow-wrap:anywhere}.article-deck{max-width:650px;margin:0 auto 25px;font-size:18px;color:var(--muted);line-height:1.7}.byline{display:flex;gap:12px;align-items:center;justify-content:center;font-size:12px}.avatar{width:36px;height:36px;border-radius:50%;display:grid;place-items:center;background:var(--accent-soft);color:var(--accent);font-size:11px;font-weight:700}.byline>div{text-align:left}.byline strong,.byline>div>span{display:block}.byline>div>span{font-size:11px;color:var(--muted);margin-top:2px}.article-cover{display:block;width:100%;max-height:650px;object-fit:cover;border-radius:10px;margin:35px auto 50px}.article-body{max-width:720px;margin:40px auto 60px}.prose{font:400 18px/1.85 var(--sans);overflow-wrap:anywhere;color:var(--text)}.prose p{margin:0 0 1.1em;white-space:pre-wrap;min-height:1em}.prose h2{font:400 34px/1.25 var(--serif);margin:1.5em 0 .6em;letter-spacing:-.6px}.prose h3{font:600 23px/1.4 var(--sans);margin:1.5em 0 .6em}.prose blockquote{border-left:3px solid var(--accent);margin:28px 0;padding:12px 24px;background:var(--accent-soft);font:italic 24px/1.65 var(--serif)}.prose blockquote p:last-child{margin-bottom:0}.prose ul,.prose ol{padding-left:1.6em;margin:20px 0}.prose li p{margin-bottom:.35em}.prose a{color:var(--accent);text-decoration:underline;text-underline-offset:3px}.prose hr{margin:35px 0}.prose pre{white-space:pre-wrap;background:var(--surface2);padding:20px;border-radius:6px;font:14px/1.7 monospace}.prose code{font-family:monospace;background:var(--surface2);padding:2px 4px;border-radius:3px}.prose figure{margin:30px auto;max-width:100%;display:block}.prose figure img{width:100%;height:auto;border-radius:8px;display:block}.prose figure[data-width=small]{width:40%}.prose figure[data-width=medium]{width:70%}.prose figure[data-width=full]{width:100%}.prose figure[data-align=left]{margin-left:0}.prose figure[data-align=right]{margin-right:0}.prose figcaption{font:12px/1.6 var(--sans);color:var(--muted);text-align:center;margin-top:10px}.article-end{text-align:center;padding:48px 20px;background:var(--surface2);border-radius:10px;margin:50px 0}.article-end h2{font:400 34px var(--serif);margin:12px 0}.article-end>p:not(.eyebrow){color:var(--muted);font-size:14px;margin-bottom:22px}
.status-banner{min-height:34px;padding:8px 24px;text-align:center;font-size:12px;color:var(--muted)}.status-banner.error{background:var(--accent-soft);color:var(--accent)}.login-layout{max-width:1100px;margin:36px auto 70px;display:grid;grid-template-columns:1.1fr 1fr;gap:100px;align-items:center;padding:0 30px}.login-story h1{font:400 clamp(40px,4.5vw,62px)/1.1 var(--serif);letter-spacing:-2px;margin:20px 0}.login-story h1 em{color:var(--accent)}.login-story>p:not(.eyebrow){color:var(--muted);font-size:13px;line-height:1.8}.editorial-art{margin-top:38px;background:var(--accent-soft);border:1px solid var(--border);border-radius:4px;padding:22px 25px;display:flex;flex-direction:column;transform:rotate(-2deg);max-width:350px;box-shadow:8px 10px 0 var(--surface2)}.art-label{font-size:8px;letter-spacing:1.8px;color:var(--accent)}.art-number{font:italic 110px/1.25 var(--serif);letter-spacing:-12px;color:var(--accent)}.art-bottom{border-top:1px solid var(--border);padding-top:14px;font-size:10px;color:var(--muted);display:flex;justify-content:space-between}.art-bottom b{font-size:20px;color:var(--accent)}.login-card{background:var(--surface);border:1px solid var(--border);border-radius:13px;padding:34px;box-shadow:var(--shadow)}.login-mark{margin-bottom:18px}.login-card h2{font:400 34px var(--serif);margin:7px 0 9px}.login-card>p:not(.eyebrow){font-size:12px;color:var(--muted)}.google-button{width:100%;margin-top:25px;gap:15px}.google-button strong{font-size:18px}.divider-label{position:relative;text-align:center;margin:20px 0;font-size:10px;color:var(--muted)}.divider-label:before{content:'';position:absolute;left:0;right:0;top:50%;border-top:1px solid var(--border)}.divider-label span{position:relative;background:var(--surface);padding:0 12px}label{display:block;font-size:11px;font-weight:600;color:var(--muted)}input,textarea,select{display:block;width:100%;padding:10px 12px;margin:6px 0 16px;border:1px solid var(--border);border-radius:6px;background:var(--bg);color:var(--text);font-size:13px;font-weight:400}input::placeholder,textarea::placeholder{color:var(--muted);opacity:.75}textarea{resize:vertical}.text-button{border:0;background:none;padding:8px 0;font-size:12px;color:var(--muted)}.text-button:hover{color:var(--accent)}.login-card>#reset-password{display:block;margin:12px auto}.login-hint{font-size:10px!important;line-height:1.7;border-top:1px solid var(--border);padding-top:18px;margin-top:12px}.workspace{max-width:1320px;margin:auto;padding:0 40px 60px}.dashboard-heading{display:flex;justify-content:space-between;align-items:center;gap:20px;margin:32px 0 36px}.dashboard-heading h1{font:400 44px/1.2 var(--serif);letter-spacing:-1px;margin:9px 0 12px}.dashboard-heading p:not(.eyebrow){font-size:13px;color:var(--muted)}.dashboard-toolbar{display:flex;justify-content:space-between;gap:20px;padding:18px 0;border-top:1px solid var(--border);border-bottom:1px solid var(--border)}.studio-post{display:grid;grid-template-columns:100px 1fr auto;gap:24px;align-items:center;width:100%;text-align:left;padding:22px 0;background:none;border:0;border-bottom:1px solid var(--border)}.studio-post:hover h3{color:var(--accent)}.studio-post img,.studio-post .post-initial{width:100px;height:75px;object-fit:cover;border-radius:7px;background:var(--surface2)}.post-initial{display:grid;place-items:center;font:italic 36px var(--serif);color:var(--accent)}.studio-post h3{font:400 24px var(--serif);margin:5px 0}.studio-post p{font-size:11px;color:var(--muted)}.badge{display:inline-block;border:1px solid var(--border);padding:3px 9px;border-radius:30px;color:var(--muted);font-size:10px}.badge.published{background:var(--accent-soft);color:var(--accent);border-color:transparent}.writing-topbar{display:flex;gap:20px;align-items:center;padding:10px 0 24px;border-bottom:1px solid var(--border);margin-bottom:24px}.save-status{font-size:11px;color:var(--muted)}.writing-actions{display:flex;gap:8px;align-items:center;margin-left:auto}.writing-layout{display:grid;grid-template-columns:minmax(0,1fr) 250px;gap:28px;align-items:start}.writing-document{border:1px solid var(--border);border-radius:10px;background:var(--surface);min-width:0;box-shadow:var(--shadow)}.title-label{padding:32px 36px 0;font-size:9px;letter-spacing:1.5px}.document-title{font:400 34px/1.2 var(--serif);letter-spacing:-.7px;margin:0;border:0;background:none;padding:14px 36px 28px;border-radius:0}.editor-toolbar{position:sticky;top:0;z-index:5;padding:10px 14px;display:flex;align-items:center;gap:4px;flex-wrap:wrap;background:var(--surface);border-top:1px solid var(--border);border-bottom:1px solid var(--border)}.editor-toolbar button{border:1px solid transparent;border-radius:4px;background:none;color:var(--muted);height:31px;min-width:30px;padding:0 7px;font-size:12px}.editor-toolbar button:hover,.editor-toolbar button[aria-pressed=true]{background:var(--accent-soft);color:var(--accent)}.editor-toolbar select{width:auto;max-width:130px;font-size:11px;margin:0;padding:5px;border:0;background:var(--surface2)}.toolbar-separator{height:20px;width:1px;background:var(--border);margin:0 4px}.editor-surface{padding:25px 36px;min-height:480px}.tiptap{outline:none;min-height:430px}.tiptap p.is-editor-empty:first-child:before{color:var(--muted);content:attr(data-placeholder);float:left;height:0;pointer-events:none;font-size:17px}.tiptap .ProseMirror-selectednode{outline:2px solid var(--accent);outline-offset:5px}.tiptap figure{cursor:grab}.document-foot{border-top:1px solid var(--border);padding:12px 18px;display:flex;justify-content:space-between;gap:12px;color:var(--muted);font-size:10px}.story-settings{font-size:12px}.story-settings>.eyebrow{margin-bottom:20px}.story-settings input,.story-settings textarea,.story-settings select{font-size:12px}.field-hint{font-size:10px;color:var(--muted);line-height:1.65;margin:-7px 0 18px}.cover-picker{border:1px dashed var(--border);border-radius:7px;position:relative;cursor:pointer;text-align:center;overflow:hidden;margin:20px 0 15px;padding:20px 10px;background:var(--surface)}.cover-picker span{display:block;color:var(--accent);font-size:12px;margin-bottom:4px}.cover-picker small{font-size:9px;color:var(--muted)}.cover-picker input{position:absolute;inset:0;width:100%;height:100%;margin:0;opacity:0;cursor:pointer}.cover-picker img{max-height:160px;object-fit:cover;width:100%;margin-bottom:10px}.image-settings{border:1px solid var(--border);background:var(--surface);padding:15px;border-radius:7px;margin:15px 0}.image-settings h3{font-size:12px;margin-bottom:16px}.field-row{display:flex;gap:10px}.field-row>label{flex:1;min-width:0}.image-actions{display:flex;gap:7px;flex-wrap:wrap}.image-actions .button{font-size:10px;padding:6px}.danger{color:var(--accent)}#live-link{display:block;margin-bottom:6px}
dialog{border:1px solid var(--border);background:var(--bg);color:var(--text);border-radius:12px;box-shadow:var(--shadow)}dialog::backdrop{background:#0009;backdrop-filter:blur(4px)}.preview-dialog{width:min(1100px,95vw);max-height:92vh;padding:0}.preview-bar{display:flex;justify-content:space-between;align-items:center;position:sticky;top:0;z-index:4;background:var(--surface);padding:14px 22px;border-bottom:1px solid var(--border);font-size:12px}.preview-bar>div{display:flex;gap:10px}#preview-content{padding:20px 55px;max-width:100%;margin:auto;transition:width .2s}#preview-content.mobile-preview{width:390px;padding:15px;border-left:1px solid var(--border);border-right:1px solid var(--border)}.mobile-preview .article-heading h1{font-size:36px}.mobile-preview .article-deck{font-size:15px}.link-dialog{max-width:450px;width:90vw;padding:25px}.link-dialog h2{font:28px var(--serif);margin-bottom:20px}
@media(min-width:1450px){.workspace{max-width:1450px}.writing-layout{grid-template-columns:minmax(0,1fr) 280px;gap:36px}.editor-surface{padding:30px 70px}.document-title{padding-left:70px}.title-label{padding-left:70px}}
@media(max-width:1000px){.header-inner{padding:0 24px}.site-links{gap:18px}.login-layout{gap:40px}.workspace{padding:0 24px 40px}.writing-layout{grid-template-columns:minmax(0,1fr) 220px;gap:18px}.editor-surface{padding:22px}.document-title{padding:12px 22px 20px;font-size:28px}.title-label{padding-left:22px}.document-foot{flex-direction:column}.journal-footer{margin-left:40px;margin-right:40px}.brand small{display:none}.post-grid{gap:22px}.featured h3{font-size:32px}}
@media(max-width:760px){.site-header{height:68px}.header-inner{padding:0 18px;gap:12px}.brand{font-size:14px}.brand img{width:27px;height:27px}.header-actions{gap:9px}.header-actions .button{font-size:10px;padding:7px 9px}.site-links{display:none;position:absolute;top:68px;left:0;right:0;background:var(--surface);z-index:10;padding:25px;border-bottom:1px solid var(--border)}.site-links.is-open{display:flex;flex-direction:column}.menu-toggle{display:grid}.journal-main{padding:0 22px}.journal-intro{padding:42px 0 35px;display:block}.journal-intro h1{font-size:58px;letter-spacing:-2px}.intro-note{margin-top:28px}.intro-note p{font-size:14px}.note-line{margin-bottom:13px}.intro-note>span:last-child{display:none}.section-bar{margin-top:30px}.section-bar h2{font-size:25px}.search-box{max-width:170px}.post-grid{grid-template-columns:1fr 1fr;gap:20px}.story-card.featured{display:flex;grid-column:1/-1}.featured .card-art{margin-bottom:20px}.featured h3{font-size:34px}.story-card h3{font-size:24px}.card-meta{flex-direction:column;gap:3px}.journal-footer{margin:30px 22px 0;display:flex;flex-direction:column;align-items:flex-start;gap:12px}.journal-footer>div{margin-top:10px}.article-heading{margin-top:15px}.article-heading h1{letter-spacing:-1px}.article-deck{font-size:16px}.article-body{margin-top:28px}.article-cover{margin:25px 0;border-radius:5px}.prose{font-size:17px}.prose h2{font-size:29px}.prose figure[data-width=small]{width:60%}.article-end h2{font-size:28px}.login-layout{display:block;max-width:490px;margin:15px auto 45px;padding:0 22px}.login-story{display:none}.login-card{padding:28px}.studio .header-actions .quiet-link{font-size:11px}.dashboard-heading{align-items:flex-start;flex-direction:column;margin-top:15px}.dashboard-heading h1{font-size:34px}.dashboard-toolbar{flex-direction:column;gap:14px}.dashboard-toolbar .search-box{max-width:100%;width:100%}.studio-post{grid-template-columns:65px 1fr;gap:15px}.studio-post img,.studio-post .post-initial{width:65px;height:65px}.studio-post>.post-arrow{display:none}.studio-post h3{font-size:22px}.writing-topbar{flex-wrap:wrap;gap:8px}.writing-actions{gap:6px}.writing-topbar>.writing-actions{width:100%;justify-content:flex-end}.writing-layout{grid-template-columns:1fr}.story-settings{padding:22px;border:1px solid var(--border);border-radius:9px}.story-settings>.eyebrow{margin-bottom:14px}.document-title{font-size:28px}.editor-toolbar{padding:8px;gap:3px}.editor-surface{padding:22px;min-height:350px}.tiptap{min-height:320px}.preview-dialog{width:96vw}.preview-bar{padding:12px}.preview-bar .button{padding:7px;font-size:10px}#preview-content{padding:15px}.field-hint{margin-top:0}}
@media(max-width:400px){.post-grid{grid-template-columns:1fr}.journal-intro h1{font-size:48px}.brand{font-size:12px}.header-actions{gap:6px}.icon-button{width:30px;height:30px}.workspace{padding:0 14px 35px}.writing-actions .button{padding:7px 10px}.section-bar{align-items:flex-start;flex-direction:column}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
/* Image controls stay beside the image, rather than below story metadata. */
.inline-image-controls{display:flex;align-items:center;gap:6px;flex-wrap:wrap;padding:10px;background:var(--surface2);border:1px solid var(--border);border-radius:7px 7px 0 0;cursor:default;font:12px/1.4 var(--sans)}
.inline-image-controls>span{color:var(--muted);margin-right:5px}.inline-image-controls button{padding:7px 9px;background:var(--surface);color:var(--text);border:1px solid var(--border);border-radius:5px;cursor:pointer;font:inherit}.inline-image-controls button[aria-pressed=true]{background:var(--accent-soft);color:var(--accent);border-color:var(--accent)}.inline-image-controls .danger{color:var(--accent);margin-left:auto}.image-load-status{font:13px/1.5 var(--sans);padding:18px;background:var(--surface2);color:var(--muted)}
.upload-panel{position:fixed;bottom:24px;right:24px;z-index:1000;display:flex;align-items:center;gap:15px;width:min(520px,calc(100vw - 32px));padding:18px;background:var(--surface);color:var(--text);border:1px solid var(--accent);border-radius:12px;box-shadow:var(--shadow)}.upload-panel>img{width:64px;height:64px;object-fit:cover;border-radius:6px}.upload-details{flex:1;min-width:0}.upload-details strong{display:block;font-size:13px;overflow-wrap:anywhere}.upload-details p{font-size:12px;margin:7px 0;line-height:1.5}.upload-details progress{width:100%;height:8px;accent-color:var(--accent)}.upload-error{border-width:2px}@media(max-width:600px){.upload-panel{right:16px;bottom:16px;padding:12px;gap:10px}.upload-panel>img{width:44px;height:44px}.inline-image-controls{gap:4px;padding:6px}.inline-image-controls>span{width:100%}}
.image-resize-frame{position:relative;line-height:0}.image-resize-frame img{width:100%;height:auto}.image-resize-handle{position:absolute;width:12px;height:12px;background:var(--surface);border:2px solid var(--accent);border-radius:2px;z-index:3;touch-action:none;display:block}.handle-nw{left:-6px;top:-6px;cursor:nwse-resize}.handle-ne{right:-6px;top:-6px;cursor:nesw-resize}.handle-sw{left:-6px;bottom:-6px;cursor:nesw-resize}.handle-se{right:-6px;bottom:-6px;cursor:nwse-resize}.handle-n{left:calc(50% - 6px);top:-6px;cursor:ns-resize}.handle-s{left:calc(50% - 6px);bottom:-6px;cursor:ns-resize}.handle-e{right:-6px;top:calc(50% - 6px);cursor:ew-resize}.handle-w{left:-6px;top:calc(50% - 6px);cursor:ew-resize}.inline-image-controls .image-drag-handle{cursor:grab;touch-action:none}.inline-image-controls .image-drag-handle:active{cursor:grabbing}#delete-story{margin-bottom:10px}
/* Compact floating image tools; never scale the toolbar down with the image. */
.editor-image{position:relative}.editor-image .inline-image-controls{position:absolute;left:50%;bottom:100%;transform:translateX(-50%);width:max-content;max-width:calc(100vw - 60px);flex-wrap:nowrap;gap:3px;padding:5px;border-radius:8px;box-shadow:var(--shadow);z-index:6;opacity:0;visibility:hidden;transition:opacity .12s}.editor-image:hover .inline-image-controls,.editor-image:focus-within .inline-image-controls,.editor-image.ProseMirror-selectednode .inline-image-controls{opacity:1;visibility:visible}.editor-image .inline-image-controls>span{display:none}.editor-image .inline-image-controls button{font-size:11px;padding:6px;white-space:nowrap}.editor-image .inline-image-controls .danger{margin-left:3px}.editor-image .image-resize-frame img{cursor:grab;touch-action:none}.editor-image .image-resize-handle{opacity:0}.editor-image:hover .image-resize-handle,.editor-image.ProseMirror-selectednode .image-resize-handle{opacity:1}.editor-image.image-moving{opacity:.65}.image-drop-marker{height:3px;background:var(--accent);z-index:1000;pointer-events:none;display:none}.editor-image figcaption:empty{display:none}
@media(max-width:760px){.editor-image .inline-image-controls{left:0;transform:none}.prose .editor-image[data-width=small]{width:40%}}
@media(max-width:760px){.prose figure[data-width=small]{width:40%}}
.story-layout{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px;margin:28px 0;align-items:start}.story-layout[data-columns="3"]{grid-template-columns:repeat(3,minmax(0,1fr))}.story-layout[data-columns="2"][data-ratio="wide-left"]{grid-template-columns:2fr 1fr}.story-layout[data-columns="2"][data-ratio="wide-right"]{grid-template-columns:1fr 2fr}.story-layout[data-spacing="compact"]{gap:12px;margin:14px 0}.story-layout[data-spacing="generous"]{gap:36px;margin:44px 0}.layout-cell{min-width:0}.prose .layout-cell figure{width:100%!important;margin:0 0 16px!important}.layout-cell>p:first-child{margin-top:0}.layout-editor{border:1px dashed var(--border);border-radius:8px;margin:28px 0;padding:12px}.layout-editor .story-layout{margin:12px 0}.layout-editor .layout-cell{min-height:130px;border:1px dashed var(--border);padding:12px;border-radius:6px}.layout-controls{display:flex;gap:5px;flex-wrap:wrap;font:11px var(--sans);background:var(--surface2);padding:7px;border-radius:6px}.layout-controls button,.layout-controls select{font:inherit;padding:5px;border:1px solid var(--border);border-radius:4px;background:var(--surface);color:var(--text);width:auto;margin:0}.layout-cell .is-empty:before{content:attr(data-placeholder);color:var(--muted);float:left;height:0;pointer-events:none;font-size:14px}.layout-cell .inline-image-controls{max-width:270px;overflow-x:auto}.layout-cell .image-resize-handle{display:none}@media(max-width:640px){.story-layout,.story-layout[data-columns="3"],.story-layout[data-columns="2"][data-ratio]{grid-template-columns:1fr!important}.layout-controls{gap:8px}}
.studio-extra-tools{display:flex;gap:8px;justify-content:flex-end;margin-bottom:12px}.asset-dialog{width:min(760px,94vw);max-height:85vh;overflow:auto;background:var(--surface);color:var(--text);border:1px solid var(--border);border-radius:12px;padding:24px}.asset-dialog h2{font:28px var(--serif);margin-bottom:15px}.asset-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:12px;margin-top:20px}.asset-choice{padding:12px;background:var(--surface2);color:var(--text);border:1px solid var(--border);border-radius:7px;text-align:left}.asset-choice img{width:100%;height:120px;object-fit:contain;display:block;margin-bottom:10px}.asset-dialog::backdrop{background:#0008}#preview-content.mobile-preview .story-layout{grid-template-columns:1fr!important}

/* Same menu as the homepage (/, /investors, /how-it-works): the full menu needs ~1100px; below that it opens from the menu button. */
.site-links .menu-only{display:none}
@media(max-width:1100px){.site-links{display:none;position:absolute;top:78px;left:0;right:0;background:var(--surface);z-index:10;padding:25px;gap:18px;border-bottom:1px solid var(--border);font-size:15px}.site-links.is-open{display:flex;flex-direction:column}.site-links .menu-only{display:block}.menu-toggle{display:grid}.header-login{display:none}}
@media(max-width:760px){.site-links{top:68px}}

/* Shared article geometry responds to its own width, including the studio's phone preview. */
.reading-article{container-type:inline-size;display:flow-root;max-width:960px;margin-inline:auto}
.reading-article .article-heading{max-width:720px;margin:24px auto 28px;text-align:left}
.reading-article .article-heading h1{font:400 clamp(32px,5.5cqi,48px)/1.12 var(--serif);letter-spacing:-1.2px;margin:10px 0 14px;text-wrap:balance}
.reading-article .article-deck{max-width:none;margin:0 0 20px;font-size:18px;line-height:1.6}
.reading-article .byline{justify-content:flex-start;gap:10px;font-size:13px}
.reading-article .avatar{flex-shrink:0}
.reading-article .byline>div>span{font-size:12px}
.reading-article .article-cover{max-height:540px;margin:0 auto 28px}
.reading-article .article-body{max-width:720px;margin:0 auto 48px;font-size:18px;line-height:1.75}
.reading-article .article-body>div>:first-child{margin-top:0}
.reading-article .layout-cell>:first-child{margin-top:0}
#preview-content{padding:8px 40px 0;transition:none}
#preview-content.mobile-preview{width:390px;padding:0 22px}
@container(max-width:640px){
  .reading-article .article-heading{margin:20px auto 24px}
  .reading-article .article-heading h1{font-size:32px;letter-spacing:-.7px}
  .reading-article .article-deck{font-size:16px;margin-bottom:18px}
  .reading-article .article-body{font-size:17px;line-height:1.75}
  .reading-article .article-cover{margin-bottom:24px;border-radius:5px}
  .reading-article .prose h2{font-size:28px}
  .reading-article .prose h3{font-size:22px}
  .reading-article .prose blockquote{font-size:22px;padding:10px 18px}
  .reading-article .story-layout,.reading-article .story-layout[data-columns="3"],.reading-article .story-layout[data-columns="2"][data-ratio]{grid-template-columns:1fr!important}
}
@media(max-width:760px){#preview-content{padding:0 22px}.article-navigation{padding:20px 0 8px}}

/* A focused writing canvas, with secondary controls available on demand. */
.studio .writing-layout{display:block;max-width:960px;margin-inline:auto}
.studio .editor-surface{padding:24px 40px;min-height:360px}
.studio .tiptap{min-height:300px}
.studio .document-title{padding:12px 40px 24px}
.studio .title-label{padding:24px 40px 0}
.studio .story-settings{position:fixed;right:20px;top:100px;bottom:20px;width:310px;max-width:calc(100vw - 32px);overflow:auto;z-index:20;padding:20px;background:var(--surface);border:1px solid var(--border);border-radius:10px;box-shadow:var(--shadow)}
.settings-header{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:20px}
.settings-header h2{font:24px/1.2 var(--serif)}
.settings-header button{font-size:11px;padding:6px 9px}
.studio .image-settings{border:0;margin:0;padding:0}
.studio .image-settings h3{display:none}
.format-more,.image-size-menu{position:relative;font:12px/1.5 var(--sans);color:var(--muted)}
.format-more summary,.image-size-menu summary{cursor:pointer;padding:6px 9px;border-radius:5px;white-space:nowrap}
.format-more[open]>summary,.image-size-menu[open]>summary{background:var(--accent-soft);color:var(--accent)}
.format-more-content,.image-size-menu>div{position:absolute;right:0;top:100%;z-index:12;width:230px;padding:12px;display:flex;flex-wrap:wrap;gap:8px;background:var(--surface);border:1px solid var(--border);border-radius:8px;box-shadow:var(--shadow)}
.format-more:not([open])>.format-more-content,.image-size-menu:not([open])>div{display:none}
.editor-toolbar .format-more-content select{width:100%;max-width:none;border:1px solid var(--border)}
.studio .layout-editor{position:relative;padding:8px;margin:16px 0 0;border:1px solid transparent;border-radius:6px}
.studio .layout-editor:hover,.studio .layout-editor:focus-within{border-color:var(--border)}
.studio .layout-editor .story-layout{margin:0;gap:18px}
.studio .layout-editor .story-layout[data-spacing=compact]{gap:10px}
.studio .layout-editor .story-layout[data-spacing=generous]{gap:28px}
.studio .layout-editor .layout-cell{padding:6px;min-height:60px;border:1px solid transparent;border-radius:4px}
.studio .layout-editor .layout-cell:focus-within{border-color:var(--border)}
.studio .layout-controls{display:block;width:max-content;max-width:100%;margin-bottom:8px;background:transparent;padding:0;font-size:11px}
.layout-controls summary{cursor:pointer;color:var(--muted);padding:4px 7px;border-radius:4px}
.layout-controls[open] summary{background:var(--surface2)}
.layout-options{display:flex;gap:6px;flex-wrap:wrap;padding:8px;background:var(--surface2);border-radius:6px;margin-top:4px}
.layout-controls:not([open]) .layout-options{display:none}
.studio .editor-image{margin-top:14px;margin-bottom:0}
.studio .editor-image .inline-image-controls{display:none;position:relative;left:0!important;right:auto!important;bottom:auto;transform:none!important;opacity:1;visibility:visible;max-width:100%;width:max-content;flex-wrap:wrap;box-shadow:none;margin-bottom:8px;background:var(--surface2)}
.studio .editor-image.ProseMirror-selectednode .inline-image-controls,.studio .editor-image:focus-within .inline-image-controls{display:flex}
.studio .editor-image .image-resize-frame img{cursor:pointer;touch-action:auto}
.studio .layout-cell .inline-image-controls{overflow:visible;max-width:100%}
.studio .editor-image .image-size-menu>div{width:150px}
.studio .editor-image .image-drag-handle{cursor:grab;touch-action:none}
.studio .prose .layout-cell figure{margin-bottom:0!important}
.block-insert{display:block;width:100%;min-height:28px;margin:4px 0 8px;padding:3px 8px;border:0;border-radius:4px;background:transparent;color:var(--muted);font:11px/1.6 var(--sans);text-align:left;cursor:text;user-select:none;opacity:.7}
.block-insert:hover,.block-insert:focus-visible{background:var(--accent-soft);color:var(--accent);opacity:1}
.studio .prose .layout-cell>p:last-child{margin-bottom:8px}
.image-drop-marker{height:4px;border-radius:2px;box-shadow:0 0 0 2px var(--bg)}
@media(max-width:760px){.studio .editor-surface{padding:18px}.studio .document-title{padding:12px 18px 20px}.studio .title-label{padding:20px 18px 0}.studio .writing-actions{flex-wrap:wrap}.studio .story-settings{top:80px;right:16px;bottom:16px}.studio .editor-toolbar{gap:2px}.studio .layout-editor{padding:4px}.studio .layout-editor .layout-cell{padding:4px}}
.studio-extra-tools{position:relative;margin:0;display:block;font-size:12px}
.studio-extra-tools summary{cursor:pointer;padding:8px 10px;color:var(--muted)}
.studio-tools-menu{position:absolute;right:0;top:100%;z-index:12;display:flex;flex-direction:column;gap:8px;width:170px;padding:10px;border:1px solid var(--border);border-radius:8px;background:var(--surface);box-shadow:var(--shadow)}
.studio-extra-tools:not([open]) .studio-tools-menu{display:none}
.trash-post{display:flex;align-items:center;gap:20px;border-bottom:1px solid var(--border)}
.trash-post .studio-post{flex:1;border-bottom:0;min-width:0}
.trash-post>.button{flex-shrink:0}
@media(max-width:760px){.trash-post{flex-wrap:wrap;gap:0;padding-bottom:18px}.trash-post .studio-post{flex-basis:100%}.trash-post>.button{margin-left:80px}}
.seo-settings{border-top:1px solid var(--border);padding-top:16px;margin:18px 0}.seo-settings>summary{cursor:pointer;font-weight:600;margin-bottom:18px}.seo-url{font-size:11px;color:var(--accent);overflow-wrap:anywhere;margin:12px 0}.search-preview{border:1px solid var(--border);border-radius:7px;padding:12px;margin:12px 0 18px}.search-preview strong{font-size:15px;line-height:1.4;color:var(--accent)}.search-preview p{font-size:12px;color:var(--muted);margin-top:8px}.article-taxonomy{max-width:720px;margin:0 auto 32px;display:flex;gap:8px;flex-wrap:wrap}.filters a[aria-current]{border-color:var(--accent);color:var(--accent)}
.studio .settings-header{position:sticky;top:-20px;z-index:3;background:var(--surface);padding:12px 0;border-bottom:1px solid var(--border)}
.journal-search{justify-content:flex-start}.journal-search .search-box{flex:1;max-width:400px}
@media(max-width:760px){.story-card.featured>.eyebrow{align-self:flex-start}}
.removal-dialog>h3{font:22px var(--serif);margin:22px 0 12px}.removal-dialog>p{font-size:13px;line-height:1.7;margin-bottom:14px}.removal-dialog ul{font-size:12px;padding-left:20px}.removal-media-choice{display:flex;align-items:flex-start;gap:10px;margin:18px 0;color:var(--text);font-size:13px}.removal-media-choice input{width:auto;margin:4px 0}.removal-limit{padding:12px;border:1px solid var(--border);border-radius:6px;background:var(--surface2)}.removal-dialog .writing-actions{margin-top:24px;justify-content:flex-end}.removal-dialog>a{font-size:12px;color:var(--accent);text-decoration:underline}
.author-profile{max-width:720px;margin:0 auto 32px;padding:20px;border-top:1px solid var(--border);background:var(--surface2);border-radius:6px;font-size:14px}.author-profile p{margin:8px 0;color:var(--muted);line-height:1.7}.author-profile a{color:var(--accent);text-decoration:underline}
.dashboard-actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap}
.article-cover{height:auto}
.removal-dialog>.writing-actions{position:sticky;bottom:-24px;z-index:2;background:var(--surface);padding:12px 0;border-top:1px solid var(--border)}

.settings-intro,.settings-defaults{font-size:12px;line-height:1.65;color:var(--muted);margin:0 0 20px}.settings-defaults{padding:12px;border-radius:7px;background:var(--surface2)}.settings-field-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;color:var(--muted);font-size:12px;font-weight:600}.field-info{display:inline-grid;place-items:center;width:24px;height:24px;border:1px solid var(--border);border-radius:50%;background:var(--surface2);color:var(--text);font-size:13px;cursor:pointer;flex-shrink:0}.field-info:focus-visible{outline:2px solid var(--accent);outline-offset:3px}.field-info[aria-expanded=true]{color:var(--accent);border-color:var(--accent)}.field-explanation{padding:10px 12px;margin:-4px 0 18px;background:var(--surface2);border-radius:7px;color:var(--muted);font-size:12px;line-height:1.65}.field-explanation p{margin:0 0 8px}.field-explanation p:last-child{margin:0}.settings-optional,.settings-manage{border-top:1px solid var(--border);padding-top:16px;margin:18px 0}.settings-optional>summary,.settings-manage>summary{cursor:pointer;font-weight:600;margin-bottom:18px}.studio .story-settings{width:350px}
