/* ==========================================================================
   Verse Noir — Hero
   Mobile-first. Palette: ink, oxblood, antique gold, bone.
   ========================================================================== */

/* Self-hosted fonts (variable woff2, Latin subset). Licensed under the SIL Open Font License. */
@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("/fonts/cormorant-garamond.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Cormorant Garamond";
  font-style: italic;
  font-weight: 300 700;
  font-display: swap;
  src: url("/fonts/cormorant-garamond-italic.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/inter.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --ink: #0B0A0C;
  --ink-soft: #141116;
  --oxblood: #5E0F1A;
  --oxblood-light: #7A1624;
  --gold: #B89A5E;
  --gold-soft: rgba(184, 154, 94, 0.45);
  --bone: #EDE6DA;
  --bone-muted: rgba(237, 230, 218, 0.72);

  --font-serif: "Cormorant Garamond", "Playfair Display", Georgia, "Times New Roman", serif;
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --ease-velvet: cubic-bezier(0.22, 0.61, 0.2, 1);
  --gutter: clamp(1.5rem, 5vw, 3rem);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--bone);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

::selection {
  background: var(--oxblood);
  color: var(--bone);
}

/* ---------- Hero layout ---------- */

.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  min-height: 100vh;
  min-height: 100svh;
  padding:
    max(var(--gutter), env(safe-area-inset-top))
    max(var(--gutter), env(safe-area-inset-right))
    max(4.5rem, env(safe-area-inset-bottom))
    max(var(--gutter), env(safe-area-inset-left));
  overflow: hidden;
  background:
    radial-gradient(120% 80% at 50% 110%, rgba(94, 15, 26, 0.22), transparent 60%),
    var(--ink);
}

.hero__content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 62rem;
  text-align: center;
}

/* ---------- Eyebrow: "Dark Romance Publishing" ---------- */

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0 0 1.75rem;
  font-family: var(--font-sans);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--gold);
  /* compensate trailing letter-spacing so text sits optically centred */
  padding-left: 0.3em;
}

.rule {
  display: block;
  width: 1.25rem;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-soft));
}

.rule:last-child {
  background: linear-gradient(90deg, var(--gold-soft), transparent);
}

/* ---------- Wordmark ---------- */

.hero__wordmark {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: min(17vw, 6rem);
  line-height: 0.95;
  letter-spacing: 0.24em;
  padding-left: 0.24em; /* optical centring for tracked caps */
  text-transform: uppercase;
  color: var(--bone);
  text-shadow:
    0 0 40px rgba(237, 230, 218, 0.08),
    0 2px 30px rgba(0, 0, 0, 0.6);
}

/* Stacked on phones for a bold, book-cover feel */
.hero__wordmark span {
  display: block;
}

.hero__wordmark span + span {
  margin-top: 0.08em;
}

/* ---------- Ornament ---------- */

.hero__ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  margin: 2rem auto 1.5rem;
}

.hero__ornament .rule {
  width: 3.5rem;
}

.diamond {
  width: 6px;
  height: 6px;
  border: 1px solid var(--gold);
  transform: rotate(45deg);
}

/* ---------- Tagline ---------- */

.hero__tagline {
  margin: 0 0 2.75rem;
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1.45rem, 6vw, 2.1rem);
  line-height: 1.25;
  letter-spacing: 0.01em;
  color: var(--bone-muted);
}

/* ---------- Buttons ---------- */

.hero__actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.9rem;
  width: 100%;
  max-width: 20rem;
  margin: 0 auto;
}

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.25rem;
  padding: 0.9rem 2rem;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: 1px;
  overflow: hidden;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition:
    color 0.5s var(--ease-velvet),
    background-color 0.5s var(--ease-velvet),
    border-color 0.5s var(--ease-velvet),
    box-shadow 0.6s var(--ease-velvet);
}

/* slow candlelight sheen on hover */
.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    transparent 30%,
    rgba(184, 154, 94, 0.16) 50%,
    transparent 70%
  );
  transform: translateX(-110%);
  transition: transform 1.1s var(--ease-velvet);
  pointer-events: none;
}

.btn:focus-visible {
  outline: 1px solid var(--gold);
  outline-offset: 4px;
}

.btn--primary {
  background-color: var(--oxblood);
  border-color: rgba(184, 154, 94, 0.28);
  color: var(--bone);
  box-shadow: 0 10px 30px -12px rgba(94, 15, 26, 0.9);
}

.btn--secondary {
  background-color: rgba(11, 10, 12, 0.25);
  border-color: rgba(237, 230, 218, 0.38);
  color: var(--bone);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

@media (hover: hover) {
  .btn:hover::after {
    transform: translateX(110%);
  }

  .btn--primary:hover {
    background-color: var(--oxblood-light);
    border-color: var(--gold);
    box-shadow:
      0 14px 40px -12px rgba(122, 22, 36, 0.95),
      0 0 0 1px rgba(184, 154, 94, 0.15);
  }

  .btn--secondary:hover {
    border-color: var(--gold);
    color: var(--gold);
  }
}

.btn:active {
  transform: translateY(1px);
}

/* ---------- Scroll cue ---------- */

.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: max(1.5rem, env(safe-area-inset-bottom));
  z-index: 2;
  width: 1px;
  height: 2.75rem;
  overflow: hidden;
  background: rgba(184, 154, 94, 0.15);
  transform: translateX(-50%);
}

.hero__scroll-line {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(transparent, var(--gold));
  animation: scroll-cue 3.2s var(--ease-velvet) infinite;
}

@keyframes scroll-cue {
  0%   { transform: translateY(-100%); }
  60%  { transform: translateY(100%); }
  100% { transform: translateY(100%); }
}

/* ==========================================================================
   Atmospheric background
   ========================================================================== */

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.hero__bg > * {
  position: absolute;
}

/* Warm candlelight behind the wordmark */
.glow {
  left: 50%;
  top: 46%;
  width: 140vmax;
  height: 140vmax;
  max-width: 1400px;
  max-height: 1400px;
  transform: translate(-50%, -50%);
  background: radial-gradient(
    circle,
    rgba(184, 154, 94, 0.09) 0%,
    rgba(94, 15, 26, 0.12) 28%,
    transparent 60%
  );
  animation: candle 9s ease-in-out infinite alternate;
}

