:root {
  --lavender-gray: #aabf0b;
  --smoke-blue: #514ea6;
  --bone-white: #44732F;
  --stone-gray: #f2f2f2;
  --soft-gold: #bFb636;
  --rgb-lavender-gray: 199, 193, 217;
  --rgb-smoke-blue: 174, 184, 199;
  --rgb-bone-white: 248, 246, 242;
  --rgb-stone-gray: 140, 138, 134;
  --rgb-soft-gold: 201, 178, 122;
  --ink: var(--lavender-gray);
  --ivory: var(--bone-white);
  --gold: var(--soft-gold);
  --sage: var(--smoke-blue);
  --wine: var(--stone-gray);
  --slate: var(--stone-gray);
  --surface: #f2f2f2;
  --surface-2: #e5e1ec;
  --line: rgba(var(--rgb-soft-gold), 0.28);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  font-family: "Libre Baskerville", serif;
  background: var(--ink);
  color: var(--ivory);
  line-height: 1.6;
  animation: fadeIn 0.4s ease;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 999;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220' viewBox='0 0 220 220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23n)' opacity='0.8'/%3E%3C/svg%3E");
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  opacity: 0.07;
  background-image:
    linear-gradient(
      30deg,
      transparent 0%,
      rgba(114, 77, 214, 0.03) 1%,
      transparent 2%
    ),
    linear-gradient(
      150deg,
      transparent 0%,
      rgba(122, 140, 110, 0.04) 1%,
      transparent 2%
    );
  background-size: 80px 80px, 100px 100px;
}

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

button {
  font: inherit;
  color: inherit;
  background: transparent;
  border: none;
  cursor: pointer;
}

a:focus-visible,
button:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px rgba(184, 149, 42, 0.4);
}

::-webkit-scrollbar {
  width: 5px;
}

::-webkit-scrollbar-track {
  background: #080810;
}

::-webkit-scrollbar-thumb {
  background: rgba(184, 149, 42, 0.35);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(184, 149, 42, 0.6);
}

::selection {
  background: rgba(184, 149, 42, 0.25);
  color: #ede5d0;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.site-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.main-content {
  flex: 1;
  padding-top: 108px;
}

/* === NAVBAR === */

.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  backdrop-filter: blur(14px);
  background: rgba(8, 8, 16, 0.92);
  border-bottom: 1px solid rgba(184, 149, 42, 0.18);
}

.site-nav__inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 12px 24px 10px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
}

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

.nav-links a,
.footer-links a {
  position: relative;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(16, 16, 16, 0.6);
  transition: color 0.3s ease;
}

.nav-links a::after,
.footer-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 100%;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

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

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

.nav-brand {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.nav-brand__text {
  font-family: "Libre Baskerville", serif;
  font-size: 20px;
  color: var(--gold);
  letter-spacing: 0.4em;
  margin-right: -0.4em;
}

.brand-sigil {
  width: 30px;
  height: 30px;
  stroke: var(--gold);
  fill: none;
  opacity: 0.88;
}

.nav-icons {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.icon-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(237, 229, 208, 0.35);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(108, 85, 26, 0.75);
  transition: all 0.3s ease;
}

.icon-btn svg {
  width: 15px;
  height: 15px;
  stroke: currentColor;
  fill: none;
}

.icon-btn:hover {
  border-color: var(--gold);
  color: var(--gold);
  box-shadow: 0 0 12px rgba(184, 149, 42, 0.25);
}

/* === FOOTER === */

.site-footer {
  width: 100%;
  background: #050508;
  border-top: 1px solid rgba(184, 149, 42, 0.15);
  padding: 36px 40px 26px;
}

.site-footer__grid {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 20px;
  align-items: center;
}

.footer-logo {
  font-family: "Libre Baskerville", serif;
  font-size: 16px;
  letter-spacing: 0.3em;
  margin-right: -0.3em;
  color: var(--gold);
}

.footer-tagline {
  margin-top: 6px;
  font-family: "Playfair Display", serif;
  font-style: italic;
  font-size: 12px;
  color: rgba(234, 238, 232, 0.65);
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 14px;
}

.footer-links a {
  font-size: 10px;
  letter-spacing: 0.18em;
  color: rgba(16, 16, 16, 0.6);
}

.footer-right {
  text-align: right;
}

.footer-right .icon-btn {
  width: 28px;
  height: 28px;
}

.footer-social {
  display: inline-flex;
  gap: 8px;
  margin-bottom: 8px;
}

.copyright {
  font-size: 10px;
  letter-spacing: 0.06em;
  color: rgba(237, 229, 208, 0.22);
}

/* === HOME === */

.home-main {
  position: relative;
  min-height: calc(100vh - 110px);
  display: flex;
  flex-direction: column; 
  align-items: center;
  justify-content: space-between; 
  padding: 40px 24px; /* Más espacio arriba y abajo */
  box-sizing: border-box;
}

#stars-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.star {
  position: absolute;
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: var(--gold);
  animation: twinkle 3.2s ease-in-out infinite;
}

