:root {
  --midnight: #080A14;
  --deep-indigo: #111225;
  --plum: #25182F;
  --aubergine: #3A243D;
  --ember: #9A5946;
  --antique-gold: #C89B62;
  --soft-gold: #E7C88B;
  --candle-cream: #F6E6C6;
  --muted-cream: #D9CCB8;
  --ink-shadow: rgba(0, 0, 0, 0.58);
  --glass: rgba(17, 18, 37, 0.68);
  --gold-line: rgba(200, 155, 98, 0.42);
  --max-width: 1280px;
  --section-pad: clamp(3.9rem, 6.5vw, 6.5rem);
  --serif-display: "Cormorant Garamond", "Playfair Display", "Bodoni 72", Georgia, serif;
  --serif-body: Lora, "EB Garamond", "Libre Baskerville", Georgia, serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  color: var(--muted-cream);
  background:
    radial-gradient(circle at 16% 8%, rgba(154, 89, 70, 0.2), transparent 34rem),
    radial-gradient(circle at 78% 18%, rgba(58, 36, 61, 0.42), transparent 32rem),
    linear-gradient(180deg, var(--midnight), var(--deep-indigo) 38%, #0a0a12 100%);
  font-family: var(--serif-body);
  font-size: 18px;
  line-height: 1.68;
  text-rendering: optimizeLegibility;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  content: "";
  opacity: 0.08;
  background-image: url("assets/textures/texture-paper-grain-subtle.jpg");
  background-size: 520px 520px;
  mix-blend-mode: soft-light;
}

body.nav-open {
  overflow: hidden;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--soft-gold);
  outline-offset: 4px;
}

::selection {
  color: var(--midnight);
  background: var(--soft-gold);
}

.skip-link {
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 200;
  padding: 0.55rem 0.85rem;
  color: var(--midnight);
  background: var(--soft-gold);
  border-radius: 999px;
  transform: translateY(-160%);
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  padding: 1rem 0;
  transition: padding 240ms ease, background 240ms ease, border-color 240ms ease;
}

.site-header::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  opacity: 0;
  background: rgba(8, 10, 20, 0.72);
  border-bottom: 1px solid var(--gold-line);
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(18px);
  transition: opacity 240ms ease;
}

.site-header.is-scrolled,
.site-header.is-open {
  padding-block: 0.68rem;
}

.site-header.is-scrolled::before,
.site-header.is-open::before {
  opacity: 1;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(calc(100% - 48px), var(--max-width));
  margin: 0 auto;
}

.brand,
.nav-links a,
.section-kicker,
.button,
.retailer-button,
.footer-links a {
  font-family: var(--serif-display);
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.brand {
  color: var(--candle-cream);
  font-size: clamp(0.85rem, 1vw, 0.98rem);
  text-shadow: 0 0 28px rgba(231, 200, 139, 0.26);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.8vw, 2rem);
}

.nav-links a {
  position: relative;
  color: rgba(246, 230, 198, 0.82);
  font-size: 0.73rem;
  transition: color 180ms ease;
}

.nav-links a::after {
  position: absolute;
  right: 0;
  bottom: -0.42rem;
  left: 0;
  height: 1px;
  content: "";
  background: var(--soft-gold);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 180ms ease;
}

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

.nav-links a:hover::after {
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  color: var(--candle-cream);
  cursor: pointer;
  background: rgba(8, 10, 20, 0.34);
  border: 1px solid rgba(200, 155, 98, 0.45);
  border-radius: 999px;
}

.nav-toggle span {
  display: block;
  width: 1.1rem;
  height: 1px;
  margin: 0.26rem auto;
  background: currentColor;
  transition: transform 180ms ease, opacity 180ms ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(0.32rem) rotate(42deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-0.32rem) rotate(-42deg);
}

.section-bleed {
  position: relative;
  isolation: isolate;
}

.hero {
  display: grid;
  min-height: 94svh;
  padding: clamp(6rem, 11vh, 8rem) 0 clamp(2rem, 5vh, 3.4rem);
  overflow: hidden;
}

.hero-bg,
.hero-bg::before,
.hero-bg::after {
  position: absolute;
  inset: 0;
  z-index: -3;
  content: "";
}

