/*
Theme Name: Sách Thiếu Nhi – Kệ sách
Version: 1.0.0
*/
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:#fffcf4;color:#193d36;font:16px/1.55 system-ui,sans-serif}a{color:inherit;text-decoration:none}a:hover{text-decoration:underline;text-underline-offset:4px}button,input{font:inherit}button{cursor:pointer}.wrap{width:min(1180px,92%);margin:auto}header{background:#fffef9;border-bottom:1px solid #dfdfce}.bar,nav,.section-title,footer .wrap{display:flex;align-items:center;justify-content:space-between;gap:20px}.bar{min-height:78px}.brand{font-size:23px;font-weight:850;letter-spacing:-1px}.brand span{color:#d75e36;font-size:34px;vertical-align:middle}nav{font-weight:650;gap:28px}form[role=search]{display:flex;border:1px solid #c6d1c4;border-radius:30px;overflow:hidden;background:white}form input{min-width:0;width:140px;padding:8px 14px;border:0;background:none}form button{border:0;background:none;padding:0 14px;font-size:24px}.hero{margin:28px 0 18px;padding:clamp(24px,5vw,68px);display:grid;grid-template-columns:1fr 1fr;align-items:center;background:#e5efd9;border-radius:26px;overflow:hidden}.hero h1,h1,h2,h3,.cover strong{font-family:Georgia,'Times New Roman',serif}.hero h1{font-size:clamp(48px,6vw,86px);line-height:1.02;letter-spacing:-.05em;margin:0}.hero em{color:#a54729}.intro p{max-width:330px}.cta{display:inline-flex;align-items:center;gap:20px;background:#205248;color:white;border-radius:30px;padding:11px 22px;font-weight:700}.showcase{display:flex;justify-content:center;align-items:center;position:relative;isolation:isolate;min-height:270px}.showcase:before{content:'';position:absolute;width:75%;height:95%;background:#f8d987;border-radius:50%;z-index:-1}.cover{overflow:hidden;display:flex;flex-flow:column;width:41%;max-width:190px;background:#f2b79b;border:5px solid #fff7df;border-left:9px solid #b45e46;box-shadow:5px 9px 0 #46755a35;transform:rotate(-10deg);border-radius:3px 8px 8px 3px}.cover+.cover{background:#d1ddad;transform:rotate(11deg) translateY(12px);border-left-color:#577349;margin-left:-7px}.cover img{width:100%;height:clamp(90px,12vw,155px);object-fit:cover}.cover strong{padding:10px;font-size:clamp(14px,1.5vw,22px);line-height:1.2}.showcase i{position:absolute;color:#bd612b;left:0;top:2%;font-size:40px}.showcase i:last-child{left:auto;right:0;top:75%}.paths,.grid{display:grid;gap:18px}.paths{grid-template-columns:repeat(3,1fr);scroll-margin:18px}.paths a{padding:15px 20px;background:#f6dfbe;border-radius:15px;font-size:19px;font-weight:750;display:flex;align-items:center;gap:14px}.paths a:nth-child(2){background:#e6dff1}.paths a:nth-child(3){background:#dcebe9}.paths span{font-size:24px}.paths b{margin-left:auto}.shelf{margin:44px 0}.section-title h2{font-size:34px;margin:0}.section-title{margin-bottom:18px}.section-title a,.crumb{font-weight:700}.grid{grid-template-columns:repeat(4,minmax(0,1fr))}.pic{aspect-ratio:1.5;background:#eedbad;overflow:hidden;border-radius:14px;display:grid;place-items:center}.pic img{width:100%;height:100%;object-fit:cover}.card small{display:block;margin:12px 0 3px;color:#805339;font-weight:700}.card h3{font-size:22px;line-height:1.3;margin:0}.archive,.reader{padding-block:38px;min-height:60vh}.reader article{max-width:780px;margin:auto}.reader h1,.archive h1{font-size:clamp(32px,4vw,54px);line-height:1.15;margin:20px 0}.tools{display:flex;gap:6px;flex-wrap:wrap;background:inherit;position:sticky;top:0;z-index:2;padding:8px 0}.tools button{background:#fcfaf1;color:#244739;border:1px solid #bfc9b8;border-radius:20px;padding:5px 12px}.story{font:20px/1.8 Georgia,serif;overflow-wrap:anywhere}.story img,.story video,.story iframe,.story figure{max-width:100%}.story img{height:auto;scroll-margin-top:70px}.story audio{width:100%}.story a{text-decoration:underline}.dark{background:#192d2a;color:#f4efd9}.dark header,.dark footer{background:#253c35}.tools{background:#fffcf4}.dark .tools{background:#192d2a}footer{padding:30px 0;background:#e9eddf;margin-top:40px}.pagination{margin:30px 0}.page-numbers{padding:6px}@media(max-width:760px){.bar{flex-wrap:wrap;gap:6px;padding:10px 0}.bar nav{order:3;width:100%;justify-content:flex-start;gap:20px;font-size:14px}.brand{font-size:19px}form input{width:100px}.hero{grid-template-columns:1fr;padding:26px}.showcase{min-height:175px;margin-top:12px}.cover{max-width:130px}.paths{gap:6px}.paths a{padding:9px 4px;gap:4px;justify-content:center;font-size:14px}.paths b{display:none}.grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px 12px}.card h3{font-size:18px}.section-title h2{font-size:26px}.shelf{margin:28px 0}.section-title a{font-size:14px}.hero h1 br{display:none}.hero h1 em:before{content:' '}}@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}

