/*
Theme Name: Sofia Hard
Theme URI: https://sofiahard.com
Author: Sofia Hard
Description: Custom theme for sofiahard.com
Version: 2.9
*/

:root, body {
  --sh-bg: #0a0508;
  --sh-dark: #190f14;
  --sh-purple: #623e65;
  --sh-purple-light: #8a5d8e;
  --sh-pink: #700f4e;
  --sh-burgundy: #4a0a2e;
  --sh-gold: #c9a96e;
  --sh-text: #c4b5c9;
  --sh-text-light: #e8dde8;
  --sh-white: #ffffff;
  --sh-red: #fe0000;
  --sh-serif: 'Cormorant Garamond', Georgia, serif;
  --sh-sans: 'Montserrat', sans-serif;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--sh-bg);
  font-family: var(--sh-sans);
  line-height: 1.6;
  overflow-x: hidden;
}

/* TOP NAVIGATION */
.sh-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 20px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.4s ease;
  background: transparent;
}

.sh-nav.scrolled {
  background: rgba(10, 5, 8, 0.95);
  backdrop-filter: blur(10px);
  padding: 14px 40px;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.sh-nav-logo {
  font-family: var(--sh-serif);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--sh-white);
  text-decoration: none;
  letter-spacing: 2px;
  transition: color 0.3s ease;
}

.sh-nav-logo span {
  color: var(--sh-purple-light);
  font-style: italic;
  font-weight: 500;
}

.sh-nav-logo:hover {
  color: var(--sh-gold);
}

.sh-nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.sh-nav-links li {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sh-nav-links a {
  font-family: var(--sh-sans);
  font-size: 0.7rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--sh-text);
  text-decoration: none;
  transition: color 0.3s ease;
  position: relative;
}

.sh-nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--sh-gold);
  transition: width 0.3s ease;
}

.sh-nav-links a:hover {
  color: var(--sh-gold);
}

.sh-nav-links a:hover::after {
  width: 100%;
}

/* DROPDOWN SUBMENUS (e.g. "My Books" > "7 Rules to Ruin a Man") */

/* top-level items need position:relative so the dropdown can anchor to them */
.sh-nav-links > li {
  position: relative;
}

/* small down-arrow after any top-level item that has children */
.sh-nav-links > li.menu-item-has-children > a::before {
  content: '\25BE'; /* ▾ */
  display: inline-block;
  margin-left: 6px;
  font-size: 0.6rem;
  color: var(--sh-gold);
  vertical-align: middle;
  transition: transform 0.3s ease;
}

.sh-nav-links > li.menu-item-has-children:hover > a::before {
  transform: rotate(180deg);
}

.sh-nav-links .sub-menu {
  list-style: none;
  margin: 0;
  padding: 12px 0;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translate(-50%, 10px);
  min-width: 240px;
  background: rgba(10, 5, 8, 0.97);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(201, 169, 110, 0.18);
  border-radius: 4px;
  box-shadow: 0 24px 50px -12px rgba(0, 0, 0, 0.7);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
  z-index: 200;
}

/* thin gold accent along the top edge of every dropdown panel */
.sh-nav-links .sub-menu::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, var(--sh-gold) 50%, transparent 100%);
  opacity: 0.6;
}

.sh-nav-links > li:hover > .sub-menu,
.sh-nav-links > li:focus-within > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 4px);
}

/* Added by JS when a dropdown would otherwise run past the right edge
   of the screen — anchors it to the right instead of centering it. */
.sh-nav-links > li > .sub-menu.sh-flyout-left {
  left: auto;
  right: 0;
  transform: translateY(10px);
}

.sh-nav-links > li:hover > .sub-menu.sh-flyout-left,
.sh-nav-links > li:focus-within > .sub-menu.sh-flyout-left {
  transform: translateY(4px);
}

.sh-nav-links .sub-menu li {
  padding: 0;
}

.sh-nav-links .sub-menu a {
  display: block;
  padding: 11px 26px;
  font-size: 0.68rem;
  letter-spacing: 1.5px;
  white-space: nowrap;
  color: var(--sh-text);
  transition: color 0.25s ease, background 0.25s ease, padding-left 0.25s ease;
}

.sh-nav-links .sub-menu a::after {
  display: none; /* no underline animation inside dropdowns, keeps it clean */
}

.sh-nav-links .sub-menu a:hover {
  color: var(--sh-gold);
  background: rgba(201, 169, 110, 0.07);
  padding-left: 30px;
}

/* thin divider between items for a bit more structure */
.sh-nav-links .sub-menu li:not(:last-child) > a {
  border-bottom: 1px solid rgba(201, 169, 110, 0.07);
}

/* Nested submenus (e.g. "7 Rules to Ruin a Man" > individual books)
   fly out sideways instead of dropping further down, so they don't
   run off the bottom of the screen. */

.sh-nav-links .sub-menu li {
  position: relative;
}

.sh-nav-links .sub-menu li.menu-item-has-children > a::after {
  content: '\25B8'; /* ▸ */
  float: right;
  margin-left: 16px;
  color: var(--sh-gold);
  transition: transform 0.25s ease;
}

.sh-nav-links .sub-menu li.menu-item-has-children:hover > a::after {
  transform: translateX(3px);
}

.sh-nav-links .sub-menu .sub-menu {
  top: -13px; /* aligns with the top of the parent item, accounting for the 12px padding */
  left: 100%;
  transform: translate(10px, 0);
}

/* Added by JS when a nested flyout would run past the right edge —
   flips it to open to the left of its parent item instead. */
.sh-nav-links .sub-menu .sub-menu.sh-flyout-left {
  left: auto;
  right: 100%;
  transform: translate(-10px, 0);
}

.sh-nav-links .sub-menu li:hover > .sub-menu,
.sh-nav-links .sub-menu li:focus-within > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translate(4px, 0);
}

.sh-nav-links .sub-menu li:hover > .sub-menu.sh-flyout-left,
.sh-nav-links .sub-menu li:focus-within > .sub-menu.sh-flyout-left {
  transform: translate(-4px, 0);
}

.sh-nav-cta {
  padding: 10px 24px;
  font-family: var(--sh-sans);
  font-size: 0.65rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  background: var(--sh-pink);
  color: var(--sh-white);
  border: none;
  text-decoration: none;
  transition: all 0.3s ease;
}

.sh-nav-cta:hover {
  background: var(--sh-burgundy);
}

.sh-nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  z-index: 101;
}

.sh-nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--sh-gold);
  transition: all 0.3s ease;
}

.sh-nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.sh-nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.sh-nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* HERO SECTION */
.sh-hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background: linear-gradient(135deg, #0a0508 0%, #1a0a1e 50%, #0a0508 100%);
}

.sh-hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.15;
  filter: grayscale(40%);
}

.sh-hero.sh-hero--has-image::before {
  background-image: var(--sh-hero-image);
}

.sh-hero::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(ellipse at center, transparent 0%, rgba(10,5,8,0.8) 70%, rgba(10,5,8,1) 100%);
}

.sh-hero-content {
  position: relative;
  z-index: 2;
  padding: 60px 24px;
  max-width: 800px;
}

.sh-hero-tagline {
  font-family: var(--sh-sans);
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 6px;
  text-transform: uppercase;
  color: var(--sh-gold);
  margin-bottom: 24px;
  opacity: 0;
  animation: fadeInDown 1s ease 0.3s forwards;
}

.sh-hero h1 {
  font-family: var(--sh-serif);
  font-size: clamp(3rem, 8vw, 5.5rem);
  font-weight: 600;
  color: var(--sh-white);
  margin: 0 0 12px;
  line-height: 1;
  letter-spacing: 2px;
  opacity: 0;
  animation: fadeInDown 1s ease 0.5s forwards;
}

.sh-hero h1 span {
  color: var(--sh-purple-light);
  font-style: italic;
  font-weight: 500;
}

.sh-hero-sub {
  font-family: var(--sh-serif);
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  font-style: italic;
  color: var(--sh-text);
  margin: 0 0 40px;
  opacity: 0;
  animation: fadeInDown 1s ease 0.7s forwards;
}

.sh-hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
  opacity: 0;
  animation: fadeInDown 1s ease 0.9s forwards;
}

.sh-btn {
  display: inline-block;
  padding: 14px 36px;
  font-family: var(--sh-sans);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid var(--sh-gold);
  color: var(--sh-gold);
  background: transparent;
  transition: all 0.4s ease;
  cursor: pointer;
}

.sh-btn:hover {
  background: var(--sh-gold);
  color: var(--sh-bg);
  transform: translateY(-2px);
}

.sh-btn--primary {
  background: var(--sh-pink);
  border-color: var(--sh-pink);
  color: var(--sh-white);
}

.sh-btn--primary:hover {
  background: var(--sh-burgundy);
  border-color: var(--sh-burgundy);
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* SECTION TITLES */
.sh-section-title {
  text-align: center;
  padding: 60px 24px 24px;
}

.sh-section-title h2 {
  font-family: var(--sh-serif);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 500;
  color: var(--sh-white);
  margin: 0 0 8px;
}

.sh-section-title p {
  font-family: var(--sh-sans);
  font-size: 0.75rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--sh-gold);
  margin: 0;
}

.sh-section-title p a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid rgba(201, 169, 110, 0.3);
  padding-bottom: 2px;
  transition: border-color 0.3s ease, opacity 0.3s ease;
}

.sh-section-title p a:hover {
  border-color: var(--sh-gold);
  opacity: 0.8;
}

.sh-divider {
  width: 60px;
  height: 1px;
  background: var(--sh-gold);
  margin: 16px auto 0;
  position: relative;
}

.sh-divider::before,
.sh-divider::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 4px;
  height: 4px;
  background: var(--sh-gold);
  border-radius: 50%;
  transform: translateY(-50%);
}

.sh-divider::before { left: -12px; }
.sh-divider::after { right: -12px; }

/* ABOUT SECTION */
.sh-about {
  background: var(--sh-dark);
  padding: 0 24px 80px;
}