.hero-bg {
  background-image:
    linear-gradient(90deg, rgba(8, 10, 20, 0.92), rgba(8, 10, 20, 0.7) 50%, rgba(8, 10, 20, 0.92)),
    url("assets/backgrounds/background-hero-stained-glass.jpg");
  background-position: center;
  background-size: cover;
  transform: scale(1.015);
}

.hero-bg::before {
  z-index: -2;
  background:
    radial-gradient(circle at 50% 58%, rgba(231, 200, 139, 0.16), transparent 15rem),
    radial-gradient(circle at 50% 82%, rgba(154, 89, 70, 0.34), transparent 25rem),
    radial-gradient(circle at center, transparent 30%, rgba(0, 0, 0, 0.58) 100%);
}

.hero-bg::after {
  z-index: -1;
  opacity: 0.1;
  background-image: url("assets/textures/texture-paper-grain-subtle.jpg");
  background-size: 420px 420px;
  mix-blend-mode: overlay;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-areas:
    "copy"
    "actions";
  grid-template-columns: minmax(0, 1fr);
  justify-items: center;
  align-items: center;
  gap: clamp(1.35rem, 3vw, 2.1rem);
  width: min(calc(100% - 48px), 1040px);
  margin: auto;
  text-align: center;
}

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

.hero-grid::before {
  z-index: -1;
  width: min(78vw, 36rem);
  aspect-ratio: 1;
  border: 1px solid rgba(231, 200, 139, 0.16);
  border-radius: 50%;
  opacity: 0.55;
  background:
    radial-gradient(circle, transparent 0 29%, rgba(231, 200, 139, 0.1) 30% 31%, transparent 32% 43%, rgba(200, 155, 98, 0.14) 44% 45%, transparent 46%),
    repeating-conic-gradient(from -13deg, rgba(231, 200, 139, 0.2) 0deg 1.5deg, transparent 1.5deg 18deg);
  filter: drop-shadow(0 0 44px rgba(231, 200, 139, 0.14));
}

.hero-grid::after {
  z-index: -2;
  bottom: -4rem;
  width: min(76vw, 36rem);
  height: 18rem;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(246, 230, 198, 0.34), rgba(231, 200, 139, 0.18) 22%, rgba(154, 89, 70, 0.2) 46%, transparent 72%);
  filter: blur(16px);
  animation: candlePulse 5s ease-in-out infinite;
}

.hero-copy {
  grid-area: copy;
  max-width: 58rem;
  position: relative;
  z-index: 1;
}

.eyebrow,
.section-kicker {
  margin: 0 0 0.9rem;
  color: var(--antique-gold);
  font-size: clamp(0.72rem, 1vw, 0.82rem);
  font-weight: 600;
}

.hero-title {
  margin: 0;
  color: var(--candle-cream);
  font-family: var(--serif-display);
  font-weight: 500;
  line-height: 0.86;
  text-wrap: balance;
}

.title-spark {
  display: block;
  color: rgba(246, 230, 198, 0.98);
  font-size: clamp(5.2rem, 12vw, 10.4rem);
  letter-spacing: 0.24em;
  text-indent: 0.24em;
  text-transform: uppercase;
}

.title-sunrise {
  display: block;
  margin-top: -0.08em;
  color: var(--candle-cream);
  font-size: clamp(4.7rem, 10vw, 9rem);
  font-style: italic;
  letter-spacing: 0;
  text-shadow:
    0 0 24px rgba(231, 200, 139, 0.26),
    0 12px 34px rgba(0, 0, 0, 0.42);
}

.hero-subtitle {
  width: min(100%, 34rem);
  margin: 1.4rem auto 0;
  color: var(--soft-gold);
  font-size: clamp(1.12rem, 1.8vw, 1.48rem);
  font-style: italic;
  line-height: 1.42;
}

.hero-intro {
  width: min(100%, 38rem);
  margin: 1.3rem auto 0;
  color: rgba(246, 230, 198, 0.84);
  font-size: clamp(1rem, 1.4vw, 1.17rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  grid-area: actions;
  justify-content: center;
  gap: 0.9rem;
  margin-top: 0.2rem;
  position: relative;
  z-index: 1;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.3rem;
  padding: 0.8rem 1.15rem;
  overflow: hidden;
  position: relative;
  color: var(--candle-cream);
  font-size: 0.72rem;
  font-weight: 700;
  border: 1px solid rgba(200, 155, 98, 0.58);
  border-radius: 999px;
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.22);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease, color 180ms ease;
}

