.books-index-shell {
  max-width: 1120px;
  margin: 0 auto;
  padding: 3rem 1.5rem 4rem;
}

.books-index-header {
  max-width: 760px;
  margin-bottom: 2rem;
}

.books-index-eyebrow {
  margin: 0 0 0.75rem;
  font-size: 0.76rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #7a6757;
}

.books-index-header h1 {
  margin: 0;
  font-size: clamp(1.8rem, 3.2vw, 3rem);
}

.books-title-lang-switch,
.books-title-lang-switch:visited {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 0.42rem;
  padding: 0.12rem 0.36rem;
  border-radius: 6px;
  border: 1px solid #2f241c;
  color: #fff8ed;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
  vertical-align: middle;
  background: #2f241c;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.books-title-lang-switch:hover,
.books-title-lang-switch:focus-visible {
  background: #46362b;
  border-color: #46362b;
  color: #ffffff;
}

.books-title-lang-switch:focus-visible {
  outline: 2px solid #2f241c;
  outline-offset: 2px;
}

.books-index-header p:last-child {
  max-width: 58ch;
  color: #5b4d42;
}

.books-index-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}

.books-card {
  background: linear-gradient(160deg, #221913, #17120e);
  border: 1px solid rgba(232, 220, 200, 0.24);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.5);
  border-radius: 6px;
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s;
}

.books-card:hover {
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
  transform: translateY(-2px);
}

.books-card-link {
  display: block;
  height: 100%;
  padding: 1.35rem;
  color: #f3ebdf;
  text-decoration: none;
  font-size: 1.03rem;
}

.books-card-link:hover h2 {
  text-decoration: underline;
}

.books-card-kicker {
  margin: 0 0 0.7rem;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #c5b7a5;
}

.books-card h2 {
  margin: 0;
  font-size: 1.58rem;
  color: #fff8ed;
}

.books-card-title-row {
  display: flex;
  align-items: baseline;
  gap: 0.45rem;
}

.books-card-title-row h2 {
  min-width: 0;
}

.books-lang-flag {
  font-size: 0.95rem;
  line-height: 1;
  opacity: 0.9;
}

.books-card-author,
.books-card-description {
  margin-bottom: 0;
  color: #d5c7b5;
}

.books-card--poems-collection .books-card-description {
  margin-top: 0.85rem;
}

.books-card--poems-collection .books-card-author {
  margin-top: 0.2rem;
  font-size: inherit;
  line-height: inherit;
  color: #d5c7b5;
}

.books-empty-state {
  padding: 1.4rem;
  background: rgba(246, 238, 226, 0.9);
  border: 1px solid rgba(52, 39, 29, 0.12);
  color: #5b4d42;
}