@charset "UTF-8";
:root{color-scheme:light;--ink:#283b30;--muted:#7a7c6e;--paper:#f5f1e7;--green:#344d3e;--gold:#a57a3d;--line:#ddd8cb;--serif:Georgia,"Times New Roman",serif;--sans:"Segoe UI",Arial,sans-serif}
*{box-sizing:border-box}
body{margin:0;padding-bottom:calc(78px + env(safe-area-inset-bottom,0px));background:var(--paper);color:var(--ink);font-family:var(--sans);font-size:15px;-webkit-font-smoothing:antialiased}
button,input{font:inherit}
button{cursor:pointer;color:inherit;-webkit-tap-highlight-color:transparent}
button:disabled{cursor:default;opacity:.3}
button:focus-visible,a:focus-visible,input:focus-visible,.book-viewport:focus-visible{outline:2px solid var(--gold);outline-offset:4px}
button{border:0;background:none}
button,button .icon{touch-action:manipulation}
[hidden]{display:none!important}
.icon-definitions{position:absolute;width:0;height:0;overflow:hidden}
.icon{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0;vertical-align:middle}
.visually-hidden{position:absolute!important;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.skip-link{position:fixed;top:-80px;left:16px;z-index:100;padding:12px 18px;background:var(--green);color:white;text-decoration:none;border-radius:8px}
.skip-link:focus{top:12px}
.site-header{max-width:none;height:60px;margin:0 24px;padding:0 12px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line)}
.brand{display:flex;align-items:center;gap:12px;font-family:var(--serif);font-size:24px;letter-spacing:-.5px;padding:0}
.brand-mark{width:36px;height:36px;display:grid;place-items:center;background:var(--green);border-radius:50%;color:#f6e7c9}
.brand-mark .icon{width:19px;height:19px}
.header-label{display:flex;align-items:center;gap:9px;font-size:11px;letter-spacing:1.7px;text-transform:uppercase;color:#7e806f}
.status-dot{width:5px;height:5px;background:#8a9c80;border-radius:50%}
.help-button{display:flex;align-items:center;gap:8px;padding:10px 0 10px 10px;color:#6b7265;font-size:12px}
.help-button:hover{color:var(--green)}
.help-button .icon{width:18px;height:18px}
.introduction{text-align:center;padding:18px 20px 20px}
.eyebrow{font-size:9px;font-weight:600;letter-spacing:2.4px;color:var(--gold);margin:0 0 13px;line-height:1.6}
h1{font-family:var(--serif);font-size:clamp(30px,3.3vw,47px);font-weight:400;line-height:1.15;letter-spacing:-1.4px;margin:0}
h1 em{font-weight:400}
.authors{font-size:11px;letter-spacing:.6px;color:var(--muted);margin:13px 0 0}
.authors span{padding:0 7px;color:#b89b6e}
.reader{width:100%;max-width:none;margin:0 auto;padding:0 12px}
.reader-topline{display:flex;align-items:center;justify-content:space-between;font-size:10px;letter-spacing:.4px;color:#7b806f;padding:0 48px 8px}
.reader-topline>span:first-child{display:flex;gap:7px;align-items:center}
.reader-topline .icon{width:14px;height:14px}
.stage-shell{position:relative;min-width:0;border-radius:16px;background:radial-gradient(ellipse at 50% 35%,#ece7d7 0%,#e7e3d5 55%,#e2dfd1 100%);border:1px solid #dedacb;box-shadow:inset 0 1px 0 #ffffff65}
.book-viewport{height:auto;min-height:320px;padding:12px 48px;overflow:auto;display:flex;align-items:flex-start;position:relative;border-radius:16px;overscroll-behavior:auto;touch-action:pan-y pinch-zoom;scrollbar-width:thin;scrollbar-color:#a9aa99 transparent;isolation:isolate}
.book{display:flex;align-items:stretch;position:relative;margin:0 auto;flex-shrink:0;filter:drop-shadow(0 16px 18px #40371e28);user-select:none;-webkit-user-select:none}
.book.is-changing{animation:page-arrival .22s ease-out}
.page-surface{position:relative;background:#f9f0d9;overflow:hidden;flex-shrink:0;box-shadow:0 1px 1px #44391b17;user-select:none;-webkit-user-select:none}
.page-surface canvas{display:block;width:100%;height:100%;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none}
.book.is-spread .page-surface:first-child{border-radius:3px 0 0 3px}
.book.is-spread .page-surface:last-child{border-radius:0 3px 3px 0}
.book.is-spread .page-surface:first-child::after{content:"";pointer-events:none;position:absolute;inset:0 0 0 auto;width:7%;background:linear-gradient(90deg,transparent,#4f351917)}
.book.is-spread .page-surface:last-child::after{content:"";pointer-events:none;position:absolute;inset:0 auto 0 0;width:7%;background:linear-gradient(90deg,#4f35191a,transparent)}
.book:not(.is-spread) .page-surface{border-radius:3px 6px 6px 3px}
.page-surface::before{content:"";position:absolute;inset:0;box-shadow:inset 0 0 0 1px #4b3f1d10;pointer-events:none;z-index:1}
.stage-arrow{position:absolute;top:50%;transform:translateY(-50%);width:38px;height:62px;display:grid;place-items:center;border-radius:8px;color:#66725c;z-index:3;background:#f8f5eb75;transition:background .18s}
.stage-arrow:hover:enabled{background:#f8f5eb}
.stage-arrow .icon{width:23px;height:23px}
.stage-arrow-left{left:10px}
.stage-arrow-right{right:10px}
.stage-arrow:disabled{opacity:.2}
.loading-indicator{position:absolute;z-index:4;top:50%;left:50%;transform:translate(-50%,-50%);background:#f8f5edee;border:1px solid var(--line);box-shadow:0 5px 20px #3433270b;border-radius:30px;display:flex;align-items:center;gap:10px;white-space:nowrap;padding:12px 20px;font-size:12px;color:#6b7363;pointer-events:none}
.loading-dot{width:7px;height:7px;border-radius:50%;background:#809270;animation:loading-pulse 1s ease-in-out infinite}
.error-panel{position:absolute;z-index:5;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:24px;text-align:center;background:#eeeadef8;border-radius:15px}
.error-panel>.icon{width:35px;height:35px;color:var(--gold);margin-bottom:12px}
.error-panel h2{font-family:var(--serif);font-size:23px;font-weight:400;margin:0 0 10px}
.error-panel p{font-size:13px;line-height:1.7;margin:0 0 22px;color:var(--muted)}
.reader-controls{position:fixed;bottom:calc(12px + env(safe-area-inset-bottom,0px));left:50%;transform:translateX(-50%);z-index:20;display:flex;align-items:center;justify-content:center;gap:12px;width:max-content;max-width:calc(100% - 12px);margin:0;padding:6px 10px;background:#fffcf5;border:1px solid #e1dbcd;border-radius:50px;box-shadow:0 3px 14px #3e35221c}
.navigation-group,.zoom-group{display:flex;align-items:center;gap:3px}
.icon-button{display:inline-flex;align-items:center;justify-content:center;width:36px;height:36px;padding:0;border-radius:50%;transition:background .15s;color:#53614d;flex-shrink:0}
.icon-button .icon{width:19px;height:19px}
.icon-button:hover:enabled{background:#eaeedf}
.position-button{display:flex;align-items:center;justify-content:center;gap:7px;min-width:126px;padding:8px 7px;font-size:12px;font-variant-numeric:tabular-nums;white-space:nowrap}
.position-button>.icon{width:13px;height:13px;color:#7e826f}
.position-button:hover{color:var(--gold)}
.control-divider{height:19px;width:1px;background:#e1dbcd}
.zoom-value{font-size:11px;font-variant-numeric:tabular-nums;min-width:41px;padding:7px 2px;color:#7c7e6b}
.zoom-value:hover{color:var(--green)}
.reader-bottomline{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:0 3px;margin-top:16px;color:#8a8b7b;font-size:10px}
.reader-bottomline p{margin:0;line-height:1.6}
.mobile-hint{display:none}
.page-total{font-size:9px;letter-spacing:.6px;white-space:nowrap}
.reading-progress{height:2px;border-radius:4px;background:#e2ddcf;margin-top:13px;overflow:hidden}
.reading-progress span{display:block;height:100%;width:0%;background:#ad8c53;transition:width .3s ease}
.resume-card{position:absolute;z-index:8;left:50%;bottom:14px;transform:translateX(-50%);display:flex;align-items:center;gap:16px;width:max-content;max-width:calc(100% - 24px);background:#fffcf3f5;border:1px solid #e1dac8;border-radius:11px;box-shadow:0 5px 25px #3b35211c;padding:8px 8px 8px 16px;font-size:11px;color:#6e7465}
.resume-card>button:not(.icon-button){font-size:11px;font-weight:600;color:var(--green);white-space:nowrap;padding:9px 0}
.resume-card .icon-button{width:27px;height:27px}
.resume-card .icon-button .icon{width:14px;height:14px}
.site-footer{text-align:center;padding:25px 15px 23px;color:#989684}
.footer-flourish{font-family:var(--serif);font-size:25px;color:#bca779;line-height:1}
.site-footer p{font-size:9px;letter-spacing:.25px;margin:7px 0 0}
.primary-button{display:inline-flex;align-items:center;justify-content:center;gap:9px;padding:13px 19px;background:var(--green);color:#fff9e9;border-radius:7px;font-size:12px;font-weight:600;white-space:nowrap;transition:background .15s}
.primary-button:hover{background:#243d2e}
.reader-dialog{width:470px;max-width:calc(100% - 32px);border:1px solid #e1dbcc;border-radius:16px;background:#faf7ee;box-shadow:0 24px 90px #10251930;color:var(--ink);padding:36px}
.reader-dialog::backdrop{background:#1d30265c;backdrop-filter:blur(4px)}
.reader-dialog h2{font-family:var(--serif);font-size:29px;font-weight:400;line-height:1.2;letter-spacing:-.6px;margin:0 0 26px}
.reader-dialog .eyebrow{font-size:8px;letter-spacing:1.8px;padding-right:16px}
.dialog-close{position:absolute;right:12px;top:12px;width:28px;height:28px}
.dialog-close .icon{width:17px;height:17px}
.reader-dialog label{font-size:11px;display:block;margin-bottom:8px}
.reader-dialog label span{color:var(--muted)}
.jump-input-row{display:flex;gap:10px}
.jump-input-row input{min-width:0;width:100%;border:1px solid #d8d3c4;background:#fffdf8;color:var(--green);border-radius:7px;padding:10px 12px;font-size:18px;font-variant-numeric:tabular-nums}
.quick-jumps{display:flex;justify-content:space-between;gap:10px;border-top:1px solid var(--line);margin-top:25px;padding-top:18px}
.quick-jumps button{padding:4px 0;color:#6f795f;font-size:11px;text-decoration:underline;text-underline-offset:4px;text-decoration-color:#c4c8b9}
.quick-jumps button:hover{color:var(--gold)}
.help-dialog{width:500px}
.help-dialog>p:not(.eyebrow){font-size:12px;line-height:1.8;color:#777b6b;margin:0 0 20px}
.help-dialog h2{margin-bottom:12px}
.help-list{padding:0;margin:0 0 20px;list-style:none}
.help-list li{display:grid;grid-template-columns:70px 1fr;gap:13px;font-size:12px;line-height:1.75;padding:10px 0;border-bottom:1px solid #e8e2d5;color:#777b6b}
.help-list strong{font-weight:600;color:#4b5e46}
.help-list span{min-width:0}
.help-dialog .keyboard-help{font-size:10px!important;line-height:2!important}
kbd{font:10px var(--sans);border:1px solid #ddd8ca;border-radius:3px;padding:1px 4px;background:#fffdf8;color:#59674f}
.noscript-message{margin:30px auto;padding:24px;max-width:600px;border:1px solid var(--line);background:#fff9e9;text-align:center}
.reader:fullscreen{width:100%;height:100dvh;max-width:none;margin:0;padding:10px 12px calc(80px + env(safe-area-inset-bottom,0px));display:flex;flex-direction:column;background:var(--paper);overflow:hidden}
.reader:fullscreen .reader-topline{padding:0 8px 10px}
.reader:fullscreen .stage-shell{flex:1;min-height:0}
.reader:fullscreen .book-viewport{height:100%;min-height:0}
.reader:fullscreen .reader-controls{margin:0;flex-shrink:0}
.reader:fullscreen .reader-bottomline{margin-top:8px;flex-shrink:0}
.reader:fullscreen .reading-progress{margin-top:8px;flex-shrink:0}
.reader:fullscreen .reader-dialog{max-height:calc(100dvh - 32px)}
.reader.is-expanded{position:fixed;inset:0;z-index:40;width:100%;height:100dvh;max-width:none;margin:0;padding:10px 12px calc(80px + env(safe-area-inset-bottom,0px));display:flex;flex-direction:column;background:var(--paper);overflow:hidden}
.reader.is-expanded .reader-topline{padding:0 8px 10px}
.reader.is-expanded .stage-shell{flex:1;min-height:0}
.reader.is-expanded .book-viewport{height:100%;min-height:0}
.reader.is-expanded .reader-controls{margin:0;flex-shrink:0}
.reader.is-expanded .reader-bottomline{margin-top:8px;flex-shrink:0}
.reader.is-expanded .reading-progress{margin-top:8px;flex-shrink:0}
@keyframes page-arrival{from{opacity:.5;transform:translateY(2px)}to{opacity:1;transform:translateY(0)}}
@keyframes loading-pulse{50%{opacity:.35}}
@media(max-width:860px){.site-header{height:46px;margin:0 12px;padding:0}.brand{font-size:21px;gap:9px}.brand-mark{width:30px;height:30px}.brand-mark .icon{width:16px;height:16px}.header-label,.introduction,.reader-topline{display:none}.help-button{width:36px;height:36px;justify-content:center;padding:0}.help-button span{display:none}.reader{padding:0}.stage-shell{border:0;border-radius:0}.stage-arrow{display:none}.book-viewport{height:auto;padding:0;border-radius:0}.book .page-surface{border-radius:0}.book .page-surface::before{box-shadow:none}}
@media(max-width:600px){
  .site-header{height:46px;margin:0 12px;padding:0}.brand{font-size:21px;gap:9px}.brand-mark{width:30px;height:30px}.brand-mark .icon{width:16px;height:16px}
  .help-button{width:32px;height:32px;justify-content:center;padding:0}.help-button span{display:none}.help-button .icon{width:20px;height:20px}
  .introduction{padding:25px 18px 21px}.eyebrow{font-size:8px;letter-spacing:1.7px;margin-bottom:10px}h1{font-size:30px;letter-spacing:-.9px;max-width:340px;margin:auto;line-height:1.15}.authors{font-size:10px;margin-top:11px;letter-spacing:.2px}
  .reader{padding:0}.reader-topline{font-size:9px;padding:0 7px 9px}.reader-topline .icon{width:13px;height:13px}
  .stage-shell{border-radius:0}.book-viewport{height:auto;border-radius:0;padding:0}.stage-arrow{display:none}
  .reader-controls{margin:0;gap:6px;padding:5px 6px}.navigation-group,.zoom-group{gap:0}.icon-button{width:32px;height:34px}.icon-button .icon{width:19px;height:19px}.position-button{min-width:107px;gap:4px;font-size:11px;padding:7px 5px}.position-button>.icon{width:11px;height:11px}.zoom-value{min-width:34px;font-size:10px}.control-divider{height:17px}
  .reader-bottomline{margin-top:12px;padding:0 6px;font-size:9px}.desktop-hint{display:none}.mobile-hint{display:inline}.page-total{display:none}.reading-progress{margin-top:9px}
  .resume-card{gap:10px;padding-left:11px;font-size:10px;bottom:10px}.resume-card>button:not(.icon-button){font-size:10px}.site-footer{padding:21px 15px}.site-footer p{font-size:8px;max-width:270px;line-height:1.8;margin:5px auto 0}
  .reader-dialog{padding:30px 23px}.reader-dialog h2{font-size:27px}.jump-input-row{gap:8px}.jump-input-row .primary-button{padding:12px 14px}.help-list li{grid-template-columns:63px 1fr;gap:10px;font-size:11px}.reader:fullscreen,.reader.is-expanded{padding:0 0 calc(64px + env(safe-area-inset-bottom,0px))}.reader:fullscreen .reader-topline,.reader.is-expanded .reader-topline{padding:0 4px 8px}.reader:fullscreen .book-viewport,.reader.is-expanded .book-viewport{padding:0}.reader:fullscreen .reader-bottomline,.reader.is-expanded .reader-bottomline{display:none}
}
@media(max-width:355px){.reader-controls{gap:4px;padding:5px 4px}.position-button{min-width:96px}.icon-button{width:29px}.zoom-value{min-width:29px;font-size:9px}.control-divider{margin:0 1px}.brand{font-size:20px}.introduction{padding-left:12px;padding-right:12px}h1{font-size:28px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
@media print{body>*{display:none!important}body::after{content:"Bársony és a szeretet útja – a teljes könyv online olvasható a porvanpalma.hu honlapon.";display:block;padding:30px;color:#222;font:16pt Georgia,serif}}
