/*
Theme Name: Midnight Shelf
Theme URI: https://example.com/midnight-shelf
Author: Codex
Author URI: https://openai.com
Description: A paranormal book promotion theme built for Amazon-linked titles, affiliate disclosures, moody book grids, and review-led discovery.
Version: 3.1.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: midnight-shelf
Tags: blog, entertainment, custom-logo, custom-menu, featured-images, full-width-template
*/

:root {
  --abyss: #07080b;
  --night: #111018;
  --ink: #1a1116;
  --bone: #f3ead9;
  --parchment: #d9c6a4;
  --smoke: #8d8591;
  --spirit: #9dffd7;
  --blood: #b82043;
  --wax: #f1b84b;
  --moss: #526d4d;
  --line: rgba(243, 234, 217, 0.18);
  --shadow: rgba(0, 0, 0, 0.48);
  --panel-alpha: 0.8;
  --paper-alpha: 0.88;
  --hero-panel-alpha: 0.72;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background:
    repeating-linear-gradient(90deg, rgba(255,255,255,0.018) 0 1px, transparent 1px 86px),
    repeating-linear-gradient(0deg, rgba(255,255,255,0.014) 0 1px, transparent 1px 72px),
    radial-gradient(ellipse at 50% -20%, rgba(157, 255, 215, 0.14), transparent 36rem),
    linear-gradient(180deg, #08090e 0%, #171018 42%, #0b0b0d 100%);
  color: var(--bone);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
  line-height: 1.6;
}

body.midnight-font-gothic {
  font-family: "Palatino Linotype", Palatino, Georgia, serif;
}

body.midnight-font-typewriter {
  font-family: "Courier New", Courier, monospace;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background:
    linear-gradient(115deg, transparent 0 44%, rgba(184, 32, 67, 0.12) 44% 45%, transparent 45% 100%),
    linear-gradient(245deg, transparent 0 63%, rgba(241, 184, 75, 0.1) 63% 64%, transparent 64% 100%);
  opacity: 0.72;
}

a {
  color: var(--spirit);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

img {
  max-width: 100%;
  height: auto;
}

.site-header {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(7, 8, 11, 0.24), rgba(7, 8, 11, 0.94)),
    radial-gradient(ellipse at 50% 5%, rgba(157, 255, 215, 0.2), transparent 34rem),
    radial-gradient(ellipse at 12% 45%, rgba(184, 32, 67, 0.32), transparent 28rem),
    linear-gradient(135deg, #050509 0%, #14101b 52%, #230913 100%);
  color: #fffaf0;
}

.site-header::before,
.site-header::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.site-header::before {
  inset: 0;
  background:
    repeating-radial-gradient(circle at 50% 40%, rgba(243, 234, 217, 0.12) 0 1px, transparent 1px 18px);
  mask-image: radial-gradient(ellipse at 50% 48%, #000 0 24rem, transparent 38rem);
  opacity: 0.35;
}

.site-header::after {
  right: clamp(20px, 8vw, 110px);
  bottom: -90px;
  width: clamp(220px, 28vw, 390px);
  aspect-ratio: 1;
  border: 1px solid rgba(157, 255, 215, 0.22);
  border-radius: 50%;
  box-shadow:
    inset 0 0 0 28px rgba(157, 255, 215, 0.02),
    inset 0 0 0 29px rgba(243, 234, 217, 0.12),
    0 0 70px rgba(157, 255, 215, 0.12);
  opacity: 0.86;
}

.nav-wrap,
.site-main,
.site-footer__inner {
  position: relative;
  width: min(var(--max), calc(100% - 32px));
  margin-inline: auto;
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 0;
}

.site-branding a {
  color: inherit;
  text-decoration: none;
}

.site-title {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.5rem, 2.2vw, 2.35rem);
  letter-spacing: 0;
  text-transform: none;
  text-shadow: 0 0 18px rgba(157, 255, 215, 0.24);
}

.site-description {
  margin: 2px 0 0;
  color: rgba(243, 234, 217, 0.7);
  font-size: 0.9rem;
}

.primary-menu {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 18px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-family: "Trebuchet MS", Arial, sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.primary-menu a {
  display: block;
  border-bottom: 1px solid transparent;
  color: rgba(243, 234, 217, 0.82);
  text-decoration: none;
}

.primary-menu a:hover,
.primary-menu a:focus {
  border-color: var(--spirit);
  color: var(--spirit);
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(157, 255, 215, 0.28);
  border-radius: 50%;
  background: rgba(7, 8, 11, 0.4);
  color: var(--spirit);
  font-family: "Trebuchet MS", Arial, sans-serif;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0;
  text-decoration: none;
  box-shadow: inset 0 0 18px rgba(157, 255, 215, 0.05);
}

.social-link svg {
  width: 19px;
  height: 19px;
  fill: currentColor;
}

.social-link:hover,
.social-link:focus {
  border-color: var(--wax);
  color: var(--wax);
  transform: translateY(-1px);
}

.hero {
  position: relative;
  padding: clamp(72px, 10vw, 136px) 0 48px;
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.65fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--spirit);
  font-family: "Trebuchet MS", Arial, sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 42px;
  height: 1px;
  background: currentColor;
  box-shadow: 0 0 14px currentColor;
}

.hero h1,
.page-title {
  max-width: 820px;
  margin: 8px 0 18px;
  font-size: clamp(2.55rem, 6vw, 5.8rem);
  line-height: 0.92;
  letter-spacing: 0;
  text-wrap: balance;
  text-shadow:
    0 1px 0 #000,
    0 0 28px rgba(157, 255, 215, 0.18),
    0 16px 52px rgba(0, 0, 0, 0.65);
}

.hero p {
  max-width: 660px;
  margin: 0;
  color: rgba(243, 234, 217, 0.82);
  font-size: clamp(1.05rem, 2vw, 1.32rem);
}

.hero__showcase {
  display: grid;
  gap: 18px;
}

.hero__artifact {
  position: relative;
  min-height: clamp(280px, 36vw, 430px);
  overflow: hidden;
  border: 1px solid rgba(243, 234, 217, 0.18);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(7, 8, 11, 0.04), rgba(7, 8, 11, 0.5)),
    repeating-linear-gradient(90deg, #332218 0 22px, #21140f 22px 30px, #4e2c1d 30px 58px, #170f0d 58px 64px),
    linear-gradient(180deg, #21130f, #07080b);
  background-position: center;
  background-size: cover;
  box-shadow:
    0 26px 70px rgba(0, 0, 0, 0.58),
    inset 0 0 42px rgba(0, 0, 0, 0.22);
}

.hero__artifact::before {
  content: "";
  position: absolute;
  inset: 10%;
  border: 1px solid rgba(157, 255, 215, 0.22);
  border-radius: 50%;
  box-shadow:
    0 0 34px rgba(157, 255, 215, 0.12),
    inset 0 0 22px rgba(157, 255, 215, 0.04);
  opacity: 0.72;
}

.hero__artifact::after {
  content: "Open 12-3";
  position: absolute;
  right: 20px;
  bottom: 18px;
  border: 1px solid rgba(243, 234, 217, 0.32);
  border-radius: 4px;
  padding: 9px 12px;
  background: rgba(7, 8, 11, 0.72);
  color: var(--wax);
  font-family: "Courier New", Courier, monospace;
  font-size: 0.78rem;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero__artifact span {
  position: absolute;
  bottom: 0;
  width: 22%;
  height: 46%;
  border: 1px solid rgba(243, 234, 217, 0.14);
  background:
    linear-gradient(90deg, transparent 0 28%, rgba(255,255,255,.08) 28% 30%, transparent 30% 100%),
    linear-gradient(180deg, #511725, #201019);
  box-shadow: 0 -18px 34px rgba(0, 0, 0, 0.42);
}

.hero__artifact span:nth-child(1) {
  left: 13%;
  height: 58%;
  background-color: #341929;
}

.hero__artifact span:nth-child(2) {
  left: 39%;
  height: 68%;
  background-color: #182f26;
}

.hero__artifact span:nth-child(3) {
  right: 13%;
  height: 52%;
  background-color: #4b2414;
}

.midnight-has-hero-image .hero__artifact {
  background-color: #09090d;
  background-repeat: no-repeat;
  background-size: cover;
  box-shadow:
    0 26px 70px rgba(0, 0, 0, 0.42),
    0 0 0 1px rgba(243, 234, 217, 0.2);
}

.midnight-has-hero-image .hero__artifact::before,
.midnight-has-hero-image .hero__artifact::after,
.midnight-has-hero-image .hero__artifact span {
  display: none;
}

.hero__panel {
  position: relative;
  border: 1px solid rgba(157, 255, 215, 0.24);
  border-radius: 8px;
  padding: 24px;
  background:
    linear-gradient(180deg, rgba(243, 234, 217, 0.1), rgba(7, 8, 11, 0.5)),
    rgba(7, 8, 11, var(--hero-panel-alpha));
  box-shadow:
    0 22px 70px rgba(0, 0, 0, 0.5),
    inset 0 0 34px rgba(157, 255, 215, 0.05);
  backdrop-filter: blur(10px);
}

.hero__panel::before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(243, 234, 217, 0.12);
  border-radius: 5px;
  pointer-events: none;
}

.hero__panel strong {
  display: block;
  margin-bottom: 8px;
  color: var(--wax);
  font-family: "Trebuchet MS", Arial, sans-serif;
  text-transform: uppercase;
}

.site-main {
  padding: 52px 0 78px;
}

.bookstore-intro,
.bookstore-cta,
.contact-panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(260px, 0.7fr);
  gap: clamp(22px, 4vw, 54px);
  align-items: center;
  margin-bottom: 40px;
  border: 1px solid rgba(243, 234, 217, 0.16);
  border-radius: 8px;
  padding: clamp(24px, 4vw, 42px);
  background:
    linear-gradient(135deg, rgba(157, 255, 215, 0.07), transparent 36%),
    linear-gradient(180deg, rgba(243, 234, 217, 0.08), rgba(243, 234, 217, 0.03)),
    rgba(12, 11, 15, var(--panel-alpha));
  box-shadow:
    0 22px 56px var(--shadow),
    inset 0 0 60px rgba(0, 0, 0, 0.28);
}

.bookstore-intro::before,
.bookstore-cta::before,
.contact-panel::before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(241, 184, 75, 0.14);
  border-radius: 5px;
  pointer-events: none;
}

.bookstore-intro h2,
.bookstore-cta h2,
.contact-panel h2 {
  margin: 8px 0 0;
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 0.98;
  text-wrap: balance;
}

.bookstore-intro p,
.bookstore-cta p,
.contact-panel p {
  margin: 0;
  color: rgba(243, 234, 217, 0.78);
  font-size: 1.08rem;
}

.genre-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0 0 38px;
}

.genre-strip a {
  border: 1px solid rgba(157, 255, 215, 0.28);
  border-radius: 999px;
  padding: 8px 14px;
  background: rgba(157, 255, 215, 0.06);
  color: var(--bone);
  font-family: "Trebuchet MS", Arial, sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-decoration: none;
  text-transform: uppercase;
}

.genre-strip a:hover,
.genre-strip a:focus {
  border-color: var(--wax);
  color: var(--wax);
}

.shelf-section {
  margin-bottom: 44px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
  color: var(--bone);
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  line-height: 1;
  text-shadow: 0 12px 34px rgba(0, 0, 0, 0.46);
}

.book-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 220px));
  gap: 26px;
  justify-content: start;
  padding-bottom: 20px;
  background:
    linear-gradient(180deg, transparent calc(100% - 18px), rgba(88, 49, 28, 0.9) calc(100% - 18px), rgba(37, 21, 16, 0.96) 100%);
}