@keyframes candle {
  0%   { opacity: 0.75; }
  35%  { opacity: 1; }
  55%  { opacity: 0.85; }
  100% { opacity: 1; }
}

/* Soft drifting fog banks */
.fog {
  width: 120vmax;
  height: 70vmax;
  border-radius: 50%;
  filter: blur(60px);
  will-change: transform;
}

.fog--1 {
  left: -40vmax;
  bottom: -25vmax;
  background: radial-gradient(closest-side, rgba(94, 15, 26, 0.4), transparent);
  animation: drift-1 46s ease-in-out infinite alternate;
}

.fog--2 {
  right: -45vmax;
  top: -20vmax;
  background: radial-gradient(closest-side, rgba(237, 230, 218, 0.06), transparent);
  animation: drift-2 60s ease-in-out infinite alternate;
}

.fog--3 {
  left: -10vmax;
  top: 30%;
  background: radial-gradient(closest-side, rgba(60, 10, 20, 0.3), transparent);
  animation: drift-3 72s ease-in-out infinite alternate;
}

@keyframes drift-1 {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(22vmax, -8vmax, 0) scale(1.15); }
}

@keyframes drift-2 {
  from { transform: translate3d(0, 0, 0) scale(1.1); }
  to   { transform: translate3d(-20vmax, 10vmax, 0) scale(0.95); }
}

@keyframes drift-3 {
  from { transform: translate3d(-6vmax, 0, 0) scale(0.9); }
  to   { transform: translate3d(16vmax, -6vmax, 0) scale(1.1); }
}

/* Ink smoke: a seamless fractal-noise tile, slowly scrolled sideways */
.smoke {
  left: 0;
  top: 0;
  width: calc(100% + 1200px);
  height: 100%;
  opacity: 0.16;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1200' height='900' preserveAspectRatio='none'%3E%3Cfilter id='s'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.0028 0.0065' numOctaves='4' seed='11' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.93 0 0 0 0 0.90 0 0 0 0 0.85 0 0 0 1.6 -0.62'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23s)'/%3E%3C/svg%3E");
  background-size: 1200px 100%;
  background-repeat: repeat-x;
  -webkit-mask-image: linear-gradient(to top, #000 0%, rgba(0, 0, 0, 0.6) 45%, transparent 85%);
  mask-image: linear-gradient(to top, #000 0%, rgba(0, 0, 0, 0.6) 45%, transparent 85%);
  will-change: transform;
  animation: smoke-drift 140s linear infinite;
}

@keyframes smoke-drift {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-1200px, 0, 0); }
}

/* Floating embers / dust (drawn by script.js) */
.embers {
  inset: 0;
  width: 100%;
  height: 100%;
}

/* Edge darkening, like a page in candlelight */
.vignette {
  inset: 0;
  background: radial-gradient(
    ellipse 120% 90% at 50% 45%,
    transparent 40%,
    rgba(11, 10, 12, 0.65) 80%,
    rgba(11, 10, 12, 0.95) 100%
  );
}

/* Film grain */
.grain {
  inset: -50%;
  width: 200%;
  height: 200%;
  opacity: 0.075;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
  background-size: 220px 220px;
  mix-blend-mode: overlay;
  animation: grain 1.2s steps(6) infinite;
}

@keyframes grain {
  0%   { transform: translate3d(0, 0, 0); }
  20%  { transform: translate3d(-3%, 2%, 0); }
  40%  { transform: translate3d(2%, -4%, 0); }
  60%  { transform: translate3d(-4%, -1%, 0); }
  80%  { transform: translate3d(3%, 3%, 0); }
  100% { transform: translate3d(0, 0, 0); }
}

/* ==========================================================================
   Load-in reveal (pure CSS, so content shows even if JS fails)
   ========================================================================== */

.reveal {
  animation: reveal 1.8s var(--ease-velvet) var(--d, 0s) both;
}

@keyframes reveal {
  from {
    opacity: 0;
    transform: translateY(14px);
    filter: blur(6px);
  }
  to {
    opacity: 1;
    transform: none;
    filter: blur(0);
  }
}

.hero__scroll.reveal {
  animation-name: reveal-fade;
}

@keyframes reveal-fade {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.hero__bg {
  animation: reveal-fade 3s ease-out both;
}

/* ==========================================================================
   Larger screens
   ========================================================================== */

@media (min-width: 560px) {
  .hero__actions {
    flex-direction: row;
    justify-content: center;
    max-width: none;
  }

  .btn {
    min-width: 13.5rem;
  }
}

@media (min-width: 768px) {
  .hero__eyebrow {
    font-size: 0.72rem;
    letter-spacing: 0.38em;
    padding-left: 0.38em;
    gap: 0.9rem;
    margin-bottom: 2.25rem;
  }

  .rule {
    width: 3rem;
  }

  .hero__wordmark {
    font-size: clamp(4rem, 7.4vw, 7.25rem);
    letter-spacing: 0.2em;
    padding-left: 0.2em;
  }

  .hero__wordmark span {
    display: inline;
  }

  .hero__ornament {
    margin: 2.5rem auto 1.75rem;
  }

  .hero__ornament .rule {
    width: 5rem;
  }

  .hero__tagline {
    margin-bottom: 3.25rem;
  }

  .fog {
    filter: blur(90px);
  }
}

/* Short landscape phones: tighten vertical rhythm, drop the scroll cue */
@media (max-height: 560px) and (orientation: landscape) {
  .hero {
    padding-bottom: var(--gutter);
  }

  .hero__eyebrow { margin-bottom: 1rem; }
  .hero__ornament { margin: 1.25rem auto 1rem; }
  .hero__tagline { margin-bottom: 1.5rem; }
  .hero__scroll { display: none; }
}

/* ==========================================================================
   Reduced motion: keep the atmosphere, remove the movement
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  .glow,
  .fog,
  .smoke,
  .grain,
  .hero__scroll-line {
    animation: none !important;
  }

  .reveal,
  .hero__bg {
    animation: reveal-fade 0.6s ease-out both !important;
    animation-delay: 0s !important;
  }

  .btn,
  .btn::after {
    transition-duration: 0.01ms !important;
  }

  .hero__scroll {
    display: none;
  }
}

/* ==========================================================================
   Page-wide utilities
   ========================================================================== */

html {
  scroll-padding-top: 4.5rem;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

[hidden] {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 100;
  padding: 0.75rem 1.25rem;
  background: var(--bone);
  color: var(--ink);
  font-size: 0.8rem;
  text-decoration: none;
  transform: translateY(-200%);
  transition: transform 0.3s var(--ease-velvet);
}

.skip-link:focus {
  transform: none;
}

a:focus-visible,
button:focus-visible {
  outline: 1px solid var(--gold);
  outline-offset: 4px;
}

.container {
  width: 100%;
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 max(var(--gutter), env(safe-area-inset-left));
}

.container--narrow {
  max-width: 46rem;
}

/* Generic gold ornament (same language as the hero) */
.ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin: 1.25rem auto 0;
}

.ornament .rule {
  width: 2.75rem;
}

/* ==========================================================================
   Navigation
   ========================================================================== */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  padding-top: env(safe-area-inset-top);
  animation: reveal-fade 1.6s ease-out 1.8s both;
}

