@import url('https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=DM+Sans:wght@400;500;600;700&family=Playfair+Display:wght@500;600&display=swap');
:root { --ink:#24282a; --muted:#858b8c; --line:#e8e9e6; --soft:#f5f6f3; --paper:#fffefa; --accent:#e56c4a; --accent-dark:#c75438; --green:#68a67d; --shadow:0 18px 50px rgba(42,44,38,.08); }
* { box-sizing:border-box; }
html, body { margin:0; min-height:100%; }
body { background:#f7f8f5; color:var(--ink); font-family:'DM Sans',Arial,sans-serif; font-size:14px; }
a { color:inherit; text-decoration:none; }
button, input { font:inherit; }
button { cursor:pointer; }
.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; }
.app-shell { min-height:100vh; }
.topbar { height:72px; display:flex; align-items:center; gap:32px; padding:0 34px; background:rgba(255,255,253,.94); border-bottom:1px solid var(--line); }
.brand { display:flex; align-items:center; gap:10px; width:190px; color:#222725; font-size:18px; font-weight:700; letter-spacing:-.04em; }
.brand-mark { display:grid; place-items:center; width:30px; height:30px; border-radius:9px; background:var(--ink); color:#fff; font-family:Georgia,serif; font-size:19px; }
.document-title-wrap { display:flex; align-items:center; gap:16px; flex:1; min-width:0; }
.document-title { width:220px; padding:8px 0; border:0; outline:0; background:transparent; color:var(--ink); font-weight:600; }
.save-state { display:flex; align-items:center; gap:7px; color:var(--muted); font-size:12px; white-space:nowrap; }
.status-dot { width:7px; height:7px; border-radius:50%; background:var(--green); }.status-dot.saving { background:#e8a450; }
.top-actions { display:flex; align-items:center; gap:22px; color:#717676; font-size:13px; }.top-actions a:first-child:hover { color:var(--accent); }
.icon-button { border:0; background:none; color:#697071; font-size:21px; line-height:1; padding:6px; }.avatar { display:grid; place-items:center; width:32px; height:32px; border-radius:50%; background:#dce9e3; color:#456655; font-size:11px; font-weight:700; }
.workspace { display:flex; min-height:calc(100vh - 72px); }
.sidebar { display:flex; flex-direction:column; width:246px; flex:0 0 246px; padding:34px 22px 24px; background:#fbfcf9; border-right:1px solid var(--line); }
.sidebar-section { margin-bottom:35px; }.eyebrow { margin:0 12px 13px; color:#9a9f9d; font-family:'DM Mono',monospace; font-size:10px; font-weight:500; letter-spacing:.12em; text-transform:uppercase; }
.side-link, .recent-doc { display:flex; align-items:center; gap:12px; min-height:39px; padding:0 12px; border-radius:8px; color:#767c7c; font-size:13px; }.side-link:hover, .side-link.active { background:#f0f2ed; color:var(--ink); }.side-link.active { font-weight:600; }.side-icon { width:17px; color:#9a9f9d; text-align:center; font-size:17px; }.active .side-icon { color:var(--accent); }.count { margin-left:auto; color:#a1a6a4; font-family:'DM Mono',monospace; font-size:11px; }
.recent-doc { min-height:36px; padding-left:12px; font-size:12px; overflow:hidden; white-space:nowrap; text-overflow:ellipsis; }.recent-doc:hover { color:var(--ink); }.file-dot { width:7px; height:7px; border-radius:50%; flex:none; }.coral { background:#e99074; }.blue { background:#82a9c4; }.gold { background:#d6ad63; }.sidebar-bottom { margin-top:auto; }
.editor-area { flex:1; min-width:0; display:flex; flex-direction:column; }.editor-toolbar { min-height:60px; display:flex; justify-content:space-between; align-items:center; padding:0 38px; background:#fffefa; border-bottom:1px solid var(--line); }.toolbar-group { display:flex; align-items:center; gap:3px; }.tool-button { display:inline-flex; align-items:center; justify-content:center; gap:7px; min-width:32px; height:32px; padding:0 9px; border:0; border-radius:6px; background:transparent; color:#707675; font-size:13px; }.tool-button:hover, .tool-button:focus-visible { background:#f0f2ed; color:var(--ink); outline:none; }.text-tool { font-size:15px; }.italic { font-family:Georgia,serif; font-style:italic; }.underline { text-decoration:underline; }.chevron { font-size:16px; color:#aaa; }.toolbar-divider { height:20px; width:1px; margin:0 8px; background:var(--line); }.tool-button small { margin-left:-5px; font-size:9px; }.export-button { height:34px; padding:0 13px; border:1px solid #dedfd9; border-radius:7px; background:#fff; color:#535a59; font-size:12px; }.export-button:hover { border-color:var(--accent); color:var(--accent-dark); }.export-button span { margin-left:6px; font-size:15px; }
.find-panel { display:flex; align-items:center; gap:10px; padding:10px 38px; background:#fffefa; border-bottom:1px solid var(--line); color:var(--muted); font-size:12px; }.find-panel label { font-weight:600; color:var(--ink); }.find-panel input { width:230px; padding:7px 10px; border:1px solid var(--line); border-radius:6px; outline:0; background:#fafbf8; }.find-panel input:focus { border-color:var(--accent); }.find-panel button { margin-left:auto; border:0; background:none; color:var(--muted); font-size:20px; }
.paper-wrap { flex:1; overflow:auto; padding:55px 8%; background:#f4f5f2; }.paper { width:min(780px,100%); min-height:850px; margin:0 auto; padding:76px 92px 100px; outline:0; background:var(--paper); box-shadow:var(--shadow); }.paper:focus { box-shadow:0 18px 50px rgba(42,44,38,.12); }.paper p { margin:0 0 22px; color:#4c5351; font-family:Georgia,'Times New Roman',serif; font-size:17px; line-height:1.75; }.paper .kicker { margin-bottom:20px; color:var(--accent); font-family:'DM Mono',monospace; font-size:10px; font-weight:500; letter-spacing:.16em; line-height:1.4; }.paper h1 { margin:0 0 22px; color:#202423; font-family:'Playfair Display',Georgia,serif; font-size:50px; font-weight:500; letter-spacing:-.045em; line-height:1.08; }.paper .lead { max-width:520px; margin-bottom:34px; color:#777d7b; font-size:20px; line-height:1.55; }.paper hr { width:100%; height:1px; margin:0 0 34px; border:0; background:#e8e5dc; }.paper h2 { margin:37px 0 16px; color:#292d2c; font-family:'Playfair Display',Georgia,serif; font-size:28px; font-weight:500; }.paper blockquote { margin:32px 0; padding:4px 0 4px 23px; border-left:2px solid var(--accent); color:#3c4542; font-family:'Playfair Display',Georgia,serif; font-size:21px; font-style:italic; line-height:1.55; }
.editor-footer { display:flex; align-items:center; min-height:48px; padding:0 38px; background:#fffefa; border-top:1px solid var(--line); color:#9a9f9d; font-family:'DM Mono',monospace; font-size:10px; }.footer-separator { margin:0 9px; color:#c9ccc8; }.footer-spacer { flex:1; }.reading-time { color:#6f7773; }
.toast { position:fixed; right:25px; bottom:25px; padding:12px 16px; border-radius:8px; background:#28302d; color:#fff; box-shadow:0 8px 25px #0002; font-size:13px; opacity:0; transform:translateY(10px); pointer-events:none; transition:.25s ease; }.toast.visible { opacity:1; transform:translateY(0); }
.dark-mode { --ink:#e9ece8; --muted:#8e9892; --line:#343c38; --soft:#29302d; --paper:#202624; background:#1b201e; }.dark-mode .topbar,.dark-mode .editor-toolbar,.dark-mode .editor-footer,.dark-mode .find-panel,.dark-mode .sidebar { background:#202624; }.dark-mode .sidebar,.dark-mode .topbar,.dark-mode .editor-toolbar,.dark-mode .editor-footer { border-color:var(--line); }.dark-mode .sidebar { background:#1e2421; }.dark-mode .side-link:hover,.dark-mode .side-link.active { background:#2c3530; }.dark-mode .paper-wrap { background:#181d1b; }.dark-mode .paper h1,.dark-mode .paper h2 { color:#edf0eb; }.dark-mode .paper p { color:#c1c9c3; }.dark-mode .paper .lead { color:#a5afa9; }.dark-mode .paper blockquote { color:#d5dbd5; }.dark-mode .document-title,.dark-mode .find-panel label { color:var(--ink); }.dark-mode .export-button,.dark-mode .find-panel input { background:#29302d; border-color:#434d47; color:var(--ink); }
@media (max-width:900px) { .sidebar { width:205px; flex-basis:205px; }.paper-wrap { padding:35px 5%; }.paper { padding:60px 65px 80px; }.editor-toolbar { padding:0 20px; }.editor-footer { padding:0 20px; }.tool-label { display:none; } }
@media (max-width:650px) { .topbar { height:62px; padding:0 16px; gap:12px; }.brand { width:auto; font-size:16px; }.document-title-wrap { display:block; }.document-title { width:145px; font-size:12px; }.save-state { display:none; }.top-actions { gap:9px; }.top-actions a:first-child { display:none; }.workspace { min-height:calc(100vh - 62px); }.sidebar { display:none; }.editor-toolbar { min-height:54px; padding:0 12px; overflow:auto; }.toolbar-group { flex:none; }.toolbar-divider { margin:0 3px; }.toolbar-right { margin-left:auto; }.paper-wrap { padding:20px 12px; }.paper { min-height:700px; padding:42px 27px 65px; }.paper h1 { font-size:37px; }.paper .lead { font-size:18px; }.paper p { font-size:16px; }.paper blockquote { font-size:18px; }.editor-footer { padding:0 13px; font-size:9px; }.find-panel { padding:9px 13px; flex-wrap:wrap; }.find-panel input { flex:1; min-width:150px; } }
