:root{color-scheme:light;--paper:#f7f5ef;--ink:#243c35;--muted:#586760;--line:#c9cfc4;--leaf:#e9eee4;--rust:#aa4d2c;--serif:"Baskervville","Iowan Old Style",Baskerville,Georgia,serif;--sans:"DM Sans",-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
*{box-sizing:border-box}
body{margin:0;background:var(--paper);color:var(--ink);font:16px/1.5 var(--sans)}
.wrap{max-width:1110px;margin:auto;padding:0 clamp(20px,5vw,54px)}
.mast{background:var(--ink);color:#fffaf0;border-bottom:4px solid #a8af92}
.mastrow,.brand,.sectionhead,.formfoot,.actions{display:flex;align-items:center}
.mastrow,.sectionhead{justify-content:space-between;gap:12px}
.mastrow{min-height:72px}
.brand{font:600 31px/1 var(--serif);gap:12px;letter-spacing:-1px}
.book{width:21px;height:25px;display:inline-block;border:1.5px solid #e1e8da;border-left:5px double #e1e8da;border-radius:2px 4px 4px 2px;transform:rotate(-7deg)}
#today,.date{font-size:.8rem;letter-spacing:.025em}
#today{color:#e5eadf}
h1,h2,h3,p{margin:0}
h1,h2,h3{font-family:var(--serif);font-weight:500}
h1{font-size:clamp(3rem,7vw,5.4rem);line-height:1.05;letter-spacing:-.055em;margin:clamp(38px,6vw,76px) 0 35px}
.dot{color:var(--rust)}
.panes{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(290px,.85fr);align-items:start;gap:clamp(30px,6vw,75px)}
.entries{border-top:2px solid var(--ink)}
.sectionhead{min-height:64px;border-bottom:1px solid var(--line)}
h2{font-size:1.7rem;line-height:1.2;letter-spacing:-.035em}
#count{font:500 .85rem var(--sans);margin-left:5px;color:var(--muted)}
button,input,textarea{font:inherit}
button{cursor:pointer;color:var(--ink);border:1px solid var(--line);background:var(--paper);border-radius:5px;padding:9px 13px;font-weight:600}
button:hover{background:#e3e9dc}
button:focus-visible,input:focus-visible,textarea:focus-visible{outline:3px solid #997439;outline-offset:3px}
.link{font-size:.83rem;border:0;background:transparent;padding:8px 3px;text-decoration:underline;text-decoration-color:#8b9c8c;text-underline-offset:4px}
.link:hover{background:transparent;color:#98502e}
button:disabled{opacity:.55;cursor:wait}
button[hidden]{display:none}
.editor{background:var(--leaf);border:1px solid #c4cebf;border-radius:4px;overflow:hidden}
.binding{height:9px;background:repeating-linear-gradient(90deg,#758c72 0 1px,transparent 1px 6px);background-color:#d3ddcd;border-bottom:1px solid #c4cebf}
.editor form{padding:26px clamp(18px,3vw,31px) 28px}
.editor h2{margin-bottom:23px}
label{display:block;font-size:.86rem;font-weight:650;margin:18px 0 6px}
input,textarea{width:100%;border:1px solid #9fae9d;border-radius:4px;background:#fffef9;color:var(--ink);padding:9px 11px}
textarea{resize:vertical;min-height:92px}
::placeholder{color:#69766c}
.formfoot{gap:15px;margin-top:18px}
.primary{background:var(--ink);color:white;border-color:var(--ink)}
.primary:hover{background:#355747}
article{border-bottom:1px solid var(--line);padding:21px 0 17px}
article h3{font-size:1.65rem;line-height:1.18;overflow-wrap:anywhere}
.date{color:var(--muted);display:block;margin-bottom:5px}
.note{white-space:pre-wrap;overflow-wrap:anywhere;margin-top:9px}
.actions{gap:16px;margin-top:8px}
.empty{text-align:center;padding:44px 12px 40px;border-bottom:1px solid var(--line)}
.empty h3{font-size:1.65rem}
.empty p,.waiting{font-size:.94rem;color:var(--muted);margin-top:5px}
.waiting{padding:18px 0}
.slip{display:block;margin:0 auto 20px;width:48px;height:57px;border:1px solid #829480;border-radius:2px;background:repeating-linear-gradient(to bottom,#f4f5eb 0 7px,#cbd4c5 7px 8px);box-shadow:4px 4px 0 #e0e5d9;transform:rotate(-6deg);position:relative}
.slip:after{content:"";position:absolute;left:7px;top:0;bottom:0;border-left:1px solid #c8aa99}
.status{margin:20px 0 36px;min-height:1.5em;color:var(--muted)}
.status.error{color:#963a23}
dialog{border:1px solid var(--line);border-radius:7px;padding:28px;color:var(--ink);background:#fffdf6;max-width:min(92vw,410px)}
dialog::backdrop{background:#192b2466}
dialog p{margin-top:12px;overflow-wrap:anywhere}
.danger{background:#91462e;color:white}
.danger:hover{background:#793722}
@media(max-width:720px){.panes{grid-template-columns:1fr;gap:30px}.editor{grid-row:1}h1{margin:33px 0 24px}.mastrow{min-height:62px}.editor form{padding:18px 20px 20px}.editor h2{margin-bottom:12px}.editor textarea{height:100px}.empty{padding:32px 12px}label{margin-top:12px}}