@keyframes twinkle {
  0%,
  100% {
    transform: scale(0.7);
    opacity: 0.2;
  }
  50% {
    transform: scale(1.2);
    opacity: 0.55;
  }
}

.hero-block {
  text-align: center;
  z-index: 3;
  padding: 0 16px;
  width: min(92vw, 760px);
  margin-bottom: 30px; 
  margin-top: 30px;
}

/* .hero-eyebrow {
  font-family: "Playfair Display", serif;
  font-style: italic;
  font-size: 13px;
  color: var(--sage);
  margin-bottom: 10px;
} */

.hero-title {
  font-family: "Libre Baskerville", serif;
  font-size: clamp(1.5rem, 5vw, 3.5rem);
  letter-spacing: 0.25em;
  color: var(--ivory);
  margin-bottom: 10px;
  word-wrap: break-word;
}

.hero-rule {
  width: 100px;
  height: 1px;
  margin: 14px auto;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.hero-subtitle {
  font-family: "Playfair Display", serif;
  font-style: italic;
  font-size: 15px;
  color: #f2f2f2;
  margin: 0;
  line-height: 1.5;
}

#orbit-ring {
  position: relative;
  width: 500px;
  height: 500px;
  margin-top: 10px;
}

.tarot-card {
  position: absolute;
  width: 160px;
  height: 260px;
  border-radius: 12px;
  border: 1px solid rgba(184, 149, 42, 0.45);
  background: linear-gradient(150deg, #10101e, #0c0c1a);
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.7),
    inset 0 0 24px rgba(122, 140, 110, 0.04),
    0 0 0 1px rgba(92, 45, 58, 0.15);
  transition:
    transform 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease;
  animation: cardSway 7s ease-in-out infinite alternate;
  transform-origin: center;
  cursor: pointer;
}

.tarot-card:nth-child(1) {
  animation-delay: -0.8s;
}

.tarot-card:nth-child(2) {
  animation-delay: -2.4s;
}

.tarot-card:nth-child(3) {
  animation-delay: -1.6s;
}

.tarot-card::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(184, 149, 42, 0.15);
  border-radius: 8px;
  pointer-events: none;
}

.tarot-card:hover {
  animation-play-state: paused;
  transform: scale(1.05);
  border-color: rgba(184, 149, 42, 0.9);
  box-shadow:
    0 16px 48px rgba(0, 0, 0, 0.8),
    0 0 18px rgba(184, 149, 42, 0.35),
    inset 0 0 24px rgba(122, 140, 110, 0.1);
}

.tarot-card:focus-visible {
  outline: none;
  border-color: rgba(184, 149, 42, 0.9);
  box-shadow:
    0 0 0 2px rgba(184, 149, 42, 0.35),
    0 16px 48px rgba(0, 0, 0, 0.8);
}

.tarot-card.flash {
  animation: cardFlash 0.3s ease;
}

.card-inner {
  height: 100%;
  padding: 18px 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: center;
  position: relative;
  z-index: 1;
}

.card-symbol {
  font-family: "Libre Baskerville", serif;
  font-size: 44px;
  color: rgba(239, 199, 78, 0.75);
  line-height: 1;
}