/* Frosted backing lives on a pseudo-element so the fixed mobile menu
   is not trapped inside the bar's backdrop-filter containing block. */
.nav::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(11, 10, 12, 0.78);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(184, 154, 94, 0.12);
  opacity: 0;
  transition: opacity 0.7s var(--ease-velvet);
}

.nav.is-scrolled::before {
  opacity: 1;
}

.nav__inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 max(var(--gutter), env(safe-area-inset-left));
}

.nav__brand {
  position: relative;
  z-index: 2;
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--bone);
  transition: color 0.4s var(--ease-velvet);
}

.nav__brand:hover {
  color: var(--gold);
}

/* Hamburger */
.nav__toggle {
  position: relative;
  z-index: 2;
  display: grid;
  place-content: center;
  gap: 7px;
  width: 2.75rem;
  height: 2.75rem;
  margin-right: -0.6rem;
  padding: 0;
  background: none;
  border: 0;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.nav__toggle-line {
  display: block;
  width: 1.5rem;
  height: 1px;
  background: var(--bone);
  transition: transform 0.5s var(--ease-velvet);
}

.nav.is-open .nav__toggle-line:first-of-type {
  transform: translateY(4px) rotate(45deg);
}

.nav.is-open .nav__toggle-line:last-of-type {
  transform: translateY(-4px) rotate(-45deg);
}

/* Mobile menu: a quiet full-screen curtain */
.nav__menu {
  position: fixed;
  inset: 0;
  z-index: 1;
  display: grid;
  place-items: center;
  background:
    radial-gradient(80% 60% at 50% 60%, rgba(94, 15, 26, 0.25), transparent 70%),
    rgba(11, 10, 12, 0.97);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.6s var(--ease-velvet), visibility 0s linear 0.6s;
}

.nav.is-open .nav__menu {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.6s var(--ease-velvet), visibility 0s;
}

.nav__links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav__links a {
  font-family: var(--font-serif);
  font-size: 2.25rem;
  font-weight: 300;
  font-style: italic;
  color: var(--bone);
  text-decoration: none;
  transition: color 0.4s var(--ease-velvet);
}

.nav__links a:hover {
  color: var(--gold);
}

body.menu-open {
  overflow: hidden;
}

@media (min-width: 768px) {
  .nav__inner {
    height: 4.5rem;
  }

  .nav__toggle {
    display: none;
  }

  .nav__menu {
    position: static;
    display: block;
    background: none;
    opacity: 1;
    visibility: visible;
    transition: none;
  }

  .nav__links {
    flex-direction: row;
    gap: 2.5rem;
  }

  .nav__links a {
    position: relative;
    padding: 0.5rem 0;
    font-family: var(--font-sans);
    font-size: 0.7rem;
    font-weight: 500;
    font-style: normal;
    letter-spacing: 0.26em;
    text-transform: uppercase;
    color: var(--bone-muted);
  }

  .nav__links a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0.26em;
    bottom: 0.2rem;
    height: 1px;
    background: var(--gold);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.6s var(--ease-velvet);
  }

  .nav__links a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
  }
}

/* ==========================================================================
   Sections below the hero
   ========================================================================== */

.page {
  position: relative;
  isolation: isolate;
  background: var(--ink);
}

/* Static grain so the whole page shares the hero's texture */
.page::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
  background-size: 220px 220px;
  mix-blend-mode: overlay;
  pointer-events: none;
}

.section {
  position: relative;
  padding: clamp(5.5rem, 16vw, 9.5rem) 0;
}

.section__header {
  margin-bottom: clamp(3rem, 10vw, 5rem);
  text-align: center;
}

.section__eyebrow {
  margin: 0 0 1rem;
  padding-left: 0.32em;
  font-size: 0.64rem;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
}

.section__title {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: clamp(2.5rem, 10vw, 3.9rem);
  line-height: 1.05;
  letter-spacing: 0.01em;
  color: var(--bone);
}

/* ---------- New Releases ---------- */

.releases {
  background: radial-gradient(70% 50% at 50% 0%, rgba(94, 15, 26, 0.16), transparent 70%);
}

.books {
  display: grid;
  gap: 5rem;
}

