
:root { color-scheme: dark; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: #0e110f; color: #f2f4f4; font: 17px/1.5 system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; }
header, main, footer { max-width: 1100px; margin: 0 auto; padding: 16px; }
header { text-align: center; padding-top: 32px; }
.logo { display: block; max-width: 220px; max-height: 110px; margin: 0 auto 8px; }
h1 { margin: 0; font-size: 30px; letter-spacing: 0.02em; }
.headline { color: #aab2b6; margin: 6px 0 0; }
.book { display: inline-block; margin-top: 16px; padding: 14px 34px; border-radius: 40px; background: #9fd08a; color: #10200b; font-weight: 700; text-decoration: none; }
main { text-align: center; }
.cover { display: block; width: 100%; height: auto; max-height: 80vh; object-fit: cover; border-radius: 12px; }
nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 20px 0 4px; }
button { font: inherit; min-height: 44px; padding: 8px 18px; border-radius: 40px; border: 2px solid #363e42; background: transparent; color: inherit; cursor: pointer; }
button[aria-pressed='true'] { border-color: #9fd08a; font-weight: 700; }
.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin: 16px 0; }
@media (min-width: 700px) { .grid { grid-template-columns: repeat(3, 1fr); gap: 12px; } }
.grid a { display: block; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 8px; background: #1b201d; }
.grid img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (prefers-reduced-motion: no-preference) { .grid img { transition: transform 0.3s ease; } .grid a:hover img { transform: scale(1.04); } }
section { max-width: 640px; margin: 32px auto 0; }
.about { white-space: pre-line; }
.empty { color: #aab2b6; padding: 48px 0; }
footer { color: #7d868a; font-size: 13px; text-align: center; padding-bottom: 40px; }
dialog { border: 0; padding: 8px; width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; background: #000; color: #fff; }
dialog[open] { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; }
#big { max-width: 100%; max-height: calc(100dvh - 140px); object-fit: contain; }
#words { margin: 0; min-height: 1.5em; text-align: center; }
dialog div { display: flex; gap: 8px; }
