:root{color-scheme:light;--paper:#fff}
*{box-sizing:border-box}
body{margin:0;background:var(--paper);color:var(--ink);font:1rem/1.7 var(--series-font);-webkit-font-smoothing:antialiased}
a{color:inherit}
a:focus-visible,button:focus-visible,input:focus-visible{outline:3px solid var(--series-teal);outline-offset:4px}
.wrap{width:min(1184px,calc(100% - 9vw));margin-inline:auto}
header{border-bottom:1px solid var(--line);background:#fff}
.bar,.brand,nav,.private,.filters,.search,.controls,.eyeline{display:flex;align-items:center}
.bar{min-height:61px;justify-content:space-between;gap:16px}
.brand{gap:.65rem;text-decoration:none;font:700 1.25rem/1.4 var(--series-font);letter-spacing:0}
nav{gap:1.1rem;font-size:.875rem}
nav a{text-underline-offset:4px}
.private{gap:.5rem;color:var(--muted)}
.private i{position:relative;width:11px;height:9px;border:1.4px solid;border-radius:2px;margin-top:4px}
.private i::before{content:"";position:absolute;left:1px;top:-7px;width:6px;height:6px;border:1.4px solid;border-bottom:0;border-radius:6px 6px 0 0}
.intro{padding:clamp(30px,4vw,60px) 0 clamp(26px,3.4vw,48px)}
h1{font-family:var(--series-font);font-size:clamp(2.15rem,4.6vw,3.8rem);font-weight:700;letter-spacing:.025em;line-height:1.24;margin:0 0 .6rem}
.intro p{margin:0;color:var(--muted);line-height:1.75}
.controls{justify-content:space-between;gap:1rem;flex-wrap:wrap;border-block:1px solid var(--line);padding:.9rem 0}
.filters{gap:.35rem;flex-wrap:wrap}
button,input{font:inherit}
button{cursor:pointer}
.filters button,#reset{min-height:40px;font-size:.9rem;background:transparent;border:1px solid transparent;color:var(--ink);border-radius:6px;padding:.4rem .85rem;white-space:nowrap}
.filters button[aria-pressed=true],#reset{background:#213454;color:#fff}
.filters button:hover:not([aria-pressed=true]){background:#edf0f4}
.search{position:relative;width:min(100%,260px)}
.search span{position:absolute;left:14px;top:50%;transform:translateY(-57%);width:13px;height:13px;border:1.6px solid var(--series-muted);border-radius:50%;pointer-events:none}
.search span::after{content:"";position:absolute;width:6px;height:1.5px;background:var(--series-muted);right:-5px;bottom:-2px;transform:rotate(45deg)}
.search input{width:100%;min-height:40px;padding:.5rem .65rem .5rem 2.45rem;background:#fff;border:1px solid #bac1cc;border-radius:6px;color:var(--ink);font-size:1rem}
.search input::placeholder{font-size:.87rem;color:var(--series-muted)}
.count{font-size:.875rem;color:var(--muted);margin:1.15rem 0 .85rem}
.count strong{font:700 1rem/1.1 var(--series-font);color:var(--ink)}
.grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1.45rem 1.35rem;padding-bottom:4rem}
.card{min-width:0;display:block;color:inherit;text-decoration:none;border:1px solid var(--line);border-radius:11px;overflow:hidden;background:#fff;transition:border-color .16s,box-shadow .16s}
.card:hover{border-color:var(--series-teal);box-shadow:0 6px 16px #3333330e}
.card:hover h2{text-decoration:underline;text-underline-offset:4px;text-decoration-thickness:1px}
.topic-page .art{object-fit:contain}
.art{display:block;width:100%;height:auto;aspect-ratio:720 / 252;object-fit:cover;border-bottom:1px solid #0000000c}
.details{padding:1rem 1.2rem 1.25rem}
.eyeline{justify-content:space-between;gap:.6rem;color:var(--muted);font-size:.8125rem;font-weight:600}
.access{font-size:.75rem;font-weight:400;color:#4f596b;background:#eff1f5;border:1px solid #d8dce2;padding:0 .45rem;border-radius:4px}
h2{font-size:clamp(1.17rem,1.7vw,1.46rem);line-height:1.5;letter-spacing:.015em;margin:.28rem 0 .35rem}
.card p{color:var(--series-muted);margin:0;font-size:1rem;line-height:1.68}
#empty{padding:1rem 0 3rem}
.skip{position:absolute;left:-9999px;top:10px;background:white;padding:4px 10px}
.skip:focus{left:10px}
[hidden]{display:none!important}
@media(max-width:900px){.grid{grid-template-columns:repeat(2,minmax(0,1fr))}.controls{gap:.65rem}.search{flex-grow:1}.filters{row-gap:.2rem}}
@media(max-width:650px){.wrap{width:calc(100% - 32px)}.bar{min-height:53px}.brand{font-size:1.25rem}.brand img{width:22px;height:22px}nav{gap:.65rem;font-size:.8125rem}.grid{grid-template-columns:1fr;gap:1rem}.controls{flex-direction:column-reverse;align-items:stretch}.search{width:100%}.filters button{padding:.35rem .52rem;font-size:.875rem;min-height:38px}.filters{gap:.1rem}.intro{padding:30px 0 24px}.details{padding:.85rem 1rem 1.1rem}}
@media(prefers-reduced-motion:reduce){*{transition:none!important}}

/* Directory navigation */
body {background:#fff}
.bar small {font:400 .875rem/1.3 var(--series-font);letter-spacing:0;color:var(--series-muted);margin-left:.25rem}
.bar nav a,.back,.crumb a {font-weight:600;text-decoration-color:#7d8ba2;text-underline-offset:.3em}
.topic-section {padding:clamp(2rem,4.8vw,4.75rem) 0 clamp(2rem,4.3vw,3.75rem)}
.topic-section h1,.topic-intro h1 {font-size:clamp(1.7rem,3.1vw,2.5rem);line-height:1.45;letter-spacing:-.015em;font-feature-settings:"palt"}
.topic-grid {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.75rem;margin-top:1.65rem}
.topic {display:flex;align-items:center;gap:.9rem;min-width:0;padding:1.1rem 1rem;text-decoration:none;border-radius:.65rem;border:1px solid var(--line);background:#f8f9f9}
.topic img,.topic-intro img {border-radius:.45rem;flex:none}
.topic strong,.topic span span {display:block}
.topic strong {color:var(--series-ink);font-size:1.12rem;line-height:1.5}
.topic span span {font-size:.9rem;line-height:1.55;margin-top:.2rem;color:var(--series-muted)}
.topic:hover,.card:hover {border-color:var(--series-teal);box-shadow:0 3px 12px #3333330e}
.topic:hover strong,.card:hover h3 {text-decoration:underline;text-underline-offset:.21em}
#tools {scroll-margin-top:1.25rem;border-top:1px solid var(--line);padding-top:clamp(1.5rem,3vw,2.5rem)}
#tools-heading {font-size:clamp(1.45rem,2.6vw,2rem);margin:0 0 1.05rem}
.controls {border:0;padding:0}
.filters {gap:.35rem}
.filters button {border:1px solid var(--line);background:white;border-radius:2rem}
.filters button[aria-pressed=true] {border-color:var(--series-action);background:var(--series-action);color:#fff;font-weight:700}
.details h2,.details h3 {font-size:clamp(1.05rem,1.5vw,1.28rem);margin:0 0 .45rem;line-height:1.5}
.crumb {flex-wrap:wrap;gap:.65rem;margin:1.35rem 0 0;color:var(--series-muted)}
.topic-intro {display:flex;align-items:center;gap:1.25rem;margin:clamp(1.6rem,4vw,3.6rem) 0 2rem}
.topic-intro h1 {margin:0}
.topic-intro p {margin:.5rem 0 0;color:var(--series-muted)}
.topic-page .grid {padding-bottom:1.25rem}
.back {display:inline-block;margin:1rem 0 2rem}
@media (max-width:1020px){.topic-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:650px){.topic-grid{grid-template-columns:1fr;gap:.5rem;margin-top:1rem}.topic{padding:.55rem .75rem}.topic img{width:47px;height:47px}.topic strong{font-size:1.02rem}.topic-section{padding:1.6rem 0}.topic-intro{align-items:flex-start;gap:.7rem}.topic-intro img{width:48px;height:48px}.bar .series-brand{flex-wrap:wrap;position:relative;column-gap:6px;row-gap:0}.bar small{font-size:.75rem;margin:0}.bar{gap:.5rem}.bar nav{flex-shrink:0}.bar nav a{font-size:.875rem}.search{max-width:none}.grid{padding-bottom:1.5rem}}
@media (max-width:440px){.bar .series-brand{display:grid;grid-template-columns:auto auto}.bar .series-brand img{grid-row:span 2}.bar .series-brand small{grid-column:2}}
