@font-face{font-family:Caslon;src:url('/fonts/caslon.ttf') format('truetype');font-display:swap}
@font-face{font-family:DM;src:url('/fonts/dm-sans.ttf') format('truetype');font-display:swap;font-weight:400}
:root{--paper:#ffffff;--ink:#202124;--muted:#545961;--accent:#244bbc;--line:#d9dce1;--serif:Caslon,Georgia,serif;--sans:DM,Arial,sans-serif}
*{box-sizing:border-box}
html{scroll-behavior:smooth;scroll-padding-top:25px}
body{margin:0;background:var(--paper);color:var(--ink);font-family:var(--sans);font-size:16px;line-height:1.65}
a{color:inherit;text-decoration:none}
button,input,textarea,select{font:inherit;color:inherit}
button,a,input,textarea,select{-webkit-tap-highlight-color:transparent}
button{cursor:pointer}
button:disabled{opacity:.5;cursor:wait}
a:focus-visible,button:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:2px solid var(--accent);outline-offset:5px}
::selection{background:#dce5ff}
.wrap{width:min(1180px,calc(100% - 96px));margin:auto}
.site-header{height:116px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);gap:25px}
.wordmark{font-family:var(--serif);font-size:46px;letter-spacing:-2px;line-height:1}
.wordmark span{color:var(--accent)}
.wordmark i{font:25px var(--serif);color:var(--accent);margin-left:13px;font-style:normal;vertical-align:super}
.site-header nav{display:flex;gap:34px;font-size:15px}
.site-header nav a{padding:6px 0}
.site-header nav a:hover,.site-header nav a[aria-current]{color:var(--accent)}
.header-note{font-size:11px;letter-spacing:1.9px;color:var(--muted)}
h1,h2,h3,p{margin:0}
h1,h2,h3{font-family:var(--serif);font-weight:400;line-height:1.08}
h1{font-size:clamp(58px,6.8vw,94px);letter-spacing:-2px}
h1 em{color:var(--accent);font-family:Georgia,serif;font-weight:400;font-size:.92em}
h2{font-size:43px;letter-spacing:-.6px}
.eyebrow{font-size:12px;letter-spacing:2px;color:var(--accent);font-weight:500}
.hero{display:grid;grid-template-columns:1.15fr 1fr;align-items:center;min-height:575px;padding-top:34px;padding-bottom:40px;gap:20px}
.hero-label{display:flex;align-items:center;gap:12px;margin-bottom:27px}
.tiny-line{display:block;background:var(--accent);width:29px;height:1px}
.hero h1{margin-bottom:25px}
.hero-copy>p{color:var(--muted);font-size:18px;line-height:1.9;margin-bottom:29px}
.button{display:inline-flex;justify-content:center;align-items:center;gap:28px;background:var(--accent);border:1px solid var(--accent);color:#ffffff;padding:13px 21px;font-size:15px;line-height:1.6;transition:background .2s}
.button:hover{background:#193890}
.button span{font-size:18px}
.button.secondary{background:transparent;color:var(--accent)}
.button.secondary:hover{background:#f5f6f8}
.hero-footnote{display:flex;align-items:center;gap:9px;font-size:14px;color:var(--muted);margin-top:28px;letter-spacing:.2px}
.hero-footnote span{color:var(--accent);font-size:18px}
.hero-image{position:relative;padding:15px 10px 0}
.journal-art{width:100%;max-height:465px}
.margin-note{position:absolute;right:-21px;top:45%;writing-mode:vertical-rl;font-size:10px;letter-spacing:2px;color:var(--muted)}
.ticker{border-top:1px solid var(--line);border-bottom:1px solid var(--line);background:#ffffff}
.ticker .wrap{display:flex;align-items:center;justify-content:space-between;gap:20px;padding-top:18px;padding-bottom:18px}
.ticker span{font-size:12px;letter-spacing:2px}
.ticker i{font-style:normal;font-size:16px;color:var(--accent)}
.journal{padding-top:70px;padding-bottom:75px}
.section-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:20px}
.section-heading h2{margin-top:16px}
.section-heading>p{font-family:Georgia,serif;font-style:italic;color:var(--muted);font-size:16px;margin-bottom:3px}
.journal-controls{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-top:31px;padding-bottom:20px;border-bottom:1px solid var(--line)}
.filters{display:flex;gap:5px}
.filter{padding:8px 16px;border:1px solid transparent;font-size:15px;color:var(--muted);border-radius:25px}
.filter.active{border-color:var(--ink);color:var(--ink)}
.filter:hover{background:#f5f6f8}
.search{display:flex;align-items:center;border-bottom:1px solid #929aa7;padding-bottom:3px;gap:10px}
.search input{width:190px;background:transparent;border:0;font-size:16px;outline-offset:2px}
.search button{font-size:25px;line-height:1;background:transparent;border:0;padding:0 4px}
.empty-journal{text-align:center;padding:46px 15px 30px}
.empty-flower{font-size:38px;color:var(--accent);display:block;margin-bottom:15px}
.empty-journal h3{font-size:35px;margin-bottom:14px}
.empty-journal p{color:var(--muted);font-size:17px;line-height:1.9}
.coming-note{font-size:12px;letter-spacing:2px;color:var(--accent);display:block;margin-top:22px}
.entries{display:grid;grid-template-columns:repeat(3,1fr);gap:28px;padding-top:32px}
.entry{display:flex;flex-direction:column;padding:24px 0 16px;border-bottom:1px solid var(--line);min-height:263px}
.entry-top,.entry-bottom{display:flex;align-items:center;justify-content:space-between}
.entry-number{font-family:var(--serif);font-size:25px;color:#747b86}
.entry h3{font-size:34px;margin:17px 0 13px;transition:color .2s;overflow-wrap:anywhere}
.entry:hover h3{color:var(--accent)}
.entry>p{color:var(--muted);font-size:16px;line-height:1.85;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;margin-bottom:25px}
.entry-bottom{margin-top:auto;font-size:14px;color:var(--muted);gap:10px}
.entry-bottom>span:last-child{font-size:22px;color:var(--accent)}
.about-strip{display:flex;align-items:center;gap:35px;padding:43px 0 51px;border-top:1px solid var(--line)}
.about-star{font-size:58px;color:var(--accent)}
.about-strip h2{font-size:36px;margin:10px 0 14px}
.about-strip p{font-size:16px;color:var(--muted);line-height:1.9}
.about-strip>.text-link{margin-left:auto;white-space:nowrap}
.text-link{color:var(--accent);font-size:15px;padding:7px 0;border:0;background:transparent;border-bottom:1px solid #244bbc;display:inline-flex;gap:17px;align-items:center}
.text-link:hover{color:#193890}
.site-footer{display:flex;align-items:center;justify-content:space-between;border-top:1px solid var(--line);padding:33px 0 40px;gap:30px}
.wordmark.small{font-size:34px}
.site-footer>p{margin-right:auto;margin-left:38px;font-size:14px;color:var(--muted);line-height:1.8}
.site-footer>div{display:flex;align-items:center;gap:25px;font-size:14px;color:var(--muted)}
.site-footer a:hover{color:var(--accent)}
.skip-link{position:absolute;top:-70px;left:15px;padding:10px 18px;background:var(--ink);color:white;z-index:2}
.skip-link:focus{top:10px}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.about-page{padding:65px 0 100px;max-width:850px;min-height:650px}
.back-link{font-size:15px;color:var(--muted);display:block;margin-bottom:43px}
.about-page>.eyebrow{display:block;margin-bottom:20px}
.about-page h1{margin-bottom:35px}
.about-prose{max-width:570px;margin-left:auto}
.about-prose p{font-size:18px;color:var(--muted);margin-bottom:22px;line-height:1.9}
.about-prose .lead{font-family:var(--serif);font-size:32px;line-height:1.3;color:var(--ink)}
.signature{display:block;font-family:var(--serif);font-size:36px;color:var(--accent);margin:27px 0}
.signature span{font-size:23px;margin-left:10px}
.reading{max-width:760px;padding:60px 0 85px}
.reading-header{border-bottom:1px solid var(--line);padding-bottom:34px;margin-bottom:38px}
.reading-header h1{font-size:clamp(48px,6vw,73px);margin:17px 0 24px;overflow-wrap:anywhere}
.reading-meta{font-size:15px;color:var(--muted);display:flex;gap:13px;flex-wrap:wrap}
.reading-excerpt{font-family:var(--serif);font-size:30px;line-height:1.4;color:var(--muted);margin-top:29px}
.prose{font-family:Georgia,serif;font-size:20px;line-height:1.85;overflow-wrap:anywhere}
.prose p{margin:0 0 26px;white-space:pre-wrap}
.prose.poetry{line-height:2.1}
.end-mark{text-align:center;color:var(--accent);font-size:30px;padding:35px 0}
.reading-end{text-align:center;border-top:1px solid var(--line);padding-top:30px}
.reading-end p{font-size:16px;color:var(--muted);margin-bottom:13px}
.login-card{max-width:520px;padding:85px 0 80px;min-height:670px}
.login-card h1{font-size:62px;margin:15px 0 20px}
.login-card>p{color:var(--muted);max-width:400px}
.login-card form{margin:30px 0}
.login-card label{display:block;font-size:16px;margin-bottom:9px}
.login-card input{width:100%;border:1px solid #d9dce1;background:#ffffff;padding:13px;margin-bottom:18px}
.login-card .button{width:100%}
.login-card form p{margin-top:12px;color:var(--accent);font-size:16px}
.desk{padding:52px 0 75px}
.desk h1{font-size:61px;margin-top:13px}
.desk .section-heading p{color:var(--muted);margin-top:15px}
.desk-layout{display:grid;grid-template-columns:240px 1fr;gap:45px;margin-top:45px}
.desk-sidebar{border-right:1px solid var(--line);padding-right:25px}
.desk-sidebar>.button{width:100%;margin-bottom:25px}
.desk-sidebar h2{font-size:26px;margin-bottom:18px}
.desk-sidebar .text-link{margin-top:24px}
.post-item{display:block;width:100%;text-align:left;background:transparent;border:0;border-bottom:1px solid var(--line);padding:15px 4px}
.post-item strong{font-family:var(--serif);font-weight:400;font-size:25px;display:block;line-height:1.2;overflow-wrap:anywhere}
.post-item span{font-size:13px;letter-spacing:1px;color:var(--muted)}
.post-item:hover{background:#f5f6f8}
.editor-top{display:flex;align-items:center;justify-content:space-between;gap:20px}
.editor-top label{display:flex;gap:12px;align-items:center}
.editor select{border:1px solid var(--line);padding:7px 12px;background:var(--paper)}
.draft-badge{font-size:12px;letter-spacing:1.5px;color:var(--accent)}
.editor label{font-size:16px}
.editor label span{color:var(--muted)}
.editor textarea{background:transparent;width:100%;resize:vertical;border:1px solid var(--line);padding:12px;margin:8px 0 20px;line-height:1.8}
.title-input{border:0;border-bottom:1px solid var(--line);font-family:var(--serif);font-size:44px;width:100%;background:transparent;margin:24px 0;padding:10px 0}
.editor textarea.body-input{font-family:Georgia,serif;font-size:20px;min-height:350px;line-height:1.9}
.editor-info{font-size:14px;color:var(--muted);display:flex;justify-content:space-between;gap:15px}
.editor-actions{display:flex;gap:12px;align-items:center;margin-top:25px;flex-wrap:wrap}
.delete-button{background:transparent;border:0;color:var(--accent);margin-left:auto;font-size:16px}
.editor-message{color:var(--accent);font-size:16px;min-height:30px;margin-top:15px}
.desk-note{font-size:14px;color:var(--muted);margin-top:12px}
#post-list{font-size:16px;color:var(--muted)}
@media(min-width:1500px){.hero{min-height:635px}
.hero-image{padding-left:30px}
}
@media(max-width:1000px){.header-note{display:none}
.wrap{width:calc(100% - 64px)}
.hero{min-height:530px}
.hero-image{padding:0}
.margin-note{right:-10px}
.ticker span{font-size:12px;letter-spacing:1.2px}
.about-strip{gap:25px}
.about-strip>.text-link{white-space:normal;max-width:145px}
.site-footer>div{gap:16px}
.entries{grid-template-columns:repeat(2,1fr)}
.desk-layout{grid-template-columns:200px 1fr;gap:25px}
}
@media(max-width:700px){.wrap{width:calc(100% - 40px)}
.site-header{height:87px;gap:15px}
.wordmark{font-size:37px}
.wordmark i{font-size:18px;margin-left:8px}
.site-header nav{gap:18px;font-size:15px}
.site-header nav a:last-child{max-width:92px;line-height:1.5}
.hero{grid-template-columns:1fr;padding-top:43px;padding-bottom:27px;gap:0}
.hero h1{font-size:clamp(54px,18.4vw,73px)}
.hero-copy>p{font-size:18px}
.hero-label{font-size:9px}
.hero-footnote{margin-top:23px}
.hero-image{max-width:360px;margin:15px auto 0;width:100%}
.journal-art{max-height:315px}
.margin-note{right:0;font-size:10px}
.ticker .wrap{gap:15px;justify-content:center;padding:14px 0;flex-wrap:wrap}
.ticker span:last-child,.ticker i:last-of-type{display:none}
.ticker span{font-size:12px;letter-spacing:1.1px}
.ticker i{font-size:12px}
.journal{padding-top:43px;padding-bottom:45px}
.section-heading{align-items:flex-start;flex-direction:column;gap:13px}
.section-heading h2{font-size:35px;margin-top:13px}
.section-heading>p{font-size:16px}
.journal-controls{flex-direction:column;align-items:stretch;gap:20px;margin-top:26px}
.filters{justify-content:space-between;gap:0}
.filter{font-size:15px;padding:7px 11px}
.search input{width:100%;padding:6px 0}
.search button{margin-left:auto}
.empty-journal{padding:38px 0 20px}
.empty-journal h3{font-size:35px}
.empty-journal p{font-size:17px}
.about-strip{padding:33px 0;display:grid;grid-template-columns:35px 1fr;gap:15px}
.about-star{font-size:36px;align-self:start;margin-top:28px}
.about-strip h2{font-size:36px}
.about-strip p{font-size:16px}
.about-strip p br{display:none}
.about-strip>.text-link{grid-column:2;margin:5px 0 0;max-width:none;width:fit-content}
.site-footer{padding:26px 0;flex-wrap:wrap;gap:20px}
.site-footer>p{margin-left:0;font-size:14px}
.site-footer>div{width:100%;justify-content:space-between;font-size:14px;gap:10px}
.entries{grid-template-columns:1fr;gap:5px;padding-top:10px}
.entry{min-height:230px}
.entry h3{font-size:33px}
.about-page{padding:40px 0 65px;min-height:550px}
.about-page h1{font-size:72px}
.about-prose p{font-size:18px}
.about-prose .lead{font-size:32px}
.reading{padding:35px 0 60px}
.reading-header h1{font-size:51px}
.reading-excerpt{font-size:30px}
.prose{font-size:20px}
.reading-meta{font-size:15px;gap:9px}
.login-card{padding:55px 0;min-height:570px}
.login-card h1{font-size:55px}
.desk{padding:35px 0}
.desk h1{font-size:49px}
.desk-layout{grid-template-columns:1fr;gap:30px;margin-top:25px}
.desk-sidebar{border-right:0;border-bottom:1px solid var(--line);padding:0 0 25px}
.desk-sidebar h2{font-size:23px}
#post-list{max-height:200px;overflow:auto}
.editor-top{align-items:flex-start;gap:10px}
.editor-top label{gap:8px;font-size:16px}
.draft-badge{font-size:12px;margin-top:10px}
.title-input{font-size:35px}
.editor-info{flex-direction:column;gap:5px}
.editor-actions{gap:9px}
.editor-actions .button{font-size:16px;padding:11px 15px;gap:10px}
.editor textarea.body-input{font-size:20px;min-height:300px}
}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}
*{transition:none!important}
}

/* Comfortable reading sizes and touch targets across the journal. */
.button{min-height:48px}
.site-header nav a,.filter,.text-link,.back-link,.site-footer>div a{min-height:44px;display:inline-flex;align-items:center}
.hero-copy>p{line-height:1.8}
.search input{width:250px;min-height:44px;min-width:0}
.search button{min-width:44px;min-height:44px}
.login-card>p{font-size:18px}
.login-card input{font-size:18px;padding:14px}
.editor textarea{font-size:18px}
.editor select{font-size:16px;min-height:44px}
.editor-top{flex-wrap:wrap}
.delete-button{min-height:44px}
.empty-journal h3{line-height:1.25}
@media(max-width:1000px){.ticker span{font-size:11px}}
@media(max-width:700px){
body{font-size:18px;line-height:1.7}
.site-header{height:auto;min-height:100px;padding:22px 0;flex-wrap:wrap;gap:15px 24px}
.wordmark{font-size:42px}
.site-header nav{font-size:15px;gap:20px}
.site-header nav a:last-child{max-width:none}
.hero{padding:40px 0 35px}
.hero-label{font-size:12px;letter-spacing:1.5px}
.hero-copy>p{font-size:18px;line-height:1.75}
.desktop-break{display:none}
.button{font-size:16px;min-height:50px}
.hero-image{max-width:320px;margin-top:25px}
.journal-art{max-height:280px}
.margin-note{display:none}
.ticker span{font-size:12px;letter-spacing:1px}
.section-heading h2{font-size:38px}
.section-heading>p{font-size:17px}
.filters{flex-wrap:wrap;gap:6px}
.filter{font-size:16px;padding:8px 13px}
.search input{width:100%;font-size:16px}
.empty-journal h3{font-size:32px}
.empty-journal p,.entry>p{font-size:18px}
.coming-note{letter-spacing:1.3px}
.entry h3{font-size:36px}
.about-strip{display:block}
.about-star{display:none}
.about-strip h2{font-size:34px}
.about-strip p{font-size:18px}
.about-strip>.text-link{margin-top:20px}
.text-link,.back-link{font-size:16px}
.site-footer>p,.site-footer>div{font-size:15px}
.site-footer>div{flex-wrap:wrap;justify-content:flex-start;gap:10px 24px}
.site-footer>div>span{width:100%}
.about-page h1{font-size:clamp(58px,17vw,72px)}
.about-prose .lead{font-size:30px}
.reading-excerpt{font-size:29px}
.reading-meta{font-size:15px}
.prose{font-size:20px;line-height:1.85}
.editor-top label{font-size:16px}
.editor-actions .button{width:100%;font-size:16px}
.editor textarea.body-input{font-size:20px}
.desk-note{font-size:15px}
}
@media(max-width:360px){.filters{display:grid;grid-template-columns:repeat(2,1fr);gap:6px}.filter{justify-content:center}}
/* Shared typography keeps the visual editor and published page consistent. */
[hidden]{display:none!important}
.rich-prose{font-family:Georgia,serif;font-size:20px;line-height:1.85;overflow-wrap:anywhere}
.rich-prose p{margin:0 0 24px;white-space:pre-wrap}
.rich-prose h2,.rich-prose h3,.rich-prose h4{margin:36px 0 20px;line-height:1.25;color:var(--ink)}
.rich-prose h2{font-size:38px}.rich-prose h3{font-size:31px}.rich-prose h4{font-size:25px}
.rich-prose em{font-family:inherit}
.rich-prose a{color:var(--accent);text-decoration:underline;text-underline-offset:3px}
.rich-prose ul,.rich-prose ol{padding-left:30px;margin:0 0 26px}
.rich-prose li p{margin-bottom:8px}
.rich-prose blockquote{border-left:3px solid var(--accent);margin:26px 0;padding:6px 0 6px 24px;color:var(--muted)}
.rich-prose blockquote p:last-child{margin-bottom:0}
.rich-prose hr{border:0;border-top:1px solid var(--line);margin:36px 0}
.rich-prose mark{background:#dce5ff;color:var(--ink);padding:2px 1px}
.rich-prose code{font-family:monospace;font-size:.85em;background:#f5f6f8;padding:2px 5px}
.rich-prose pre{background:#f5f6f8;padding:20px;overflow:auto;line-height:1.6;white-space:pre-wrap}
.rich-prose pre code{padding:0}
.content-align-left{text-align:left}.content-align-center{text-align:center}.content-align-right{text-align:right}.content-align-justify{text-align:justify}
.writing-image{margin:32px auto;max-width:100%}
.writing-image img{width:100%;height:auto;display:block}
.writing-image.image-medium{width:75%}.writing-image.image-small{width:50%}
.writing-image figcaption{font:15px/1.7 var(--sans);color:var(--muted);text-align:center;margin-top:12px}
.table-scroll{overflow-x:auto;margin:28px 0}
.rich-prose table{width:100%;border-collapse:collapse;table-layout:fixed;margin:24px 0}
.rich-prose td,.rich-prose th{border:1px solid #a6adb8;padding:10px;vertical-align:top;min-width:50px;position:relative}
.rich-prose th{background:#f5f6f8;text-align:left;font-weight:bold}
.rich-prose td p,.rich-prose th p{margin:0}
.reading .prose:has(.writing-image),.reading .rich-prose{white-space:normal}
.editor-writing-heading{display:flex;justify-content:space-between;align-items:center;margin-top:10px;gap:15px;font-size:16px}
.editor-toolbar{position:sticky;top:0;z-index:1;background:white;border:1px solid var(--line);padding:8px;box-shadow:0 2px 5px #20212408}
.toolbar-row{display:flex;flex-wrap:wrap;gap:4px;align-items:center}
.toolbar-row+.toolbar-row{margin-top:4px}
.editor-toolbar button,.editor-toolbar select{border:1px solid transparent;background:white;min-height:44px;min-width:44px;padding:8px 10px;font:14px/1.5 var(--sans);border-radius:3px}
.editor-toolbar select{border-color:var(--line);font-size:16px;max-width:100%}
.editor-toolbar button:hover{background:#f5f6f8}
.editor-toolbar button[aria-pressed=true]{background:#dce5ff;color:#193890}
.editor-toolbar button:disabled{opacity:.4;cursor:default}
.visual-editor{border:1px solid var(--line);border-top:0;min-width:0}
.tiptap{white-space:pre-wrap;min-height:420px;padding:26px;outline-offset:3px}
.tiptap>p:last-child{margin-bottom:0}
.tiptap>p:only-child:empty:before,.tiptap>p:only-child:has(>br:only-child):before{content:"Empieza con una palabra. A ver adónde te lleva.";color:var(--muted);pointer-events:none;float:left;height:0}
.tiptap .ProseMirror-selectednode{outline:2px solid var(--accent);outline-offset:3px}
.tiptap .selectedCell:after{content:'';position:absolute;inset:0;background:#244bbc22;pointer-events:none}
.tiptap .ProseMirror-gapcursor{position:relative}
.tiptap .ProseMirror-gapcursor:after{content:'';position:absolute;top:-2px;width:20px;border-top:1px solid var(--ink)}
.editor-help{font-size:14px;line-height:1.7;color:var(--muted);margin:12px 0 20px}
.desk-layout>*{min-width:0}
.desk-dialog{border:1px solid var(--line);padding:28px;width:min(580px,calc(100% - 32px));max-height:calc(100dvh - 32px);overflow:auto;background:var(--paper);color:var(--ink)}
.desk-dialog::backdrop{background:#20212466}
.dialog-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:20px}
.dialog-heading h2{font-size:34px}
.dialog-heading>button{border:0;background:transparent;font-size:28px;min-height:44px;min-width:44px}
.desk-dialog label{display:block;font-size:16px;margin:18px 0 8px}
.desk-dialog input:not([type=file]),.desk-dialog select{width:100%;padding:12px;border:1px solid var(--line);background:white;font-size:16px;min-height:48px}
.desk-dialog input[type=file]{width:100%;font-size:16px;white-space:normal}
.desk-dialog input::file-selector-button{padding:12px;border:1px solid var(--line);background:#f5f6f8;font:inherit;color:var(--ink);margin-right:8px;cursor:pointer}
.dialog-help{font-size:14px;line-height:1.7;color:var(--muted);margin:10px 0 16px}
.dialog-message{font-size:16px;line-height:1.7;color:var(--accent);margin:14px 0;min-height:25px}
.dialog-actions{display:flex;flex-wrap:wrap;gap:12px}
.image-preview{max-width:100%;max-height:250px;display:block;margin:20px auto;object-fit:contain}
.image-library{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;max-height:260px;overflow:auto}
.library-image{padding:3px;border:1px solid var(--line);background:white;min-height:80px}
.library-image img{width:100%;height:100px;object-fit:cover;display:block}
.preview-dialog{width:min(880px,calc(100% - 32px));padding:32px}
.preview-dialog article{max-width:760px;margin:32px auto 0}
.preview-dialog .reading-header h1{font-size:clamp(42px,6vw,73px);margin-bottom:24px;overflow-wrap:anywhere}
@media(max-width:700px){
.tiptap{padding:20px 16px;min-height:350px}
.editor-toolbar{padding:6px;position:static}
.editor-toolbar button{padding:7px 9px}
.editor-help{font-size:15px}
.rich-prose h2{font-size:34px}.rich-prose h3{font-size:29px}
.desk-dialog,.preview-dialog{padding:20px 16px}
.dialog-heading h2{font-size:30px}
.rich-prose td,.rich-prose th{font-size:17px;padding:8px}
}
.upload-label{display:block;font-size:16px;margin:18px 0 8px}
.upload-choice{display:flex;flex-wrap:wrap;gap:10px;align-items:center}
.upload-choice>span{font-size:14px;color:var(--muted)}
@media(max-width:700px){.dialog-help,.upload-choice>span{font-size:16px}}
