/* Navigation */
.contents {
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
  margin-top: 4rem;
}

.contents a {
  color: var(--ink-color);
  text-decoration: none;
  font-size: 1.3rem;
  position: relative;
  padding-left: 1.5rem;
  transition: var(--transition);
  opacity: 0;
  animation: slideIn 0.5s forwards;
}

.contents a:nth-child(1) { animation-delay: 0.2s; }
.contents a:nth-child(2) { animation-delay: 0.4s; }
.contents a:nth-child(3) { animation-delay: 0.6s; }
.contents a:nth-child(4) { animation-delay: 0.8s; }

.contents a::before {
  content: '❧';
  position: absolute;
  left: 0;
  color: var(--accent-color);
  opacity: 0;
  transition: var(--transition);
}

.contents a:hover {
  color: var(--accent-color);
  transform: translateX(10px);
}

.contents a:hover::before {
  opacity: 1;
}

/* Headers */
h1 {
  font-size: 3.5rem;
  color: var(--ink-color);
  margin: 0;
  line-height: 1.2;
  position: relative;
  animation: fadeIn 1s ease-out;
}

h1::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  height: 2px;
  background: var(--accent-color);
  animation: inkSpread 1.5s ease-out forwards;
}

.tagline {
  color: var(--accent-color);
  font-style: italic;
  font-size: 1.2rem;
  margin-top: 1rem;
  opacity: 0;
  animation: fadeIn 1s ease-out 0.5s forwards;
}

/* Book Display */
.book-highlight {
  margin: 2rem 0;
  padding: 2rem;
  background: rgba(155, 69, 34, 0.05);
  border-radius: 12px;
  transition: var(--transition);
}

.book-highlight:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px var(--shadow-color);
}

.book-cover {
  width: 200px;
  height: 300px;
  background: var(--accent-color);
  border-radius: 8px;
  box-shadow: 8px 8px 20px var(--shadow-color);
  position: relative;
  overflow: hidden;
}

.book-cover::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1));
}

/* Book Grid */
.book-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

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

.book-cover-small {
  width: 120px;
  height: 180px;
  background: var(--accent-color);
  margin: 0 auto 0.5rem;
  border-radius: 4px;
  box-shadow: 3px 3px 8px var(--shadow-color);
}

.book-card h4 {
  margin: 0.5rem 0 0.2rem;
  color: var(--ink-color);
  font-size: 1.4rem;
}

.book-author {
  margin: 0;
  color: var(--accent-color);
  font-style: italic;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--paper-color);
}

::-webkit-scrollbar-thumb {
  background: var(--accent-color);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--gold);
}

/* Join Button */
.join-button {
  display: inline-block;
  background: var(--accent-color);
  color: var(--paper-color);
  text-decoration: none;
  padding: 1rem 2rem;
  font-size: 1.1rem;
  border-radius: 8px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.join-button:hover {
  background: var(--gold);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px var(--shadow-color);
}

.join-button::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transform: translateX(-100%);
  transition: var(--transition);
}

.join-button:hover::after {
  transform: translateX(100%);
}