.button::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background:
    radial-gradient(circle at 50% 100%, rgba(246, 230, 198, 0.22), transparent 70%),
    linear-gradient(135deg, rgba(200, 155, 98, 0.24), rgba(154, 89, 70, 0.18));
  opacity: 0.9;
}

.button-primary {
  color: var(--midnight);
  background: linear-gradient(135deg, var(--soft-gold), var(--antique-gold));
  border-color: rgba(246, 230, 198, 0.68);
}

.button-secondary {
  background: rgba(8, 10, 20, 0.45);
  backdrop-filter: blur(10px);
}

.button:hover {
  color: var(--candle-cream);
  border-color: var(--soft-gold);
  box-shadow: 0 0 32px rgba(231, 200, 139, 0.23), 0 18px 46px rgba(0, 0, 0, 0.32);
  transform: translateY(-2px);
}

.button-primary:hover {
  color: var(--midnight);
}

.page-section {
  position: relative;
  padding: var(--section-pad) 0;
}

.page-section::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(180deg, rgba(8, 10, 20, 0), rgba(58, 36, 61, 0.15) 48%, rgba(8, 10, 20, 0)),
    radial-gradient(circle at 88% 8%, rgba(200, 155, 98, 0.08), transparent 23rem);
}

.section-shell {
  width: min(calc(100% - 48px), var(--max-width));
  margin: 0 auto;
}

.about-layout,
.author-layout,
.buy-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.98fr) minmax(360px, 0.9fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 4.4rem);
}

.about-panel,
.quote-panel,
.buy-panel {
  border: 1px solid var(--gold-line);
  box-shadow: 0 24px 72px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(246, 230, 198, 0.08);
}

.about-panel {
  position: relative;
  padding: clamp(1.6rem, 4vw, 3rem);
  max-width: 44rem;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(17, 18, 37, 0.88), rgba(37, 24, 47, 0.73)),
    radial-gradient(circle at 100% 0%, rgba(200, 155, 98, 0.14), transparent 18rem);
  border-radius: 8px;
}

.about-book-media {
  display: grid;
  min-width: 0;
  place-items: center;
}

.about-book-stage {
  position: relative;
  display: grid;
  width: min(100%, 43rem);
  min-height: clamp(26rem, 48vw, 41rem);
  place-items: center;
}

.about-book-stage::before,
.about-book-stage::after {
  position: absolute;
  content: "";
  pointer-events: none;
}

.about-book-stage::before {
  width: min(80%, 31rem);
  aspect-ratio: 1;
  border: 1px solid rgba(231, 200, 139, 0.25);
  border-radius: 50%;
  background:
    repeating-conic-gradient(from 9deg, rgba(231, 200, 139, 0.2) 0deg 2deg, transparent 2deg 22deg),
    radial-gradient(circle, rgba(231, 200, 139, 0.1), transparent 68%);
  filter: drop-shadow(0 0 36px rgba(231, 200, 139, 0.12));
}

.about-book-stage::after {
  bottom: 13%;
  width: min(82%, 32rem);
  height: 28%;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(231, 200, 139, 0.3), rgba(154, 89, 70, 0.2) 34%, transparent 72%);
  filter: blur(15px);
}

.about-book {
  position: relative;
  z-index: 1;
  width: min(112%, 44rem);
  max-height: min(66vh, 40rem);
  object-fit: contain;
  filter: drop-shadow(0 34px 46px rgba(0, 0, 0, 0.55));
  animation: bookFloat 7s ease-in-out infinite;
}

.about-panel::before,
.about-panel::after {
  position: absolute;
  width: 0.52rem;
  height: 0.52rem;
  content: "";
  border: 1px solid rgba(231, 200, 139, 0.62);
  transform: rotate(45deg);
}

.about-panel::before {
  top: 1.2rem;
  right: 1.2rem;
}

.about-panel::after {
  bottom: 1.2rem;
  left: 1.2rem;
}

.section-title {
  margin: 0;
  color: var(--candle-cream);
  font-family: var(--serif-display);
  font-size: clamp(2.5rem, 5vw, 4.6rem);
  font-weight: 500;
  line-height: 0.98;
  text-wrap: balance;
}