.book-shelf {
  position: relative;
}

.book-grid--scroll {
  display: flex;
  gap: 22px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  scroll-snap-type: x proximity;
  scrollbar-color: var(--wax) rgba(243, 234, 217, 0.12);
  scrollbar-width: thin;
  padding: 8px 56px 30px;
}

.book-grid--scroll .book-card {
  flex: 0 0 180px;
  scroll-snap-align: start;
}

.book-grid--scroll::-webkit-scrollbar {
  height: 10px;
}

.book-grid--scroll::-webkit-scrollbar-track {
  background: rgba(243, 234, 217, 0.12);
}

.book-grid--scroll::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: var(--wax);
}

.shelf-arrow {
  position: absolute;
  top: 42%;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 58px;
  border: 1px solid rgba(241, 184, 75, 0.42);
  border-radius: 6px;
  background: rgba(7, 8, 11, 0.82);
  color: var(--wax);
  cursor: pointer;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2rem;
  line-height: 1;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.38);
}

.shelf-arrow:hover,
.shelf-arrow:focus {
  border-color: var(--spirit);
  color: var(--spirit);
}

.shelf-arrow--prev {
  left: 0;
}

.shelf-arrow--next {
  right: 0;
}

.book-card {
  position: relative;
  display: block;
  width: min(100%, 220px);
  overflow: hidden;
  border: 1px solid rgba(243, 234, 217, 0.16);
  border-radius: 8px;
  background: #151118;
  box-shadow:
    0 22px 54px var(--shadow),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: box-shadow 180ms ease, transform 180ms ease;
}