.sh-about-wrap {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  padding: 40px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(201, 169, 110, 0.15);
  border-radius: 4px;
}

.sh-about-wrap p {
  font-family: var(--sh-serif);
  font-size: 1.15rem;
  line-height: 1.9;
  color: var(--sh-text-light);
  font-style: italic;
  margin: 0 0 20px;
}

.sh-about-wrap p:last-child {
  margin-bottom: 0;
}

.sh-about-banner {
  width: 100%;
  max-width: 100%;
  height: 280px;
  object-fit: cover;
  border-radius: 4px;
  margin-top: 40px;
  display: block;
  filter: brightness(0.85) contrast(1.1);
}

/* FEATURED RELEASE */
.sh-featured {
  background: linear-gradient(180deg, var(--sh-dark) 0%, var(--sh-bg) 100%);
  padding: 0 24px 80px;
}

.sh-featured-book {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 60px;
  max-width: 1000px;
  margin: 0 auto;
}

.sh-featured-cover {
  flex: 0 0 auto;
  position: relative;
}

.sh-featured-cover img {
  width: 300px;
  height: auto;
  border-radius: 4px;
  box-shadow: 0 30px 60px -15px rgba(46, 90, 76, 0.7), 0 0 0 1px rgba(201, 169, 110, 0.1);
  transition: all 0.5s ease;
  display: block;
}

.sh-featured-cover:hover img {
  box-shadow: 0 30px 70px -10px rgba(254, 0, 0, 0.5), 0 0 0 1px rgba(201, 169, 110, 0.3);
  transform: translateY(-4px) scale(1.01);
}

.sh-featured-info {
  flex: 1;
  min-width: 280px;
  max-width: 450px;
}

.sh-featured-badge {
  display: inline-block;
  font-family: var(--sh-sans);
  font-size: 0.7rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--sh-gold);
  border: 1px solid var(--sh-gold);
  padding: 6px 16px;
  margin-bottom: 20px;
}

.sh-featured-badge--new {
  background: var(--sh-gold);
  color: var(--sh-bg);
}

.sh-featured-info h3 {
  font-family: var(--sh-serif);
  font-size: 2.2rem;
  font-weight: 600;
  color: var(--sh-white);
  margin: 0 0 12px;
  line-height: 1.1;
}

.sh-featured-info .sh-series-label {
  font-family: var(--sh-sans);
  font-size: 0.85rem;
  color: var(--sh-purple-light);
  margin-bottom: 20px;
  font-style: italic;
}

.sh-featured-info p {
  font-family: var(--sh-serif);
  font-size: 1.05rem;
  color: var(--sh-text);
  line-height: 1.7;
  margin-bottom: 28px;
}

/* BOOK GRID SECTIONS */
.sh-books-section {
  background: var(--sh-bg);
  padding: 0 24px 80px;
}

.sh-books-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 40px;
  max-width: 1000px;
  margin: 0 auto;
  padding: 40px 0;
}

.sh-book-card {
  position: relative;
  text-align: center;
}

.sh-book-card a {
  display: block;
  text-decoration: none;
}

.sh-book-card img {
  width: 100%;
  max-width: 240px;
  height: auto;
  margin: 0 auto;
  border-radius: 3px;
  transition: all 0.5s ease;
  display: block;
}

.sh-book-card:hover img {
  transform: translateY(-6px);
}

.sh-book-card .sh-book-title {
  font-family: var(--sh-serif);
  font-size: 1.1rem;
  color: var(--sh-text-light);
  margin-top: 14px;
  font-weight: 500;
}

.sh-book-card .sh-book-series {
  font-family: var(--sh-sans);
  font-size: 0.7rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--sh-gold);
  margin-top: 4px;
}

.sh-book-card--green img { box-shadow: 0 15px 40px -10px rgba(46, 90, 76, 0.5); }
.sh-book-card--green:hover img { box-shadow: 0 20px 50px -10px rgba(46, 90, 76, 0.7); }

.sh-book-card--blue img { box-shadow: 0 15px 40px -10px rgba(11, 49, 111, 0.5); }
.sh-book-card--blue:hover img { box-shadow: 0 20px 50px -10px rgba(11, 49, 111, 0.7); }

.sh-book-card--gold img { box-shadow: 0 15px 40px -10px rgba(201, 169, 110, 0.5); }
.sh-book-card--gold:hover img { box-shadow: 0 20px 50px -10px rgba(201, 169, 110, 0.7); }

.sh-book-card--bronze img { box-shadow: 0 15px 40px -10px rgba(163, 88, 60, 0.5); }
.sh-book-card--bronze:hover img { box-shadow: 0 20px 50px -10px rgba(163, 88, 60, 0.7); }

.sh-book-card--purple img { box-shadow: 0 15px 40px -10px rgba(69, 11, 112, 0.5); }
.sh-book-card--purple:hover img { box-shadow: 0 20px 50px -10px rgba(69, 11, 112, 0.7); }

.sh-book-card--sage img { box-shadow: 0 15px 40px -10px rgba(16, 140, 22, 0.5); }
.sh-book-card--sage:hover img { box-shadow: 0 20px 50px -10px rgba(16, 140, 22, 0.7); }

/* STANDALONE SHOWCASE */
.sh-standalone {
  background: linear-gradient(180deg, var(--sh-bg) 0%, var(--sh-dark) 50%, var(--sh-bg) 100%);
  padding: 0 24px 80px;
}

.sh-standalone-intro {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 20px;
  padding: 0 24px;
}

.sh-standalone-intro p {
  font-family: var(--sh-serif);
  font-size: 1.1rem;
  font-style: italic;
  color: var(--sh-text);
  line-height: 1.7;
}

.sh-standalone-showcase {
  max-width: 1000px;
  margin: 0 auto;
  padding: 40px 0;
}

.sh-standalone-item {
  display: flex;
  align-items: center;
  gap: 50px;
  margin-bottom: 80px;
  position: relative;
}

.sh-standalone-item:last-child {
  margin-bottom: 0;
}

.sh-standalone-item:nth-child(even) {
  flex-direction: row-reverse;
}

.sh-standalone-cover {
  flex: 0 0 280px;
  position: relative;
}

.sh-standalone-cover a {
  display: block;
}

.sh-standalone-cover img {
  width: 100%;
  height: auto;
  border-radius: 4px;
  transition: all 0.5s ease;
  display: block;
}

.sh-standalone-item:nth-child(odd) .sh-standalone-cover img {
  box-shadow: -20px 30px 50px -15px rgba(163, 88, 60, 0.5), 0 0 0 1px rgba(201, 169, 110, 0.1);
}

.sh-standalone-item:nth-child(even) .sh-standalone-cover img {
  box-shadow: 20px 30px 50px -15px rgba(163, 88, 60, 0.5), 0 0 0 1px rgba(201, 169, 110, 0.1);
}

.sh-standalone-cover:hover img {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 30px 60px -10px rgba(254, 0, 0, 0.4), 0 0 0 1px rgba(201, 169, 110, 0.3) !important;
}

.sh-standalone-info {
  flex: 1;
  min-width: 260px;
}

.sh-standalone-tag {
  display: inline-block;
  font-family: var(--sh-sans);
  font-size: 0.7rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--sh-gold);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(201, 169, 110, 0.3);
}

.sh-standalone-info h3 {
  font-family: var(--sh-serif);
  font-size: 2.4rem;
  font-weight: 600;
  color: var(--sh-white);
  margin: 0 0 16px;
  line-height: 1.1;
}

.sh-standalone-info .sh-standalone-meta {
  font-family: var(--sh-sans);
  font-size: 0.75rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--sh-purple-light);
  margin-bottom: 20px;
}

.sh-standalone-info p {
  font-family: var(--sh-serif);
  font-size: 1.05rem;
  color: var(--sh-text);
  line-height: 1.8;
  margin-bottom: 24px;
  max-width: 420px;
}

.sh-standalone-item:nth-child(even) .sh-standalone-info {
  text-align: right;
}

.sh-standalone-item:nth-child(even) .sh-standalone-info p {
  margin-left: auto;
}

.sh-standalone-item::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -40px;
  transform: translateX(-50%);
  width: 1px;
  height: 40px;
  background: linear-gradient(180deg, rgba(201, 169, 110, 0.3), transparent);
}

.sh-standalone-item:last-child::after {
  display: none;
}

/* COMING SOON */
.sh-coming-soon {
  background: linear-gradient(180deg, var(--sh-bg) 0%, var(--sh-dark) 100%);
  padding: 0 24px 80px;
}

.sh-coming-soon-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 0;
}

.sh-coming-soon .sh-book-card img {
  filter: brightness(0.6) grayscale(0.3);
  opacity: 0.8;
  transition: all 0.5s ease;
}

.sh-coming-soon .sh-book-card:hover img {
  filter: brightness(0.8) grayscale(0);
  opacity: 1;
}

.sh-coming-soon .sh-book-card .sh-book-title {
  color: var(--sh-purple-light);
}

.sh-soon-badge {
  display: inline-block;
  font-family: var(--sh-sans);
  font-size: 0.65rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--sh-gold);
  margin-top: 8px;
  padding: 4px 12px;
  border: 1px solid rgba(201, 169, 110, 0.3);
  background: rgba(201, 169, 110, 0.05);
}

/* DOMINANCE BANNER */
.sh-dominance {
  position: relative;
  padding: 100px 40px;
  text-align: center;
  overflow: hidden;
  background: #111111;
}

.sh-dominance::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.3;
  filter: grayscale(50%) contrast(1.2);
}

.sh-dominance.sh-dominance--has-image::before {
  background-image: var(--sh-dominance-image);
}

.sh-dominance::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(180deg, rgba(10,5,8,0.7) 0%, rgba(10,5,8,0.5) 50%, rgba(10,5,8,0.8) 100%);
}

.sh-dominance-content {
  position: relative;
  z-index: 2;
}