.card-mandala {
  width: 72px;
  height: 72px;
  margin: 0 auto;
  stroke: rgba(184, 149, 42, 0.72);
  fill: none;
}

.card-label {
  font-size: 9px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(184, 149, 42, 0.45);
}

.card-name {
  margin-top: 5px;
  font-family: "Playfair Display", serif;
  font-style: italic;
  font-size: 15px;
  color: rgba(54, 51, 45, 0.85);
  transition: color 0.25s ease, transform 0.25s ease, text-shadow 0.25s ease;
}

.tarot-card.is-revealed {
  border-color: rgba(122, 140, 110, 0.9);
  box-shadow:
    0 16px 48px rgba(0, 0, 0, 0.8),
    0 0 18px rgba(122, 140, 110, 0.35),
    inset 0 0 24px rgba(122, 140, 110, 0.12);
}

.tarot-card.is-revealed .card-label {
  color: rgba(122, 140, 110, 0.85);
}

.tarot-card.is-revealed .card-name {
  color: rgba(63, 60, 51, 0.99);
  font-size: 24px;
  line-height: 1.2;
  transform: translateY(-2px);
  text-shadow:
    0 0 12px rgba(184, 149, 42, 0.25),
    0 0 2px rgba(255, 255, 255, 0.22);
}

.redeal-btn {
  margin-top: 26px;
  border: 1px solid rgba(184, 149, 42, 0.68);
  border-radius: 999px;
  padding: 10px 18px;
  color: var(--gold);
  background: rgba(12, 12, 26, 0.7);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 10px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.redeal-btn:hover {
  transform: translateY(-1px);
  background: rgba(184, 149, 42, 0.1);
  box-shadow: 0 0 14px rgba(184, 149, 42, 0.24);
}

@keyframes cardSway {
  0% {
    transform: rotateZ(-3deg);
  }
  50% {
    transform: rotateZ(2deg);
  }
  100% {
    transform: rotateZ(3deg);
  }
}

@keyframes cardFlash {
  0% {
    box-shadow: 0 0 0 rgba(184, 149, 42, 0);
  }
  50% {
    box-shadow: 0 0 24px rgba(184, 149, 42, 0.55);
    border-color: rgba(184, 149, 42, 1);
  }
  100% {
    box-shadow: 0 0 0 rgba(184, 149, 42, 0);
  }
}

/* === SECTION READER === */

.section-page {
  max-width: 980px;
  margin: 0 auto;
  padding: 24px 20px 80px;
}

.back-link {
  display: inline-block;
  margin-bottom: 12px;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}

.section-title {
  margin: 8px 0 0;
  text-align: center;
  font-family: "Libre Baskerville", serif;
  font-size: clamp(28px, 5vw, 36px);
}

.section-rule {
  width: 130px;
  height: 1px;
  margin: 16px auto 26px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

#flipbook {
  max-width: 680px;
  margin: 0 auto;
  border: 1px solid rgba(184, 149, 42, 0.2);
  border-radius: 10px;
  background: #0b0b18;
  overflow: hidden;
}

.flipbook-toolbar {
  background: rgba(8, 8, 16, 0.85);
  border-bottom: 1px solid rgba(184, 149, 42, 0.12);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.tool-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.tool-btn {
  width: 28px;
  height: 28px;
  border: 0.5px solid rgba(184, 149, 42, 0.68);
  border-radius: 6px;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  line-height: 1;
}

.tool-btn:hover,
.pager-btn:hover,
.cta-btn:hover {
  background: rgba(184, 149, 42, 0.1);
  box-shadow: 0 0 12px rgba(184, 149, 42, 0.15);
}

.pager-btn {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 0.5px solid rgba(184, 149, 42, 0.68);
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.page-indicator {
  font-size: 11px;
  letter-spacing: 0.1em;
  color: rgba(184, 149, 42, 0.55);
  text-transform: uppercase;
}

.flipbook-page {
  min-height: 340px;
  padding: 36px 42px;
  font-size: 14px;
  transition: opacity 0.25s ease;
}

.pdf-book {
  display: grid;
  place-items: center;
  min-height: 420px;
}

.pdf-page-wrap {
  position: relative;
  background: #f6f3eb;
  border-radius: 8px;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.45);
  overflow: hidden;
}

.pdf-canvas {
  display: block;
  max-width: 100%;
  height: auto;
}

.pdf-watermark {
  position: absolute;
  inset: 0;
  pointer-events: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-content: center;
  justify-items: center;
  padding: 24px;
  transform: rotate(-22deg);
}

.pdf-watermark span {
  font-family: "Jost", sans-serif;
  font-size: clamp(12px, 1.7vw, 18px);
  letter-spacing: 0.2em;
  color: rgba(30, 30, 30, 0.12);
  text-transform: uppercase;
  white-space: nowrap;
}

.pdf-watermark.is-hidden {
  display: none;
}

.page-corner-fold {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 48px;
  height: 48px;
  pointer-events: none;
  background: linear-gradient(135deg, transparent 49%, rgba(0, 0, 0, 0.17) 50%, rgba(0, 0, 0, 0.2) 56%, rgba(255, 255, 255, 0.6) 100%);
  clip-path: polygon(100% 0, 0 100%, 100% 100%);
}

.page-flip-sheet {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  background:
    linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.08) 0%,
      rgba(255, 255, 255, 0.22) 14%,
      rgba(255, 255, 255, 0.03) 34%,
      rgba(0, 0, 0, 0.14) 52%,
      rgba(255, 255, 255, 0.12) 72%,
      rgba(0, 0, 0, 0.28) 100%
    ),
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.16) 0%,
      rgba(255, 255, 255, 0.02) 28%,
      rgba(0, 0, 0, 0.05) 65%,
      rgba(0, 0, 0, 0.16) 100%
    );
  border-left: 1px solid rgba(255, 255, 255, 0.2);
  border-right: 1px solid rgba(0, 0, 0, 0.26);
  transform-origin: right center;
  transform: perspective(1800px) rotateY(0deg) skewY(0deg);
  box-shadow:
    -6px 0 16px rgba(0, 0, 0, 0.25),
    inset 0 0 18px rgba(255, 255, 255, 0.12);
  backface-visibility: hidden;
  will-change: transform, opacity, filter;
}