.book {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.book__cover-link {
  display: block;
  width: min(100%, 15.5rem);
  margin-bottom: 2.25rem;
  text-decoration: none;
}

.book__cover {
  position: relative;
  container-type: inline-size;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  border-radius: 2px;
  box-shadow:
    0 30px 60px -25px rgba(0, 0, 0, 0.9),
    0 0 0 1px rgba(184, 154, 94, 0.18);
  transition:
    transform 0.9s var(--ease-velvet),
    box-shadow 0.9s var(--ease-velvet);
}

.book__cover img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (hover: hover) {
  .book__cover-link:hover .book__cover {
    transform: translateY(-6px);
    box-shadow:
      0 40px 70px -25px rgba(0, 0, 0, 0.95),
      0 0 50px -10px rgba(94, 15, 26, 0.6),
      0 0 0 1px rgba(184, 154, 94, 0.4);
  }
}

/* Typographic placeholder cover */
.cover-ph {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 11cqi 9cqi;
  text-align: center;
  background:
    radial-gradient(90% 55% at 50% 38%, rgba(122, 22, 36, 0.55), transparent 70%),
    linear-gradient(170deg, #1a0d12 0%, #0e0a0d 55%, #050405 100%);
}

.cover-ph--2 {
  background:
    radial-gradient(80% 50% at 50% 70%, rgba(184, 154, 94, 0.14), transparent 70%),
    radial-gradient(100% 60% at 50% 30%, rgba(60, 10, 22, 0.7), transparent 75%),
    linear-gradient(190deg, #120c10 0%, #0b0a0c 60%, #040304 100%);
}

/* Fine inset frame like a foil-stamped border */
.cover-ph::before {
  content: "";
  position: absolute;
  inset: 4.5cqi;
  border: 1px solid rgba(184, 154, 94, 0.32);
  pointer-events: none;
}

.cover-ph__imprint {
  font-size: 3.6cqi;
  font-weight: 500;
  letter-spacing: 0.4em;
  padding-left: 0.4em;
  text-transform: uppercase;
  color: var(--gold);
}

.cover-ph__title {
  font-family: var(--font-serif);
  font-size: 15cqi;
  font-weight: 400;
  font-style: italic;
  line-height: 0.98;
  color: var(--bone);
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.7);
}

.cover-ph__title::after {
  content: "";
  display: block;
  width: 3.5cqi;
  height: 3.5cqi;
  margin: 7cqi auto 0;
  border: 1px solid var(--gold);
  transform: rotate(45deg);
}

.cover-ph__author {
  font-size: 4.2cqi;
  font-weight: 500;
  letter-spacing: 0.32em;
  padding-left: 0.32em;
  text-transform: uppercase;
  color: rgba(237, 230, 218, 0.8);
}

.book__body {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 28rem;
}

.book__title {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(1.9rem, 7vw, 2.25rem);
  font-weight: 400;
  line-height: 1.1;
}

.book__title a {
  color: var(--bone);
  text-decoration: none;
  transition: color 0.4s var(--ease-velvet);
}

.book__title a:hover {
  color: var(--gold);
}

.book__subtitle {
  margin: 0.4rem 0 0;
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-style: italic;
  font-weight: 300;
  color: var(--bone-muted);
}

.book__author {
  margin: 0.5rem 0 1.25rem;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--gold);
}

.book__author a {
  color: inherit;
  text-decoration: none;
}

.book__author a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
}

.tropes {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin: 0 0 1.25rem;
  padding: 0;
  list-style: none;
}

.tropes li {
  padding: 0.35rem 0.8rem;
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bone-muted);
  border: 1px solid rgba(184, 154, 94, 0.3);
  border-radius: 999px;
  background: rgba(94, 15, 26, 0.12);
}

.spice {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0 0 1.25rem;
}

.spice__label {
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: rgba(237, 230, 218, 0.5);
}

.spice__flames {
  display: flex;
  gap: 0.2rem;
}

.spice__flames svg {
  width: 0.9rem;
  height: 0.9rem;
  fill: rgba(237, 230, 218, 0.14);
}

.spice__flames svg.is-lit {
  fill: var(--gold);
  filter: drop-shadow(0 0 4px rgba(184, 154, 94, 0.45));
}

.book__blurb {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  margin: 0 0 2rem;
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-style: italic;
  line-height: 1.45;
  color: var(--bone-muted);
}

.book__actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.1rem;
  width: 100%;
}

.book__actions .btn {
  width: 100%;
  max-width: 20rem;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 0;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--bone);
  transition: color 0.4s var(--ease-velvet), gap 0.5s var(--ease-velvet);
}

.text-link::after {
  content: "\2192";
  font-family: var(--font-serif);
  font-size: 1rem;
  letter-spacing: 0;
}

.text-link:hover {
  color: var(--gold);
  gap: 0.9rem;
}

@media (min-width: 560px) {
  .book__actions {
    flex-direction: row;
    justify-content: center;
    gap: 2rem;
  }

  .book__actions .btn {
    width: auto;
    white-space: nowrap;
  }
}

@media (min-width: 900px) {
  .books {
    grid-template-columns: repeat(2, 1fr);
    gap: 3.5rem;
  }
}

/* Coming soon: a veiled cover */
.cover-ph--soon {
  background:
    radial-gradient(70% 45% at 50% 45%, rgba(94, 15, 26, 0.45), transparent 70%),
    linear-gradient(175deg, #140c10 0%, #0b0a0c 60%, #040304 100%);
}

.cover-ph--soon > * {
  filter: blur(5px);
  opacity: 0.55;
}

.cover-veil {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background:
    radial-gradient(60% 40% at 50% 50%, rgba(11, 10, 12, 0.15), rgba(11, 10, 12, 0.55) 100%);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
}

.cover-veil__icon {
  display: grid;
  place-items: center;
  width: 3.25rem;
  height: 3.25rem;
  border: 1px solid rgba(184, 154, 94, 0.55);
  border-radius: 50%;
  background: rgba(11, 10, 12, 0.6);
  box-shadow:
    0 0 0 5px rgba(11, 10, 12, 0.35),
    0 0 0 6px rgba(184, 154, 94, 0.15),
    0 0 30px rgba(184, 154, 94, 0.15);
}

.cover-veil__icon svg {
  width: 1.1rem;
  height: 1.1rem;
  fill: var(--gold);
}

.book__title--soon {
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1.6rem, 6vw, 1.9rem);
  color: var(--bone-muted);
  margin-bottom: 1.25rem;
}

/* ---------- Authors ---------- */

