:root { color-scheme: light; --ink:#241d16; --accent:#704417; --ochre:#e8c893; --paper:#fbf8ef; }
* { box-sizing:border-box; }
html { scroll-behavior:smooth; }
body { margin:0; color:var(--ink); background:var(--paper); font: 1.125rem/1.66 "Noto Serif", Georgia, serif; }
a { color:var(--accent); text-underline-offset:.22em; }
a:focus-visible { outline:2px solid #82704a; outline-offset:4px; }
.skip { position:absolute; left:-9999px; }
.skip:focus { left:1rem; top:1rem; z-index:2; padding:.5rem; color:#1d160f; background:#fff; }
.masthead { display:flex; align-items:center; justify-content:center; gap:clamp(1.5rem,6vw,5rem); background:#171015; color:#efdfc3; padding:clamp(2rem,6vw,5rem) 1.5rem; }
.masthead img { width:min(26vw,15rem); border:1px solid #775834; }
.masthead h1 { color:var(--ochre); font-size:clamp(2rem,5vw,4.5rem); line-height:1; margin:.5rem 0; }
.masthead a { color:var(--ochre); }
main { max-width:52rem; margin:auto; padding:2.5rem clamp(1rem,5vw,3rem); }
.notice { color:#5d5141; font-size:.95rem; border-bottom:1px solid #ccbea7; padding-bottom:1.5rem; }
section, nav { margin-block:2.75rem; }
article { padding-top:1.4rem; margin-block:1.4rem 2rem; border-top:1px solid #ded2bd; }
h2 { line-height:1.18; margin-bottom:1.25rem; font-size:clamp(1.6rem,4vw,2.55rem); }
article h3 { margin:0 0 1rem; font-size:1.65rem; }
h4 { color:#6f5438; margin:1.25rem 0 .55rem; }
img { max-width:100%; height:auto; }
.verse { margin:.4rem 0; }
.verse a { font-size:.72em; text-decoration:none; vertical-align:super; }
.verse:target { background:#fae9c0; }
nav ol { padding-left:1.6rem; columns:2; column-gap:3rem; }
nav li { padding:.15rem; break-inside:avoid; }
dt { font-weight:bold; margin-top:1rem; }
dd { margin-left:0; }
footer { padding:2rem; text-align:center; background:#efe7d7; }
@media (max-width:620px) { .masthead { flex-direction:column; text-align:center; } .masthead img { width:min(50vw,12rem); } nav ol { columns:1; } }
@media (prefers-reduced-motion:reduce) { html { scroll-behavior:auto; } }
.reader-tools { padding:1rem 1.35rem; background:#efe7d7; }
.reader-tools h2 { margin-bottom:.8rem; }
.reader-tools label { display:block; font-size:.95rem; }
.reader-tools input { border:1px solid #a48b6c; border-radius:.2rem; background:#fffcf3; color:var(--ink); padding:.6rem .7rem; width:min(100%,26rem); font:inherit; }
.reader-tools ul { margin:0; padding-left:1.25rem; }
.reader-tools li { margin:.3rem 0; }
.edition-bar{background:#171015;color:#efdfc3;padding:.5rem clamp(.75rem,4vw,2rem);display:flex;align-items:center;justify-content:space-between;gap:.5rem;border-bottom:1px solid #493c33;}
.edition-home{color:#efdfc3;font-weight:bold;text-decoration:none;}
.reader-language{display:flex;gap:.16rem;margin:0;border:1px solid #786446;border-radius:.6rem;padding:.1rem;}
.reader-language a{font:600 .8rem/1 system-ui;color:#efdfc3;text-decoration:none;padding:.6rem .55rem;border-radius:.43rem;}
.reader-language a[aria-current]{background:#e8c893;color:#211615;}
.edition-actions{display:flex;flex-wrap:wrap;gap:.6rem 1rem;}
@media(max-width:620px){.edition-actions{justify-content:center;}}

.edition-bar{position:sticky;top:0;z-index:3;}
.verse,article,h4,#obsah{scroll-margin-top:4.5rem;}
