:root{
  --books-gold:#c99a3d;
  --books-gold-bright:#e2b85f;
  --books-ivory:#eee7dc;
  --books-muted:#bdb5aa;
  --books-line:rgba(201,154,61,.42);
}
body.books-catalogue{
  --shell:1180px;
  background:#030303;
  color:var(--books-ivory);
}
.books-catalogue .site-header{
  background:linear-gradient(180deg,rgba(2,2,2,.97),rgba(2,2,2,.74) 72%,transparent);
}
.books-catalogue .primary-nav>a.current{color:var(--books-gold-bright)}
.books-catalogue .primary-nav>a.current::after{
  content:"";
  position:absolute;
  left:0;
  right:0;
  bottom:6px;
  height:1px;
  background:var(--books-gold-bright);
  box-shadow:0 0 7px rgba(226,184,95,.42);
}
.books-hero{
  position:relative;
  min-height:540px;
  display:grid;
  align-items:center;
  overflow:hidden;
  border-bottom:1px solid rgba(201,154,61,.30);
  background:#050505;
}
.books-hero::before{
  content:"";
  position:absolute;
  inset:0;
  background:
    linear-gradient(180deg,rgba(0,0,0,.22),rgba(0,0,0,.22) 48%,rgba(0,0,0,.88) 100%),
    linear-gradient(90deg,rgba(0,0,0,.38),rgba(0,0,0,.10) 48%,rgba(0,0,0,.43)),
    url('../images/new-arrivals-showcase-v2.jpg') center 43%/cover no-repeat;
  transform:scale(1.012);
}
.books-hero::after{
  content:"";
  position:absolute;
  inset:0;
  background:radial-gradient(circle at 50% 42%,rgba(201,154,61,.12),transparent 27%);
  pointer-events:none;
}
.hero-inner{
  position:relative;
  z-index:2;
  padding-top:125px;
  padding-bottom:70px;
  text-align:center;
}
.hero-eyebrow{
  margin:0 0 11px;
  color:var(--books-gold-bright);
  font:700 10px/1.2 Arial,sans-serif;
  letter-spacing:.30em;
  text-transform:uppercase;
}
.books-hero h1{
  margin:0;
  color:var(--books-ivory);
  font-size:clamp(68px,9vw,128px);
  line-height:.86;
  font-weight:400;
  text-transform:uppercase;
  letter-spacing:.055em;
  text-shadow:0 8px 32px rgba(0,0,0,.95);
}
.books-hero .hero-rule{
  position:relative;
  width:min(390px,70vw);
  height:34px;
  margin:19px auto 10px;
}
.books-hero .hero-rule::before{
  content:"";
  position:absolute;
  top:16px;
  left:0;
  right:0;
  height:1px;
  background:linear-gradient(90deg,transparent,var(--books-gold),transparent);
}
.books-hero .hero-rule span{
  position:absolute;
  top:10px;
  left:50%;
  width:12px;
  height:12px;
  border:1px solid var(--books-gold-bright);
  transform:translateX(-50%) rotate(45deg);
  background:#090705;
}
.hero-intro{
  margin:0;
  color:#e3dbd0;
  font-size:clamp(20px,2.2vw,29px);
  line-height:1.4;
  font-style:italic;
  text-shadow:0 4px 18px rgba(0,0,0,.95);
}
.books-library{
  position:relative;
  padding:84px 0 104px;
  background:
    radial-gradient(circle at 15% 17%,rgba(201,154,61,.08),transparent 25%),
    radial-gradient(circle at 84% 70%,rgba(90,78,70,.10),transparent 28%),
    #030303;
}
.books-library::before{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  opacity:.12;
  background-image:
    linear-gradient(rgba(255,255,255,.022) 1px,transparent 1px),
    linear-gradient(90deg,rgba(255,255,255,.018) 1px,transparent 1px);
  background-size:76px 76px;
  mask-image:linear-gradient(180deg,transparent,#000 12%,#000 88%,transparent);
}
.library-heading{
  position:relative;
  z-index:1;
  max-width:760px;
  margin:0 auto 44px;
  text-align:center;
}
.library-heading .eyebrow{
  display:block;
  margin-bottom:10px;
  color:var(--books-gold-bright);
  font:700 10px/1.2 Arial,sans-serif;
  letter-spacing:.30em;
  text-transform:uppercase;
}
.library-heading h2{
  margin:0;
  color:#f1ebe3;
  font-size:clamp(36px,4.4vw,60px);
  line-height:1.05;
  font-weight:400;
}
.library-heading p{
  margin:16px auto 0;
  color:var(--books-muted);
  font-size:17px;
  line-height:1.65;
}
.book-grid{
  position:relative;
  z-index:1;
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(280px,360px));
  justify-content:center;
  gap:26px;
}
.book-card{
  position:relative;
  overflow:hidden;
  display:flex;
  flex-direction:column;
  height:100%;
  border:1px solid var(--books-line);
  background:linear-gradient(160deg,rgba(13,13,12,.98),rgba(5,5,5,.99));
  box-shadow:0 22px 58px rgba(0,0,0,.50),inset 0 0 0 1px rgba(255,255,255,.015);
  transition:transform .28s ease,border-color .28s ease,box-shadow .28s ease;
}
.book-card:hover,
.book-card:focus-within{
  transform:translateY(-5px);
  border-color:rgba(226,184,95,.74);
  box-shadow:0 28px 68px rgba(0,0,0,.62),0 0 30px rgba(201,154,61,.07);
}
.book-cover-link{
  position:relative;
  display:block;
  min-height:466px;
  padding:25px 38px 0;
  overflow:hidden;
  background:
    radial-gradient(circle at 50% 44%,rgba(201,154,61,.17),transparent 36%),
    linear-gradient(180deg,#0c0b09,#040404);
}
.book-cover-link::after{
  content:"";
  position:absolute;
  inset:auto 0 0;
  height:36%;
  background:linear-gradient(180deg,transparent,rgba(5,5,5,.98));
  pointer-events:none;
}
.book-cover-link img{
  position:relative;
  z-index:1;
  width:100%;
  height:auto;
  aspect-ratio:253/352;
  object-fit:cover;
  border:1px solid rgba(226,184,95,.65);
  box-shadow:0 18px 42px rgba(0,0,0,.76),0 0 28px rgba(201,154,61,.08);
  transition:transform .42s ease,filter .35s ease;
}
.book-card:hover .book-cover-link img{transform:scale(1.025);filter:brightness(1.05)}
.book-number{
  position:absolute;
  top:18px;
  right:18px;
  z-index:2;
  color:rgba(226,184,95,.56);
  font:11px/1 Arial,sans-serif;
  letter-spacing:.16em;
}
.book-card-content{
  position:relative;
  z-index:2;
  margin-top:-34px;
  padding:18px 26px 26px;
  display:flex;
  flex-direction:column;
  flex:1;
}
.book-type{
  margin:0 0 11px;
  color:var(--books-gold-bright);
  font:700 9px/1.4 Arial,sans-serif;
  letter-spacing:.18em;
  text-transform:uppercase;
}
.book-card h3{
  margin:0;
  min-height:126px;
  display:flex;
  align-items:flex-start;
  color:#f3ede5;
  font-size:clamp(28px,2.7vw,38px);
  line-height:1.04;
  font-weight:400;
  text-transform:uppercase;
  letter-spacing:.02em;
}
.book-rule{
  position:relative;
  width:112px;
  height:24px;
  margin:11px 0 8px;
}
.book-rule::before{
  content:"";
  position:absolute;
  top:11px;
  left:0;
  right:0;
  height:1px;
  background:linear-gradient(90deg,var(--books-gold),transparent);
}
.book-card-content>p:not(.book-type){
  height:72px;
  margin:0 0 22px;
  color:#c9c0b5;
  font-size:15px;
  line-height:1.6;
  font-style:italic;
}
.books-button{
  width:100%;
  min-height:43px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  border:1px solid var(--books-gold);
  padding:0 16px;
  color:var(--books-gold-bright);
  background:rgba(0,0,0,.48);
  font:700 9px/1 Arial,sans-serif;
  letter-spacing:.15em;
  text-transform:uppercase;
  transition:background .22s ease,color .22s ease,border-color .22s ease;
}
.books-button:hover,.books-button:focus-visible{
  background:#f0c975;
  color:#16100a;
  border-color:#f0c975;
}

.book-actions{
  display:grid;
  gap:10px;
  margin-top:auto;
}
.books-button--amazon{
  background:linear-gradient(180deg,#e6be68,#c8953b);
  border-color:#e6be68;
  color:#171009;
}
.books-button--amazon:hover,.books-button--amazon:focus-visible{
  background:#f1ce83;
  border-color:#f1ce83;
  color:#120d08;
}
.book-grid > .book-card{align-self:stretch}

@media(max-width:760px){
  .books-hero{min-height:500px}
  .hero-inner{padding-top:112px;padding-bottom:58px}
  .books-hero h1{font-size:clamp(56px,18vw,82px)}
  .hero-intro{font-size:19px}
  .books-library{padding:62px 0 76px}
  .library-heading{margin-bottom:32px}
  .library-heading p{font-size:15px}
  .book-cover-link{min-height:430px;padding:23px 34px 0}
}
@media(max-width:430px){
  .book-grid{grid-template-columns:minmax(0,1fr)}
  .book-cover-link{min-height:408px;padding:22px 31px 0}
  .book-card h3{min-height:0;font-size:34px}
  .book-card-content>p:not(.book-type){height:auto;min-height:0}
  .books-button{font-size:8px;letter-spacing:.11em}
}
@media(prefers-reduced-motion:reduce){
  .book-card,.book-cover-link img{transition:none}
}