.authors__list {
  display: grid;
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.author-card {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 1.25rem;
  height: 100%;
  padding: 1.25rem;
  text-decoration: none;
  color: inherit;
  border: 1px solid rgba(184, 154, 94, 0.14);
  background: linear-gradient(160deg, rgba(94, 15, 26, 0.1), transparent 60%);
  transition: border-color 0.6s var(--ease-velvet);
}

.author-card__portrait {
  position: relative;
  display: grid;
  place-items: center;
  width: 4.75rem;
  height: 4.75rem;
  overflow: hidden;
  border-radius: 50%;
  background:
    radial-gradient(70% 70% at 35% 30%, rgba(122, 22, 36, 0.7), transparent 70%),
    linear-gradient(160deg, #1d1015, #0a0809);
  box-shadow:
    0 0 0 1px rgba(184, 154, 94, 0.35),
    0 0 0 5px var(--ink),
    0 0 0 6px rgba(184, 154, 94, 0.14);
  transition: box-shadow 0.6s var(--ease-velvet);
}

.author-card__portrait img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.author-card__initials {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 400;
  color: var(--gold);
  letter-spacing: 0.08em;
  padding-left: 0.08em;
  text-shadow: 0 0 18px rgba(184, 154, 94, 0.25);
}

.author-card__name {
  margin: 0 0 0.35rem;
  font-family: var(--font-serif);
  font-size: 1.55rem;
  font-weight: 400;
  line-height: 1.1;
  color: var(--bone);
  transition: color 0.4s var(--ease-velvet);
}

.author-card__style {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.55;
  color: rgba(237, 230, 218, 0.62);
}

.author-card__more {
  display: none;
}

@media (hover: hover) {
  .author-card:hover {
    border-color: rgba(184, 154, 94, 0.45);
  }

  .author-card:hover .author-card__name {
    color: var(--gold);
  }

  .author-card:hover .author-card__portrait {
    box-shadow:
      0 0 0 1px var(--gold),
      0 0 0 5px var(--ink),
      0 0 0 6px rgba(184, 154, 94, 0.4),
      0 0 40px rgba(94, 15, 26, 0.6);
  }
}

@media (min-width: 768px) {
  .authors__list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
  }

  .authors__list > li {
    flex: 0 1 21rem;
  }

  .author-card {
    grid-template-columns: 1fr;
    justify-items: center;
    align-content: start;
    gap: 0;
    padding: 3rem 1.75rem 2.5rem;
    text-align: center;
  }

  .author-card__portrait {
    width: 8rem;
    height: 8rem;
    margin-bottom: 1.75rem;
  }

  .author-card__initials {
    font-size: 2.5rem;
  }

  .author-card__name {
    font-size: 1.8rem;
    margin-bottom: 0.6rem;
  }

  .author-card__more {
    display: inline-flex;
    margin-top: 1.5rem;
  }
}

/* ---------- About ---------- */

.about {
  text-align: center;
  background: radial-gradient(60% 55% at 50% 50%, rgba(94, 15, 26, 0.2), transparent 70%);
}

.about__statement {
  margin: 0;
}

.about__statement p {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(1.85rem, 7vw, 3rem);
  font-weight: 300;
  font-style: italic;
  line-height: 1.28;
  color: var(--bone);
  text-wrap: balance;
}

.about__note {
  margin: 2.5rem 0 0;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  line-height: 1.7;
  color: rgba(237, 230, 218, 0.55);
}

.about__note::before {
  content: "";
  display: block;
  width: 1px;
  height: 2.5rem;
  margin: 0 auto 2rem;
  background: linear-gradient(transparent, var(--gold-soft));
}

/* ---------- Newsletter ---------- */

.newsletter__panel {
  position: relative;
  padding: clamp(3rem, 10vw, 4.5rem) clamp(1.5rem, 6vw, 4rem);
  text-align: center;
  border: 1px solid rgba(184, 154, 94, 0.22);
  background:
    radial-gradient(90% 70% at 50% 0%, rgba(94, 15, 26, 0.3), transparent 70%),
    rgba(20, 17, 22, 0.6);
}

.newsletter__panel::before {
  content: "";
  position: absolute;
  inset: 6px;
  border: 1px solid rgba(184, 154, 94, 0.08);
  pointer-events: none;
}

.newsletter__panel .section__title {
  font-size: clamp(2.1rem, 8.5vw, 3.25rem);
}

.newsletter__text {
  max-width: 30rem;
  margin: 1.5rem auto 2.25rem;
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--bone-muted);
}

.newsletter__form {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 28rem;
  margin: 0 auto;
}

.newsletter__input {
  min-height: 3.25rem;
  padding: 0 1.1rem;
  font-family: var(--font-sans);
  font-size: 1rem; /* 16px+ prevents iOS zoom on focus */
  color: var(--bone);
  background: rgba(11, 10, 12, 0.7);
  border: 1px solid rgba(237, 230, 218, 0.22);
  border-radius: 1px;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color 0.4s var(--ease-velvet);
}

.newsletter__input::placeholder {
  color: rgba(237, 230, 218, 0.38);
}

.newsletter__input:focus {
  border-color: var(--gold);
  outline: none;
}

.newsletter__button {
  min-width: 0;
}

.newsletter__success {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-style: italic;
  line-height: 1.4;
  color: var(--bone);
}

.newsletter__success:empty {
  display: none;
}

.newsletter__success.is-shown {
  animation: reveal 1.2s var(--ease-velvet) both;
}

@media (min-width: 560px) {
  .newsletter__form {
    flex-direction: row;
  }

  .newsletter__input {
    flex: 1;
  }

  .newsletter__button {
    min-width: 8rem;
  }
}

/* ==========================================================================
   Footer
   ========================================================================== */

.footer {
  padding: 3.5rem 0 max(2.5rem, env(safe-area-inset-bottom));
  border-top: 1px solid rgba(184, 154, 94, 0.12);
  background: var(--ink);
}

.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.75rem;
  text-align: center;
}

.footer__brand {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  padding-left: 0.3em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--bone);
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer__links a {
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-decoration: none;
  color: rgba(237, 230, 218, 0.62);
  transition: color 0.4s var(--ease-velvet);
}

.footer__links a:hover {
  color: var(--gold);
}

.footer__handle {
  color: rgba(237, 230, 218, 0.38);
}

.footer__copy {
  margin: 0;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: rgba(237, 230, 218, 0.38);
}

@media (min-width: 768px) {
  .footer__inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }

  .footer__links {
    flex-direction: row;
    gap: 2.25rem;
  }
}

/* ==========================================================================
   Scroll reveal (hidden only once JS has confirmed it can reveal them)
   ========================================================================== */

.js .fade-up {
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity 1.3s var(--ease-velvet),
    transform 1.3s var(--ease-velvet);
  transition-delay: calc(var(--i, 0) * 0.15s);
}