.copy-block {
  margin-top: 1.35rem;
  color: rgba(246, 230, 198, 0.82);
}

.copy-block p {
  margin: 0;
}

.copy-block p + p {
  margin-top: 1.1rem;
}

cite {
  color: var(--candle-cream);
  font-style: italic;
}

.pull-quote {
  position: relative;
  margin: 2rem 0 0;
  padding: 1.1rem 0 0 1.2rem;
  color: var(--soft-gold);
  font-family: var(--serif-display);
  font-size: clamp(1.3rem, 2.2vw, 1.75rem);
  font-style: italic;
  line-height: 1.35;
  border-top: 1px solid rgba(200, 155, 98, 0.38);
}

.pull-quote blockquote {
  margin: 0;
}

.pull-quote span {
  display: block;
}

.pull-quote::before {
  position: absolute;
  top: -0.36rem;
  left: 0;
  width: 0.62rem;
  height: 0.62rem;
  content: "";
  background: var(--antique-gold);
  transform: rotate(45deg);
}

.section-heading {
  width: min(100%, 42rem);
  margin-bottom: clamp(1.8rem, 4vw, 3rem);
}

.theme-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.theme-card {
  position: relative;
  min-height: 16rem;
  padding: 1.5rem;
  overflow: hidden;
  background:
    linear-gradient(145deg, rgba(17, 18, 37, 0.82), rgba(58, 36, 61, 0.66)),
    radial-gradient(circle at 18% 0%, rgba(231, 200, 139, 0.11), transparent 14rem);
  border: 1px solid rgba(200, 155, 98, 0.34);
  border-radius: 8px;
  box-shadow: inset 0 1px 0 rgba(246, 230, 198, 0.07), 0 18px 50px rgba(0, 0, 0, 0.22);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.theme-card::before {
  position: absolute;
  inset: 0;
  z-index: 0;
  content: "";
  opacity: 0.1;
  background:
    linear-gradient(90deg, transparent 48%, rgba(231, 200, 139, 0.45) 49%, transparent 50%),
    linear-gradient(132deg, transparent 47%, rgba(231, 200, 139, 0.5) 49%, transparent 51%),
    linear-gradient(48deg, transparent 48%, rgba(231, 200, 139, 0.4) 50%, transparent 52%),
    url("assets/textures/texture-paper-grain-subtle.jpg");
  background-size: auto, auto, auto, 420px 420px;
}

.theme-card::after {
  position: absolute;
  right: -1.4rem;
  bottom: -1.4rem;
  width: 7rem;
  height: 7rem;
  content: "";
  border: 1px solid rgba(200, 155, 98, 0.24);
  border-radius: 50%;
}

.theme-card > * {
  position: relative;
  z-index: 1;
}

.theme-card:hover {
  border-color: rgba(231, 200, 139, 0.68);
  box-shadow: 0 0 28px rgba(231, 200, 139, 0.12), 0 22px 62px rgba(0, 0, 0, 0.3);
  transform: translateY(-4px);
}

.theme-mark {
  display: block;
  width: 2.35rem;
  height: 2.35rem;
  margin-bottom: 1.25rem;
  background:
    linear-gradient(135deg, transparent 42%, rgba(231, 200, 139, 0.72) 43% 56%, transparent 57%),
    linear-gradient(45deg, transparent 42%, rgba(231, 200, 139, 0.56) 43% 56%, transparent 57%),
    radial-gradient(circle at center, rgba(154, 89, 70, 0.64), transparent 60%);
  border: 1px solid rgba(231, 200, 139, 0.5);
  transform: rotate(45deg);
}

.theme-card h3 {
  margin: 0;
  color: var(--candle-cream);
  font-family: var(--serif-display);
  font-size: clamp(1.55rem, 2.6vw, 2rem);
  font-weight: 500;
  line-height: 1.08;
}

.theme-card p {
  margin: 0.9rem 0 0;
  color: rgba(246, 230, 198, 0.76);
  font-size: 0.98rem;
  line-height: 1.55;
}

.excerpt-section {
  overflow: hidden;
}

.quote-shell {
  display: grid;
  place-items: center;
}

.quote-panel {
  position: relative;
  width: min(100%, 58rem);
  padding: clamp(2rem, 6vw, 4.6rem);
  overflow: hidden;
  text-align: center;
  background:
    radial-gradient(circle at 50% 65%, rgba(231, 200, 139, 0.16), transparent 24rem),
    linear-gradient(145deg, rgba(17, 18, 37, 0.88), rgba(37, 24, 47, 0.82));
  border-radius: 8px;
}

.quote-panel::before {
  position: absolute;
  inset: -10rem 12% auto;
  height: 20rem;
  content: "";
  background: radial-gradient(ellipse at center, rgba(154, 89, 70, 0.26), transparent 70%);
  filter: blur(8px);
}

.path-illustration {
  position: absolute;
  right: -10%;
  bottom: -18%;
  z-index: 0;
  width: 74%;
  max-width: 42rem;
  opacity: 0.13;
  filter: invert(92%) sepia(30%) saturate(694%) hue-rotate(341deg) brightness(98%) contrast(89%);
  mix-blend-mode: screen;
}

.quote-panel > *:not(.path-illustration) {
  position: relative;
  z-index: 1;
}

.quote-panel figure {
  margin: 0;
}

.quote-panel blockquote {
  margin: 1.2rem 0 0;
  color: var(--candle-cream);
  font-family: var(--serif-display);
  font-size: clamp(2rem, 4.8vw, 4rem);
  font-style: italic;
  font-weight: 500;
  line-height: 1.14;
  text-shadow: 0 0 28px rgba(231, 200, 139, 0.14);
}

.quote-panel figcaption {
  margin-top: 1.35rem;
  color: var(--soft-gold);
  font-family: var(--serif-display);
  font-size: 1.05rem;
  letter-spacing: 0.06em;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  white-space: nowrap;
  border: 0;
  clip: rect(0, 0, 0, 0);
}

.author-layout {
  grid-template-columns: minmax(360px, 0.78fr) minmax(0, 1fr);
}

.author-photo-frame {
  position: relative;
  display: grid;
  min-height: clamp(27rem, 44vw, 35rem);
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at center, rgba(200, 155, 98, 0.16), transparent 15rem),
    linear-gradient(145deg, rgba(37, 24, 47, 0.72), rgba(8, 10, 20, 0.78));
  border: 1px solid rgba(200, 155, 98, 0.34);
  border-radius: 8px 8px 46% 46%;
  box-shadow: 0 30px 76px rgba(0, 0, 0, 0.32), 0 0 46px rgba(231, 200, 139, 0.08);
}