.page-flip-sheet::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 20%;
  height: 100%;
  background: linear-gradient(
    to left,
    rgba(255, 255, 255, 0.55),
    rgba(255, 255, 255, 0.04)
  );
  mix-blend-mode: screen;
  opacity: 0.7;
}

.page-flip-sheet::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 22%;
  height: 100%;
  background: linear-gradient(
    to right,
    rgba(0, 0, 0, 0.26),
    rgba(0, 0, 0, 0.02)
  );
  opacity: 0.7;
}

.flipbook-page.flip-rtl .page-flip-sheet {
  opacity: 1;
  transform-origin: right center;
  animation: sheetTurnRtl 0.66s cubic-bezier(0.2, 0.75, 0.2, 1);
}

.flipbook-page.flip-ltr .page-flip-sheet {
  opacity: 1;
  transform-origin: left center;
  animation: sheetTurnLtr 0.66s cubic-bezier(0.2, 0.75, 0.2, 1);
}

.page-hitbox {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 18%;
  border: none;
  background: transparent;
  cursor: pointer;
  z-index: 5;
}

.page-hitbox-left {
  left: 0;
}

.page-hitbox-right {
  right: 0;
}

.page-hitbox:hover {
  background: linear-gradient(
    to right,
    rgba(184, 149, 42, 0.08),
    transparent
  );
}

.page-hitbox-right:hover {
  background: linear-gradient(
    to left,
    rgba(184, 149, 42, 0.08),
    transparent
  );
}

.flipbook-page.flip-rtl .pdf-page-wrap,
.flipbook-page.flip-ltr .pdf-page-wrap {
  transform-origin: right center;
  animation: pageFlipRtl 0.66s cubic-bezier(0.2, 0.75, 0.2, 1);
}

.flipbook-page.flip-ltr .pdf-page-wrap {
  transform-origin: left center;
  animation-name: pageFlipLtr;
}

