/* Very Smol Reset */
* {
  box-sizing: border-box;
  margin: 0;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 120px;
  scroll-padding-bottom: 120px;
}

/* Layout */

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding: 0 clamp(1rem, 5vw, 3rem) 1rem;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-size: 1rem;
  line-height: 1.5;
  color: #2c2c2c;
}

body > * {
  --layout-spacing: max(8vh, 3rem);
  --max-width: 70ch;
  width: min(100%, var(--max-width));
  margin-left: auto;
  margin-right: auto;
}


.logo h1 {
  font-size: 1.5rem;
  margin: 0;
}

nav {
  position: sticky;
  top: 0;
  width: 100%;
  background: rgba(255, 255, 255);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  z-index: 1000;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo img {
  height: 80px;
  width: auto;
}

.nav-header a {
  font-size: 1.25rem;
  font-weight: bold;
  text-decoration: none;
  color: rgb(128, 0, 77);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  font-weight: 600;
  color: #333;
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: rgb(0, 128, 68);
}

.burger-menu {
  display: none;
  cursor: pointer;
  font-size: 1.75rem;
  padding: 0.5rem;
}

/* Mobile styles */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    flex-direction: column;
    align-items: flex-start;
    position: absolute;
    top: 60px;
    right: 0;
    background: white;
    width: 200px;
    padding: 1rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  }

  .nav-links.active {
    display: flex;
  }

  .burger-menu {
    display: block;
  }
}



header,
main,
main > * + * {
  margin-top: var(--layout-spacing);
}

body > footer {
  margin-top: auto;
  padding-top: var(--layout-spacing);
}

body > footer div {
  border-top: 1px solid #ccc;
  padding-top: 0.5em;
  font-size: 0.9rem;
  color: #767676;
}


/* Typography */
:is(h1, h2, h3) {
  line-height: 1.2;
}

:is(h1, h2) {
  max-width: 40ch;
}

:is(h2, h3):not(:first-child) {
  margin-top: 2em;
}

a {
  color: rgb(9, 54, 22);
  text-underline-offset: .45em;
  text-decoration: wavy underline;
}


a:focus, a:hover {
  color: rgb(128, 45, 0);
  text-underline-offset: .4em;
}



#current-book, #previous-books, #upcoming-books {
  text-align: center;
}
#current-book .description {
  font-style: italic;
  color: #676565;
  margin-top: 1rem;
  font-size: 1rem;
}
#previous-books .description, #upcoming-books .description {
  font-style: italic;
  color: #676565;
  margin-top: 1rem;
  font-size: 0.75rem;
}

#current-book img {
  width: 150%;
  max-width: 20rem;
  height: auto;
  margin: 2rem auto;
  display: block;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border-radius: 0.5rem;
}

#current-book h2 {
  font-size: 2rem;

}

#current-book h3 {
  font-size: 1.75rem;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

#current-book p {
  font-size: 1.125rem;
  margin-top: 0.75rem;
}

#previous-books h3, #upcoming-books h3 {
  font-size: 2rem;
  margin-top: 2rem;
}

#previous-books h4, #upcoming-books h4 {
  font-size: 1.5rem;
  margin-top: 2rem;
  margin-bottom: 0.5rem;
}

.book-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 1.5rem;
}

.book-card {
  text-align: center;
}


.book-card img,
#current-book img {
  height: auto;
  aspect-ratio: 2/3;
  object-fit: cover;
  display: block;
  border-radius: 0.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}


#current-book img {
  width: 150%;
  max-width: 20rem;
  margin: 2rem auto;

}

.book-card img {
  width: 100%;
  max-width: 200px;
  margin: 0 auto 1rem;

}