.author-photo-frame::before {
  position: absolute;
  inset: 1rem;
  content: "";
  z-index: 2;
  pointer-events: none;
  border: 1px solid rgba(231, 200, 139, 0.26);
  border-radius: 8px 8px 48% 48%;
}

.author-photo-frame::after {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(180deg, transparent 45%, rgba(8, 10, 20, 0.2)),
    radial-gradient(circle at 82% 18%, rgba(231, 200, 139, 0.16), transparent 16rem);
  mix-blend-mode: soft-light;
}

.author-photo {
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
  object-position: 54% 50%;
  filter: saturate(0.86) contrast(1.02) brightness(0.92);
}

.author-copy {
  position: relative;
}

.author-copy::before {
  display: block;
  width: 4.5rem;
  height: 1px;
  margin-bottom: 1.4rem;
  content: "";
  background: var(--antique-gold);
}

.buy-section {
  padding-bottom: clamp(4.5rem, 7vw, 6.5rem);
}

.buy-panel {
  position: relative;
  overflow: hidden;
  padding: clamp(1.35rem, 4vw, 3.2rem);
  background:
    radial-gradient(circle at 78% 78%, rgba(246, 230, 198, 0.18), transparent 18rem),
    radial-gradient(circle at 14% 20%, rgba(231, 200, 139, 0.13), transparent 20rem),
    linear-gradient(135deg, rgba(8, 10, 20, 0.96), rgba(58, 36, 61, 0.86) 54%, rgba(154, 89, 70, 0.64));
  border-radius: 8px;
}

.buy-panel::before {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  opacity: 0.12;
  background-image: url("assets/backgrounds/background-stained-glass-mosaic.jpg");
  background-position: center;
  background-size: cover;
  mix-blend-mode: overlay;
}