@keyframes pageFlipRtl {
  0% {
    transform: perspective(1400px) rotateY(0deg);
    filter: brightness(1);
  }
  45% {
    transform: perspective(1400px) rotateY(-12deg) scaleX(0.99);
    filter: brightness(0.9);
  }
  100% {
    transform: perspective(1400px) rotateY(0deg);
    filter: brightness(1);
  }
}

@keyframes pageFlipLtr {
  0% {
    transform: perspective(1400px) rotateY(0deg);
    filter: brightness(1);
  }
  45% {
    transform: perspective(1400px) rotateY(12deg) scaleX(0.99);
    filter: brightness(0.9);
  }
  100% {
    transform: perspective(1400px) rotateY(0deg);
    filter: brightness(1);
  }
}

@keyframes sheetTurnRtl {
  0% {
    transform: perspective(1800px) rotateY(0deg) skewY(0deg) scaleX(1);
    opacity: 0;
    filter: brightness(1);
  }
  8% {
    opacity: 0.98;
  }
  35% {
    transform: perspective(1800px) rotateY(-26deg) skewY(-1.2deg) scaleX(0.985);
    opacity: 1;
    filter: brightness(1.04);
  }
  68% {
    transform: perspective(1800px) rotateY(-63deg) skewY(-2.5deg) scaleX(0.95);
    opacity: 0.88;
    filter: brightness(0.82);
  }
  100% {
    transform: perspective(1800px) rotateY(-89deg) skewY(-3deg) scaleX(0.92);
    opacity: 0;
    filter: brightness(0.72);
  }
}

@keyframes sheetTurnLtr {
  0% {
    transform: perspective(1800px) rotateY(0deg) skewY(0deg) scaleX(1);
    opacity: 0;
    filter: brightness(1);
  }
  8% {
    opacity: 0.98;
  }
  35% {
    transform: perspective(1800px) rotateY(26deg) skewY(1.2deg) scaleX(0.985);
    opacity: 1;
    filter: brightness(1.04);
  }
  68% {
    transform: perspective(1800px) rotateY(63deg) skewY(2.5deg) scaleX(0.95);
    opacity: 0.88;
    filter: brightness(0.82);
  }
  100% {
    transform: perspective(1800px) rotateY(89deg) skewY(3deg) scaleX(0.92);
    opacity: 0;
    filter: brightness(0.72);
  }
}

.flipbook-page h3 {
  margin-top: 0;
  margin-bottom: 12px;
  font-family: "Libre Baskerville", serif;
  font-size: 23px;
  color: var(--ivory);
}

.flipbook-page p {
  margin: 0 0 14px;
  color: rgba(57, 43, 10, 0.88);
  text-wrap: pretty;
}

.pullquote-block {
  min-height: 270px;
  display: grid;
  place-items: center;
  text-align: center;
}

.pullquote-text {
  font-family: "Playfair Display", serif;
  font-style: italic;
  font-size: clamp(22px, 4vw, 31px);
  line-height: 1.4;
  color: rgba(237, 229, 208, 0.9);
  max-width: 560px;
  text-wrap: balance;
}

.quote-rule {
  width: 90px;
  height: 1px;
  margin: 18px auto;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.gallery-placeholder {
  width: 160px;
  height: 220px;
  margin: 0 auto 18px;
  border-radius: 8px;
  border: 1px solid rgba(184, 149, 42, 0.33);
  background: linear-gradient(140deg, rgba(122, 140, 110, 0.6), rgba(92, 45, 58, 0.6));
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.55);
}

.gallery-caption {
  text-align: center;
  font-family: "Playfair Display", serif;
  font-style: italic;
  color: rgba(237, 229, 208, 0.76);
}

.page-ornament {
  margin-top: 24px;
  text-align: center;
  font-family: "Libre Baskerville", serif;
  font-size: 11px;
  color: rgba(184, 149, 42, 0.3);
}

/* === COVER PREVIEW === */

.cover-preview {
  max-width: 760px;
  margin: 44px auto 0;
  text-align: center;
}

.separator {
  display: flex;
  align-items: center;
  gap: 14px;
  color: rgba(184, 149, 42, 0.72);
  margin-bottom: 22px;
}

