/* Books landing index — elegant "library" theme tying the set together */
:root {
  --bg: #10141b;
  --panel: #1b2330;
  --panel-hover: #232f40;
  --line: rgba(216, 178, 90, 0.22);
  --text: #ede6d6;
  --text-dim: rgba(237, 230, 214, 0.6);
  --gold: #d8b25a;
  --gold-bright: #f0d27f;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  --cols: 68px 1fr 56px 22px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

body {
  background-color: var(--bg);
  background-image:
    radial-gradient(circle at 50% -10%, rgba(216, 178, 90, 0.14), transparent 55%),
    radial-gradient(circle at 10% 100%, rgba(46, 60, 82, 0.5), transparent 50%);
  background-attachment: fixed;
  color: var(--text);
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 19px;
  line-height: 1.6;
  min-height: 100vh;
}

main {
  max-width: 760px;
  margin: 0 auto;
  padding: 56px 22px 72px;
}

/* Header */
.masthead { text-align: center; margin-bottom: 40px; }

.masthead__kicker {
  font-family: 'Cinzel', serif;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-size: 0.72rem;
  color: var(--gold);
  margin: 0 0 12px;
}

.masthead__title {
  font-family: 'Cinzel', serif;
  font-weight: 700;
  font-size: clamp(2rem, 7vw, 3rem);
  color: var(--gold-bright);
  text-shadow: 0 2px 16px rgba(216, 178, 90, 0.35);
  margin: 0;
  line-height: 1.1;
}

.masthead__subtitle {
  color: var(--text-dim);
  font-size: 1.05rem;
  margin: 14px 0 0;
}

/* Table-style shelf */
.shelf {
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: rgba(27, 35, 48, 0.55);
  box-shadow: var(--shadow);
}

.shelf__head {
  display: grid;
  grid-template-columns: var(--cols);
  gap: 18px;
  align-items: center;
  padding: 14px 22px;
  font-family: 'Cinzel', serif;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-dim);
  background: rgba(0, 0, 0, 0.25);
  border-bottom: 1px solid var(--line);
}

/* Each book is a clickable row */
.book-row {
  display: grid;
  grid-template-columns: var(--cols);
  gap: 18px;
  align-items: center;
  padding: 18px 22px;
  text-decoration: none;
  color: inherit;
  border-bottom: 1px solid var(--line);
  transition: background 0.18s ease, transform 0.18s ease;
}
.book-row:last-child { border-bottom: 0; }

.book-row:hover,
.book-row:focus-visible {
  background: var(--panel-hover);
  outline: none;
}

.book-row__cover {
  width: 68px;
  height: auto;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 5px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.55);
}

.book-row__info { min-width: 0; }

.book-row__title {
  font-family: 'Cinzel', serif;
  font-weight: 700;
  font-size: 1.18rem;
  color: var(--gold-bright);
  margin: 0;
  line-height: 1.2;
}

.book-row__author {
  color: var(--text-dim);
  font-style: italic;
  font-size: 1rem;
  margin: 4px 0 0;
}

.book-row__photo {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid var(--gold);
  box-shadow: 0 0 14px rgba(216, 178, 90, 0.3);
}

.book-row__arrow {
  font-family: 'Cinzel', serif;
  color: var(--gold);
  font-size: 1.2rem;
  text-align: right;
  transition: transform 0.18s ease;
}
.book-row:hover .book-row__arrow { transform: translateX(4px); }

/* Footer */
footer {
  text-align: center;
  padding: 36px 16px 0;
  font-size: 0.9rem;
  color: var(--text-dim);
}

/* Mobile */
@media (max-width: 560px) {
  :root { --cols: 54px 1fr 44px; }
  .shelf__head { font-size: 0.62rem; gap: 14px; }
  .book-row { gap: 14px; padding: 16px; }
  .book-row__cover { width: 54px; }
  .book-row__title { font-size: 1.05rem; }
  .book-row__photo { width: 44px; height: 44px; }
  .book-row__arrow,
  .shelf__head .col-arrow { display: none; }
}
