* { box-sizing:border-box }
:root { color-scheme:light; font:16px/1.5 system-ui,sans-serif; color:#193e34; background:#eae7df }
body { margin:0; padding:env(safe-area-inset-top) 0 env(safe-area-inset-bottom) }
main { max-width:560px; margin:clamp(0px,5vw,60px) auto; background:#fbf5e7; border-radius:18px; box-shadow:0 16px 60px #35372e19; overflow:hidden }
header { display:flex; align-items:center; justify-content:space-between; padding:12px 24px; border-bottom:1px solid #637568 }
header strong { font: bold 21px Georgia,serif } header strong span { color:#9b3029 }
section { padding:28px clamp(20px,5vw,36px) 36px }
h1,h2,p,div,a { overflow-wrap:anywhere } h1 { font:normal clamp(36px,8vw,48px)/1.06 Georgia,serif; margin:8px 0 24px } h2 { font:normal 24px Georgia,serif; margin:26px 0 8px }
p,.message { white-space:pre-wrap } small { display:block; font:600 12px/1.5 monospace; color:#51685c }
button,input,textarea,select { font:inherit; color:inherit } button { min-height:44px; border:0; cursor:pointer; background:transparent }
.row { width:100%; display:flex; justify-content:space-between; gap:12px; text-align:left; padding:14px 0; border-bottom:1px solid #c2c7b9 }
.row:after { content:'↗'; color:#8a342a }
.cta { display:block; width:100%; margin:16px 0; background:#193e34; color:#fff9eb; border-radius:6px; padding:12px; font-weight:650 }
button:disabled { opacity:.5; cursor:default } :focus-visible { outline:3px solid #a54932; outline-offset:2px }
.letter { position:relative; margin:25px 5px; padding:36px 16px 22px; transform:rotate(-2deg); background:#eadaba; box-shadow:2px 6px 9px #58483026; color:#513d2f; border:5px solid transparent; border-image:repeating-linear-gradient(125deg,#953a30 0 9px,#faf2da 9px 18px,#486457 18px 27px,#faf2da 27px 36px) 5 }
.letter b { display:block; margin-top:7px; font:italic 30px Georgia,serif } .stamp { position:absolute; top:8px; right:12px; padding:0 5px; border:2px dotted; color:#923d32 }
label { display:grid; gap:5px; margin:15px 0; font-weight:550 } input,select,textarea { width:100%; min-width:0; padding:10px; border:1px solid #939b8d; background:#fffdf6; border-radius:4px } textarea { min-height:88px; resize:vertical }
.person,.message { padding:12px 0; border-bottom:1px dotted #abb2a6 } a { color:#245a49 } .danger,#error { color:#8a3027 } #error:not(:empty) { padding:0 24px 24px } #error:empty {display:none}
@media(max-width:600px){ main { margin:0; min-height:100dvh; border-radius:0 } }
dialog { width:min(420px,calc(100% - 40px)); padding:24px; background:#fbf5e7; color:#193e34; border:1px solid #637568; border-radius:12px }
dialog h2 { margin-top:0 } dialog .row:after { content:none } dialog::backdrop { background:#193e3477 }
