@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Playfair+Display:ital,wght@0,500;0,600;1,500;1,600&display=swap');
.hkf-app{--ink:#eee8dc;--muted:#aaa094;--bg:#171513;--panel:#211d19;--line:rgba(238,232,220,.14);--red:#8f3f43;color:var(--ink);background:var(--bg);font-family:'DM Sans',sans-serif;min-height:80vh;margin:0 auto;padding:0 clamp(20px,6vw,90px);box-sizing:border-box}
.hkf-app *{box-sizing:border-box}.hkf-top{height:92px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:20px}.hkf-brand{display:flex;align-items:center;gap:12px;color:var(--ink);text-decoration:none;font-weight:700;letter-spacing:.19em;font-size:15px}.hkf-brand small{display:block;font-size:8px;letter-spacing:.2em;color:var(--muted);margin-top:5px}.hkf-mark{width:34px;height:34px;border:1px solid #9b5554;color:#d5aaa0;display:grid;place-items:center;font-family:Georgia,serif;font-size:22px}.hkf-top nav{display:flex;gap:28px}.hkf-top nav a,.hkf-textlink{color:var(--muted);text-decoration:none;font-size:12px;letter-spacing:.06em}.hkf-top nav a:hover,.hkf-textlink:hover{color:var(--ink)}.hkf-main{max-width:1180px;margin:auto;min-height:610px;padding:90px 0 110px}.hkf-eyebrow{font-size:9px;letter-spacing:.25em;color:#b47c72;font-weight:700}.hkf-main h1{font-family:'Playfair Display',Georgia,serif;font-size:clamp(48px,7vw,88px);font-weight:500;line-height:.99;letter-spacing:-.045em;margin:24px 0}.hkf-main h1 em{color:#c18b7e;font-weight:500}.hkf-lead{font-size:15px;line-height:1.9;color:var(--muted);max-width:490px}.hkf-actions{display:flex;align-items:center;gap:28px;margin-top:35px;flex-wrap:wrap}.hkf-button{display:inline-flex;align-items:center;justify-content:space-between;gap:35px;background:#8c4144;color:#fff4e9;text-decoration:none;border:1px solid #a65c5c;padding:16px 20px;font-size:11px;letter-spacing:.08em;font-weight:700;cursor:pointer;min-height:48px}.hkf-button:hover{background:#a04d50;color:white}.hkf-button span{font-size:17px}.hkf-feature{margin-top:105px;border:1px solid var(--line);background:linear-gradient(110deg,#241e1a,#191614);min-height:260px;padding:38px;display:flex;justify-content:space-between;align-items:center;gap:30px}.hkf-feature h2,.hkf-empty h2{font-family:'Playfair Display',Georgia,serif;font-size:32px;line-height:1.2;font-weight:500}.hkf-feature p,.hkf-empty p{color:var(--muted);font-size:13px;line-height:1.8;max-width:480px}.hkf-feature-art{width:180px;height:190px;flex:none;border:1px solid #75534a;background:linear-gradient(145deg,#51302d,#211b19 65%);display:flex;align-items:center;justify-content:center;position:relative;color:#e6c6b5;font-family:'Playfair Display',serif;font-size:27px;letter-spacing:.2em;transform:rotate(2deg)}.hkf-feature-art i{position:absolute;bottom:13px;right:14px;font:10px 'DM Sans';color:#c28b7e}.hkf-auth{max-width:490px;margin:0 auto}.hkf-auth h1{font-size:clamp(46px,6vw,68px)}.hkf-form{display:grid;gap:19px;margin-top:38px}.hkf-form label{display:grid;gap:9px;color:#d6cfc4;font-size:11px;letter-spacing:.06em}.hkf-form input:not([type=checkbox]){width:100%;height:49px;background:#211d19;border:1px solid #4a4038;color:var(--ink);padding:0 14px;font:14px 'DM Sans';outline:none}.hkf-form input:focus{border-color:#a66a62}.hkf-form small{font-size:10px;color:var(--muted)}.hkf-form .hkf-button{margin-top:8px;width:100%}.hkf-check{display:flex!important;align-items:center;grid-template-columns:16px auto!important;color:var(--muted)!important}.hkf-switch,.hkf-muted{font-size:12px;color:var(--muted);margin-top:25px}.hkf-switch a,.hkf-muted a{color:#d5a096;text-decoration:none}.hkf-notice{border:1px solid #8c4144;background:#321f20;color:#f0d8d0;padding:12px;margin:20px 0;font-size:12px;line-height:1.6}.hkf-empty{margin-top:55px;padding:48px;border:1px solid var(--line);background:var(--panel);max-width:750px}.hkf-empty-symbol{font-size:32px;color:#b47c72}.hkf-empty h2{margin:20px 0 10px}.hkf-button-quiet{margin-top:18px;background:transparent;border-color:#77504b}.hkf-account{display:grid;grid-template-columns:repeat(3,1fr);gap:15px;margin:45px 0}.hkf-account div{padding:22px;border:1px solid var(--line);background:var(--panel);min-width:0}.hkf-account small,.hkf-account strong{display:block}.hkf-account small{font-size:9px;letter-spacing:.18em;color:var(--muted);margin-bottom:12px}.hkf-account strong{font-size:13px;overflow-wrap:anywhere}.hkf-button-outline{background:transparent;border-color:var(--line)}.hkf-reader-placeholder{max-width:650px;margin:50px auto;text-align:center;padding:50px 25px;border:1px solid var(--line);background:var(--panel)}.hkf-reader-placeholder p{color:var(--muted);font-size:13px;line-height:1.9;margin:25px auto;max-width:510px}.hkf-footer{border-top:1px solid var(--line);padding:25px 0;display:flex;justify-content:space-between;gap:15px;color:#82786e;font-size:8px;letter-spacing:.16em}.hkf-embed{padding:20px}.hkf-embed .hkf-button{color:#fff4e9}
@media(max-width:650px){.hkf-top{height:75px}.hkf-top nav{gap:13px}.hkf-top nav a{font-size:10px}.hkf-main{padding:65px 0 75px}.hkf-feature{margin-top:70px;padding:25px;min-height:0}.hkf-feature-art{width:105px;height:135px;font-size:18px}.hkf-feature h2{font-size:25px}.hkf-account{grid-template-columns:1fr}.hkf-empty{padding:28px}.hkf-footer{flex-direction:column}.hkf-actions{align-items:flex-start;flex-direction:column;gap:18px}}

/* VAASAG identity */
.hkf-brand{letter-spacing:.22em}.hkf-mark{font-family:'Playfair Display',Georgia,serif;font-style:italic}

.hkf-google-button{display:flex;align-items:center;justify-content:center;gap:13px;width:100%;min-height:50px;border:1px solid #5a5149;background:#f4f1eb;color:#24211e;text-decoration:none;font:600 12px 'DM Sans',sans-serif;transition:background .2s,border-color .2s}
.hkf-google-button:hover{background:#fff;border-color:#b9a99a;color:#171513}
.hkf-google-g{display:grid;place-items:center;width:22px;height:22px;border-radius:50%;background:#fff;color:#4285f4;font:bold 17px Arial,sans-serif}
.hkf-or{display:flex;align-items:center;gap:12px;color:#8f857b;font-size:8px;letter-spacing:.2em;margin:22px 0 2px}
.hkf-or:before,.hkf-or:after{content:"";height:1px;background:var(--line);flex:1}
.hkf-google-unconfigured{padding:13px 15px;border:1px dashed #65554d;color:#b9a99a;font-size:11px;line-height:1.6;margin-bottom:18px}

/* VAASAG EPUB reader prototype */
.hkf-reader-app{--paper:#f5f0e6;--reader-ink:#29251f;background:#1b1917;border:1px solid #403832;min-height:760px;color:#eee8dc;margin:0 calc(clamp(20px,6vw,90px)*-1);font-family:'DM Sans',sans-serif}
.hkf-reader-top,.hkf-reader-toolbar,.hkf-reader-meta,.hkf-reader-bottom{display:flex;align-items:center;gap:14px;padding:15px 22px;border-bottom:1px solid rgba(238,232,220,.12)}
.hkf-reader-top{justify-content:space-between}.hkf-reader-back{color:#b9a99a;text-decoration:none;font-size:9px;letter-spacing:.16em}.hkf-reader-brand{font-size:13px;letter-spacing:.22em;font-weight:700}.hkf-reader-brand span{color:#bd8a7d;font-size:9px;margin-left:5px}.hkf-reader-icon{background:transparent;border:1px solid #66564d;color:#eee8dc;padding:8px 12px;font-family:Georgia,serif;font-size:16px}
.hkf-reader-toolbar{flex-wrap:wrap;background:#211d19}.hkf-reader-toolbar button,.hkf-reader-bottom button{background:transparent;border:1px solid #62554c;color:#e8dfd2;padding:9px 12px;font-size:10px;cursor:pointer}.hkf-reader-toolbar button:disabled,.hkf-reader-bottom button:disabled{opacity:.35;cursor:not-allowed}.hkf-reader-toolbar select{background:#29231f;border:1px solid #62554c;color:#e8dfd2;padding:10px;min-width:160px;max-width:100%;font-size:11px}.hkf-file-button{display:inline-flex;align-items:center;justify-content:center;background:#8c4144;border:1px solid #a65c5c;color:#fff4e9;padding:11px 16px;font-size:10px;letter-spacing:.07em;cursor:pointer}.hkf-file-button input{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none}.hkf-file-button-large{margin-top:16px;padding:15px 20px}
.hkf-reader-meta{justify-content:space-between;color:#b9a99a;font-size:10px;border:0;padding-bottom:10px}.hkf-reader-meta #hkf-book-title{color:#e8dfd2;font-size:12px}.hkf-reader-stage{height:650px;min-height:500px;background:var(--paper);color:var(--reader-ink);overflow:auto;position:relative}.hkf-reader-stage iframe{border:0!important}.hkf-reader-stage[data-theme="dark"]{background:#171717;color:#ded8ce}.hkf-reader-welcome{height:100%;min-height:500px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:30px;background:linear-gradient(145deg,#f5f0e6,#e9dfd0);color:#29251f}.hkf-reader-welcome h1{font-family:'Playfair Display',Georgia,serif;font-weight:500;font-size:clamp(42px,6vw,68px);line-height:1.02;margin:20px 0}.hkf-reader-welcome h1 em{color:#8c4144}.hkf-reader-welcome p{max-width:440px;color:#74695d;font-size:13px;line-height:1.8}.hkf-reader-eyebrow{font-size:9px;letter-spacing:.23em;color:#95635b}.hkf-reader-loading{padding:70px;text-align:center;color:#76695b}.hkf-reader-bottom{flex-wrap:wrap;border-top:1px solid rgba(238,232,220,.12);border-bottom:0}.hkf-reader-bottom button.is-active{background:#8c4144;border-color:#a65c5c}.hkf-reader-progress{height:3px;background:#4a4038;flex:1;min-width:60px}.hkf-reader-progress div{height:100%;width:0;background:#bd8a7d;transition:width .2s}.hkf-reader-bottom span{font-size:10px;color:#b9a99a}.hkf-reader-error{display:none;color:#f0c7be;background:#392326;border-top:1px solid #77464a;padding:12px 18px;font-size:11px}.hkf-reader-app button:hover:not(:disabled){border-color:#bd8a7d}.hkf-reader-stage .epub-container{background:transparent!important}
@media(max-width:700px){.hkf-reader-app{margin:0 -20px;min-height:calc(100vh - 100px)}.hkf-reader-top,.hkf-reader-toolbar,.hkf-reader-meta,.hkf-reader-bottom{padding:12px;gap:8px}.hkf-reader-stage{height:65vh;min-height:430px}.hkf-reader-toolbar select{flex:1;min-width:120px}.hkf-reader-meta{align-items:flex-start;flex-direction:column}.hkf-reader-bottom{gap:6px}.hkf-reader-bottom button{padding:8px}.hkf-reader-back{font-size:8px}}

.hkf-reader-error{white-space:pre-wrap;overflow-wrap:anywhere;max-height:220px;overflow:auto;font-family:monospace;font-size:10px;line-height:1.55;text-align:left}

.hkf-reader-tools{display:flex;gap:9px;flex-wrap:wrap;padding:13px 18px;border-top:1px solid rgba(238,232,220,.1);background:#211d19}
.hkf-reader-tools button{border:1px solid #65564d;background:transparent;color:#eee8dc;padding:10px 13px;font-size:10px;cursor:pointer}
.hkf-reader-tools button:disabled{opacity:.35;cursor:not-allowed}
.hkf-saved-panel{padding:18px 20px;background:#26211d;border-top:1px solid #51443b;color:#eee8dc}
.hkf-saved-heading{font-size:9px;letter-spacing:.2em;color:#c18b7e;margin-bottom:12px}
.hkf-saved-panel h4{font-size:10px;color:#c9a397;text-transform:uppercase;letter-spacing:.13em;margin:14px 0 7px}
.hkf-saved-panel p{font-size:11px;color:#b9a99a}
.hkf-saved-item{display:flex;gap:8px;margin:6px 0}
.hkf-saved-jump{flex:1;text-align:left;border:1px solid #51443b;background:#1c1917;color:#eee8dc;padding:9px;font-size:11px;overflow-wrap:anywhere}
.hkf-saved-delete{border:1px solid #66534b;background:transparent;color:#d9aaa0;padding:0 12px}
.vaasag-highlight{fill:rgba(224,183,87,.42);mix-blend-mode:multiply}
/* VAASAG 0.4 — account library */
.hkf-library-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:18px;margin:34px 0}.hkf-library-card{padding:25px;border:1px solid rgba(130,105,82,.28);background:rgba(255,255,255,.025);border-radius:3px}.hkf-library-kicker{font-size:10px;letter-spacing:.16em;color:#a98272}.hkf-library-card h2{font-size:25px;margin:18px 0 20px}.hkf-library-track{height:4px;background:rgba(150,130,110,.2);overflow:hidden}.hkf-library-track span{display:block;height:100%;background:#a45b52}.hkf-library-card p{font-size:12px;opacity:.7;margin:10px 0 20px}.hkf-library-card small{display:block;font-size:11px;line-height:1.6;opacity:.62;margin-top:14px}.hkf-library-foot{margin:28px 0}.hkf-library-foot a{color:inherit;text-decoration:underline;text-underline-offset:4px}