.js .fade-up.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .js .fade-up {
    transform: none;
    transition: opacity 0.4s ease-out;
    transition-delay: 0s;
  }

  .nav {
    animation: reveal-fade 0.6s ease-out both;
  }

  .nav::before,
  .nav__menu,
  .nav__toggle-line,
  .book__cover,
  .text-link,
  .author-card,
  .author-card__portrait {
    transition-duration: 0.01ms !important;
  }

  .newsletter__success.is-shown {
    animation: reveal-fade 0.4s ease-out both;
  }
}

/* ==========================================================================
   Author page
   ========================================================================== */

/* Smoke background shared by the author hero and the featured book */
.author-top {
  position: relative;
  isolation: isolate;
  background:
    radial-gradient(120% 60% at 50% 0%, rgba(94, 15, 26, 0.22), transparent 60%),
    var(--ink);
}

/* Clip the oversized fog inside the background layer itself, rather than
   on .author-top, so the content never sits in a scroll container
   (that would break #book links and the sticky cover). */
.author-top .hero__bg {
  overflow: hidden;
}

.author-top .glow {
  top: 16rem;
}

.noscript-note {
  position: relative;
  z-index: 2;
  padding: 2rem var(--gutter) 4rem;
  text-align: center;
  color: var(--bone-muted);
}

.noscript-note a {
  color: var(--gold);
}

/* ---------- 1. Author hero ---------- */

.author-hero {
  position: relative;
  z-index: 2;
  padding: calc(4rem + env(safe-area-inset-top) + 2.25rem) 0 2.75rem;
  text-align: center;
}

.author-hero__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.author-hero__portrait {
  position: relative;
  display: grid;
  place-items: center;
  width: 7rem;
  height: 7rem;
  overflow: hidden;
  border-radius: 50%;
  background:
    radial-gradient(70% 70% at 35% 30%, rgba(122, 22, 36, 0.7), transparent 70%),
    linear-gradient(160deg, #1d1015, #0a0809);
  box-shadow:
    0 0 0 1px rgba(184, 154, 94, 0.45),
    0 0 0 6px var(--ink),
    0 0 0 7px rgba(184, 154, 94, 0.18),
    0 20px 50px -15px rgba(94, 15, 26, 0.8);
}

.author-hero__portrait img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.author-hero__initials {
  font-family: var(--font-serif);
  font-size: 2.4rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  padding-left: 0.08em;
  color: var(--gold);
  text-shadow: 0 0 18px rgba(184, 154, 94, 0.25);
}

.author-hero__name {
  margin: 1.5rem 0 0;
  font-family: var(--font-serif);
  font-size: clamp(2.6rem, 11vw, 4.5rem);
  font-weight: 300;
  line-height: 1.02;
  letter-spacing: 0.01em;
  color: var(--bone);
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.6);
}

.author-hero__tagline {
  max-width: 30rem;
  margin: 0.85rem auto 0;
  font-family: var(--font-serif);
  font-size: clamp(1.2rem, 4.8vw, 1.5rem);
  font-style: italic;
  font-weight: 300;
  line-height: 1.4;
  color: var(--bone-muted);
  text-wrap: balance;
}

.author-hero__meta {
  margin: 1.25rem 0 0;
  padding-left: 0.32em;
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
}

/* ---------- 2. Featured book ---------- */

.featured {
  position: relative;
  z-index: 2;
  padding: 0.5rem 0 clamp(4.5rem, 14vw, 7.5rem);
}

.featured__grid {
  display: grid;
  justify-items: center;
  gap: 2.25rem;
}

.featured__cover {
  width: min(100%, 13rem);
}

.featured__body {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 34rem;
  text-align: center;
}

.featured__series {
  margin: 0 0 0.9rem;
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  line-height: 1.8;
  text-transform: uppercase;
  color: var(--gold);
}

.featured__title {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 11vw, 3.75rem);
  font-weight: 400;
  line-height: 1;
  color: var(--bone);
}

.featured__subtitle {
  margin: 0.5rem 0 0;
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-style: italic;
  font-weight: 300;
  color: var(--bone-muted);
}

.featured__hook {
  margin: 1.75rem 0 1.75rem;
  padding: 0;
}

.featured__hook::before {
  content: "";
  display: block;
  width: 2.5rem;
  height: 1px;
  margin: 0 auto 1.5rem;
  background: var(--gold-soft);
}

.featured__hook p {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(1.55rem, 6.4vw, 2.1rem);
  font-style: italic;
  font-weight: 300;
  line-height: 1.3;
  color: var(--bone);
  text-wrap: balance;
}