.book-card:hover,
.book-card:focus-within {
  transform: translateY(-4px);
  box-shadow:
    0 30px 68px rgba(0, 0, 0, 0.62),
    0 0 36px rgba(157, 255, 215, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.book-card::after {
  display: none;
}

.midnight-cards-bookshelf .book-card {
  border-color: rgba(117, 72, 39, 0.58);
  background:
    linear-gradient(90deg, rgba(255,255,255,.06), transparent 12% 88%, rgba(0,0,0,.24)),
    linear-gradient(180deg, #332117, #17100d);
}

.midnight-cards-minimal .book-card::after {
  display: none;
}

.midnight-cards-minimal .book-card {
  background: #17161b;
}

.book-card__cover {
  display: block;
  width: 100%;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background:
    linear-gradient(150deg, #111018, #3d0b1a 55%, #526d4d);
}

.book-card__cover img {
  display: block;
  width: 100%;
  height: 100%;
  max-height: 330px;
  object-fit: cover;
  filter: saturate(0.92) contrast(1.08);
  transition: filter 180ms ease, transform 180ms ease;
}

.book-card:focus-within .book-card__cover img,
.book-card:hover .book-card__cover img {
  filter: saturate(1.08) contrast(1.14);
  transform: scale(1.035);
}

.book-meta {
  margin: 0;
  color: var(--parchment);
  font-family: "Trebuchet MS", Arial, sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.bookstore-cta {
  grid-template-columns: minmax(0, 1fr) auto;
  margin-top: 28px;
  margin-bottom: 0;
  background:
    radial-gradient(ellipse at 86% 50%, rgba(241, 184, 75, 0.16), transparent 22rem),
    linear-gradient(135deg, rgba(184, 32, 67, 0.18), transparent 40%),
    rgba(10, 9, 13, var(--panel-alpha));
}

.bookstore-cta .button {
  align-self: center;
  min-width: 190px;
}

.contact-panel {
  margin-top: 34px;
  margin-bottom: 0;
  background:
    radial-gradient(ellipse at 8% 20%, rgba(157, 255, 215, 0.11), transparent 18rem),
    linear-gradient(135deg, rgba(82, 109, 77, 0.18), transparent 48%),
    rgba(10, 9, 13, var(--panel-alpha));
}

.contact-panel__links {
  display: grid;
  gap: 14px;
  justify-items: start;
}

.contact-panel__links > a {
  display: inline-flex;
  border-bottom: 1px solid rgba(157, 255, 215, 0.35);
  color: var(--bone);
  font-family: "Trebuchet MS", Arial, sans-serif;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
}

.contact-page {
  max-width: 920px;
  margin-inline: auto;
}

.contact-methods {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin: 28px 0;
}

.contact-method {
  display: grid;
  gap: 6px;
  border: 1px solid rgba(26, 17, 22, 0.14);
  border-radius: 8px;
  padding: 18px;
  background:
    linear-gradient(135deg, rgba(157, 255, 215, 0.09), transparent 54%),
    rgba(255, 247, 231, var(--paper-alpha));
  color: var(--ink);
  text-decoration: none;
}

.contact-method strong {
  font-family: "Trebuchet MS", Arial, sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.contact-method span {
  overflow-wrap: anywhere;
}

.social-links--contact {
  margin-top: 18px;
}

.contact-page .social-link {
  background: var(--ink);
}

.button,
.wp-block-button__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border: 1px solid rgba(241, 184, 75, 0.42);
  border-radius: 6px;
  padding: 10px 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent),
    var(--blood);
  color: #fff9e8;
  font-family: "Trebuchet MS", Arial, sans-serif;
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.1;
  text-decoration: none;
  text-transform: uppercase;
  box-shadow: 0 10px 24px rgba(184, 32, 67, 0.3);
}

.button:hover,
.button:focus {
  border-color: rgba(157, 255, 215, 0.52);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.1), transparent),
    #7f1730;
  color: #fff9e8;
}

.button--ghost {
  border: 1px solid rgba(157, 255, 215, 0.36);
  background: rgba(157, 255, 215, 0.04);
  color: var(--spirit);
  box-shadow: none;
}

.button--ghost:hover,
.button--ghost:focus {
  background: rgba(157, 255, 215, 0.12);
  color: var(--bone);
}

.content-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 38px;
}

.entry,
.widget-area {
  border: 1px solid rgba(243, 234, 217, 0.16);
  border-top: 4px solid var(--blood);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0.72)),
    rgba(243, 234, 217, var(--paper-alpha));
  color: var(--ink);
  box-shadow: 0 24px 60px var(--shadow);
}

