@import url('https://fonts.googleapis.com/css2?family=Merriweather:ital,wght@0,400;0,700;1,400;1,700&display=swap');

@media (prefers-color-scheme: light) {
  :root {
    color-scheme: light;
    --background: #FFFCF0;
    --text: #100F0F;
    --link: #24837B;
    --link-hover: #100F0F;
    --accent-1: #F2F0E5;
    --accent-2: #E6E4D9;
    --accent-3: #6F6E69;
    --highlight: #DAD8CE;
  }
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --background: #100F0F;
    --text: #CECDC3;
    --link: #3AA99F;
    --link-hover: #CECDC3;
    --accent-1: #1C1B1A;
    --accent-2: #282726;
    --accent-3: #878580;
    --highlight: #343331;
  }
}

body {
  font-family: 'Merriweather', 'Georgia', serif;
  line-height: 1.75;
  font-size: 1.6rem;
  text-align: left;
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
}

.header, footer {
  font-family: var(--sans-serif-font);
}

.bookshelf img:hover {
  transform: scale(1.10);
  transition: transform 0.2s ease-in-out;
}

.bookgoals {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-start;
  align-items: flex-start;
}

.bookgoals img {
  width: 120px;
  height: 180px;
  height: auto;
  object-fit: cover;
  transition: transform 0.2s ease-in-out;
}

.bookgoals img:hover {
  transform: scale(1.10);
  z-index: 1;
}

.book-cover:hover {
  transform: translateY(-5px);
}