.sh-dominance h2 {
  font-family: var(--sh-serif);
  font-size: clamp(1.8rem, 5vw, 3.2rem);
  font-weight: 600;
  color: var(--sh-white);
  letter-spacing: 4px;
  margin: 0;
  text-transform: uppercase;
  line-height: 1.2;
}

.sh-dominance h2 span {
  color: var(--sh-gold);
  font-style: italic;
  font-weight: 500;
}

/* NEWSLETTER */
.sh-newsletter {
  background: var(--sh-dark);
  padding: 80px 24px;
  text-align: center;
}

.sh-newsletter-inner {
  max-width: 600px;
  margin: 0 auto;
}

.sh-newsletter h2 {
  font-family: var(--sh-serif);
  font-size: 2rem;
  font-weight: 600;
  color: var(--sh-white);
  margin: 0 0 16px;
}

.sh-newsletter h2 span {
  color: var(--sh-purple-light);
  font-style: italic;
  font-weight: 500;
}

.sh-newsletter p {
  font-family: var(--sh-serif);
  font-size: 1.1rem;
  font-style: italic;
  color: var(--sh-text);
  margin-bottom: 32px;
}

.sh-newsletter-form {
  display: flex;
  gap: 12px;
  max-width: 500px;
  margin: 0 auto;
  flex-wrap: wrap;
  justify-content: center;
}

.sh-newsletter-form input[type="text"],
.sh-newsletter-form input[type="email"] {
  flex: 1;
  min-width: 250px;
  padding: 14px 20px;
  font-family: var(--sh-sans);
  font-size: 0.9rem;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(201, 169, 110, 0.3);
  color: var(--sh-white);
  border-radius: 2px;
  outline: none;
  transition: border-color 0.3s ease;
}

.sh-newsletter-form input[type="text"]:focus,
.sh-newsletter-form input[type="email"]:focus {
  border-color: var(--sh-gold);
}

.sh-newsletter-form input[type="text"]::placeholder,
.sh-newsletter-form input[type="email"]::placeholder {
  color: var(--sh-text);
}

.sh-newsletter-form button {
  padding: 14px 36px;
  font-family: var(--sh-sans);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  background: var(--sh-pink);
  color: var(--sh-white);
  border: 1px solid var(--sh-pink);
  cursor: pointer;
  transition: all 0.4s ease;
}

.sh-newsletter-form button:hover {
  background: var(--sh-burgundy);
  border-color: var(--sh-burgundy);
  transform: translateY(-2px);
}

.sh-newsletter .sh-newsletter-disclaimer {
  font-family: var(--sh-sans);
  font-size: 0.7rem;
  color: var(--sh-text);
  margin-top: 16px;
  opacity: 0.6;
}

/* FOOTER */
.sh-footer {
  background: var(--sh-bg);
  padding: 48px 24px;
  text-align: center;
  border-top: 1px solid rgba(201, 169, 110, 0.1);
}

.sh-footer-social {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 32px;
}

.sh-footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  transition: transform 0.3s ease, opacity 0.3s ease;
  opacity: 0.8;
}

.sh-footer-social a:hover {
  transform: translateY(-3px);
  opacity: 1;
}

.sh-footer-social img {
  width: 28px;
  height: 28px;
}

.sh-footer-links {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.sh-footer-links a {
  font-family: var(--sh-sans);
  font-size: 0.75rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--sh-text);
  text-decoration: none;
  transition: color 0.3s ease;
}

.sh-footer-links a:hover {
  color: var(--sh-gold);
}

.sh-footer-legal {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 24px;
}

.sh-footer-legal a {
  font-family: var(--sh-sans);
  font-size: 0.65rem;
  color: var(--sh-text);
  opacity: 0.6;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 2px;
  transition: opacity 0.3s ease, color 0.3s ease;
}

.sh-footer-legal a:hover {
  opacity: 1;
  color: var(--sh-gold);
}

.sh-footer-copy {
  font-family: var(--sh-serif);
  font-size: 0.9rem;
  font-style: italic;
  color: var(--sh-text);
  opacity: 0.6;
}

/* SCROLL HINT */
.sh-scroll-hint {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: var(--sh-gold);
  font-size: 1.5rem;
  opacity: 0;
  animation: fadeInDown 1s ease 1.5s forwards, bounce 2s infinite 2.5s;
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(10px); }
}

/* Basic content styling for non-homepage pages (about, blog posts etc.) */
main {
  padding-top: 100px;
  max-width: 800px;
  margin: 0 auto 80px;
  padding-left: 24px;
  padding-right: 24px;
}

main h1 {
  font-family: var(--sh-serif);
  color: var(--sh-white);
  font-size: clamp(2rem, 5vw, 3rem);
}

/* !important because the block editor sometimes writes an inline color
   style directly onto headings, which would otherwise override this
   regardless of specificity — same reasoning as .sh-post-content. */
main h2 { color: var(--sh-gold) !important; }
main h3, main h4, main h5, main h6 { color: var(--sh-purple-light) !important; }

main h2, main h3, main h4, main h5, main h6 {
  font-family: var(--sh-serif) !important;
  margin: 32px 0 14px;
  line-height: 1.3;
}

main ul, main ol {
  color: var(--sh-text-light);
  font-family: var(--sh-serif);
  font-size: 1.05rem;
  line-height: 1.8;
  padding-left: 24px;
  margin: 0 0 20px;
}

main li {
  margin-bottom: 8px;
}

main, main p {
  font-family: var(--sh-serif);
  color: var(--sh-text-light);
  font-size: 1.1rem;
  line-height: 1.8;
}

main a {
  color: var(--sh-gold);
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .sh-nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: rgba(10, 5, 8, 0.98);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 28px;
    transition: right 0.4s ease;
    padding: 24px;
  }

  .sh-nav-links.active {
    right: 0;
  }

  .sh-nav-toggle {
    display: flex;
  }

  .sh-nav-cta {
    margin-top: 20px;
  }

  /* On mobile, hover doesn't work well on touch — show submenus as a
     stacked list under their parent instead of a floating dropdown */
  .sh-nav-links .sub-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    background: transparent;
    border: none;
    box-shadow: none;
    min-width: 0;
    padding: 10px 0 0;
    text-align: center;
  }

  .sh-nav-links .sub-menu a {
    padding: 8px 0;
    font-size: 0.62rem;
    color: var(--sh-purple-light);
  }

  .sh-nav-links > li.menu-item-has-children > a::before {
    display: none; /* no caret needed since submenu is always visible on mobile */
  }
}

@media (max-width: 768px) {
  .sh-nav {
    padding: 16px 24px;
  }
  .sh-nav.scrolled {
    padding: 12px 24px;
  }
  .sh-hero {
    min-height: 70vh;
  }
  .sh-about-wrap {
    padding: 24px;
  }
  .sh-about-wrap p {
    font-size: 1rem;
  }
  .sh-featured-book {
    flex-direction: column;
    gap: 30px;
  }
  .sh-featured-cover img {
    width: 220px;
  }
  .sh-featured-info {
    text-align: center;
  }
  .sh-books-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 24px;
  }
  .sh-standalone-item,
  .sh-standalone-item:nth-child(even) {
    flex-direction: column;
    gap: 24px;
    text-align: center;
  }
  .sh-standalone-item:nth-child(even) .sh-standalone-info {
    text-align: center;
  }
  .sh-standalone-item:nth-child(even) .sh-standalone-info p {
    margin-left: 0;
  }
  .sh-standalone-cover {
    flex: 0 0 auto;
    width: 220px;
  }
  .sh-standalone-info p {
    max-width: 100%;
    margin: 0 auto 24px;
  }
  .sh-standalone-info h3 {
    font-size: 1.8rem;
  }
  .sh-standalone-item::after {
    left: 50%;
  }
  .sh-coming-soon-grid {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 24px;
  }
  .sh-book-card img {
    max-width: 180px;
  }
  .sh-dominance {
    padding: 60px 24px;
  }
  .sh-newsletter {
    padding: 60px 24px;
  }
  .sh-newsletter-form {
    flex-direction: column;
  }
  .sh-newsletter-form button {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .sh-books-grid,
  .sh-coming-soon-grid {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }
  .sh-book-card img {
    max-width: 140px;
  }
  .sh-book-card .sh-book-title {
    font-size: 0.95rem;
  }
  .sh-footer-links {
    gap: 16px;
  }
  .sh-footer-links a {
    font-size: 0.65rem;
    letter-spacing: 2px;
  }
  .sh-footer-legal {
    gap: 16px;
  }
}

/* ============================================================
   BOOK PAGES
   ============================================================ */

/* TOP BANNER */
.sh-top-banner {
  position: relative;
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--sh-bg);
}

.sh-top-banner::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: url('https://sofiahard.com/wp-content/uploads/2025/08/explore-the-world-of-kinky-play-top-view-of-bdsm-2025-01-10-05-21-18-utc-scaled.jpg');
  background-size: cover;
  background-position: center 40%;
  opacity: 0.12;
  filter: grayscale(40%);
}

.sh-top-banner::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(90deg, rgba(10,5,8,0.8) 0%, rgba(10,5,8,0.4) 50%, rgba(10,5,8,0.8) 100%);
}

.sh-top-banner-icon {
  position: relative;
  z-index: 1;
  display: block;
  width: 170px;
  height: 170px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid rgba(201, 169, 110, 0.3);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
  transition: border-color 0.3s ease, transform 0.3s ease;
}

.sh-top-banner-icon:hover {
  border-color: var(--sh-gold);
  transform: scale(1.03);
}

.sh-top-banner-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* BOOK HERO */
.sh-book-hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 10px 48px 40px;
  position: relative;
  overflow: hidden;
  background: var(--sh-bg);
}

.sh-book-hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(98, 62, 101, 0.25) 0%, transparent 60%),
              radial-gradient(ellipse at 70% 80%, rgba(112, 15, 78, 0.2) 0%, transparent 50%);
  pointer-events: none;
}