.entry {
  padding: clamp(22px, 4vw, 42px);
}

.entry-title {
  margin: 0 0 16px;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1;
  color: var(--ink);
}

article.single-book {
  display: grid;
  grid-template-columns: minmax(180px, 260px) minmax(320px, 720px);
  gap: clamp(24px, 4vw, 48px);
  align-items: start;
  justify-content: center;
}

.entry.single-book {
  border: 0;
  border-top: 0;
  padding: 0;
  background: transparent;
  box-shadow: none;
  color: var(--bone);
}

.single-book__media {
  display: grid;
  gap: 14px;
  justify-items: center;
  width: min(100%, 280px);
}

.single-book__back {
  justify-self: start;
  color: var(--spirit);
  font-family: "Trebuchet MS", Arial, sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}

.single-book__back::before {
  content: "< ";
}

.single-book__details {
  border: 1px solid rgba(243, 234, 217, 0.16);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-height: 360px;
  padding: clamp(20px, 3vw, 34px);
  background:
    linear-gradient(135deg, rgba(157, 255, 215, 0.08), transparent 54%),
    rgba(10, 9, 13, var(--panel-alpha));
  color: var(--bone);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.42);
}

.single-book__details .entry-title {
  color: var(--bone);
  font-size: clamp(2rem, 4vw, 3.8rem);
}

