*{
margin:0;
padding:0;
box-sizing:border-box;
}

body{
font-family:'Inter',sans-serif;
background:#f6f6f6;
color:#111;
transition:.4s;
}

/* HEADER */

header{
display:flex;
justify-content:space-between;
align-items:center;
padding:25px 40px;
}

.logo{
font-family:'Playfair Display',serif;
font-size:30px;
}

/* TOGGLE */

.toggle input{
display:none;
}

.toggle label{
width:50px;
height:26px;
background:#ddd;
display:block;
border-radius:30px;
position:relative;
cursor:pointer;
}

.toggle label::after{
content:"";
width:20px;
height:20px;
background:white;
position:absolute;
top:3px;
left:4px;
border-radius:50%;
transition:.3s;
}

#dark:checked + label{
background:#111;
}

#dark:checked + label::after{
transform:translateX(24px);
}

/* HERO */

.hero{
text-align:center;
padding:60px 20px;
}

.hero h1{
font-family:'Playfair Display',serif;
font-size:42px;
margin-bottom:15px;
}

.hero p{
opacity:.7;
max-width:600px;
margin:auto;
}

.search{
margin-top:25px;
padding:12px 18px;
border-radius:30px;
border:none;
width:260px;
box-shadow:0 4px 12px rgba(0,0,0,0.1);
}

/* FEATURED BOOK */

.featured{
display:flex;
gap:40px;
padding:50px;
align-items:center;
}

.featured img{
width:200px;
border-radius:10px;
box-shadow:0 10px 25px rgba(0,0,0,0.2);
}

.featured h2{
font-family:'Playfair Display',serif;
margin-bottom:10px;
}

/* SECTION TITLE */

.section-title{
font-family:'Playfair Display',serif;
font-size:28px;
padding:0 40px;
}

/* BOOK GRID */

.books{
padding:40px;
display:grid;
grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
gap:30px;
}

/* BOOK CARD */

.card{
background:white;
padding:20px;
border-radius:16px;
text-align:center;
transition:.3s;
box-shadow:0 8px 20px rgba(0,0,0,0.08);
}

.card:hover{
transform:translateY(-8px);
box-shadow:0 18px 40px rgba(0,0,0,0.15);
}

.card img{
width:100%;
border-radius:12px;
margin-bottom:10px;
}

/* BUTTON */

.btn{
display:inline-block;
margin-top:10px;
padding:10px 16px;
background:#111;
color:white;
border-radius:8px;
text-decoration:none;
font-size:14px;
}

/* FOOTER */

footer{
text-align:center;
padding:50px 20px;
opacity:.7;
}

/* DARK MODE */

.dark{
background:#121212;
color:white;
}

.dark .card{
background:#1e1e1e;
}

/* MOBILE */

@media(max-width:700px){

.featured{
flex-direction:column;
text-align:center;
}

}

/* Disable text selection */

body {
  user-select: none;
  -webkit-user-select: none;
  -ms-user-select: none;
}


/* Disable image dragging */

img {
  pointer-events: none;
  -webkit-user-drag: none;
}


/* Prevent callout on iOS */

* {
  -webkit-touch-callout: none;
}
