* { box-sizing: border-box }
:root { color: #20344f; background: #fff7e6; font: 16px/1.5 system-ui, sans-serif }
body { margin: 0 }
header, main { max-width: 1040px; margin: auto; padding: 20px }
header { display: flex; align-items: center; justify-content: space-between; gap: 1rem }
header img { display: block; width: 108px; height: auto }
h1 { font: bold clamp(2rem, 6vw, 3.6rem)/1.1 Georgia, serif; margin: 12px 0 }
.lead { font-size: 1.13rem; margin-bottom: 14px }
.review { background: #f7e7c8; padding: 10px 14px; border-radius: 10px }
nav { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px }
button, .join, .watch { border: 1px solid #32645b; border-radius: 100px; color: #204b42; background: white; padding: 8px 14px; font: inherit; font-weight: 700; cursor: pointer }
button[aria-pressed="true"], .join { background: #24574d; color: white }
.join, .watch { text-decoration: none; display: inline-block }
:focus-visible { outline: 3px solid #bb632c; outline-offset: 3px }
#guides { margin: 0; padding: 0; list-style: none; display: grid; gap: 14px; grid-template-columns: repeat(auto-fill,minmax(min(100%, 265px),1fr)) }
li { display: grid; grid-template-columns: 69px 1fr; gap: 12px; align-items: start; border: 1px solid #e4d6bb; border-radius: 14px; background: #fffdf6; padding: 12px }
li[hidden] { display: none }
li img { width: 100%; height: auto; aspect-ratio: 540/1168; border-radius: 7px; background: #f4e1b9 }
li h2 { font: bold 1.12rem/1.25 Georgia, serif; margin: 4px 0 8px }
.category, .status { font-size: .82rem; margin: 0 0 8px }
.status { color: #6c471c }
.watch { font-size: .88rem; padding: 6px 10px }
details { margin-top: 8px; font-size: .9rem }
summary { cursor: pointer }

.library-controls { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 20px }
.library-controls label { flex-basis: 100%; font-weight: 700 }
.library-controls input { flex: 1 1 15rem; min-width: 0; min-height: 44px; padding: 8px 12px; font: inherit; border: 1px solid #32645b; border-radius: 8px; background: white; color: inherit }
