/* BOOKS PAGE ONLY
   Uses the established website palette and shared css/style.css header/footer.
   Do not add header or footer overrides here.
*/
:root {
  --books-charcoal: #161616;
  --books-midnight: #0F1C2E;
  --books-crimson: #8B1E24;
  --books-silver: #C9C9C9;
  --books-white: #FFFFFF;
  --books-paper: #F3F3F1;
  --books-muted: #A8ADB5;
}

.books-page {
  color: var(--books-charcoal);
  background: var(--books-paper);
  overflow: hidden;
}

.books-page .container {
  width: min(1180px, 90%);
  margin-inline: auto;
}

/* Hero banner */
.books-hero {
  position: relative;
  min-height: 300px;
  display: grid;
  place-items: center;
  isolation: isolate;
  overflow: hidden;
  color: var(--books-white);
  text-align: center;
  background:
    radial-gradient(ellipse at 50% 110%, rgba(139,30,36,.42), transparent 52%),
    linear-gradient(110deg, #080f19 0%, #0F1C2E 54%, #17263a 100%);
  border-bottom: 1px solid rgba(201,201,201,.35);
}

.books-hero::before,
.books-hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 360px;
  height: 360px;
  border: 1px solid rgba(201,201,201,.12);
  border-radius: 50%;
}

.books-hero::before { left: -190px; top: -170px; }
.books-hero::after { right: -180px; bottom: -230px; }

.books-hero-shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(8,15,25,.45), transparent 45%, rgba(8,15,25,.35));
}

.books-hero-content { padding-block: 42px; }
.books-hero-mark {
  display: block;
  margin-bottom: 9px;
  color: var(--books-silver);
  font-family: Georgia, serif;
  font-size: 42px;
}
.books-hero-content > p:first-of-type {
  margin: 0 0 5px;
  color: var(--books-silver);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 4px;
}
.books-hero h1 {
  margin: 0;
  color: var(--books-white);
  font-family: var(--heading-font, Georgia, serif);
  font-size: clamp(42px, 6vw, 76px);
  font-weight: 600;
  line-height: 1.05;
}
.books-hero h1 span { color: #d9dce1; }
.books-hero-rule {
  width: 125px;
  height: 2px;
  margin: 20px auto 15px;
  background: var(--books-crimson);
}
.books-hero-genres {
  margin: 0;
  color: #e4e7eb;
  font-family: var(--heading-font, Georgia, serif);
  font-size: clamp(13px, 1.6vw, 18px);
}
.books-hero-genres i { padding-inline: 8px; color: #b9c1cc; font-style: normal; }

/* Published books */
.published-section {
  padding-block: 78px 92px;
  background: linear-gradient(180deg, #f4f4f2 0%, #e9eaeb 100%);
}

.books-section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 25px;
  margin-bottom: 52px;
}
.books-eyebrow {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--books-crimson);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3px;
}
.books-section-heading h2 {
  margin: 0;
  color: var(--books-midnight);
  font-family: var(--heading-font, Georgia, serif);
  font-size: clamp(34px, 4vw, 48px);
  line-height: 1.1;
}
.books-section-heading h2 em { color: var(--books-crimson); font-weight: 500; }
.books-section-heading p {
  max-width: 650px;
  margin: 12px 0 0;
  color: #505761;
  font-size: 15px;
}
.heading-accent {
  width: 115px;
  height: 3px;
  margin-bottom: 12px;
  background: var(--books-crimson);
}

.books-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 42px 26px;
}
.book-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 22px 20px 24px;
  border: 1px solid #c5cbd2;
  border-radius: 5px;
  background: rgba(255,255,255,.82);
  box-shadow: 0 12px 30px rgba(15,28,46,.07);
  text-align: center;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.book-card:hover {
  transform: translateY(-5px);
  border-color: rgba(139,30,36,.55);
  box-shadow: 0 18px 38px rgba(15,28,46,.13);
}
.book-cover {
  display: block;
  width: min(100%, 220px);
  margin: -43px auto 17px;
  perspective: 800px;
}
.book-cover img {
  display: block;
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  background: #d8dce0;
  border: 1px solid rgba(15,28,46,.2);
  box-shadow: 9px 9px 0 #c7cbd0, 15px 17px 22px rgba(15,28,46,.2);
  transition: transform .25s ease;
}
.book-card:hover .book-cover img { transform: translateY(-3px) rotateY(-2deg); }
.book-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  width: 100%;
}
.book-card h3 {
  margin: 4px 0 5px;
  color: var(--books-midnight);
  font-family: var(--heading-font, Georgia, serif);
  font-size: clamp(20px, 2vw, 25px);
  font-weight: 700;
  line-height: 1.2;
}
.book-category {
  margin: 0 0 10px;
  color: var(--books-crimson);
  font-size: 13px;
  font-weight: 700;
}
.book-summary {
  max-width: 330px;
  min-height: 76px;
  margin: 0 auto 19px;
  color: #454b53;
  font-family: var(--heading-font, Georgia, serif);
  font-size: 16px;
  line-height: 1.5;
}
.book-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  align-self: center;
  min-width: 155px;
  margin-top: auto;
  padding: 10px 18px;
  border: 1px solid var(--books-crimson);
  border-radius: 3px;
  color: var(--books-white);
  background: var(--books-crimson);
  font-size: 13px;
  font-weight: 700;
  transition: background .2s ease, color .2s ease;
}
.book-link:hover { color: var(--books-crimson); background: transparent; }

