
*{box-sizing:border-box}
html,body{margin:0;min-height:100%;background:#f7f7f4;color:#111;font-family:Arial,Helvetica,sans-serif}
body{overflow-x:hidden}
.library{
 width:min(1180px,100%);
 margin:0 auto;
 padding:26px 28px 50px;
}
.library-header{
 display:flex;
 align-items:flex-end;
 justify-content:space-between;
 border-bottom:2px solid #111;
 padding-bottom:10px;
 margin-bottom:30px;
}
.brand{
 font-size:18px;
 font-weight:900;
 letter-spacing:.5px;
}
.library-title{
 font-size:clamp(28px,4vw,46px);
 line-height:.95;
 font-weight:900;
 letter-spacing:-1px;
}
.library-section{margin-top:24px}
.library-section h2{
 margin:0 0 13px;
 font-size:20px;
 line-height:1;
 font-weight:900;
 letter-spacing:.5px;
}
.library-section h2:after{
 content:"";
 display:block;
 width:100%;
 height:2px;
 background:#111;
 margin-top:8px;
}
.comic-grid{
 display:grid;
 grid-template-columns:repeat(5,minmax(0,1fr));
 gap:26px 18px;
}
.comic-card{
 display:block;
 color:inherit;
 text-decoration:none;
 min-width:0;
}
.comic-cover{
 width:100%;
 aspect-ratio:2/3;
 background:#ddd;
 overflow:hidden;
}
.comic-cover img{
 width:100%;
 height:100%;
 display:block;
 object-fit:cover;
}
.comic-title{
 margin-top:9px;
 font-size:15px;
 line-height:1.05;
 font-weight:900;
 text-transform:uppercase;
}
.comic-meta{
 margin-top:4px;
 font-size:11px;
 line-height:1.2;
 color:#666;
 text-transform:uppercase;
}
.comic-card:active .comic-cover{opacity:.82}

@media(max-width:900px){
 .library{padding:22px 18px 40px}
 .comic-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:20px 14px}
}
@media(max-width:600px){
 body{background:#fff}
 .library{
   width:100%;
   padding:18px 20px 78px;
 }
 .library-header{
   margin-bottom:26px;
   padding-bottom:8px;
 }
 .brand{font-size:15px}
 .library-title{font-size:28px}
 .library-section h2{font-size:16px}
 .comic-grid{
   grid-template-columns:repeat(2,minmax(0,1fr));
   gap:22px 12px;
 }
 .comic-title{font-size:12px}
 .comic-meta{font-size:9px}
}