.buy-panel > * {
  position: relative;
  z-index: 1;
}

.buy-copy {
  max-width: 42rem;
}

.buy-copy p:not(.section-kicker) {
  margin: 1.25rem 0 0;
  color: rgba(246, 230, 198, 0.82);
  font-size: clamp(1rem, 1.4vw, 1.15rem);
}

.retailer-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.82rem;
  margin-top: 2rem;
}

.retailer-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 12.25rem;
  min-height: 3.35rem;
  padding: 0.66rem 1rem;
  color: var(--candle-cream);
  font-size: 0.68rem;
  font-weight: 700;
  background: rgba(8, 10, 20, 0.58);
  border: 1px solid rgba(200, 155, 98, 0.52);
  border-radius: 999px;
  box-shadow: inset 0 1px 0 rgba(246, 230, 198, 0.08);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.retailer-button img {
  width: auto;
  max-width: 8.3rem;
  height: 1.22rem;
  margin: 0;
  object-fit: contain;
  filter: brightness(0) saturate(100%) invert(88%) sepia(30%) saturate(638%) hue-rotate(345deg) brightness(95%) contrast(89%);
}

.retailer-button span {
  line-height: 1;
}

.retailer-button:hover {
  border-color: var(--soft-gold);
  box-shadow: 0 0 24px rgba(231, 200, 139, 0.17), inset 0 1px 0 rgba(246, 230, 198, 0.12);
  transform: translateY(-2px);
}

.buy-book-wrap {
  display: grid;
  place-items: center;
}

.buy-book {
  width: min(100%, 19.5rem);
  border-radius: 5px;
  box-shadow:
    0 30px 70px rgba(0, 0, 0, 0.46),
    0 0 0 1px rgba(231, 200, 139, 0.22);
  transform: rotate(2deg);
}

.site-footer {
  position: relative;
  padding: 3rem clamp(1.1rem, 5vw, 2rem) 3.4rem;
  color: rgba(217, 204, 184, 0.78);
  background: #070810;
}

.footer-rule {
  display: grid;
  width: min(100%, var(--max-width));
  margin: 0 auto 2rem;
  place-items: center;
}

.footer-rule::before {
  grid-area: 1 / 1;
  width: 100%;
  height: 1px;
  content: "";
  background: linear-gradient(90deg, transparent, rgba(200, 155, 98, 0.54), transparent);
}

.footer-rule span {
  grid-area: 1 / 1;
  width: 0.55rem;
  height: 0.55rem;
  background: #070810;
  border: 1px solid rgba(231, 200, 139, 0.62);
  transform: rotate(45deg);
}

.footer-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  width: min(100%, var(--max-width));
  gap: 2rem;
  margin: 0 auto;
}

.footer-title {
  margin: 0 0 0.2rem;
  color: var(--candle-cream);
  font-family: var(--serif-display);
  font-size: 1.5rem;
  font-style: italic;
}

.site-footer p {
  margin: 0.24rem 0;
  font-size: 0.96rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.9rem 1.25rem;
  max-width: 24rem;
}

.footer-links a {
  color: rgba(231, 200, 139, 0.78);
  font-size: 0.68rem;
}