.separator::before,
.separator::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(184, 149, 42, 0.3);
}

.cover-label {
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(184, 149, 42, 0.4);
}

.cover-title {
  margin: 10px 0 8px;
  font-family: "Libre Baskerville", serif;
  font-size: clamp(24px, 4.6vw, 28px);
}

.cover-subtitle {
  margin: 0 0 22px;
  font-family: "Playfair Display", serif;
  font-style: italic;
  font-size: 13px;
  color: var(--sage);
}

.mock-cover {
  width: 220px;
  height: 300px;
  margin: 0 auto 24px;
  border-radius: 10px;
  border: 1px solid rgba(184, 149, 42, 0.4);
  background: linear-gradient(150deg, #12101e, #0e0c18);
  display: grid;
  place-items: center;
  position: relative;
  box-shadow: 0 14px 42px rgba(0, 0, 0, 0.62);
}

.mock-cover::before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px dashed rgba(184, 149, 42, 0.2);
  border-radius: 7px;
  pointer-events: none;
}

.mock-cover__inner {
  text-align: center;
}

.mock-cover__title {
  font-family: "Libre Baskerville", serif;
  font-size: 28px;
  letter-spacing: 0.14em;
  color: var(--gold);
  margin-bottom: 16px;
}

.mock-cover__meta {
  margin-top: 16px;
  font-size: 11px;
  letter-spacing: 0.16em;
  color: rgba(184, 149, 42, 0.72);
}

.cover-sigil {
  width: 44px;
  height: 44px;
  stroke: rgba(184, 149, 42, 0.85);
  fill: none;
}

.cta-btn {
  border: 1px solid rgba(184, 149, 42, 0.55);
  padding: 11px 26px;
  letter-spacing: 0.2em;
  font-size: 11px;
  text-transform: uppercase;
  color: var(--gold);
  display: inline-block;
  transition: all 0.3s ease;
}

.back-link:hover,
.back-link:focus-visible {
  color: rgba(184, 149, 42, 0.92);
  text-shadow: 0 0 10px rgba(184, 149, 42, 0.22);
}

/* === GENERIC PAGES === */

.simple-page {
  max-width: 820px;
  margin: 0 auto;
  padding: 36px 22px 80px;
}

.simple-page h1 {
  font-family: "Libre Baskerville", serif;
  font-size: clamp(30px, 6vw, 42px);
  margin-bottom: 12px;
}

.simple-page p {
  color: rgba(237, 229, 208, 0.82);
  max-width: 62ch;
}

.ornament-line {
  margin: 24px 0;
  color: rgba(243, 191, 37, 0.65);
  letter-spacing: 0.26em;
}

/* === PALETA 2026 === */

body {
  background: linear-gradient(145deg, var(--lavender-gray), var(--smoke-blue));
  color: var(--stone-gray);
}

.site-nav {
  background: rgba(var(--rgb-bone-white), 0.78);
  border-bottom: 1px solid rgba(var(--rgb-soft-gold), 0.35);
}

.site-footer {
  background: rgba(var(--rgb-bone-white), 0.72);
  border-top: 1px solid rgba(var(--rgb-soft-gold), 0.35);
}