.single-book__details .book-meta {
  color: var(--wax);
}

.single-book__cover-button {
  display: grid;
  gap: 10px;
  width: min(100%, 240px);
  max-width: 240px;
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  text-align: center;
}

.single-book__cover {
  display: block;
  width: 100% !important;
  max-width: 240px !important;
  max-height: 360px;
  height: auto !important;
  object-fit: contain;
  border-radius: 8px;
  box-shadow:
    0 22px 54px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(243, 234, 217, 0.14);
}

.single-book__media .wp-post-image {
  width: 100% !important;
  max-width: 240px !important;
  height: auto !important;
}

.single-book__cover-button span {
  display: inline-flex;
  justify-content: center;
  border-bottom: 1px solid currentColor;
  padding: 0 0 2px;
  background: transparent;
  color: var(--spirit);
  font-family: "Trebuchet MS", Arial, sans-serif;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.single-book__cover-button:hover .single-book__cover,
.single-book__cover-button:focus .single-book__cover {
  box-shadow:
    0 24px 58px rgba(0, 0, 0, 0.58),
    0 0 0 2px var(--blood);
}

.single-book__description {
  width: 100%;
  max-height: 250px;
  overflow-y: auto;
  border: 0;
  border-top: 1px solid rgba(243, 234, 217, 0.16);
  border-bottom: 1px solid rgba(243, 234, 217, 0.16);
  border-radius: 0;
  padding: 16px 0;
  background: transparent;
  color: var(--bone);
  box-shadow: none;
  scrollbar-color: var(--wax) rgba(243, 234, 217, 0.12);
  scrollbar-width: thin;
}

.single-book__description h2 {
  margin: 0 0 8px;
  font-size: clamp(1.35rem, 2vw, 1.85rem);
}

.single-book__description p {
  margin: 0;
  font-size: 1rem;
}

.single-book__purchase {
  margin-top: auto;
}

.single-book__purchase .button {
  min-width: 170px;
}

.single-book__disclosure {
  margin: 0;
  color: rgba(243, 234, 217, 0.68);
  font-size: 0.82rem;
}

.single-book__description::-webkit-scrollbar {
  width: 10px;
}

.single-book__description::-webkit-scrollbar-track {
  background: rgba(243, 234, 217, 0.12);
}

.single-book__description::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: var(--wax);
}

