/* A compact, usable parchment editor inspired by the family story reference. */
body[data-editor=story] .phone-shell{background:linear-gradient(90deg,#190e07dd,#190e0710),url('/assets/images/c58f4e401a9f467f/lantern-journal-hero.png') right top/auto 265px no-repeat,#1a1009}
body[data-editor=story] :is(.app-header,.page-back-bar){background:transparent}
body[data-editor=story] #content{background:transparent}
.story-editor-page{padding:0 16px 4px}
.story-editor-hero{padding:16px 5px 20px;text-shadow:0 2px 7px #080502}
.story-editor-kicker{font:10px/1.4 system-ui,sans-serif;letter-spacing:.22em;color:#efc16d;margin:0 0 8px}
.story-editor-hero h1{font:400 clamp(27px,7.5vw,38px)/1.1 Georgia,serif;letter-spacing:-.025em;color:#fff0d5;margin:0 0 8px}
.story-editor-hero>p:last-child{font:16px/1.35 Georgia,serif;color:#e6d2ae;margin:0;max-width:92%}
.story-frame{position:relative;padding:10px;border:2px solid #d1a04c;border-radius:16px;background:linear-gradient(#30160835,#160b0444),url('/assets/images/f274b2bc764d497e/embossed-leather.png') center/240px repeat;box-shadow:inset 0 0 0 2px #140c07,inset 0 0 0 4px #a17235,0 5px 12px #0009}
.story-paper{border:1px solid #a87a3a;border-radius:9px;padding:20px 19px 16px;background:url('/assets/images/ae3eecc3329110b3/waymark-surface-grain.svg'),radial-gradient(ellipse at 45% 35%,#faedcf,#f0d9ae 75%,#d7ae71);box-shadow:inset 0 0 20px #9b662b44;color:#66421e}
.story-corner{position:absolute;width:34px;height:34px;color:#d7a44d;pointer-events:none;z-index:1;filter:drop-shadow(1px 2px 2px #0009)}
.story-corner svg{display:block;width:100%;height:100%}.story-corner-tl{top:-1px;left:-1px}.story-corner-tr{top:-1px;right:-1px;transform:rotate(90deg)}.story-corner-bl{bottom:-1px;left:-1px;transform:rotate(-90deg)}.story-corner-br{bottom:-1px;right:-1px;transform:rotate(180deg)}
.story-paper label{display:block;font:10px/1.4 system-ui,sans-serif;letter-spacing:.15em;text-transform:uppercase;margin:0 0 9px;color:#74502c}
.story-paper input,.story-paper textarea{display:block;width:100%;min-width:0;background:transparent;border:0;border-radius:0;color:#4c2e14;font-family:Georgia,serif;font-weight:400;box-shadow:none;padding:0}
.story-paper #entry-title{font-size:23px;line-height:1.3;padding:0 0 13px;border-bottom:1px solid #b08b555e;margin:0 0 18px}
.story-paper #entry-body{font-size:18px;line-height:1.55;min-height:230px;resize:vertical;margin:0;padding:3px 0 12px;border-bottom:1px solid #b08b555e}
.story-paper :is(input,textarea)::placeholder{color:#855b31;opacity:1}
.story-paper :is(input,textarea,button):focus-visible{outline:2px solid #996524;outline-offset:4px}
.story-paper .text-count{font:11px/1.4 system-ui,sans-serif;color:#856036;padding-top:8px}
.story-save-actions{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:16px;flex-wrap:wrap}
.story-save-actions .save-state{font:11px/1.45 system-ui,sans-serif;color:#76512d;margin:0;flex:1;min-width:70px}
.story-save-actions .save-state[data-error=true]{color:#932e16}
.story-save-actions .primary{min-height:44px;min-width:0;font:17px/1.2 Georgia,serif;color:#fae8c4;padding:10px 14px;border:3px double #d9a44a;border-radius:12px;background:linear-gradient(130deg,#58301a66,#29150899),url('/assets/images/f274b2bc764d497e/embossed-leather.png') center/240px repeat;box-shadow:inset 0 0 0 1px #130b05,0 2px 5px #603c2766}
.story-editor-help{font:12px/1.5 Georgia,serif;color:#d2bd9b;margin:15px 6px 6px}
/* Letter drafts share the frame, with artwork matching Letters & Keepsakes. */
body[data-editor=letter] .phone-shell{background:linear-gradient(90deg,#190e07e8,#190e0720),url('/assets/images/94d57b44b37ad058/lantern-keepsakes-header.png') right top/auto 300px no-repeat,#1a1009}
body[data-editor=letter] :is(.app-header,.page-back-bar,#content){background:transparent}
.letter-editor-page .story-editor-hero{padding-bottom:22px}
.letter-editor-page .story-paper #entry-title{font-size:clamp(18px,4.9vw,23px)}
.letter-editor-notice{font:12px/1.5 Georgia,serif;color:#dec9a6;margin:14px 5px 0;padding:11px 13px;border:1px solid #88623788;border-radius:9px;background:url('/assets/images/ae3eecc3329110b3/waymark-surface-grain.svg'),#22140977}
@container phone (min-width:1000px){body[data-editor=letter] :is(.phone-shell,.bottom-nav){max-width:860px;width:100%}body[data-editor=letter] .phone-shell{background-size:auto 380px}.letter-editor-page .story-paper #entry-title{font-size:32px}.letter-editor-notice{font-size:16px;padding:14px 20px}}
@media(max-width:355px){.story-editor-page{padding-inline:12px}.story-paper{padding:18px 13px 15px}.story-paper #entry-title{font-size:20px}.story-paper #entry-body{font-size:17px;min-height:210px}.story-save-actions .primary{font-size:15px;padding-inline:10px}}
@container phone (min-width:1000px){body[data-editor=story] :is(.phone-shell,.bottom-nav){max-width:860px;width:100%}body[data-editor=story] .phone-shell{background-size:auto 330px}.story-editor-page{padding-inline:32px}.story-editor-hero{padding:20px 12px 25px}.story-editor-hero h1{font-size:48px}.story-editor-hero>p:last-child{font-size:23px}.story-editor-kicker{font-size:12px}.story-frame{padding:15px;border-radius:20px}.story-paper{padding:28px 38px 24px}.story-corner{width:46px;height:46px}.story-paper label{font-size:12px}.story-paper #entry-title{font-size:32px}.story-paper #entry-body{font-size:24px;min-height:290px}.story-save-actions .primary{font-size:22px;padding:14px 24px}.story-save-actions .save-state,.story-paper .text-count{font-size:13px}.story-editor-help{font-size:16px}}