.nav-links a,
.footer-links a,
.copyright,
.hero-subtitle,
.cover-subtitle,
.page-indicator,
.gallery-caption,
.flipbook-page p,
.simple-page p {
  color: rgba(var(#514ea6), 0.9);
}

.nav-brand__text,
.footer-logo,
.back-link,
.tool-btn,
.pager-btn,
.cta-btn,
.mock-cover__title,
.card-symbol,
.redeal-btn {
  color: #44732F;
}

.hero-eyebrow,
.footer-tagline {
  color: rgba(var(--rgb-bone-white), 0.95);
}

.hero-title,
.section-title,
.cover-title,
.simple-page h1,
.flipbook-page h3,
.pullquote-text {
  color: var(--bone-white);
  text-shadow: 0 2px 8px rgba(var(--rgb-stone-gray), 0.15);
}

.hero-rule,
.section-rule,
.quote-rule,
.separator::before,
.separator::after {
  background: linear-gradient(90deg, transparent, var(--stone-gray), transparent);
}

.icon-btn,
.tool-btn,
.pager-btn,
.cta-btn,
.redeal-btn,
#flipbook,
.mock-cover,
.tarot-card,
.gallery-placeholder {
  border-color: rgba(var(--rgb-soft-gold), 0.55);
}

.icon-btn,
.tool-btn,
.pager-btn,
.cta-btn,
.redeal-btn {
  background: rgba(var(--rgb-bone-white), 0.3);
}

.tarot-card,
.mock-cover {
  background: linear-gradient(150deg, #f2eff8, #e7eaf1);
  box-shadow: 0 14px 34px rgba(var(--rgb-stone-gray), 0.22);
}

.card-label,
.cover-label,
.page-ornament,
.ornament-line,
.separator {
  color: rgba(var(--rgb-soft-gold), 0.85);
}

.card-name {
  color: rgba(var(--rgb-stone-gray), 0.96);
}

.tarot-card.is-revealed {
  border-color: rgba(var(--rgb-smoke-blue), 0.95);
  box-shadow:
    0 14px 34px rgba(var(--rgb-stone-gray), 0.22),
    0 0 16px rgba(var(--rgb-smoke-blue), 0.35),
    inset 0 0 22px rgba(var(--rgb-smoke-blue), 0.18);
}

.tarot-card.is-revealed .card-label {
  color: rgba(var(--rgb-smoke-blue), 0.98);
}

.tarot-card.is-revealed .card-name {
  color: var(--bone-white);
  text-shadow:
    0 0 10px rgba(var(--rgb-soft-gold), 0.25),
    0 0 2px rgba(var(--rgb-bone-white), 0.45);
}

#flipbook {
  background: rgba(var(--rgb-bone-white), 0.86);
}

.flipbook-toolbar {
  background: rgba(var(--rgb-lavender-gray), 0.45);
  border-bottom: 1px solid rgba(var(--rgb-soft-gold), 0.32);
}

.gallery-placeholder {
  background: linear-gradient(
    140deg,
    rgba(var(--rgb-smoke-blue), 0.62),
    rgba(var(--rgb-lavender-gray), 0.8)
  );
  box-shadow: 0 10px 24px rgba(var(--rgb-stone-gray), 0.25);
}

/* === RESPONSIVE === */

@media (max-width:900px) {
  .site-nav__inner {
    grid-template-columns: 1fr;
    gap: 10px;
    text-align: center;
  }

  .nav-links,
  .nav-icons {
    justify-content: center;
  }

  .main-content {
    padding-top: 154px;
  }

  .hero-block {
    top: 30px;
  }

  .home-main {
    align-items: flex-start;
    padding-top: 8px;
  }

  #orbit-ring {
    width: 100%;
    max-width: 560px;
    min-height: 900px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content:flex-start;
    gap: 22px;
    margin-top: 210px;
  }

  .tarot-card {
    position: relative;
    left: auto !important;
    top: auto !important;
    animation-play-state: paused;
    transform: none !important;
  }

  .tarot-card:hover {
    transform: translateY(-2px) !important;
  }

  .redeal-btn {
    margin-top: 16px;
  }

  .site-footer__grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-right {
    text-align: center;
  }

  .flipbook-toolbar {
    flex-wrap: wrap;
    justify-content: center;
  }

  .flipbook-page {
    padding: 28px 22px;
  }
}

@media (max-width: 
600px) {
  .nav-links a {
    font-size: 10px;
  }

  .site-footer {
    padding: 30px 20px 22px;
  }

  .hero-eyebrow {
    font-size: 12px;
  }

  .hero-subtitle {
    font-size: 16px;
  }

  .hero-title {
    font-size: 50px;
    letter-spacing: 0.18em;
    margin-right: -0.18em;
  }

  .main-content {
    padding-top: 148px;
  }
  #orbit-ring {
    width: 100%;
    max-width: 560px;
    min-height: 900px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content:flex-start;
    gap: 22px;
    margin-top: 10px;
  }

  .section-page {
    padding-left: 12px;
    padding-right: 12px;
  }
}

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