.sh-book-hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: flex-start;
  gap: 60px;
  width: 100%;
  position: relative;
  z-index: 1;
}

.sh-book-cover-wrap {
  flex-shrink: 0;
  width: 320px;
}

.sh-book-cover {
  width: 100%;
  height: auto;
  border-radius: 4px;
  box-shadow: 0 40px 80px -20px rgba(112, 15, 78, 0.5), 0 0 0 1px rgba(201, 169, 110, 0.15);
  transition: transform 0.5s ease, box-shadow 0.5s ease;
  display: block;
}

.sh-book-cover:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 50px 90px -15px rgba(254, 0, 0, 0.4), 0 0 0 1px rgba(201, 169, 110, 0.25);
}

.sh-book-info {
  flex: 1;
  padding-top: 10px;
}

.sh-book-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}

.sh-book-series-badge {
  display: inline-block;
  font-family: var(--sh-sans);
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--sh-gold);
  text-transform: uppercase;
  letter-spacing: 4px;
  padding: 6px 14px;
  border: 1px solid rgba(201, 169, 110, 0.3);
  border-radius: 2px;
}

.sh-book-rank-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--sh-sans);
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--sh-white);
  background: linear-gradient(135deg, var(--sh-pink) 0%, var(--sh-burgundy) 100%);
  padding: 6px 14px;
  border-radius: 2px;
  letter-spacing: 1px;
}

.sh-book-rank-badge svg {
  width: 14px;
  height: 14px;
  fill: var(--sh-gold);
}

.sh-book-title {
  font-family: var(--sh-serif);
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 600;
  color: var(--sh-white);
  margin: 0 0 8px;
  line-height: 1.1;
  letter-spacing: 2px;
}

.sh-book-author {
  font-family: var(--sh-sans);
  font-size: 0.7rem;
  font-weight: 400;
  color: var(--sh-gold);
  text-transform: uppercase;
  letter-spacing: 4px;
  margin: 0 0 10px;
}

.sh-book-author a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid rgba(201, 169, 110, 0.3);
  padding-bottom: 1px;
  transition: border-color 0.3s ease;
}

.sh-book-author a:hover {
  border-color: var(--sh-gold);
}

.sh-book-tagline {
  font-family: var(--sh-sans);
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--sh-purple-light);
  text-transform: uppercase;
  letter-spacing: 3px;
  margin: 0 0 20px;
}

.sh-book-summary {
  font-family: var(--sh-serif);
  font-size: 1.05rem;
  font-style: italic;
  color: var(--sh-text);
  line-height: 1.7;
  margin: 0 0 28px;
  max-width: 540px;
}

.sh-book-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 28px;
}

.sh-book-meta-item {
  font-family: var(--sh-sans);
  font-size: 0.7rem;
  color: var(--sh-text);
  text-transform: uppercase;
  letter-spacing: 2px;
}

.sh-book-meta-item strong {
  color: var(--sh-gold);
  font-weight: 500;
}

.sh-book-rating {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
}

.sh-book-rating-stars {
  color: var(--sh-gold);
  font-size: 1rem;
  letter-spacing: 2px;
}

.sh-book-rating-text {
  font-family: var(--sh-sans);
  font-size: 0.75rem;
  color: var(--sh-text);
}

.sh-book-rating-text a {
  color: var(--sh-purple-light);
  text-decoration: none;
  transition: color 0.3s ease;
}

.sh-book-rating-text a:hover {
  color: var(--sh-gold);
}

.sh-book-hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

@media (max-width: 768px) {
  .sh-book-hero {
    padding: 100px 24px 60px;
    min-height: auto;
  }
  .sh-book-hero-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .sh-book-cover-wrap {
    width: 240px;
  }
  .sh-book-badges {
    justify-content: center;
  }
  .sh-book-summary {
    max-width: 100%;
  }
  .sh-book-meta {
    justify-content: center;
  }
  .sh-book-hero-cta {
    justify-content: center;
  }
}

/* BOOK BLURB */
.sh-book-blurb {
  padding: 40px 24px;
  background: linear-gradient(180deg, var(--sh-bg) 0%, var(--sh-dark) 100%);
}

.sh-book-blurb-inner {
  max-width: 800px;
  margin: 0 auto;
}

.sh-book-blurb-inner p {
  font-family: var(--sh-serif);
  font-size: 1.1rem;
  font-style: italic;
  color: var(--sh-text-light);
  line-height: 1.9;
  margin: 0 0 24px;
}

.sh-book-blurb-inner p:last-child {
  margin-bottom: 0;
}

.sh-book-blurb-inner strong {
  color: var(--sh-white);
  font-weight: 600;
  font-style: normal;
}

/* Divider used inside the blurb (line - dot - line). Named separately
   from .sh-divider (used elsewhere on the site) since it's a different
   visual style and we don't want the two to conflict. */
.sh-blurb-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 40px 0;
}

.sh-blurb-divider::before,
.sh-blurb-divider::after {
  content: '';
  width: 60px;
  height: 1px;
  background: var(--sh-gold);
}

.sh-blurb-divider-dot {
  width: 4px;
  height: 4px;
  background: var(--sh-gold);
  border-radius: 50%;
}

/* TRIGGER WARNINGS */
.sh-book-tw {
  padding: 20px 24px 40px;
  background: var(--sh-dark);
}

.sh-book-tw-inner {
  max-width: 700px;
  margin: 0 auto;
}

.sh-tw-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 28px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(201, 169, 110, 0.2);
  border-radius: 4px;
  cursor: pointer;
  transition: border-color 0.3s ease, background 0.3s ease;
}

.sh-tw-toggle:hover {
  border-color: rgba(201, 169, 110, 0.4);
  background: rgba(255, 255, 255, 0.04);
}

.sh-tw-toggle-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.sh-tw-toggle-icon {
  width: 24px;
  height: 24px;
  color: var(--sh-gold);
}

.sh-tw-toggle-text {
  font-family: var(--sh-sans);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--sh-text-light);
  text-transform: uppercase;
  letter-spacing: 3px;
}

.sh-tw-toggle-arrow {
  width: 20px;
  height: 20px;
  color: var(--sh-gold);
  transition: transform 0.3s ease;
}

.sh-tw-toggle.active .sh-tw-toggle-arrow {
  transform: rotate(180deg);
}

.sh-tw-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid transparent;
  border-top: none;
  border-radius: 0 0 4px 4px;
}

.sh-tw-content.active {
  max-height: 800px;
  padding: 28px;
  border-color: rgba(201, 169, 110, 0.15);
}

.sh-tw-content-inner {
  font-family: var(--sh-sans);
  font-size: 0.85rem;
  color: var(--sh-text);
  line-height: 1.9;
}

.sh-tw-content-inner strong {
  color: var(--sh-text-light);
  font-weight: 500;
}

.sh-tw-content-inner p {
  margin: 0 0 14px;
}

.sh-tw-content-inner p:last-child {
  margin-bottom: 0;
}

.sh-tw-content-inner h1,
.sh-tw-content-inner h2,
.sh-tw-content-inner h3,
.sh-tw-content-inner h4 {
  font-family: var(--sh-sans);
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--sh-gold);
  text-transform: uppercase;
  letter-spacing: 2.5px;
  margin: 20px 0 10px;
}

.sh-tw-content-inner h1:first-child,
.sh-tw-content-inner h2:first-child,
.sh-tw-content-inner h3:first-child,
.sh-tw-content-inner h4:first-child {
  margin-top: 0;
}

.sh-tw-content-inner ul,
.sh-tw-content-inner ol {
  margin: 0 0 14px;
  padding-left: 20px;
}

.sh-tw-content-inner li {
  margin-bottom: 6px;
}

/* BOOK DETAILS */
.sh-book-details {
  padding: 40px 24px;
  background: var(--sh-bg);
}

.sh-book-details-inner {
  max-width: 600px;
  margin: 0 auto;
}

.sh-details-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.sh-detail-item {
  text-align: center;
  padding: 20px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(201, 169, 110, 0.1);
  border-radius: 4px;
}

.sh-detail-label {
  font-family: var(--sh-sans);
  font-size: 0.65rem;
  color: var(--sh-purple-light);
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 8px;
  display: block;
}

.sh-detail-value {
  font-family: var(--sh-serif);
  font-size: 1.1rem;
  color: var(--sh-white);
}

@media (max-width: 480px) {
  .sh-details-grid {
    grid-template-columns: 1fr;
  }
}

/* FINAL CTA */
.sh-final-cta {
  padding: 60px 48px;
  background: linear-gradient(180deg, var(--sh-dark) 0%, var(--sh-bg) 100%);
  position: relative;
  overflow: hidden;
}

.sh-final-cta::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(ellipse at 80% 50%, rgba(112, 15, 78, 0.15) 0%, transparent 50%);
  pointer-events: none;
}

.sh-final-cta-inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 60px;
  position: relative;
  z-index: 1;
}

.sh-final-cta-cover {
  flex-shrink: 0;
  width: 200px;
}

.sh-final-cta-cover img {
  width: 100%;
  height: auto;
  border-radius: 4px;
  box-shadow: 0 30px 60px -15px rgba(112, 15, 78, 0.6), 0 0 0 1px rgba(201, 169, 110, 0.15);
  display: block;
}

.sh-final-cta-content {
  flex: 1;
}

.sh-final-cta-label {
  font-family: var(--sh-sans);
  font-size: 0.65rem;
  font-weight: 500;
  color: var(--sh-gold);
  text-transform: uppercase;
  letter-spacing: 4px;
  margin: 0 0 12px;
}

.sh-final-cta-title {
  font-family: var(--sh-serif);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 600;
  color: var(--sh-white);
  margin: 0 0 16px;
  line-height: 1.2;
}

.sh-final-cta-text {
  font-family: var(--sh-serif);
  font-size: 1.05rem;
  font-style: italic;
  color: var(--sh-text);
  line-height: 1.7;
  margin: 0 0 28px;
  max-width: 440px;
}