.footer-links a:hover {
  color: var(--candle-cream);
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 700ms ease, transform 700ms ease;
  transition-delay: var(--reveal-delay, 0ms);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes bookFloat {
  0%,
  100% {
    transform: translate3d(0, -0.4rem, 0) rotate(-0.6deg);
  }
  50% {
    transform: translate3d(0, 0.45rem, 0) rotate(0.7deg);
  }
}

@keyframes candlePulse {
  0%,
  100% {
    opacity: 0.72;
    transform: scale(0.95);
  }
  50% {
    opacity: 0.98;
    transform: scale(1.05);
  }
}

@media (max-width: 980px) {
  body {
    font-size: 17px;
  }

  .hero {
    padding-top: 6.75rem;
  }

  .hero-grid {
    grid-template-areas:
      "copy"
      "actions";
    grid-template-columns: 1fr;
    gap: 1.25rem;
    text-align: center;
  }

  .hero-copy,
  .hero-subtitle,
  .hero-intro {
    margin-right: auto;
    margin-left: auto;
  }

  .hero-actions {
    justify-content: center;
    margin-top: 0;
  }

  .about-book-stage {
    min-height: clamp(21rem, 52vw, 31rem);
  }

  .about-book {
    width: min(100%, 40rem);
    max-height: 31rem;
  }

  .about-layout,
  .author-layout,
  .buy-panel {
    grid-template-columns: 1fr;
  }

  .theme-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .author-layout {
    gap: 2rem;
  }

  .author-photo-frame {
    min-height: 26rem;
  }

  .buy-book-wrap {
    order: -1;
  }

  .buy-book {
    width: min(58vw, 18rem);
  }
}

@media (max-width: 720px) {
  html {
    scroll-padding-top: 5rem;
  }

  .site-header {
    padding: 0.72rem 0;
  }

  .site-nav,
  .section-shell,
  .hero-grid {
    width: min(calc(100% - 28px), var(--max-width));
  }

  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: fixed;
    top: 4.2rem;
    right: 1rem;
    left: 1rem;
    display: grid;
    gap: 0;
    padding: 0.8rem;
    background: rgba(8, 10, 20, 0.92);
    border: 1px solid rgba(200, 155, 98, 0.42);
    border-radius: 8px;
    box-shadow: 0 20px 70px rgba(0, 0, 0, 0.5);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-0.7rem);
    transition: opacity 180ms ease, transform 180ms ease;
    backdrop-filter: blur(18px);
  }

  .nav-links.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav-links a {
    display: block;
    padding: 0.9rem;
    font-size: 0.75rem;
    border-bottom: 1px solid rgba(200, 155, 98, 0.14);
  }

  .nav-links a:last-child {
    border-bottom: 0;
  }

  .nav-links a::after {
    display: none;
  }

  .hero {
    min-height: 88svh;
    padding: 5.5rem 0 2rem;
  }

  .hero-grid {
    gap: 0.75rem;
  }

  .title-spark {
    font-size: clamp(3.35rem, 18vw, 5.1rem);
    letter-spacing: 0.18em;
    text-indent: 0.18em;
  }

  .title-sunrise {
    font-size: clamp(3.1rem, 16vw, 4.8rem);
  }

  .hero-subtitle {
    margin-top: 1rem;
    font-size: 1.08rem;
  }

  .hero-intro {
    margin-top: 0.85rem;
    font-size: 0.98rem;
    line-height: 1.56;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }

  .button {
    width: 100%;
  }

  .page-section {
    padding: clamp(3.6rem, 12vw, 4.6rem) 0;
  }

  .about-panel,
  .quote-panel,
  .buy-panel {
    padding: 1.25rem;
  }

  .section-title {
    font-size: clamp(2.2rem, 14vw, 3.15rem);
  }

  .copy-block,
  .buy-copy p:not(.section-kicker) {
    font-size: 1rem;
    line-height: 1.62;
  }

  .pull-quote {
    padding-left: 0.9rem;
    font-size: 1.28rem;
  }

  .theme-grid {
    grid-template-columns: 1fr;
  }

  .theme-card {
    min-height: auto;
  }

  .quote-panel blockquote {
    font-size: clamp(1.75rem, 10vw, 2.75rem);
  }

  .path-illustration {
    right: -30%;
    bottom: -12%;
    width: 120%;
  }

  .about-book-stage {
    min-height: 19rem;
  }

  .about-book {
    width: min(112%, 31rem);
    max-height: 20rem;
  }

  .author-photo-frame {
    min-height: 22rem;
    border-radius: 8px 8px 34% 34%;
  }

  .author-photo-frame::before {
    border-radius: 8px 8px 36% 36%;
  }

  .retailer-list,
  .retailer-button {
    width: 100%;
  }

  .buy-book {
    width: min(68vw, 15rem);
  }

  .footer-inner {
    display: grid;
    gap: 1.4rem;
  }

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

@media (max-width: 420px) {
  .brand {
    max-width: 12rem;
  }

  .title-spark {
    font-size: clamp(2.75rem, 17vw, 3.55rem);
  }

  .title-sunrise {
    font-size: clamp(2.72rem, 15vw, 3.35rem);
  }

  .retailer-button {
    min-width: 0;
  }
}

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

  .reveal {
    opacity: 1;
    transform: none;
  }
}