.featured__meta {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.featured__cta {
  width: 100%;
  margin: 0.5rem 0 2.75rem;
}

.featured__cta .btn {
  width: 100%;
  max-width: 22rem;
}

.featured__details {
  align-self: stretch;
  text-align: left;
}

/* Full blurb with "Read more" */
.featured__blurb p {
  margin: 0 0 1.1rem;
  font-family: var(--font-serif);
  font-size: 1.2rem;
  line-height: 1.6;
  color: rgba(237, 230, 218, 0.86);
}

.featured__blurb > p:first-child::first-letter {
  float: left;
  margin: 0.08em 0.12em 0 0;
  font-size: 3.4em;
  line-height: 0.8;
  color: var(--gold);
}

.blurb-more {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.8s var(--ease-velvet);
}

.blurb-more.is-open {
  grid-template-rows: 1fr;
}

.blurb-more__inner {
  min-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: opacity 0.8s var(--ease-velvet);
}

.blurb-more.is-open .blurb-more__inner {
  opacity: 1;
}

.read-more {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0.25rem 0 0;
  padding: 0.6rem 0;
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
  background: none;
  border: 0;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.read-more svg {
  width: 0.75rem;
  height: 0.75rem;
  transition: transform 0.6s var(--ease-velvet);
}

.read-more[aria-expanded="true"] svg {
  transform: rotate(180deg);
}

.read-more:hover {
  color: var(--bone);
}

/* Highlights */
.highlights {
  margin: 2.5rem 0 0;
  padding-top: 2rem;
  border-top: 1px solid rgba(184, 154, 94, 0.15);
}

.highlights__label {
  margin: 0 0 1.1rem;
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
}

.highlights__list {
  display: grid;
  gap: 0.8rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.highlights__list li {
  position: relative;
  padding-left: 1.4rem;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--bone-muted);
}

.highlights__list li::before {
  content: "";
  position: absolute;
  left: 0.1rem;
  top: 0.55em;
  width: 5px;
  height: 5px;
  border: 1px solid var(--gold);
  transform: rotate(45deg);
}

/* Content notes */
.content-notes {
  margin: 2.25rem 0 0;
  border: 1px solid rgba(184, 154, 94, 0.2);
  background: rgba(20, 17, 22, 0.5);
}

.content-notes__summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.25rem;
  list-style: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.content-notes__summary::-webkit-details-marker {
  display: none;
}

.content-notes__summary:focus-visible {
  outline: 1px solid var(--gold);
  outline-offset: 3px;
}

.content-notes__heading {
  display: grid;
  gap: 0.2rem;
}

.content-notes__title {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--bone);
}

.content-notes__hint {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-style: italic;
  color: rgba(237, 230, 218, 0.55);
}

.content-notes[open] .content-notes__hint {
  display: none;
}

/* plus that turns into a minus */
.content-notes__icon {
  position: relative;
  flex: none;
  width: 0.9rem;
  height: 0.9rem;
}

.content-notes__icon::before,
.content-notes__icon::after {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 100%;
  height: 1px;
  background: var(--gold);
  transition: transform 0.5s var(--ease-velvet);
}

.content-notes__icon::after {
  transform: rotate(90deg);
}

.content-notes[open] .content-notes__icon::after {
  transform: rotate(0deg);
}

.content-notes__body {
  padding: 0 1.25rem 1.35rem;
}

.content-notes__list {
  display: grid;
  gap: 0.55rem;
  margin: 0;
  padding: 1.1rem 0 0;
  list-style: none;
  border-top: 1px solid rgba(184, 154, 94, 0.12);
}

.content-notes__list li {
  position: relative;
  padding-left: 1.1rem;
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--bone-muted);
}

.content-notes__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 0.45rem;
  height: 1px;
  background: var(--gold-soft);
}

.content-notes__note {
  margin: 1.1rem 0 0;
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-style: italic;
  line-height: 1.5;
  color: var(--bone);
}

@media (min-width: 560px) {
  .featured__cta .btn {
    width: auto;
  }
}

@media (min-width: 900px) {
  .author-hero {
    padding-top: calc(4.5rem + 3.5rem);
    padding-bottom: 3.5rem;
  }

  .author-hero__portrait {
    width: 9rem;
    height: 9rem;
  }

  .author-hero__initials {
    font-size: 3rem;
  }

  .featured__grid {
    grid-template-columns: minmax(16rem, 23rem) minmax(0, 34rem);
    justify-content: center;
    justify-items: stretch;
    align-items: start;
    gap: clamp(3rem, 6vw, 5.5rem);
  }

  .featured__cover {
    position: sticky;
    top: 6.5rem;
    width: 100%;
  }

  .featured__body {
    align-items: flex-start;
    text-align: left;
  }

  .featured__hook::before {
    margin-left: 0;
  }

  .featured__meta {
    align-items: flex-start;
  }

  .featured__meta .tropes {
    justify-content: flex-start;
  }
}

/* ---------- 3. Sticky mobile CTA ---------- */

.sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  padding:
    0.6rem max(1rem, env(safe-area-inset-right))
    calc(0.6rem + env(safe-area-inset-bottom))
    max(1rem, env(safe-area-inset-left));
  background: rgba(11, 10, 12, 0.88);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-top: 1px solid rgba(184, 154, 94, 0.18);
  box-shadow: 0 -20px 40px -20px rgba(0, 0, 0, 0.8);
  opacity: 0;
  transform: translateY(110%);
  transition:
    transform 0.55s var(--ease-velvet),
    opacity 0.55s var(--ease-velvet);
}

.sticky-cta.is-visible {
  opacity: 1;
  transform: none;
}