.sh-final-cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

@media (max-width: 700px) {
  .sh-final-cta {
    padding: 80px 24px;
  }
  .sh-final-cta-inner {
    flex-direction: column;
    text-align: center;
  }
  .sh-final-cta-cover {
    width: 160px;
  }
  .sh-final-cta-text {
    max-width: 100%;
  }
  .sh-final-cta-buttons {
    justify-content: center;
  }
}

/* RETURN TO TOP */
.sh-return-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 48px;
  height: 48px;
  background: rgba(112, 15, 78, 0.9);
  border: 1px solid var(--sh-gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s ease;
  z-index: 99;
}

.sh-return-top.visible {
  opacity: 1;
  visibility: visible;
}

.sh-return-top:hover {
  background: var(--sh-pink);
  transform: translateY(-4px);
  box-shadow: 0 8px 20px -6px rgba(254, 0, 0, 0.4);
}

.sh-return-top svg {
  width: 20px;
  height: 20px;
  color: var(--sh-gold);
}

/* SLIDING BOOK BROWSER TAB + PANEL */
.sh-book-browser-tab {
  position: fixed;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 108;
  cursor: pointer;
}

.sh-browser-tab-inner {
  width: 48px;
  height: 260px;
  background: linear-gradient(180deg, var(--sh-dark) 0%, var(--sh-bg) 100%);
  border: 1px solid var(--sh-gold);
  border-left: none;
  border-radius: 0 6px 6px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  position: relative;
  transition: all 0.4s ease;
}

.sh-browser-tab-inner::before,
.sh-browser-tab-inner::after {
  content: '';
  position: absolute;
  left: 0;
  right: 8px;
  height: 1px;
  background: var(--sh-gold);
  opacity: 0.4;
}

.sh-browser-tab-inner::before { top: 16px; }
.sh-browser-tab-inner::after { bottom: 16px; }

.sh-tab-ornament-top,
.sh-tab-ornament-bottom {
  color: var(--sh-gold);
  font-size: 10px;
  opacity: 0.7;
}

.sh-tab-ornament-top { margin-top: -4px; }
.sh-tab-ornament-bottom { margin-bottom: -4px; }

.sh-tab-text {
  font-family: var(--sh-sans);
  font-size: 0.65rem;
  font-weight: 500;
  color: var(--sh-gold);
  text-transform: uppercase;
  letter-spacing: 3px;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  transform: rotate(180deg);
}

.sh-book-browser-tab:hover .sh-browser-tab-inner {
  width: 54px;
  background: linear-gradient(180deg, var(--sh-burgundy) 0%, var(--sh-dark) 100%);
  box-shadow: 0 0 20px rgba(201, 169, 110, 0.15);
}

.sh-book-browser-tab.active .sh-browser-tab-inner {
  width: 54px;
  background: linear-gradient(180deg, var(--sh-pink) 0%, var(--sh-burgundy) 100%);
}

.sh-book-browser-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(10, 5, 8, 0.7);
  z-index: 109;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.sh-book-browser-overlay.active {
  opacity: 1;
  visibility: visible;
}

.sh-book-browser-panel {
  position: fixed;
  top: 0;
  left: 0;
  width: 380px;
  height: 100vh;
  background: var(--sh-dark);
  border-right: 1px solid rgba(201, 169, 110, 0.2);
  z-index: 110;
  transform: translateX(calc(-100% - 4px)); /* the extra 4px keeps the border-right from sitting exactly on the screen edge when "closed" */
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: var(--sh-gold) var(--sh-bg);
}

.sh-book-browser-panel::-webkit-scrollbar {
  width: 6px;
}

.sh-book-browser-panel::-webkit-scrollbar-track {
  background: var(--sh-bg);
}

.sh-book-browser-panel::-webkit-scrollbar-thumb {
  background: var(--sh-gold);
  border-radius: 3px;
}

.sh-book-browser-panel.active {
  transform: translateX(0);
}

.sh-browser-header {
  padding: 80px 24px 20px;
  border-bottom: 1px solid rgba(201, 169, 110, 0.15);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  background: var(--sh-dark);
  z-index: 1;
}

.sh-browser-title {
  font-family: var(--sh-serif);
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--sh-white);
  margin: 0;
  letter-spacing: 1px;
}

.sh-browser-close {
  width: 32px;
  height: 32px;
  background: transparent;
  border: 1px solid rgba(201, 169, 110, 0.3);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.sh-browser-close:hover {
  background: var(--sh-gold);
  border-color: var(--sh-gold);
}

.sh-browser-close svg {
  width: 14px;
  height: 14px;
  color: var(--sh-gold);
  transition: color 0.3s ease;
}

.sh-browser-close:hover svg {
  color: var(--sh-bg);
}

.sh-browser-content {
  padding: 0 0 40px;
}

.sh-browser-series {
  padding: 24px 0;
  border-bottom: 1px solid rgba(201, 169, 110, 0.1);
}

.sh-browser-series:last-of-type {
  border-bottom: none;
}

.sh-series-header {
  padding: 0 24px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.sh-series-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(201, 169, 110, 0.4) 100%);
}

.sh-series-line-right {
  background: linear-gradient(90deg, rgba(201, 169, 110, 0.4) 0%, transparent 100%);
}

.sh-series-name {
  font-family: var(--sh-sans);
  font-size: 0.65rem;
  font-weight: 500;
  color: var(--sh-gold);
  text-transform: uppercase;
  letter-spacing: 3px;
  white-space: nowrap;
}

.sh-browser-book {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 12px 24px;
  text-decoration: none;
  border-left: 3px solid transparent;
  transition: all 0.3s ease;
}

.sh-browser-book:hover {
  background: rgba(201, 169, 110, 0.05);
  border-left-color: var(--sh-gold);
}

.sh-browser-cover {
  width: 55px;
  height: auto;
  flex-shrink: 0;
  border-radius: 2px;
  box-shadow: 0 4px 12px -4px rgba(0, 0, 0, 0.5);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.sh-browser-book:hover .sh-browser-cover {
  transform: scale(1.05);
  box-shadow: 0 6px 16px -4px rgba(112, 15, 78, 0.5);
}

.sh-browser-info {
  flex: 1;
  min-width: 0;
  padding-top: 2px;
}

.sh-browser-book-title {
  font-family: var(--sh-serif);
  font-size: 1rem;
  font-weight: 600;
  color: var(--sh-white);
  margin: 0 0 4px;
  line-height: 1.3;
  letter-spacing: 0.5px;
}

.sh-browser-sizzle {
  font-family: var(--sh-sans);
  font-size: 0.6rem;
  font-weight: 400;
  color: var(--sh-purple-light);
  margin: 0 0 6px;
  letter-spacing: 0.5px;
}

.sh-browser-series-label {
  font-family: var(--sh-sans);
  font-size: 0.6rem;
  font-weight: 500;
  color: var(--sh-text);
  text-transform: uppercase;
  letter-spacing: 2px;
}

.sh-browser-coming-soon {
  display: inline-block;
  font-family: var(--sh-sans);
  font-size: 0.55rem;
  font-weight: 500;
  color: var(--sh-gold);
  text-transform: uppercase;
  letter-spacing: 2px;
  background: rgba(201, 169, 110, 0.1);
  padding: 2px 8px;
  border-radius: 2px;
  margin-left: 8px;
}

/* TEASER (unannounced books) */
.sh-browser-teaser {
  padding: 32px 24px 40px;
  background: linear-gradient(180deg, transparent 0%, rgba(74, 10, 46, 0.2) 100%);
  position: relative;
}

.sh-browser-teaser::before {
  content: '';
  position: absolute;
  top: 0;
  left: 24px;
  right: 24px;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(201, 169, 110, 0.3) 50%, transparent 100%);
}

.sh-teaser-content {
  text-align: center;
  opacity: 0.6;
  transition: opacity 0.4s ease;
}

.sh-browser-teaser:hover .sh-teaser-content {
  opacity: 1;
}

.sh-teaser-ornament {
  font-size: 14px;
  color: var(--sh-gold);
  opacity: 0.5;
  margin: 0 0 12px;
}

.sh-teaser-title {
  font-family: var(--sh-sans);
  font-size: 0.6rem;
  font-weight: 500;
  color: var(--sh-purple-light);
  text-transform: uppercase;
  letter-spacing: 4px;
  margin: 0 0 16px;
}

.sh-teaser-books {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sh-teaser-book-name {
  font-family: var(--sh-serif);
  font-size: 1.1rem;
  font-style: italic;
  color: var(--sh-text-light);
  margin: 0;
  letter-spacing: 1px;
}

.sh-teaser-hint {
  font-family: var(--sh-sans);
  font-size: 0.6rem;
  font-weight: 400;
  color: var(--sh-gold);
  text-transform: uppercase;
  letter-spacing: 3px;
  margin: 16px 0 0;
  opacity: 0.7;
}

.sh-teaser-btn {
  display: inline-block;
  margin-top: 18px;
  padding: 10px 22px;
  font-family: var(--sh-sans);
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--sh-gold);
  border: 1px solid rgba(201, 169, 110, 0.4);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.sh-teaser-btn:hover {
  background: var(--sh-gold);
  color: var(--sh-bg);
  border-color: var(--sh-gold);
}

/* ============================================================
   MOBILE: Books panel becomes a bottom slide-up sheet
   ============================================================
   Everything above this point is untouched on any screen size.
   Below 600px only, the left-edge vertical tab becomes a small
   centered pill at the bottom of the screen, and the sliding
   panel becomes a bottom sheet instead of sliding in from the
   left — so nothing overlaps page text on narrow screens.
*/
@media (max-width: 600px) {
  .sh-book-browser-tab {
    left: 50%;
    top: auto;
    bottom: 0;
    transform: translateX(-50%);
  }

  .sh-browser-tab-inner {
    width: 130px;
    height: 38px;
    flex-direction: row;
    border-left: 1px solid var(--sh-gold);
    border-bottom: none;
    border-radius: 8px 8px 0 0;
  }

  /* the tall decorative lines were designed for the vertical tab —
     hidden here since they'd look cluttered on a short wide pill */
  .sh-browser-tab-inner::before,
  .sh-browser-tab-inner::after {
    display: none;
  }

  .sh-tab-ornament-top,
  .sh-tab-ornament-bottom {
    margin: 0;
  }

  .sh-tab-text {
    writing-mode: horizontal-tb;
    text-orientation: initial;
    transform: none;
    font-size: 0.6rem;
    letter-spacing: 2px;
  }

  /* keep the pill's width stable on hover/active instead of the
     desktop tab's width-growing effect, which reads oddly on touch */
  .sh-book-browser-tab:hover .sh-browser-tab-inner,
  .sh-book-browser-tab.active .sh-browser-tab-inner {
    width: 130px;
  }

  .sh-book-browser-panel {
    left: 0;
    right: 0;
    top: auto;
    bottom: 0;
    width: 100%;
    height: 82vh;
    max-height: 82vh;
    border-right: none;
    border-top: 1px solid rgba(201, 169, 110, 0.25);
    border-radius: 14px 14px 0 0;
    transform: translateY(calc(100% + 4px));
  }

  .sh-book-browser-panel.active {
    transform: translateY(0);
  }

  /* small drag-handle affordance, purely decorative */
  .sh-book-browser-panel::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 4px;
    background: rgba(201, 169, 110, 0.4);
    border-radius: 2px;
    z-index: 2;
  }

  .sh-browser-header {
    padding: 20px 24px 16px;
  }
}