.purchase-box,
.affiliate-note,
.widget {
  border: 1px solid rgba(26, 17, 22, 0.14);
  border-radius: 8px;
  padding: 18px;
  background:
    linear-gradient(135deg, rgba(157, 255, 215, 0.09), transparent 54%),
    rgba(255, 247, 231, var(--paper-alpha));
}

.purchase-box {
  margin: 24px 0;
}

.affiliate-note {
  margin: 30px 0;
  color: #655866;
  font-size: 0.9rem;
}

.widget-area {
  padding: 20px;
}

.widget {
  margin-bottom: 18px;
}

.widget-title {
  margin: 0 0 10px;
  font-family: "Trebuchet MS", Arial, sans-serif;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-footer {
  border-top: 1px solid rgba(157, 255, 215, 0.18);
  background: #050508;
  color: rgba(243, 234, 217, 0.7);
}

.site-footer__inner {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 30px 0;
  font-size: 0.9rem;
}

.site-footer a {
  color: var(--spirit);
}

body.single-book .site-header,
body.single-book .site-footer {
  border: 0;
  background: transparent;
}

body.single-book .site-header::before,
body.single-book .site-header::after {
  display: none;
}

body.single-book .site-main {
  padding-top: 34px;
}

.site-footer__contact {
  display: grid;
  gap: 8px;
  justify-items: end;
  text-align: right;
}

.social-links--footer {
  justify-content: flex-end;
}

.midnight-mood-crimson .hero__artifact::before,
.midnight-mood-crimson .site-header::after {
  border-color: rgba(255, 176, 184, 0.32);
}

.midnight-mood-candle .site-header {
  background:
    linear-gradient(180deg, rgba(7, 8, 11, 0.18), rgba(7, 8, 11, 0.94)),
    radial-gradient(ellipse at 50% 5%, rgba(255, 217, 140, 0.2), transparent 34rem),
    radial-gradient(ellipse at 12% 45%, rgba(124, 50, 34, 0.34), transparent 28rem),
    linear-gradient(135deg, #080604 0%, #1f140d 52%, #271009 100%);
}

.midnight-mood-nocturne .site-header {
  background:
    linear-gradient(180deg, rgba(7, 8, 11, 0.18), rgba(7, 8, 11, 0.94)),
    radial-gradient(ellipse at 50% 5%, rgba(166, 216, 255, 0.2), transparent 34rem),
    radial-gradient(ellipse at 12% 45%, rgba(95, 61, 184, 0.32), transparent 28rem),
    linear-gradient(135deg, #050509 0%, #101527 52%, #130b28 100%);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

@media (max-width: 820px) {
  .nav-wrap,
  .hero__grid,
  .content-layout,
  article.single-book,
  .bookstore-intro,
  .bookstore-cta,
  .contact-panel {
    grid-template-columns: 1fr;
  }

  .nav-wrap {
    align-items: flex-start;
    flex-direction: column;
  }

  .primary-menu {
    justify-content: flex-start;
  }

  .social-links--header,
  .social-links--footer {
    justify-content: flex-start;
  }

  .bookstore-cta .button {
    width: 100%;
  }

  .book-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  }

  .book-grid--scroll {
    padding-inline: 6px;
  }

  .book-grid--scroll .book-card {
    flex-basis: 150px;
  }

  .shelf-arrow {
    display: none;
  }

  .book-card {
    width: 100%;
    max-width: 220px;
  }

  .site-footer__inner {
    flex-direction: column;
  }

  .site-footer__contact {
    justify-items: start;
    text-align: left;
  }
}
