body {
  font-family: 'Ledger', 'Georgia', serif;
  background: #443826;
  color: #443c2e;
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Animated steampunk gears background */
body::before {
  content: '';
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 0;
  pointer-events: none;
  background:
    url('https://s3.us-west-2.amazonaws.com/www.socialdeskclub.com/gears.png') repeat,
    radial-gradient(circle at 30% 30%, #b99869 0%, #665544dd 80%);
  opacity: 0.18;
  animation:
    gearmove 18s linear infinite;
}

@keyframes gearmove {
  0% {background-position: 0 0, 0 0;}
  100% {background-position: 320px 220px, 0 0;}
}

header {
  background: #222;
  color: #ddb876;
  padding: 1.5em;
  text-align: center;
  letter-spacing: 2px;
  box-shadow: 0 4px 12px #3e2c22cc;
  border-bottom: 4px double #ddb876;
  z-index: 1;
  position: relative;
}

header input {
  margin-top: 1em;
  padding: 0.7em;
  width: 60%;
  font-size: 1em;
  border-radius: 6px;
  border: 2px solid #a68a61;
  background: #f5e3c3;
  color: #5d4138;
  box-shadow: 0 2px 6px #a68a6155;
  z-index: 2;
  position: relative;
}

main {
  padding: 2em 1em;
  max-width: 1300px;
  margin: 0 auto;
  z-index: 1;
  position: relative;
}

.progress-container {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  max-width: 650px;
  margin-bottom: 2em;
  background: #FFFFF6;
  border-radius: 16px;
  box-shadow: 0 3px 12px #7c6f3690;
  overflow: hidden;
}
.progress-bar {
  height: 24px;
  background: linear-gradient(90deg, #ddf876 0%, #ef9869 100%);
  border-radius: 16px;
  box-shadow: 0 2px 7px #bb896044;
  width: 0;
  transition: width 1.2s cubic-bezier(.42,.76,.22,.92);
}
.progress-text {
  padding: .35em 1em;
  color: #664f24;
  font-weight: bold;
  font-size: 1.07em;
}

.book-year {
  margin: 2em 0 1em 0;
  font-size: 1.4em;
  color: #a06829;
  border-bottom: 2px dashed #7c5e25;
  padding-bottom: 0.3em;
  text-shadow: 1px 1px 0 #ebdbc6;
}

.books-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 2em;
  margin-bottom: 2.5em;
}

.book-item {
  background: #ebdbc6cc;
  border: 3px solid #ba8950;
  border-radius: 16px;
  box-shadow: 0 6px 24px #563e2244, 0 2px 5px #ba895044 inset;
  padding: 1.8em 1.4em 1.4em 1.4em;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  transition: transform .25s cubic-bezier(.54,.08,.36,.98), box-shadow .25s cubic-bezier(.54,.08,.36,.98);
  position: relative;
  z-index: 2;
}

.book-item:hover {
  transform: scale(1.035) rotate(-2deg);
  box-shadow: 0 16px 36px #412e1a88, 0 3px 18px #a0682944 inset;
  border-color: #ddb876;
  background: #f7e4c2ee;
}

.book-cover {
  width: 100px;
  height: 150px;
  object-fit: cover;
  border-radius: 6px;
  border: 2px solid #736048;
  box-shadow: 0 2px 6px #73604888;
  margin-right: 1em;
  transition: box-shadow .25s cubic-bezier(.54,.08,.36,.98), filter .25s cubic-bezier(.54,.08,.36,.98);
}

.book-item:hover .book-cover {
  box-shadow: 0 12px 32px #ab7b4082, 0 8px 24px #ba895052;
  filter: sepia(0.33) drop-shadow(0 0 4px #ca8c2c); 
}

.book-info {
  flex: 1;
}

.book-title {
  /* your existing styles... */
  word-break: break-word;
  overflow-wrap: anywhere;
  white-space: normal;
  max-width: 100%;
  /* optional: */
  /* max-height: 3.2em;  */
  /* overflow: hidden; */
}

.book-details {
  font-size: .97em;
  color: #6a5644;
  margin-bottom: .8em;
}



footer {
  background: #3e2c22cc;
  color: #f5e3c3;
  text-align: center;
  padding: 1em;
  letter-spacing: 1px;
  border-top: 3px double #a68a61;
}