.sticky-cta__inner {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.sticky-cta__thumb {
  position: relative;
  flex: none;
  width: 2.1rem;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  border-radius: 1px;
  background: linear-gradient(170deg, #3a0f19, #0e0a0d);
  box-shadow: 0 0 0 1px rgba(184, 154, 94, 0.3);
}

.sticky-cta__thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sticky-cta__title {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  font-family: var(--font-serif);
  font-size: 1.15rem;
  white-space: nowrap;
  text-overflow: ellipsis;
  color: var(--bone);
}

.sticky-cta .sticky-cta__btn {
  flex: none;
  min-width: 0;
  min-height: 2.75rem;
  padding: 0.6rem 1.1rem;
  font-size: 0.64rem;
  letter-spacing: 0.2em;
}

@media (min-width: 768px) {
  .sticky-cta {
    display: none;
  }
}

/* ---------- 4. More from the author ---------- */

.books--mini {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 3.5rem 2.5rem;
}

.book--mini {
  flex: 0 1 17rem;
}

.book--mini .book__cover-link {
  width: min(100%, 11rem);
  margin-bottom: 1.5rem;
}

.book--mini .book__title {
  font-size: 1.6rem;
}

.book--mini .book__title--soon {
  font-size: 1.4rem;
  margin-bottom: 0.75rem;
}

.book--mini .spice {
  margin: 0.9rem 0 0.5rem;
}

/* ---------- 5. About the author ---------- */

.about-author {
  text-align: center;
}

.about-author__bio p {
  margin: 0 0 1.25rem;
  font-size: 0.98rem;
  line-height: 1.8;
  color: var(--bone-muted);
}

.about-author__bio p:first-child {
  font-family: var(--font-serif);
  font-size: clamp(1.3rem, 5vw, 1.55rem);
  font-weight: 300;
  line-height: 1.5;
  color: var(--bone);
}

.about-author__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 2.25rem;
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
}

/* Sections sit in separate render slots, so tighten the gaps explicitly */
.author-page [data-about] .section,
.author-page .page > .newsletter {
  padding-top: 0;
}

@media (prefers-reduced-motion: reduce) {
  .blurb-more,
  .blurb-more__inner,
  .read-more svg,
  .content-notes__icon::before,
  .content-notes__icon::after,
  .sticky-cta {
    transition-duration: 0.01ms !important;
  }
}

/* ==========================================================================
   Newsletter states, consent banner, legal pages
   ========================================================================== */

/* ---------- Newsletter: error, legal line, loading ---------- */

.newsletter__error {
  max-width: 28rem;
  margin: 0.85rem auto 0;
  font-size: 0.82rem;
  line-height: 1.5;
  color: #e3a39a;
}

.newsletter__error:empty {
  display: none;
}

.newsletter__input[aria-invalid="true"] {
  border-color: rgba(227, 163, 154, 0.7);
}

.newsletter__legal {
  max-width: 26rem;
  margin: 1.25rem auto 0;
  font-size: 0.72rem;
  line-height: 1.6;
  color: rgba(237, 230, 218, 0.45);
}

.newsletter__legal a {
  color: rgba(237, 230, 218, 0.7);
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  text-decoration-color: rgba(184, 154, 94, 0.5);
}

.newsletter__legal a:hover {
  color: var(--gold);
}

.newsletter__button.is-loading {
  cursor: progress;
}

.newsletter__button.is-loading::before {
  content: "";
  width: 0.7rem;
  height: 0.7rem;
  margin-right: 0.6rem;
  border: 1px solid rgba(237, 230, 218, 0.35);
  border-top-color: var(--bone);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}

.btn:disabled {
  opacity: 0.85;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ---------- Footer: legal links ---------- */

.footer__meta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.footer__legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer__legal a,
.footer__legal button {
  padding: 0;
  font-family: var(--font-sans);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-decoration: none;
  color: rgba(237, 230, 218, 0.5);
  background: none;
  border: 0;
  cursor: pointer;
  transition: color 0.4s var(--ease-velvet);
}

.footer__legal a:hover,
.footer__legal button:hover {
  color: var(--gold);
}

@media (min-width: 768px) {
  .footer__meta {
    align-items: flex-end;
    gap: 0.5rem;
  }
}

/* ---------- Cookie consent banner ---------- */

.consent {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  padding:
    1rem max(1rem, env(safe-area-inset-right))
    calc(1rem + env(safe-area-inset-bottom))
    max(1rem, env(safe-area-inset-left));
  background: rgba(11, 10, 12, 0.94);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-top: 1px solid rgba(184, 154, 94, 0.22);
  box-shadow: 0 -20px 50px -20px rgba(0, 0, 0, 0.9);
  opacity: 0;
  transform: translateY(100%);
  transition:
    transform 0.6s var(--ease-velvet),
    opacity 0.6s var(--ease-velvet);
}

.consent.is-visible {
  opacity: 1;
  transform: none;
}

.consent__inner {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  max-width: 60rem;
  margin: 0 auto;
}

.consent__text {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.55;
  color: var(--bone-muted);
}

.consent__text a {
  margin-left: 0.25rem;
  color: var(--gold);
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  white-space: nowrap;
}

.consent__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
}

/* Accept and Decline share one style on purpose: equally prominent. */
.consent__btn {
  min-height: 2.75rem;
  padding: 0.6rem 1.25rem;
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--bone);
  background: rgba(237, 230, 218, 0.04);
  border: 1px solid rgba(237, 230, 218, 0.4);
  border-radius: 1px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition:
    color 0.4s var(--ease-velvet),
    border-color 0.4s var(--ease-velvet);
}

.consent__btn:hover {
  color: var(--gold);
  border-color: var(--gold);
}

.consent__btn:focus-visible {
  outline: 1px solid var(--gold);
  outline-offset: 3px;
}

/* The banner and the sticky book bar share the bottom edge on phones. */
body.consent-open .sticky-cta {
  display: none;
}

@media (min-width: 768px) {
  .consent {
    left: 50%;
    right: auto;
    bottom: 1.25rem;
    width: min(calc(100% - 2.5rem), 52rem);
    padding: 1rem 1.25rem 1rem 1.5rem;
    border: 1px solid rgba(184, 154, 94, 0.22);
    transform: translate(-50%, calc(100% + 2rem));
  }

  .consent.is-visible {
    transform: translate(-50%, 0);
  }

  .consent__inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
  }

  .consent__actions {
    flex: none;
    grid-template-columns: repeat(2, 8.5rem);
  }
}

/* ---------- Legal pages (privacy policy) ---------- */

.legal-hero {
  padding: calc(4rem + env(safe-area-inset-top) + 3rem) 0 2.5rem;
  text-align: center;
  background: radial-gradient(90% 70% at 50% 0%, rgba(94, 15, 26, 0.22), transparent 70%);
}

.legal-hero__title {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(2.6rem, 11vw, 4rem);
  font-weight: 300;
  line-height: 1.05;
  color: var(--bone);
}

.legal-hero__updated {
  margin: 1.25rem 0 0;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: rgba(237, 230, 218, 0.5);
}

.prose {
  padding-bottom: clamp(4.5rem, 14vw, 7rem);
}

.prose h2 {
  margin: 3rem 0 1rem;
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 6vw, 2rem);
  font-weight: 400;
  line-height: 1.2;
  color: var(--bone);
}

.prose h2:first-child {
  margin-top: 0;
}

.prose h3 {
  margin: 1.75rem 0 0.5rem;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
}

.prose p,
.prose li {
  font-size: 0.98rem;
  line-height: 1.75;
  color: var(--bone-muted);
}

.prose p {
  margin: 0 0 1rem;
}

.prose ul {
  margin: 0 0 1rem;
  padding-left: 1.2rem;
}

.prose li {
  margin-bottom: 0.4rem;
}

.prose li::marker {
  color: var(--gold);
}

.prose strong {
  font-weight: 500;
  color: var(--bone);
}

.prose a {
  color: var(--bone);
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  text-decoration-color: var(--gold-soft);
  transition: color 0.4s var(--ease-velvet);
}

.prose a:hover {
  color: var(--gold);
}

.prose button {
  padding: 0;
  font: inherit;
  color: var(--bone);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  text-decoration-color: var(--gold-soft);
  background: none;
  border: 0;
  cursor: pointer;
}

.prose button:hover {
  color: var(--gold);
}

@media (prefers-reduced-motion: reduce) {
  .consent {
    transition-duration: 0.01ms !important;
  }

  .newsletter__button.is-loading::before {
    animation-duration: 2.5s;
  }
}