/* The illustrated reading room */
body{background:#fffaf0;color:#203e46}
.voyage{background:#ffe5b6;padding:0;grid-template-columns:.85fr 1.15fr;border:1px solid #e6d6ad;box-shadow:0 5px 0 #ede3cd;border-radius:28px}
.voyage .intro{padding:clamp(26px,4vw,56px)}
.voyage h1{font-family:ui-rounded,'Trebuchet MS',system-ui,sans-serif;font-weight:900;font-size:clamp(46px,5.1vw,78px);letter-spacing:-.06em;color:#183f49}
.voyage h1 em{font-style:normal;color:#a73d25}
.voyage .intro p{max-width:34ch;line-height:1.55}
.voyage .boat{width:100%;height:100%;max-height:445px;object-fit:cover;display:block}
.cta{background:#174e52;box-shadow:0 3px 0 #103b3c}
.paths{align-items:stretch}.paths a{background:#ffdfa0;border:1px solid #dfba72;border-radius:18px;box-shadow:0 3px 0 #edcf95;padding:15px 18px}
.paths a:nth-child(2){background:#e0ddf8;border-color:#c4b9e5;box-shadow:0 3px 0 #cdc5e4}.paths a:nth-child(3){background:#cdebdc;border-color:#a1d0ba;box-shadow:0 3px 0 #b2d6be}
.paths span{background:#ffffff96;padding:4px 9px;border-radius:12px}
.card{background:#fffefa;border:1px solid #e2d8c4;border-radius:18px;padding:8px 8px 14px;box-shadow:0 3px 0 #eee4d3}
.card h3,.card small{margin-inline:7px}.card h3{font:750 clamp(16px,1.55vw,21px)/1.35 system-ui,sans-serif}.section-title h2{color:#214e50}
a:focus-visible,button:focus-visible,input:focus-visible{outline:3px solid #a64627;outline-offset:2px}
@media(max-width:760px){.voyage{grid-template-columns:1fr}.voyage .intro{padding:22px 22px 20px}.voyage h1 br{display:none}.voyage .boat{height:clamp(155px,42vw,265px);object-position:center 55%}.voyage .intro p{margin:8px 0 14px}.paths a{flex-direction:column;gap:3px;text-align:center;line-height:1.3;padding:9px 3px}.paths span{font-size:20px}.section-title h2{font-size:25px}.card{padding:5px 5px 11px}}

.reading-banner{display:grid;grid-template-columns:1fr 44%;align-items:center;margin:28px 0 22px;background:#ffedcc;border:1px solid #e7d6b6;border-radius:28px;overflow:hidden;box-shadow:0 4px 0 #eee3cf}
.reading-banner>div{padding:24px clamp(22px,4vw,55px)}
.reading-banner .crumb{color:#6f5033;font-size:15px}
.reading-banner h1{margin:12px 0 2px;font:850 clamp(40px,5vw,72px)/1.1 ui-rounded,system-ui,sans-serif;letter-spacing:-.055em;color:#234d51}
.reading-banner p{margin:10px 0 0;font-size:18px}
.reading-banner img{width:100%;height:clamp(180px,21vw,275px);object-fit:cover;object-position:center 51%}
.genre-picks{justify-content:flex-start;flex-wrap:wrap;gap:8px}
.genre-picks a{padding:8px 16px;border:1px solid #ccd7c9;border-radius:24px;background:#fffef8;font-weight:650}
.genre-picks a[aria-current]{background:#245752;color:white;border-color:#245752}
.reading-shelf .shelf{margin-top:28px}.reading-shelf .section-title{margin-bottom:18px}
.reading-shelf .pagination{display:block}.reading-shelf .nav-links{display:flex;flex-wrap:wrap;gap:5px}.reading-shelf .page-numbers{border-radius:12px;background:#edeedc;padding:8px 13px}.reading-shelf .current{background:#245752;color:white}
@media(max-width:600px){.reading-banner{margin:16px 0;grid-template-columns:1fr 36%;border-radius:18px}.reading-banner>div{padding:16px}.reading-banner img{height:100%;min-height:155px}.reading-banner h1{font-size:34px}.reading-banner p{font-size:15px}.genre-picks a{padding:8px 12px;font-size:14px}}