/* ============================================================
   ALL BOOKS PAGE + SERIES PAGE
   ============================================================ */

.sh-archive-header {
  padding: 140px 24px 60px;
  text-align: center;
}

.sh-archive-kicker {
  font-family: var(--sh-sans);
  font-size: 0.75rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--sh-gold);
  margin: 0 0 8px;
}

.sh-archive-title {
  font-family: var(--sh-serif);
  font-size: clamp(2.2rem, 6vw, 3.4rem);
  font-weight: 600;
  color: var(--sh-white);
  margin: 0;
}

/* SERIES INTRO SECTION */
.sh-series-intro {
  padding: 0 24px 60px;
  background: var(--sh-dark);
}

.sh-series-intro .sh-section-title h2 em {
  color: var(--sh-purple-light);
  font-style: italic;
}

/* re-use .sh-about-wrap box styling for the series description text
   (already defined for the homepage About section) */
.sh-series-intro .sh-about-wrap p {
  text-align: left;
}

/* TABS (Warnings / Playlist) */
.sh-tabs {
  max-width: 700px;
  margin: 40px auto 0;
}

.sh-tabs-header {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 0;
}

.sh-tab-btn {
  font-family: var(--sh-sans);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--sh-text);
  background: transparent;
  border: 1px solid rgba(201, 169, 110, 0.25);
  border-bottom: none;
  padding: 12px 28px;
  cursor: pointer;
  transition: all 0.3s ease;
  border-radius: 4px 4px 0 0;
}

.sh-tab-btn:hover {
  color: var(--sh-gold);
}

.sh-tab-btn.active {
  color: var(--sh-gold);
  background: rgba(255, 255, 255, 0.02);
  border-color: rgba(201, 169, 110, 0.3);
}

.sh-tab-content {
  display: none;
  padding: 32px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(201, 169, 110, 0.2);
  border-radius: 0 4px 4px 4px;
}

.sh-tab-content.active {
  display: block;
}

.sh-tab-content p {
  font-family: var(--sh-sans);
  font-size: 0.85rem;
  color: var(--sh-text);
  line-height: 1.9;
  margin: 0 0 12px;
}

.sh-tab-content p:last-child {
  margin-bottom: 0;
}

.sh-tab-content p strong {
  color: var(--sh-text-light);
  font-weight: 600;
}

.sh-tab-content h1, .sh-tab-content h2, .sh-tab-content h3, .sh-tab-content h4 {
  font-family: var(--sh-sans);
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--sh-gold);
  text-transform: uppercase;
  letter-spacing: 2.5px;
  margin: 20px 0 10px;
}

.sh-tab-content h1:first-child, .sh-tab-content h2:first-child,
.sh-tab-content h3:first-child, .sh-tab-content h4:first-child {
  margin-top: 0;
}

.sh-tab-content ul, .sh-tab-content ol {
  margin: 0 0 16px;
  padding-left: 20px;
}

.sh-tab-content li {
  font-family: var(--sh-sans);
  font-size: 0.85rem;
  color: var(--sh-text);
  line-height: 1.7;
  margin-bottom: 6px;
}

.sh-playlist-item {
  font-family: var(--sh-serif);
  font-size: 1.05rem;
  color: var(--sh-text-light);
  padding: 10px 0;
  border-bottom: 1px solid rgba(201, 169, 110, 0.08);
}

.sh-playlist-item:last-child {
  border-bottom: none;
}

.sh-playlist-item em {
  font-style: italic;
  color: var(--sh-white);
}

.sh-playlist-item strong {
  font-family: var(--sh-sans);
  font-size: 0.75rem;
  letter-spacing: 1px;
  color: var(--sh-purple-light);
  font-weight: 500;
  font-style: normal;
}

@media (max-width: 600px) {
  .sh-tabs-header {
    gap: 4px;
  }
  .sh-tab-btn {
    padding: 10px 16px;
    font-size: 0.6rem;
    letter-spacing: 1.5px;
  }
  .sh-tab-content {
    padding: 24px 20px;
  }
}

/* ============================================================
   ABOUT / MEET SOFIA PAGE
   ============================================================ */

.sh-meet-header {
  padding: 140px 24px 20px;
  text-align: center;
}

/* CHARACTER STAT SHEET */
.sh-stat-sheet {
  max-width: 720px;
  margin: 40px auto;
  padding: 40px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(201, 169, 110, 0.25);
  border-radius: 4px;
  position: relative;
}

.sh-stat-sheet::before {
  content: '';
  position: absolute;
  top: 8px; left: 8px; right: 8px; bottom: 8px;
  border: 1px solid rgba(201, 169, 110, 0.12);
  border-radius: 2px;
  pointer-events: none;
}

.sh-stat-top {
  text-align: center;
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(201, 169, 110, 0.2);
}

.sh-stat-class {
  font-family: var(--sh-serif);
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--sh-white);
  margin: 0 0 8px;
}

.sh-stat-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  font-family: var(--sh-sans);
  font-size: 0.7rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--sh-purple-light);
}

.sh-stat-meta span strong {
  color: var(--sh-gold);
  font-weight: 500;
}

.sh-stat-section-label {
  font-family: var(--sh-sans);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--sh-gold);
  margin: 28px 0 14px;
}

.sh-stat-section-label:first-of-type {
  margin-top: 0;
}

.sh-ability-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.sh-ability {
  text-align: center;
  padding: 14px 10px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(201, 169, 110, 0.15);
  border-radius: 3px;
}

.sh-ability-score {
  font-family: var(--sh-serif);
  font-size: 1.6rem;
  color: var(--sh-white);
  font-weight: 600;
  display: block;
}

.sh-ability-name {
  font-family: var(--sh-sans);
  font-size: 0.6rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--sh-purple-light);
  display: block;
  margin-bottom: 2px;
}

.sh-ability-flavor {
  font-family: var(--sh-serif);
  font-style: italic;
  font-size: 0.78rem;
  color: var(--sh-text);
  margin-top: 6px;
  line-height: 1.4;
}

.sh-stat-row {
  display: flex;
  gap: 16px;
  margin-bottom: 4px;
}

.sh-stat-box {
  flex: 1;
  text-align: center;
  padding: 10px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(201, 169, 110, 0.15);
  border-radius: 3px;
}

.sh-stat-box-label {
  font-family: var(--sh-sans);
  font-size: 0.6rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--sh-purple-light);
  display: block;
}

.sh-stat-box-value {
  font-family: var(--sh-serif);
  font-size: 1.2rem;
  color: var(--sh-white);
}

.sh-stat-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sh-stat-list li {
  font-family: var(--sh-serif);
  font-size: 0.98rem;
  color: var(--sh-text-light);
  line-height: 1.6;
  padding: 8px 0 8px 20px;
  position: relative;
  border-bottom: 1px solid rgba(201, 169, 110, 0.07);
}

.sh-stat-list li:last-child {
  border-bottom: none;
}

.sh-stat-list li::before {
  content: '\2726'; /* ✦ */
  position: absolute;
  left: 0;
  top: 8px;
  color: var(--sh-gold);
  font-size: 0.7rem;
}

.sh-stat-list li strong,
.sh-stat-list li em {
  color: var(--sh-white);
  font-style: normal;
  font-weight: 600;
}

@media (max-width: 600px) {
  .sh-stat-sheet {
    padding: 24px 18px;
  }
  .sh-ability-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .sh-stat-row {
    flex-direction: column;
  }
}

/* CONFESSIONS */
.sh-confessions {
  padding: 60px 24px;
  background: var(--sh-dark);
}