/* Upcoming title feature */
.upcoming-section {
  position: relative;
  padding-block: 78px;
  overflow: hidden;
  color: var(--books-white);
  background:
    radial-gradient(circle at 82% 45%, rgba(139,30,36,.26), transparent 32%),
    linear-gradient(115deg, #0a1421, #0F1C2E 62%, #111923);
  border-top: 1px solid rgba(201,201,201,.35);
  border-bottom: 1px solid rgba(201,201,201,.35);
}
.upcoming-layout {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  align-items: center;
  gap: 55px;
}
.upcoming-copy .books-eyebrow { color: #c6ccd4; }
.upcoming-copy h2 {
  margin: 0 0 22px;
  color: var(--books-white);
  font-family: var(--heading-font, Georgia, serif);
  font-size: clamp(37px, 5vw, 58px);
  font-weight: 500;
  line-height: 1.05;
}
.upcoming-copy h2 em { color: #c8cdd5; }
.upcoming-label {
  margin: 0 0 5px;
  color: #c6ccd4;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
}
.upcoming-copy h3 {
  margin: 0 0 12px;
  color: #fff;
  font-family: var(--heading-font, Georgia, serif);
  font-size: clamp(29px, 3.5vw, 42px);
}
.upcoming-description {
  max-width: 530px;
  margin: 0 0 20px;
  color: #d5dbe2;
  font-size: 15px;
  line-height: 1.8;
}
.upcoming-status {
  display: inline-block;
  padding: 7px 12px;
  border: 1px solid rgba(201,201,201,.55);
  color: #f1f2f4;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
}
.upcoming-button {
  display: table;
  margin-top: 25px;
  padding: 12px 20px;
  border: 1px solid #c6ccd4;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  transition: background .2s ease, color .2s ease;
}
.upcoming-button span { margin-left: 10px; }
.upcoming-button:hover { color: var(--books-midnight); background: #e3e6ea; }
.upcoming-art {
  position: relative;
  display: grid;
  min-height: 350px;
  place-items: center;
}
.upcoming-cover-frame {
  position: relative;
  z-index: 1;
  width: min(68%, 255px);
  transform: rotate(2deg);
}
.upcoming-cover-frame img {
  display: block;
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border: 7px solid rgba(255,255,255,.92);
  background: #293344;
  box-shadow: 18px 20px 35px rgba(0,0,0,.4);
}
.upcoming-orbit {
  position: absolute;
  width: 330px;
  height: 330px;
  max-width: 90%;
  border: 1px solid rgba(201,201,201,.25);
  border-radius: 50%;
}
.upcoming-orbit::before {
  content: "";
  position: absolute;
  inset: 24px;
  border: 1px solid rgba(139,30,36,.65);
  border-radius: 50%;
}

/* Closing strip */
.books-closing {
  padding-block: 48px;
  color: var(--books-white);
  background: #101010;
  text-align: center;
}
.books-closing .books-eyebrow { color: #b9c1cc; }
.books-closing h2 {
  margin: 0 0 9px;
  color: var(--books-white);
  font-family: var(--heading-font, Georgia, serif);
  font-size: clamp(27px, 3.5vw, 39px);
  font-style: italic;
  font-weight: 500;
}
.books-closing p:last-child {
  max-width: 700px;
  margin: auto;
  color: #c3c8ce;
  font-size: 14px;
  line-height: 1.7;
}

@media (max-width: 900px) {
  .books-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 42px 22px; }
  .upcoming-layout { gap: 25px; }
}
@media (max-width: 600px) {
  .books-hero { min-height: 260px; }
  .books-hero-genres { line-height: 1.9; }
  .books-hero-genres i { padding-inline: 3px; }
  .published-section { padding-block: 58px 70px; }
  .books-section-heading { align-items: start; margin-bottom: 42px; }
  .heading-accent { width: 45px; flex: 0 0 45px; }
  .books-grid { grid-template-columns: 1fr; gap: 43px; max-width: 390px; margin-inline: auto; }
  .book-card { padding-inline: 22px; }
  .book-cover { width: min(75%, 220px); }
  .book-summary { min-height: 0; }
  .upcoming-section { padding-block: 60px; }
  .upcoming-layout { grid-template-columns: 1fr; text-align: center; }
  .upcoming-description { margin-inline: auto; }
  .upcoming-button { margin-inline: auto; }
  .upcoming-art { min-height: 310px; }
}
@media (prefers-reduced-motion: reduce) {
  .book-card, .book-cover img, .book-link, .upcoming-button { transition: none; }
}
