*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:#f7f6f0;color:#272a3b;font:16px/1.8 system-ui,sans-serif}a{color:inherit;text-decoration:none}a:hover{text-decoration:underline}button,input,select{font:inherit}button,a,input,select{touch-action:manipulation}button{cursor:pointer}h1,h2,h3,p{overflow-wrap:anywhere}h1{font-size:clamp(28px,4vw,48px);line-height:1.2;margin:.35em 0}h2{font-size:clamp(24px,3vw,30px);line-height:1.3}h3{line-height:1.45}p{color:#50556a}main{max-width:1440px;margin:auto;padding:24px clamp(16px,4vw,56px)}section{margin-bottom:56px}small{letter-spacing:.12em;font-weight:700}.top{position:sticky;top:0;z-index:20;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:12px 4vw;min-height:72px;background:#fff;border-bottom:2px solid #405bd8}.brand{font-weight:900;color:#273a9c;font-size:22px;white-space:nowrap}.brand img{max-width:150px;max-height:44px;object-fit:contain}#nav{display:flex;gap:18px;flex-wrap:wrap}#menu,.bottom{display:none}.btn{display:inline-flex;align-items:center;min-height:44px;border:0;border-radius:8px;background:#405bd8;color:white;padding:8px 18px;font-weight:700}.grid,.categories{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px}.card,.category{min-width:0;background:white;border:1px solid #e3e3e8;border-radius:16px;overflow:hidden}.cardbody,.category{padding:18px}.cardbody h3{margin:8px 0}.media{display:flex;align-items:center;justify-content:center;flex-direction:column;gap:12px;overflow:hidden;background:#e9ecff;aspect-ratio:16/9;text-align:center;min-width:0}.media img{width:100%;height:100%;object-fit:contain}.portrait{aspect-ratio:4/5}.placeholder{background:radial-gradient(circle at 20% 20%,#f1b36e,transparent 45%),linear-gradient(135deg,#e9ecff,#b49be8);color:#273a9c;padding:12px}.placeholder span{font-size:clamp(36px,7vw,90px)}.placeholder small{letter-spacing:0}.filters,.chips,.pages{display:flex;gap:10px;flex-wrap:wrap;margin:20px 0}.filters input,.filters select{min-width:0;max-width:100%;padding:10px;border:1px solid #aaa;border-radius:8px;background:white}.chips a,.pages a{padding:8px 14px;border:1px solid #b8bdd1;border-radius:30px;background:white}.pages [aria-current]{background:#273a9c;color:white}.reading{max-width:850px;margin:20px auto 60px}.reading p{font-size:17px}.reading aside,.empty{padding:24px;background:#e8f7f5;border-radius:14px}details{padding:16px 0;border-bottom:1px solid #ccc}summary{cursor:pointer;font-weight:700}footer{border-top:1px solid #ccc;padding:30px 0 60px}#top{position:fixed;bottom:24px;right:20px;z-index:10;border:0;border-radius:50%;background:#273a9c;color:white;width:48px;height:48px}@media(max-width:900px){.grid,.categories{grid-template-columns:repeat(2,minmax(0,1fr))}#menu{display:block;border:0;background:transparent;min-height:44px}#nav{display:none;position:absolute;top:100%;left:0;right:0;background:white;padding:20px}#nav.open{display:grid}.top{gap:8px}.bottom{display:flex;position:fixed;bottom:0;left:0;right:0;z-index:20;background:white;justify-content:space-around;border-top:1px solid #ddd;padding:10px 2px;font-size:12px}.bottom a{min-height:44px;display:flex;align-items:center}#top{bottom:80px}body{padding-bottom:64px}}@media(max-width:480px){.grid,.categories{grid-template-columns:1fr}.filters>*{width:100%}.top>a:last-child{display:none}}
body{background:#f2eee5;color:#252e2c}.top{background:#f2eee5;border-color:#a44832}.brand{color:#315e54}.btn,#top,.pages [aria-current]{background:#315e54}.card,.category{border-radius:3px;border-color:#c8c2b5}.placeholder{background:radial-gradient(circle at 20% 20%,#dcb58b,transparent 45%),linear-gradient(135deg,#e9dfcb,#9cb7aa);color:#314c42}.reading aside,.empty{background:#e0e7de}.top a:focus-visible,a:focus-visible,button:focus-visible{outline:3px solid #a44832;outline-offset:3px}