.sh-confessions-grid {
  max-width: 800px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.sh-confession-card {
  padding: 24px 26px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(201, 169, 110, 0.15);
  border-left: 3px solid var(--sh-gold);
  border-radius: 0 4px 4px 0;
  font-family: var(--sh-serif);
  font-size: 1rem;
  font-style: italic;
  color: var(--sh-text-light);
  line-height: 1.6;
}

/* FLAGS */
.sh-flags {
  padding: 60px 24px;
  background: var(--sh-bg);
}

.sh-flags-grid {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.sh-flags-col {
  padding: 28px;
  border-radius: 4px;
}

.sh-flags-col--green {
  background: rgba(46, 90, 76, 0.08);
  border: 1px solid rgba(46, 90, 76, 0.3);
}

.sh-flags-col--red {
  background: rgba(112, 15, 78, 0.08);
  border: 1px solid rgba(112, 15, 78, 0.3);
}

.sh-flags-col h3 {
  font-family: var(--sh-sans);
  font-size: 0.75rem;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  margin: 0 0 16px;
}

.sh-flags-col--green h3 { color: #6fae94; }
.sh-flags-col--red h3 { color: #e2799f; }

.sh-flags-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sh-flags-col li {
  font-family: var(--sh-serif);
  font-size: 0.95rem;
  color: var(--sh-text-light);
  line-height: 1.6;
  padding: 9px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.sh-flags-col li:last-child {
  border-bottom: none;
}

.sh-flags-joke {
  max-width: 900px;
  margin: 24px auto 0;
  text-align: center;
  font-family: var(--sh-serif);
  font-style: italic;
  font-size: 0.95rem;
  color: var(--sh-purple-light);
}

@media (max-width: 700px) {
  .sh-flags-grid {
    grid-template-columns: 1fr;
  }
}

/* RULES CALLOUT */
.sh-rules-box {
  max-width: 700px;
  margin: 0 auto;
  padding: 32px 36px;
  background: rgba(201, 169, 110, 0.04);
  border: 1px solid rgba(201, 169, 110, 0.25);
  border-radius: 4px;
}

.sh-rules-box ol {
  margin: 0;
  padding-left: 22px;
}

.sh-rules-box li {
  font-family: var(--sh-serif);
  font-size: 1rem;
  color: var(--sh-text-light);
  line-height: 1.7;
  margin-bottom: 12px;
}

.sh-rules-box li:last-child {
  margin-bottom: 0;
}

.sh-rules-box li strong {
  color: var(--sh-white);
}

/* MUSIC MARQUEE */
.sh-marquee-section {
  padding: 50px 0;
  background: var(--sh-dark);
  text-align: center;
}

.sh-marquee-label {
  font-family: var(--sh-sans);
  font-size: 0.7rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--sh-gold);
  margin: 0 0 24px;
}

.sh-marquee {
  overflow: hidden;
  position: relative;
  padding: 14px 0;
  border-top: 1px solid rgba(201, 169, 110, 0.15);
  border-bottom: 1px solid rgba(201, 169, 110, 0.15);
  mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
}

.sh-marquee-track {
  display: flex;
  width: max-content;
  animation: sh-marquee-scroll 40s linear infinite;
}

.sh-marquee:hover .sh-marquee-track {
  animation-play-state: paused;
}

.sh-marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 0 28px;
  font-family: var(--sh-serif);
  font-size: 1rem;
  font-style: italic;
  color: var(--sh-text);
  white-space: nowrap;
  border-right: 1px solid rgba(201, 169, 110, 0.15);
}

.sh-marquee-item a {
  color: inherit;
  text-decoration: none;
}

.sh-marquee-item a:hover {
  color: var(--sh-gold);
}

.sh-marquee-item .sh-marquee-artist {
  font-family: var(--sh-sans);
  font-style: normal;
  font-size: 0.7rem;
  letter-spacing: 1px;
  color: var(--sh-purple-light);
}

.sh-marquee-note {
  color: var(--sh-gold);
  opacity: 0.5;
  font-style: normal;
}

@keyframes sh-marquee-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .sh-marquee-track {
    animation: none;
  }
  .sh-marquee {
    overflow-x: auto;
  }
}

/* ============================================================
   CONTACT PAGE
   ============================================================ */

.sh-contact-card {
  max-width: 560px;
  margin: 40px auto 80px;
  padding: 48px;
  text-align: center;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(201, 169, 110, 0.2);
  border-radius: 4px;
  position: relative;
  z-index: 2;
}

.sh-contact-email-btn {
  display: inline-block;
  padding: 18px 44px;
  font-family: var(--sh-sans);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 2px;
  text-decoration: none;
  color: var(--sh-white);
  background: var(--sh-pink);
  border: 1px solid var(--sh-pink);
  border-radius: 2px;
  transition: all 0.4s ease;
}

.sh-contact-email-btn:hover {
  background: var(--sh-burgundy);
  border-color: var(--sh-burgundy);
  transform: translateY(-2px);
}

.sh-contact-note {
  font-family: var(--sh-serif);
  font-style: italic;
  font-size: 0.95rem;
  color: var(--sh-text);
  margin: 24px 0 0;
}

.sh-contact-divider-text {
  font-family: var(--sh-sans);
  font-size: 0.7rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--sh-purple-light);
  margin: 32px 0 16px;
}

.sh-contact-card .sh-footer-social {
  margin-bottom: 0;
}

/* ============================================================
   BLOG ARCHIVE + SINGLE POST
   ============================================================ */

.sh-blog-header {
  padding: 10px 24px 40px;
  text-align: center;
}

.sh-post-grid {
  columns: 3 280px; /* masonry-style: browser picks column count based on available width, min 280px each */
  column-gap: 28px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px 60px;
}

.sh-post-card {
  display: block;
  break-inside: avoid; /* prevents a card from being split across columns */
  margin-bottom: 28px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(201, 169, 110, 0.15);
  border-radius: 4px;
  overflow: hidden;
  transition: border-color 0.3s ease, transform 0.3s ease;
}

.sh-post-card:hover {
  border-color: rgba(201, 169, 110, 0.4);
  transform: translateY(-4px);
}

.sh-post-card-image {
  display: block;
  width: 100%;
  height: auto;
  max-height: 420px; /* keeps the nice portrait/social-media proportions,
                        but stops an extra-tall image from dominating the
                        whole card — beyond this height it crops gracefully
                        via object-fit instead of just growing forever */
  object-fit: cover;
}

.sh-post-card-body {
  padding: 22px 24px 26px;
  display: flex;
  flex-direction: column;
}

.sh-post-card-date {
  font-family: var(--sh-sans);
  font-size: 0.65rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--sh-gold);
  margin: 0 0 10px;
}

.sh-post-card-title {
  font-family: var(--sh-serif);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--sh-white);
  margin: 0 0 10px;
  line-height: 1.25;
}

.sh-post-card-title a {
  color: inherit;
  text-decoration: none;
}

.sh-post-card-title a:hover {
  color: var(--sh-gold);
}

.sh-post-card-excerpt {
  font-family: var(--sh-serif);
  font-size: 0.92rem;
  color: var(--sh-text);
  line-height: 1.6;
  margin: 0 0 16px;
  flex: 1;
}

.sh-post-card-more {
  font-family: var(--sh-sans);
  font-size: 0.65rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--sh-gold);
  text-decoration: none;
  align-self: flex-start;
  border-bottom: 1px solid rgba(201, 169, 110, 0.4);
  padding-bottom: 2px;
}

.sh-post-card-more:hover {
  color: var(--sh-white);
}

/* pagination (built-in WordPress next/prev links) */
.sh-blog-pagination {
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px 24px 80px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.sh-blog-pagination a,
.sh-blog-pagination span {
  font-family: var(--sh-sans);
  font-size: 0.7rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--sh-gold);
  text-decoration: none;
  border: 1px solid rgba(201, 169, 110, 0.3);
  padding: 10px 22px;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.sh-blog-pagination a:hover {
  background: var(--sh-gold);
  color: var(--sh-bg);
}

/* SINGLE POST */
.sh-post-header {
  padding: 10px 24px 30px;
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
}

.sh-post-kicker {
  font-family: var(--sh-sans);
  font-size: 0.7rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--sh-gold);
  margin: 0 0 12px;
}

.sh-post-title {
  font-family: var(--sh-serif);
  font-size: clamp(1.8rem, 5vw, 2.8rem);
  font-weight: 600;
  color: var(--sh-white);
  margin: 0 0 16px;
  line-height: 1.2;
}

.sh-post-date {
  font-family: var(--sh-sans);
  font-size: 0.75rem;
  letter-spacing: 1px;
  color: var(--sh-text);
}

/* Featured image sits inside the main blog column, beside the sidebar.
   Images are portrait, so the whole image is always shown (never cropped):
   height is capped and the width follows naturally, centred in the column. */
.sh-post-featured {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px;
}

.sh-post-featured-img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 520px;
  margin: 0 auto 30px;
  border-radius: 4px;
  box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.5);
}

/* Body text: Cormorant Garamond has thin strokes and small lowercase
   letters, so it needs to run larger and a little heavier than a typical
   font to read comfortably on a dark background. */
.sh-post-content {
  max-width: 720px;
  margin: 0 auto;
  padding: 10px 24px 60px;
  font-family: var(--sh-serif);
  font-size: 1.3rem;
  font-weight: 500;
  line-height: 1.75;
  letter-spacing: 0.01em;
  color: #eee6ee;
  -webkit-font-smoothing: antialiased;
}

@media (max-width: 600px) {
  .sh-post-content {
    font-size: 1.2rem;
  }
}

.sh-post-content p {
  margin: 0 0 24px;
}

.sh-post-content > :first-child {
  margin-top: 0 !important;
}

.sh-post-content h1,
.sh-post-content h2,
.sh-post-content h3,
.sh-post-content h4,
.sh-post-content h5,
.sh-post-content h6 {
  font-family: var(--sh-serif) !important;
  margin: 40px 0 16px;
  line-height: 1.3;
}

/* !important here is intentional: the block editor sometimes writes an
   inline color style directly onto headings, which would otherwise
   override any normal CSS rule regardless of specificity. */
.sh-post-content h1,
.sh-post-content h2 { color: var(--sh-gold) !important; }

.sh-post-content h3,
.sh-post-content h4,
.sh-post-content h5,
.sh-post-content h6 { color: var(--sh-purple-light) !important; }

.sh-post-content h1 { font-size: 2rem; }
.sh-post-content h2 { font-size: 1.7rem; }
.sh-post-content h3 { font-size: 1.35rem; }

.sh-post-content a {
  color: var(--sh-gold);
  text-decoration: underline;
  text-decoration-color: rgba(201, 169, 110, 0.4);
}

.sh-post-content a:hover {
  text-decoration-color: var(--sh-gold);
}

