/*
Theme Name: Prasti Reikalai
Version: 1.0.0
Text Domain: prasti-reikalai
*/
:root{--paper:#fff5e6;--ink:#381732;--red:#b9332d;--line:#d8bca9;--soft:#f1ded1}
*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink);font:1.05rem/1.6 system-ui,sans-serif}a{color:inherit}button,input{font:inherit}button,a{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{opacity:.45;cursor:default}a:focus-visible,button:focus-visible{outline:3px solid var(--red);outline-offset:4px}.wrap{width:min(1190px,calc(100% - 3rem));margin:auto}.bar{border-bottom:1px solid var(--line)}.bar .wrap{min-height:74px;display:flex;justify-content:space-between;gap:1rem;align-items:center}.brand{font:bold 1.25rem Georgia,serif;text-decoration:none}.nav{display:flex;gap:1.4rem;font-weight:650}.nav a{text-decoration:none}.hero{display:grid;grid-template-columns:1fr 1fr;align-items:center;gap:2.2rem;padding:3.2rem 0}.hero img{width:100%;display:block;border-radius:3px;box-shadow:8px 8px 0 var(--ink)}h1,h2,h3{font-family:Georgia,serif;line-height:1.08;margin:0 0 .75rem}h1{font-size:clamp(3.05rem,8vw,7.5rem);letter-spacing:-.07em}h2{font-size:clamp(2.1rem,5vw,3.7rem);letter-spacing:-.04em}h3{font-size:1.35rem}.hero p{max-width:35ch}.button{display:inline-block;background:var(--ink);color:#fff8ee;padding:.58rem 1rem;border:1px solid var(--ink);border-radius:3px;text-decoration:none;font-weight:650}.button:hover{background:var(--red);border-color:var(--red)}.shelf{padding:2.8rem 0;border-top:1px solid var(--line)}.books{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(180px,100%),1fr));gap:1.5rem}.book{min-width:0}.cover{height:220px;background:var(--soft);display:grid;place-items:center;padding:1rem;border:1px solid var(--line);margin-bottom:.8rem;overflow:hidden}.cover img{width:100%;height:100%;min-height:0;object-fit:contain;filter:drop-shadow(4px 4px 4px #38173240)}.book h3{margin-bottom:.25rem;min-height:2.2em}.book p{margin:.25rem 0 .7rem}.book a{text-decoration:none}.about{padding:2.5rem 0;border-top:1px solid var(--line)}footer{border-top:1px solid var(--line);padding:1.1rem 0}dialog{width:min(96vw,1350px);max-height:94dvh;background:var(--paper);color:var(--ink);padding:0;border:1px solid var(--ink);border-radius:5px}dialog::backdrop{background:#21101ed9}.reader-head,.reader-controls{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:.55rem;padding:.65rem 1rem}.reader-head h2{font-size:clamp(1rem,3vw,1.7rem);margin:0}.stage{background:#e3cfc5;overflow:auto;display:flex;align-items:center;justify-content:center;gap:3px;min-height:150px;padding:.7rem;max-height:69dvh}.stage img,.stage canvas{max-width:49%;max-height:66dvh;object-fit:contain;box-shadow:1px 3px 8px #3c232b50}.stage.zoom{justify-content:flex-start;align-items:flex-start}.stage.zoom img,.stage.zoom canvas{max-width:none;max-height:none;width:min(850px,150vw);height:auto}.reader-controls button,.reader-head button{background:var(--paper);color:var(--ink);border:1px solid var(--ink);padding:.25rem .55rem;border-radius:3px}.reader-status{font-variant-numeric:tabular-nums}.text-work{max-width:72ch;margin:2rem auto;overflow-wrap:anywhere}.text-work img{max-width:100%;height:auto}@media(max-width:720px){.wrap{width:calc(100% - 2rem)}.hero{grid-template-columns:1fr;padding:2rem 0;gap:1.5rem}.books{grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem}.cover{height:175px}.stage img,.stage canvas{max-width:100%}.reader-controls{justify-content:center}.nav{gap:.8rem}.hero img{max-height:380px;object-fit:cover}}@media(prefers-reduced-motion:no-preference){.stage img,.stage canvas{animation:page-in .18s ease-out}@keyframes page-in{from{opacity:.45;transform:translateX(4px)}to{opacity:1;transform:none}}}
.about{display:grid;grid-template-columns:1fr .75fr;align-items:center;gap:2rem}.about img{width:100%;height:auto;border:1px solid var(--line)}@media(max-width:720px){.about{grid-template-columns:1fr;gap:.75rem}}

/* Slate and cobalt palette, with uncropped artwork. */
:root {
    --paper: #f5f7fa;
    --ink: #172338;
    --red: #214ab9;
    --line: #cdd6e5;
    --soft: #e4eaf5;
}
.bar, footer { background: #fff; }
.brand { color: var(--red); }
.hero { grid-template-columns: minmax(0, 1fr) minmax(0, .94fr); gap: clamp(1.5rem, 5vw, 4rem); }
.hero img {
    display: block;
    width: 100%;
    height: auto;
    max-height: none;
    object-fit: contain;
    border: 1px solid var(--line);
    border-radius: 2px;
    box-shadow: 7px 7px 0 #b9c9ed;
}
.button { background: var(--red); border-color: var(--red); color: #fff; }
.button:hover { background: var(--ink); border-color: var(--ink); }
.shelf h2, .about h2 { color: var(--red); }
.cover {
    aspect-ratio: 4 / 5;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(.5rem, 2vw, 1rem);
    background: #e4eaf5;
}
.cover img {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: drop-shadow(2px 4px 4px #17233830);
}
.stage { background: var(--soft); }
@media (max-width: 720px) {
    .hero { grid-template-columns: minmax(0, 1fr); }
}