.sh-post-content blockquote {
  margin: 30px 0;
  padding: 4px 0 4px 24px;
  border-left: 3px solid var(--sh-gold);
  font-style: italic;
  color: var(--sh-purple-light);
}

.sh-post-content img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
  margin: 10px 0;
}

.sh-post-content ul,
.sh-post-content ol {
  margin: 0 0 24px;
  padding-left: 24px;
}

.sh-post-content li {
  margin-bottom: 10px;
}

.sh-post-nav {
  max-width: 720px;
  margin: 0 auto;
  padding: 20px 24px 80px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid rgba(201, 169, 110, 0.15);
  padding-top: 30px;
}

.sh-post-nav a {
  font-family: var(--sh-sans);
  font-size: 0.7rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--sh-gold);
  text-decoration: none;
  max-width: 45%;
}

.sh-post-nav a:hover {
  color: var(--sh-white);
}

.sh-post-nav-label {
  display: block;
  font-size: 0.6rem;
  opacity: 0.6;
  margin-bottom: 4px;
}

@media (max-width: 600px) {
  .sh-post-nav {
    flex-direction: column;
    gap: 20px;
  }
  .sh-post-nav a {
    max-width: 100%;
  }
}

/* BLOG SIDEBAR LAYOUT */
.sh-blog-layout {
  display: flex;
  align-items: flex-start;
  gap: 48px;
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 24px 60px;
}

.sh-blog-main {
  flex: 1;
  min-width: 0; /* prevents the masonry columns from overflowing the flex item */
}

.sh-blog-main .sh-post-grid,
.sh-blog-main .sh-blog-pagination {
  padding-left: 0;
  padding-right: 0;
  max-width: none;
}

.sh-blog-sidebar {
  flex: 0 0 300px;
  width: 300px;
  position: sticky;
  top: 100px;
  padding: 32px 28px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(201, 169, 110, 0.18);
  border-radius: 4px;
}

.sh-widget {
  margin-bottom: 32px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(201, 169, 110, 0.12);
}

.sh-widget:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

/* Forces our gold, uppercase, small-caps look on ANY heading inside the
   sidebar — !important because the block-based Widgets editor sometimes
   inserts headings as separate blocks (with their own inline/global
   styles) rather than going through our widget-title wrapper below. */
.sh-widget h1,
.sh-widget h2,
.sh-widget h3,
.sh-widget h4,
.sh-widget h5,
.sh-widget h6,
.sh-widget-title {
  font-family: var(--sh-sans) !important;
  font-size: 0.7rem !important;
  font-weight: 600 !important;
  letter-spacing: 3px !important;
  text-transform: uppercase !important;
  color: var(--sh-gold) !important;
  margin: 0 0 16px !important;
}

.sh-widget ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sh-widget li {
  font-family: var(--sh-serif);
  font-size: 0.95rem;
  color: var(--sh-text-light);
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.sh-widget li:last-child {
  border-bottom: none;
}

.sh-widget a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}

.sh-widget a:hover {
  color: var(--sh-gold);
}

.sh-widget p {
  font-family: var(--sh-serif);
  font-size: 0.95rem;
  color: var(--sh-text);
  line-height: 1.7;
}

/* search widget */
.sh-widget .search-form,
.sh-widget form[role="search"] {
  display: flex;
  gap: 8px;
}

.sh-widget input[type="search"],
.sh-widget input[type="text"] {
  flex: 1;
  min-width: 0;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(201, 169, 110, 0.25);
  color: var(--sh-white);
  border-radius: 2px;
  font-family: var(--sh-sans);
  font-size: 0.85rem;
}

.sh-widget input[type="submit"],
.sh-widget button {
  padding: 10px 16px;
  background: var(--sh-pink);
  border: 1px solid var(--sh-pink);
  color: var(--sh-white);
  font-family: var(--sh-sans);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  border-radius: 2px;
}

@media (max-width: 900px) {
  .sh-blog-layout {
    flex-direction: column;
  }
  .sh-blog-sidebar {
    width: 100%;
    flex: none;
    position: static;
  }
  .sh-post-grid {
    columns: 2 220px;
  }
}

@media (max-width: 560px) {
  .sh-post-grid {
    columns: 1;
  }
}

/* ============================================================
   EXCERPT MODAL
   ============================================================ */

.sh-excerpt-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(10, 5, 8, 0.85);
  backdrop-filter: blur(3px);
  z-index: 300;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s;
}

.sh-excerpt-overlay.active {
  opacity: 1;
  visibility: visible;
}

.sh-excerpt-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -48%);
  width: min(680px, 90vw);
  max-height: 82vh;
  display: flex;
  flex-direction: column;
  background: var(--sh-dark);
  border: 1px solid rgba(201, 169, 110, 0.3);
  border-radius: 4px;
  box-shadow: 0 40px 100px -20px rgba(0, 0, 0, 0.8);
  z-index: 301;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, transform 0.35s ease, visibility 0.35s;
}

.sh-excerpt-modal.active {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -50%);
}

.sh-excerpt-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 26px;
  border-bottom: 1px solid rgba(201, 169, 110, 0.15);
  flex-shrink: 0;
}

.sh-excerpt-modal-title {
  font-family: var(--sh-serif);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--sh-white);
}

.sh-excerpt-close {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  background: transparent;
  border: 1px solid rgba(201, 169, 110, 0.3);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.sh-excerpt-close:hover {
  background: var(--sh-gold);
  border-color: var(--sh-gold);
}

.sh-excerpt-close svg {
  width: 14px;
  height: 14px;
  color: var(--sh-gold);
  transition: color 0.3s ease;
}

.sh-excerpt-close:hover svg {
  color: var(--sh-bg);
}

.sh-excerpt-modal-body {
  padding: 30px 36px 40px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--sh-gold) var(--sh-bg);
}

.sh-excerpt-modal-body::-webkit-scrollbar {
  width: 6px;
}

.sh-excerpt-modal-body::-webkit-scrollbar-thumb {
  background: var(--sh-gold);
  border-radius: 3px;
}

/* NOVEL-STYLE TEXT FORMATTING — mimics a printed page: no gap between
   paragraphs, first line indented instead, justified edges. */
.sh-novel-text {
  font-family: var(--sh-serif);
  font-size: 1.08rem;
  line-height: 1.85;
  color: var(--sh-text-light);
  text-align: justify;
}

.sh-novel-text p {
  margin: 0;
  text-indent: 2em;
}

.sh-novel-text p:first-child {
  text-indent: 0; /* first paragraph of a scene traditionally isn't indented */
}

.sh-novel-text p:first-child::first-letter {
  font-size: 2.6em;
  float: left;
  line-height: 0.85;
  padding: 0.05em 0.1em 0 0;
  color: var(--sh-gold);
  font-weight: 600;
}

@media (max-width: 600px) {
  .sh-excerpt-modal {
    width: 94vw;
    max-height: 88vh;
  }
  .sh-excerpt-modal-body {
    padding: 24px 22px 32px;
  }
  .sh-novel-text {
    font-size: 1rem;
    text-align: left;
  }
}

/* ============================================================
   TAG / CATEGORY ARCHIVES
   ============================================================ */
/* Shares styling with the blog listing (.sh-blog-header, .sh-post-grid,
   .sh-blog-layout, .sh-blog-sidebar etc.) — no new classes needed here. */

/* ============================================================
   INLINE CONTENT CARDS (shortcodes: sh_post_card, sh_book_card)
   ============================================================ */

.sh-inline-card {
  display: flex;
  align-items: stretch;
  gap: 0;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(201, 169, 110, 0.2);
  border-radius: 4px;
  overflow: hidden;
  margin: 32px 0;
  transition: border-color 0.3s ease, transform 0.3s ease;
}

.sh-inline-card:hover {
  border-color: rgba(201, 169, 110, 0.45);
  transform: translateY(-2px);
}

.sh-inline-card-thumb-link {
  display: block;
  flex: 0 0 auto;
  text-decoration: none;
}

.sh-inline-card-thumb {
  display: block;
  width: 120px;
  height: 100%;
  min-height: 120px;
  background-size: cover;
  background-position: center;
}

.sh-inline-card-thumb--cover {
  width: 90px;
}

.sh-inline-card-body {
  flex: 1;
  min-width: 0;
  padding: 18px 22px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.sh-inline-card-kicker {
  font-family: var(--sh-sans);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--sh-gold);
  margin-bottom: 6px;
}

.sh-inline-card-title {
  font-family: var(--sh-serif);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--sh-white);
  line-height: 1.3;
  margin-bottom: 6px;
}

.sh-inline-card-excerpt {
  font-family: var(--sh-serif);
  font-style: italic;
  font-size: 0.9rem;
  color: var(--sh-text);
  line-height: 1.5;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Tagline (books) is typeset like every other tagline on the site —
   uppercase, letter-spaced, sans-serif — NOT the same style as a post
   excerpt, which stays as normal sentence-case italic prose. */
.sh-inline-card-tagline {
  font-family: var(--sh-sans);
  font-size: 0.72rem;
  font-style: normal;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--sh-purple-light);
  margin-bottom: 8px;
  display: block;
}

.sh-inline-card-cta {
  display: inline-block;
  width: fit-content;
  font-family: var(--sh-sans);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--sh-purple-light);
  text-decoration: none;
  transition: color 0.3s ease;
}

.sh-inline-card:hover .sh-inline-card-cta {
  color: var(--sh-gold);
}

.sh-inline-card-cta:hover {
  text-decoration: underline;
}

@media (max-width: 480px) {
  .sh-inline-card-thumb {
    width: 80px;
    min-height: 80px;
  }
  .sh-inline-card-thumb--cover {
    width: 70px;
  }
  .sh-inline-card-body {
    padding: 12px 14px;
  }
  .sh-inline-card-title {
    font-size: 1rem;
  }
  .sh-inline-card-excerpt {
    display: none; /* keeps the card compact on small screens */
  }
}
