:root {
  --ink: #eef7f2;
  --muted: #bbc7d1;
  --dim: #84919c;
  --night: #07090e;
  --panel: rgba(10, 13, 20, 0.82);
  --panel-solid: #10131b;
  --line: rgba(229, 217, 177, 0.18);
  --blue: #9fc9ec;
  --gold: #c7ab70;
  --moon: #f1e3b8;
  --green: #6fc0a7;
  --rose: #b97878;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.34);
}

* {
  box-sizing: border-box;
}

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

html {
  scroll-behavior: smooth;
  scrollbar-width: none;
  overflow-x: hidden;
  scroll-padding-top: 3.9rem;
}

::-webkit-scrollbar {
  width: 0;
  height: 0;
}

::-webkit-scrollbar-track {
  background:
    linear-gradient(180deg, #020407, #071018 45%, #020407),
    #050608;
}

::-webkit-scrollbar-thumb {
  border: 3px solid #050608;
  border-radius: 999px;
  background:
    radial-gradient(circle at 50% 20%, #fff5ca 0 0.18rem, transparent 0.2rem),
    linear-gradient(180deg, #eef7f2, #9fc9ec 48%, #526779);
  box-shadow:
    inset 0 0 0 1px rgba(241, 227, 184, 0.26),
    0 0 14px rgba(159, 201, 236, 0.22);
}

::-webkit-scrollbar-thumb:hover {
  background:
    radial-gradient(circle at 50% 20%, #fff5ca 0 0.22rem, transparent 0.24rem),
    linear-gradient(180deg, #fff8dc, #b8d9ef 48%, #667d8e);
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(180deg, #07090e 0%, #0b0e15 46%, #08090d 100%);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  --hero-shift-x: 0px;
  --hero-shift-y: 0px;
  overflow-x: hidden;
}

.rune-constellation {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  opacity: 0.92;
  filter: drop-shadow(0 0 8px rgba(241, 227, 184, 0.28));
}

.site-header,
main,
footer,
.moon-scroll {
  position: relative;
  z-index: 1;
}

.moon-scroll {
  position: fixed;
  z-index: 30;
  right: clamp(1rem, 2vw, 1.8rem);
  top: clamp(4.5rem, var(--moon-scroll-y, 0vh), calc(100vh - 4.5rem));
  width: 4.1rem;
  height: 4.1rem;
  display: grid;
  place-items: center;
  opacity: 0.66;
  pointer-events: none;
  transform: translateY(-50%);
  transition: opacity 220ms ease, transform 220ms ease;
}

.moon-scroll.is-awake {
  opacity: 1;
  transform: translateY(-50%) scale(1.04);
}

.moon-scroll-orbit {
  position: relative;
  display: grid;
  width: 3.45rem;
  height: 3.45rem;
  place-items: center;
  border: 1px solid rgba(241, 227, 184, 0.2);
  border-radius: 999px;
  background:
    radial-gradient(circle at 50% 50%, rgba(241, 227, 184, 0.08), transparent 62%),
    rgba(4, 7, 12, 0.44);
  box-shadow: 0 0 28px rgba(241, 227, 184, calc(0.1 + var(--moon-progress, 0) * 0.26));
}

.moon-scroll-disc {
  position: relative;
  display: block;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 999px;
  background:
    radial-gradient(circle at 38% 30%, #fff9d8 0 0.18rem, transparent 0.19rem),
    radial-gradient(circle at 58% 64%, rgba(159, 201, 236, 0.42) 0 0.12rem, transparent 0.13rem),
    linear-gradient(135deg, #fff7d4, #b9d8ed 58%, #708396);
  box-shadow:
    inset -0.16rem -0.2rem 0.28rem rgba(15, 19, 28, 0.2),
    0 0 18px rgba(241, 227, 184, calc(0.2 + var(--moon-progress, 0) * 0.42));
  overflow: hidden;
}

.moon-scroll-disc::after {
  content: "";
  position: absolute;
  inset: -0.1rem;
  border-radius: inherit;
  background: #07090e;
  transform: translateX(var(--moon-shadow-offset, 1.7rem));
  transition: transform 80ms linear;
}

.moon-scroll-red .moon-scroll-orbit {
  border-color: rgba(255, 88, 92, 0.28);
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 88, 92, 0.12), transparent 62%),
    rgba(10, 3, 5, 0.5);
  box-shadow: 0 0 28px rgba(255, 68, 76, calc(0.12 + var(--moon-progress, 0) * 0.3));
}

.moon-scroll-red .moon-scroll-disc {
  background:
    radial-gradient(circle at 34% 28%, #fff2df 0 0.2rem, transparent 0.22rem),
    radial-gradient(circle at 62% 62%, rgba(120, 19, 28, 0.3) 0 0.34rem, transparent 0.36rem),
    linear-gradient(145deg, #ffd1be 0%, #f06161 45%, #7a1824 100%);
  box-shadow:
    inset -0.16rem -0.2rem 0.28rem rgba(38, 5, 10, 0.28),
    0 0 20px rgba(255, 82, 90, calc(0.24 + var(--moon-progress, 0) * 0.48));
}

/*
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    radial-gradient(circle at 7% 19%, rgba(241, 227, 184, 0.68) 0 1.25px, transparent 2px),
    radial-gradient(circle at 41% 67%, rgba(159, 201, 236, 0.58) 0 1.15px, transparent 1.9px),
    radial-gradient(circle at 82% 31%, rgba(241, 227, 184, 0.46) 0 1.1px, transparent 1.8px),
    radial-gradient(circle at 23% 84%, rgba(238, 247, 242, 0.36) 0 0.9px, transparent 1.7px),
    radial-gradient(circle at 66% 12%, rgba(159, 201, 236, 0.32) 0 0.8px, transparent 1.5px);
  background-size: 17rem 23rem, 29rem 19rem, 23rem 31rem, 37rem 27rem, 41rem 35rem;
  opacity: 0.28;
  animation: starsDrift 39s linear infinite, starsWaver 17s ease-in-out infinite alternate;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    radial-gradient(circle at 13% 39%, rgba(241, 227, 184, 0.42) 0 1px, transparent 1.8px),
    radial-gradient(circle at 77% 73%, rgba(159, 201, 236, 0.36) 0 1px, transparent 1.7px),
    radial-gradient(circle at 54% 18%, rgba(238, 247, 242, 0.26) 0 0.8px, transparent 1.5px);
  background-size: 31rem 29rem, 43rem 37rem, 26rem 41rem;
  opacity: 0.2;
  animation: starsCrossDrift 53s linear infinite reverse, starsWaver 21s ease-in-out infinite alternate-reverse;
}
*/

body::before,
body::after {
  content: "";
  position: fixed;
  inset: -18vh -12vw;
  z-index: -1;
  pointer-events: none;
  background-repeat: no-repeat;
  mix-blend-mode: screen;
  will-change: transform, opacity;
}

body::before {
  background-image:
    linear-gradient(112deg, transparent 0 45%, rgba(159, 201, 236, 0.08) 46%, rgba(241, 227, 184, 0.035) 47.5%, transparent 50%),
    linear-gradient(108deg, transparent 0 61%, rgba(159, 201, 236, 0.055) 62%, transparent 65%);
  background-size: 42rem 130vh, 34rem 110vh;
  background-position: 8vw 0, 72vw 16vh;
  opacity: 0.24;
  animation: moonRaysDriftA 18s ease-in-out infinite, moonRaysFade 11s ease-in-out infinite;
}

body::after {
  background-image:
    linear-gradient(116deg, transparent 0 52%, rgba(238, 247, 242, 0.055) 53%, rgba(159, 201, 236, 0.035) 54.5%, transparent 57%);
  background-size: 38rem 118vh;
  background-position: 46vw 8vh;
  opacity: 0.16;
  animation: moonRaysDriftB 24s ease-in-out infinite, moonRaysFade 15s ease-in-out infinite reverse;
}

/* Temporarily disabled while comparing the page without moving background effects. */
body::before,
body::after {
  display: none;
}

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

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  padding: 0.85rem 0 1.05rem;
  background:
    radial-gradient(circle at calc(50% - 430px) 0%, rgba(159, 201, 236, 0.18), transparent 18rem),
    radial-gradient(circle at 82% 20%, rgba(241, 227, 184, 0.06), transparent 14rem),
    linear-gradient(180deg, rgba(2, 4, 7, 0.98), rgba(5, 8, 12, 0.92)),
    rgba(5, 7, 11, 0.9);
  border-bottom: 1px solid rgba(159, 201, 236, 0.16);
  backdrop-filter: blur(18px);
  transition: background 220ms ease, border-color 220ms ease, transform 500ms ease;
  animation: dropIn 650ms ease both;
}

.site-header-inner {
  position: relative;
  z-index: 1;
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1.2rem;
  height: 1.25rem;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(5, 8, 12, 0.94), transparent);
  opacity: 0.86;
}

.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 8% 58%, rgba(223, 233, 239, 0.28) 0 1px, transparent 1.5px),
    radial-gradient(circle at 36% 22%, rgba(159, 201, 236, 0.2) 0 1px, transparent 1.5px),
    radial-gradient(circle at 74% 48%, rgba(223, 233, 239, 0.18) 0 1px, transparent 1.4px),
    linear-gradient(108deg, transparent 0 38%, rgba(159, 201, 236, 0.08) 39%, transparent 41%),
    linear-gradient(74deg, transparent 0 57%, rgba(241, 227, 184, 0.05) 58%, transparent 60%);
  background-size: 12rem 4rem, 16rem 5rem, 18rem 4.5rem, 34rem 100%, 42rem 100%;
  opacity: 0.52;
}

.site-header.is-scrolled {
  background:
    radial-gradient(circle at calc(50% - 430px) 0%, rgba(159, 201, 236, 0.14), transparent 18rem),
    linear-gradient(180deg, rgba(2, 4, 7, 0.98), rgba(5, 8, 12, 0.96));
  border-color: rgba(159, 201, 236, 0.24);
}

.site-header.is-hidden {
  transform: translateY(-112%);
}

.brand,
nav,
.menu-toggle,
.hero-actions,
.signal-row,
.signup-row,
footer,
footer div {
  display: flex;
  align-items: center;
}

.brand,
nav {
  position: relative;
}

.brand {
  position: relative;
  display: grid;
  min-width: 9rem;
  font-weight: 800;
  line-height: 0.82;
  color: #dfe9ef;
  text-transform: uppercase;
}

.brand-word {
  position: relative;
  z-index: 1;
  display: block;
  color: #dfe9ef;
  font-family: "Uncial Antiqua", Cinzel, Georgia, serif;
  font-size: clamp(1.25rem, 2.2vw, 2rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-shadow:
    0 0 14px rgba(159, 201, 236, 0.14),
    1px 2px 0 rgba(4, 8, 12, 0.72);
}

.brand-word-lower {
  color: #c9d7dd;
  transform: translateX(1.25rem);
}

nav {
  gap: clamp(0.8rem, 2vw, 1.5rem);
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.menu-toggle {
  position: relative;
  z-index: 1;
  display: none;
  width: 2.85rem;
  height: 2.85rem;
  justify-content: center;
  gap: 0.24rem;
  border: 1px solid rgba(241, 227, 184, 0.26);
  background:
    radial-gradient(circle at 50% 30%, rgba(159, 201, 236, 0.12), transparent 60%),
    rgba(6, 10, 15, 0.78);
  color: var(--ink);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 1.25rem;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  box-shadow: 0 0 10px rgba(241, 227, 184, 0.12);
  transition: transform 180ms ease, opacity 180ms ease;
}

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

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

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

.mobile-menu-backdrop {
  position: fixed;
  inset: 0;
  z-index: 39;
  background: rgba(1, 3, 7, 0.62);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  backdrop-filter: blur(4px);
  transition: opacity 220ms ease, visibility 0ms linear 220ms;
}

.mobile-menu {
  position: fixed;
  z-index: 40;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(18rem, calc(100vw - 3rem));
  padding: 1.1rem;
  border-left: 1px solid rgba(241, 227, 184, 0.28);
  background:
    radial-gradient(circle at 20% 8%, rgba(159, 201, 236, 0.16), transparent 12rem),
    linear-gradient(180deg, rgba(8, 12, 18, 0.98), rgba(4, 6, 10, 0.98));
  box-shadow: -24px 0 80px rgba(0, 0, 0, 0.48);
  transform: translateX(104%);
  visibility: hidden;
  transition: transform 260ms cubic-bezier(0.2, 0.8, 0.2, 1), visibility 0ms linear 260ms;
}

.mobile-menu-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.4rem;
}

.mobile-menu-title {
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.mobile-menu-close {
  position: relative;
  width: 2.35rem;
  height: 2.35rem;
  border: 1px solid rgba(238, 247, 242, 0.2);
  background: rgba(6, 10, 15, 0.74);
  color: var(--ink);
  cursor: pointer;
}

.mobile-menu-close::before,
.mobile-menu-close::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 1rem;
  height: 2px;
  background: currentColor;
}

.mobile-menu-close::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.mobile-menu-close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.mobile-menu a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid rgba(241, 227, 184, 0.16);
  background: rgba(238, 247, 242, 0.045);
  color: var(--ink);
  font-weight: 800;
  margin-top: 0.7rem;
  padding: 0.95rem 1rem;
}

.mobile-menu a:hover {
  border-color: rgba(241, 227, 184, 0.44);
  color: var(--moon);
}

body.menu-open {
  overflow: hidden;
}

body.menu-open .mobile-menu-backdrop {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition-delay: 0ms;
}

body.menu-open .mobile-menu {
  transform: translateX(0);
  visibility: visible;
  transition-delay: 0ms;
}

nav a:hover,
footer a:hover,
.royal-button:hover {
  color: var(--blue);
}

nav a,
footer a,
.royal-button {
  transition: color 180ms ease;
}

.nav-external {
  display: inline-flex;
  align-items: center;
  gap: 0.32rem;
}

.nav-external::after {
  content: "";
  display: inline-block;
  width: 0.92rem;
  height: 0.92rem;
  background: currentColor;
  -webkit-mask: url("assets/external-link-icon.png") center / contain no-repeat;
  mask: url("assets/external-link-icon.png") center / contain no-repeat;
  transform: translateY(-0.14rem);
}

.external-arrow {
  position: relative;
  z-index: 1;
  display: inline-block;
  flex: 0 0 auto;
  width: 0.95rem;
  height: 0.95rem;
  margin-left: 0.12rem;
  background: currentColor;
  -webkit-mask: url("assets/external-link-icon.png") center / contain no-repeat;
  mask: url("assets/external-link-icon.png") center / contain no-repeat;
  transform: translateY(-0.14rem);
  transition: transform 160ms ease;
}

a:hover .external-arrow {
  transform: translate(0.12rem, -0.26rem);
}

.hero {
  position: relative;
  min-height: 600px;
  height: clamp(600px, 74vh, 760px);
  display: grid;
  align-items: stretch;
  overflow: hidden;
  background: #050608;
  padding: 5rem 0 0;
  touch-action: pan-y;
  user-select: none;
}

.hero.is-dragging {
  cursor: grabbing;
}

.hero-shade {
  position: absolute;
  inset: 0;
}

.hero-shade {
  background: linear-gradient(180deg, rgba(5, 6, 8, 0.82), rgba(5, 6, 8, 0.96));
}

.moon-drift {
  position: absolute;
  inset: 0;
  pointer-events: none;
  display: none;
}

.hero-slider {
  position: relative;
  z-index: 2;
  width: 100%;
  margin: 0 auto;
  height: 100%;
  min-height: 0;
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(13rem, 0.52fr);
  align-items: center;
  gap: clamp(1.8rem, 3vw, 3.4rem);
  padding: 2.4rem max(4.5rem, calc((100% - 1060px) / 2)) 0;
  pointer-events: none;
  transform: translateX(100%);
  transition: transform 520ms cubic-bezier(0.22, 0.78, 0.22, 1);
}

.hero-slide.no-transition {
  transition: none;
}

.hero-slide.is-before {
  transform: translateX(-100%);
}

.hero-slide::before,
.hero-slide::after {
  content: "";
  position: absolute;
  top: -5rem;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: -1;
  pointer-events: none;
}

.hero-slide::before {
  background:
    linear-gradient(90deg, rgba(5, 6, 8, 0.98) 0%, rgba(5, 6, 8, 0.78) 50%, rgba(5, 6, 8, 0.54) 100%),
    radial-gradient(circle at 70% 42%, rgba(159, 201, 236, 0.08), transparent 18rem);
}

.hero-slide::after {
  background:
    radial-gradient(circle, rgba(0, 0, 0, 0.48) 0 34%, transparent 35%) 0 0 / 1.05rem 1.05rem,
    linear-gradient(0deg, rgba(0, 0, 0, 0.34), transparent 22%, transparent 78%, rgba(0, 0, 0, 0.28));
  opacity: 0.56;
}

.slide-velmoryn::before {
  background:
    linear-gradient(90deg, rgba(5, 6, 8, 0.96) 0%, rgba(5, 6, 8, 0.74) 44%, rgba(5, 6, 8, 0.34) 100%),
    url("assets/crimson-oak-hero.png") 54% 86% / cover no-repeat;
}

.slide-unbowed::before {
  background:
    linear-gradient(90deg, rgba(5, 6, 8, 0.98) 0%, rgba(5, 6, 8, 0.7) 43%, rgba(5, 6, 8, 0.28) 100%),
    url("assets/unbowed-campfire-hero.jpeg") 48% 58% / cover no-repeat;
}

.hero-slide.is-active {
  pointer-events: auto;
  transform: translateX(0);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 35rem;
  padding: 0;
  border-left: 1px solid rgba(199, 171, 112, 0.32);
  background:
    linear-gradient(90deg, rgba(4, 7, 7, 0.42), rgba(4, 7, 7, 0.1) 78%, transparent);
  box-shadow: -18px 0 70px rgba(0, 0, 0, 0.16);
  padding-left: clamp(1.15rem, 2vw, 1.65rem);
}

.slide-visual {
  position: relative;
  justify-self: center;
  width: min(100%, 14.5rem);
  align-self: center;
  filter: drop-shadow(0 30px 56px rgba(0, 0, 0, 0.58));
  transform-style: preserve-3d;
  perspective: 900px;
  -webkit-user-drag: none;
}

.slide-visual img {
  display: block;
  width: 100%;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}

.cover-stack {
  display: grid;
  place-items: center;
  transform: perspective(900px) rotateY(-13deg) rotateX(3deg) rotateZ(1deg);
}

.cover-stack::before {
  content: "";
  position: absolute;
  top: 0.35rem;
  right: -1.05rem;
  bottom: -0.55rem;
  width: 1.25rem;
  z-index: -1;
  border: 1px solid rgba(241, 227, 184, 0.18);
  background:
    repeating-linear-gradient(90deg, rgba(238, 230, 205, 0.2) 0 1px, rgba(75, 78, 68, 0.22) 1px 3px),
    linear-gradient(90deg, #25281f, #777967 48%, #1a1c16);
  transform: skewY(8deg);
}

.cover-stack::after {
  content: "";
  position: absolute;
  left: 0.35rem;
  right: -0.35rem;
  bottom: -0.75rem;
  height: 0.95rem;
  z-index: -2;
  border: 1px solid rgba(241, 227, 184, 0.12);
  background:
    repeating-linear-gradient(0deg, rgba(238, 230, 205, 0.28) 0 1px, rgba(70, 72, 62, 0.18) 1px 3px),
    linear-gradient(180deg, #989986, #34382d);
  transform: skewX(28deg);
}

.cover-stack img {
  max-width: 100%;
  max-height: 21rem;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border: 1px solid rgba(241, 227, 184, 0.34);
  box-shadow:
    inset -14px 0 20px rgba(0, 0, 0, 0.26),
    22px 24px 42px rgba(0, 0, 0, 0.34);
}

.slide-arrow {
  position: absolute;
  z-index: 5;
  top: 54%;
  display: grid;
  width: 3.45rem;
  height: 3.45rem;
  place-items: center;
  border: 1px solid rgba(241, 227, 184, 0.26);
  border-radius: 999px;
  background:
    radial-gradient(circle at 50% 35%, rgba(241, 227, 184, 0.12), transparent 58%),
    rgba(4, 5, 7, 0.48);
  color: #f6d873;
  cursor: pointer;
  transform: translateY(-50%);
  transition: background 160ms ease, transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.slide-arrow::before {
  content: "";
  width: 0.82rem;
  height: 0.82rem;
  border-top: 4px solid currentColor;
  border-left: 4px solid currentColor;
  transform-origin: center;
}

.slide-arrow-prev::before {
  transform: translateX(0.16rem) rotate(-45deg);
}

.slide-arrow-next::before {
  transform: translateX(-0.16rem) rotate(135deg);
}

.slide-arrow:hover {
  border-color: rgba(241, 227, 184, 0.58);
  background:
    radial-gradient(circle at 50% 35%, rgba(241, 227, 184, 0.18), transparent 60%),
    rgba(4, 5, 7, 0.74);
  box-shadow: 0 0 28px rgba(241, 227, 184, 0.14);
}

.slide-arrow-prev:hover {
  transform: translate(-0.2rem, -50%) scale(1.04);
}

.slide-arrow-next:hover {
  transform: translate(0.2rem, -50%) scale(1.04);
}

.slide-arrow-prev {
  left: 1rem;
}

.slide-arrow-next {
  right: 1rem;
}

.slide-dots {
  position: absolute;
  z-index: 5;
  left: 50%;
  bottom: 1.35rem;
  display: flex;
  gap: 0.75rem;
  transform: translateX(-50%);
}

.slide-dots button {
  position: relative;
  display: grid;
  width: 2.9rem;
  height: 1.55rem;
  place-items: center;
  border: 0;
  background: transparent;
  color: rgba(241, 227, 184, 0.34);
  cursor: pointer;
  opacity: 0.48;
  transition: color 160ms ease, opacity 160ms ease, transform 160ms ease;
}

.slide-dots svg {
  display: block;
  width: 2.75rem;
  height: 1.35rem;
}

.slide-dots path {
  fill: currentColor;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 0.9;
}

.slide-dots .wing-cut {
  fill: none;
  stroke: rgba(5, 6, 8, 0.42);
  stroke-width: 1.35;
}

.slide-dots button.is-active {
  color: #f6d873;
  opacity: 1;
  transform: scale(1.18);
}

.eyebrow,
.section-kicker,
.book-meta {
  margin: 0 0 0.7rem;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.05;
}

h1,
h2 {
  font-family: Cinzel, Georgia, serif;
}

h1 {
  max-width: 16ch;
  color: #dfe9ef;
  font-size: clamp(1.9rem, 3vw, 2.85rem);
  text-transform: uppercase;
  line-height: 1.02;
  text-shadow:
    0 0 30px rgba(159, 201, 236, 0.15),
    0 5px 0 rgba(60, 6, 6, 0.32);
}

h2 {
  font-size: clamp(2rem, 5vw, 4rem);
}

h3 {
  font-size: clamp(1.35rem, 3vw, 2rem);
}

.hero-copy {
  max-width: 38rem;
  margin: 1.1rem 0 0;
  color: var(--muted);
  font-size: clamp(0.98rem, 1.3vw, 1.05rem);
}

.hero-actions {
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.55rem;
}

.button,
.signup button {
  --status-shadow-base: 0 12px 36px rgba(0, 0, 0, 0.18);
  --status-pulse-color: rgba(159, 201, 236, 0.18);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 3rem;
  border: 1px solid transparent;
  padding: 0.85rem 1.1rem;
  font-weight: 800;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.button-icon {
  display: inline-grid;
  flex: 0 0 auto;
  width: 1.45rem;
  height: 1.45rem;
  place-items: center;
}

.rr-icon {
  width: 1.75rem;
  height: 1.75rem;
}

.rr-icon img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0.94;
}

.hero-actions .rr-icon img {
  filter: brightness(0);
}

.amazon-icon {
  width: 1.7rem;
  height: 1.7rem;
}

.amazon-icon img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.patreon-icon {
  position: relative;
}

.patreon-icon::before {
  content: "";
  position: absolute;
  left: 0.14rem;
  top: 0.1rem;
  width: 0.33rem;
  height: 1.16rem;
  border-radius: 999px;
  background: currentColor;
}

.patreon-icon::after {
  content: "";
  position: absolute;
  right: 0.08rem;
  top: 0.14rem;
  width: 0.88rem;
  height: 0.88rem;
  border-radius: 999px;
  background: currentColor;
}

.patreon-svg-icon svg {
  display: block;
  width: 1.35rem;
  height: 1.35rem;
  fill: currentColor;
}

.button::after,
.signup button::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 0%, rgba(255, 255, 255, 0.34) 48%, transparent 64%);
  transform: translateX(-120%);
  transition: transform 500ms ease;
}

.button:hover,
.signup button:hover {
  transform: translateY(-2px);
}

.button:hover::after,
.signup button:hover::after {
  transform: translateX(120%);
}

.button.primary,
.signup button {
  --status-shadow-base: 0 14px 42px rgba(241, 227, 184, 0.2);
  --status-pulse-color: rgba(241, 227, 184, 0.22);
  border-color: rgba(241, 227, 184, 0.58);
  background: linear-gradient(135deg, #f1e3b8, #9fc9ec);
  color: #061018;
  box-shadow: var(--status-shadow-base);
  animation: statusBorderPulse 5.6s ease-in-out infinite;
}

.button.primary:hover,
.signup button:hover {
  box-shadow: 0 18px 52px rgba(241, 227, 184, 0.3);
}

.button.secondary {
  --status-shadow-base: 0 12px 34px rgba(0, 0, 0, 0.18);
  --status-pulse-color: rgba(159, 201, 236, 0.18);
  border-color: rgba(238, 247, 242, 0.26);
  background: rgba(238, 247, 242, 0.08);
  color: var(--ink);
  animation: statusBorderPulse 6.4s ease-in-out infinite;
}

.signal-row,
.portal-panel {
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.55rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.signal-row span,
.portal-panel span {
  border: 1px solid var(--line);
  background: rgba(7, 9, 14, 0.68);
  padding: 0.55rem 0.75rem;
  transition: transform 180ms ease, border-color 180ms ease;
}

.signal-row span:hover,
.portal-panel span:hover {
  border-color: rgba(241, 227, 184, 0.38);
  transform: translateY(-2px);
}

.portal-panel {
  display: flex;
  align-items: center;
}

.portal-panel .portal-label {
  color: var(--green);
  border-color: rgba(111, 192, 167, 0.32);
  background: rgba(111, 192, 167, 0.1);
  font-weight: 800;
  text-transform: uppercase;
}

.signal-row strong {
  color: var(--ink);
}

.section {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
  padding: clamp(4rem, 9vw, 7rem) 0;
}

.intro {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(18rem, 0.9fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  padding-top: clamp(2.5rem, 5vw, 4rem);
}

.author-copy p,
.patron-copy p {
  color: var(--muted);
  font-size: 1.05rem;
}

.author-copy h2 {
  max-width: 11ch;
  margin-bottom: 1.2rem;
}

.author-copy .author-name {
  max-width: 100%;
  font-size: clamp(1.45rem, 1.95vw, 1.95rem);
  white-space: nowrap;
}

.author-copy p {
  max-width: 48rem;
  margin: 0;
}

.author-copy p + p {
  margin-top: 0.9rem;
}

.author-intro {
  scroll-margin-top: 3.9rem;
}

.author-portrait {
  position: relative;
  justify-self: end;
  width: min(100%, 24rem);
  margin: 0;
  overflow: visible;
}

.author-portrait > img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border: 1px solid rgba(241, 227, 184, 0.28);
  background: rgba(5, 7, 11, 0.72);
  box-shadow: 0 28px 78px rgba(0, 0, 0, 0.42);
}

.author-portrait::after {
  content: "";
  position: absolute;
  z-index: 2;
  inset: 0 0 3.85rem;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 43%, rgba(241, 227, 184, 0.18), transparent 17rem),
    linear-gradient(180deg, transparent 64%, rgba(5, 7, 11, 0.22));
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 0.65rem;
  margin-top: 1rem;
}

.social-link {
  display: inline-grid;
  width: 2.45rem;
  height: 2.45rem;
  place-items: center;
  border: 1px solid rgba(241, 227, 184, 0.24);
  border-radius: 999px;
  background:
    radial-gradient(circle at 50% 35%, rgba(241, 227, 184, 0.12), transparent 60%),
    rgba(7, 10, 15, 0.76);
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 900;
  line-height: 1;
  transition: transform 110ms ease, border-color 110ms ease, color 110ms ease, box-shadow 110ms ease;
}

.social-link > svg,
.social-link > img,
.social-link > .social-rr-icon {
  display: block;
  width: 1.42rem;
  height: 1.42rem;
}

.social-link > svg {
  fill: currentColor;
}

.social-link > img,
.social-link > .social-rr-icon img {
  object-fit: contain;
  filter: grayscale(1) brightness(0) invert(1);
  opacity: 0.88;
}

.social-link > .social-rr-icon {
  width: 2.08rem;
  height: 2.08rem;
}

.social-link > .social-rr-icon img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: grayscale(1) brightness(0) invert(1);
  opacity: 0.88;
}

.social-rr:hover .social-rr-icon img {
  filter: brightness(0) saturate(100%) invert(86%) sepia(47%) saturate(698%) hue-rotate(351deg) brightness(101%) contrast(98%);
  opacity: 1;
}

.social-link:hover {
  border-color: rgba(241, 227, 184, 0.56);
  color: #fff;
  box-shadow: 0 0 26px rgba(241, 227, 184, 0.24), 0 10px 30px rgba(0, 0, 0, 0.3);
  transform: translateY(-2px);
}

.social-rr:hover {
  border-color: rgba(255, 214, 117, 0.9);
  color: #ffd875;
  box-shadow: 0 0 32px rgba(255, 196, 78, 0.42), 0 10px 30px rgba(0, 0, 0, 0.3);
}

.social-patreon:hover {
  border-color: rgba(255, 92, 103, 0.86);
  color: #ff6f78;
  box-shadow: 0 0 30px rgba(255, 66, 77, 0.34), 0 10px 30px rgba(0, 0, 0, 0.3);
}

.social-discord:hover {
  border-color: rgba(125, 145, 255, 0.9);
  color: #9aa8ff;
  box-shadow: 0 0 30px rgba(88, 101, 242, 0.38), 0 10px 30px rgba(0, 0, 0, 0.3);
}

.social-link:hover img {
  opacity: 1;
}

.social-link.is-disabled {
  color: rgba(238, 247, 242, 0.42);
  cursor: default;
  opacity: 0.58;
}

.social-link.is-disabled:hover {
  border-color: rgba(241, 227, 184, 0.24);
  color: rgba(238, 247, 242, 0.42);
  box-shadow: none;
  transform: none;
}

.signup-socials {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.6rem;
  margin-top: 1rem;
  width: 100%;
}

.signup-socials .social-link {
  width: 100%;
  height: 2.85rem;
}

.signup-socials .social-link > svg,
.signup-socials .social-link > img,
.signup-socials .social-link > .social-rr-icon {
  width: 1.45rem;
  height: 1.45rem;
}

.signup-socials .social-link > .social-rr-icon {
  width: 1.9rem;
  height: 1.9rem;
}

.section-heading {
  margin-bottom: 1.5rem;
}

.books {
  display: grid;
  gap: 1rem;
}

[data-books-list] {
  display: grid;
  gap: 1rem;
}

.book {
  appearance: none;
  position: relative;
  display: grid;
  grid-template-columns: 11.5rem minmax(0, 1fr) auto;
  gap: clamp(1rem, 3vw, 2rem);
  align-items: center;
  width: 100%;
  min-height: 16rem;
  padding: clamp(1rem, 3vw, 2rem);
  border: 1px solid rgba(215, 170, 85, 0.34);
  background: var(--panel);
  box-shadow: var(--shadow);
  overflow: hidden;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  isolation: isolate;
  transform-origin: center;
  transform: translateY(0) scale(1);
  transition: transform 180ms ease-out, border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.book::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(159, 201, 236, 0.13), rgba(241, 227, 184, 0.08));
  opacity: 0;
  transition: opacity 180ms ease;
}

.book::after {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: 0;
  padding: 1px;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent 0%, rgba(159, 201, 236, 0.05) 14%, rgba(241, 227, 184, 0.5) 28%, rgba(159, 201, 236, 0.18) 42%, transparent 58%),
    linear-gradient(180deg, rgba(159, 201, 236, 0.12), rgba(241, 227, 184, 0.08));
  background-size: 230% 100%, 100% 100%;
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  mask-composite: exclude;
  opacity: 0.34;
  mix-blend-mode: screen;
  animation: statusBorderTrace 6s ease-in-out infinite;
}

.book:hover,
.book.is-selected {
  border-color: rgba(241, 227, 184, 0.38);
  box-shadow: 0 30px 88px rgba(0, 0, 0, 0.44), 0 0 26px rgba(241, 227, 184, 0.07);
  transform: translateY(-4px) scale(1.018);
}

.book:focus-visible {
  outline: 2px solid rgba(159, 201, 236, 0.8);
  outline-offset: 4px;
}

.book:hover::before,
.book.is-selected::before {
  opacity: 1;
}

.book:hover::after,
.book.is-selected::after {
  opacity: 0.62;
  animation-duration: 4.2s;
}

.book-cover {
  position: relative;
  z-index: 1;
  align-self: start;
  width: 12rem;
  height: 17rem;
  border: 1px solid rgba(215, 170, 85, 0.34);
  background: rgba(5, 7, 11, 0.72);
  overflow: hidden;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.28);
}

.book-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(115deg, transparent 0%, rgba(241, 227, 184, 0.12) 48%, transparent 60%);
  opacity: 0;
  transform: translateX(-120%);
  transition: opacity 200ms ease, transform 620ms ease;
}

.book-cover img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: filter 260ms ease;
}

.book-body {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.book-body h3 {
  margin-bottom: 0.85rem;
}

.book-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.25rem 0 1rem;
}

.hero-tags {
  margin: 0.55rem 0 0;
}

.book-badge {
  display: inline-flex;
  align-items: center;
  min-height: 2.15rem;
  border: 1px solid rgba(111, 192, 167, 0.34);
  background: rgba(111, 192, 167, 0.1);
  color: var(--green);
  font-family: Cinzel, serif;
  font-weight: 700;
  text-align: center;
  padding: 0.38rem 0.68rem;
}

.book:hover .book-cover::after,
.book.is-selected .book-cover::after {
  opacity: 1;
  transform: translateX(120%);
}

.book:hover .book-cover img,
.book.is-selected .book-cover img {
  filter: saturate(1.08) brightness(1.05);
}

.book p:not(.book-meta) {
  max-width: 48rem;
  color: var(--muted);
}

.royal-button {
  --status-shadow-base: 0 0 0 rgba(0, 0, 0, 0);
  --status-pulse-color: rgba(241, 227, 184, 0.22);
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  border: 1px solid rgba(159, 201, 236, 0.34);
  background:
    linear-gradient(135deg, rgba(159, 201, 236, 0.16), rgba(241, 227, 184, 0.08)),
    rgba(6, 10, 15, 0.74);
  color: var(--ink);
  font-weight: 800;
  white-space: nowrap;
  padding: 0.78rem 1rem;
  overflow: hidden;
  animation: statusBorderPulse 6.1s ease-in-out infinite;
}

.royal-button::after {
  content: "";
  width: 0.55rem;
  height: 0.55rem;
  margin-left: 0.7rem;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform 180ms ease;
}

.royal-button::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(110deg, transparent 0%, rgba(241, 227, 184, 0.24) 48%, transparent 64%);
  transform: translateX(-120%);
  transition: transform 520ms ease;
}

.book:hover .royal-button,
.book.is-selected .royal-button {
  border-color: rgba(241, 227, 184, 0.5);
  color: var(--moon);
}

.book:hover .royal-button::before,
.book.is-selected .royal-button::before {
  transform: translateX(120%);
}

.book:hover .royal-button::after,
.book.is-selected .royal-button::after {
  transform: translateX(4px) rotate(45deg);
}

.book-dialog {
  --dialog-origin-x: 50%;
  --dialog-origin-y: 50%;
  --dialog-reveal-top: 0%;
  --dialog-reveal-right: 0%;
  --dialog-reveal-bottom: 0%;
  --dialog-reveal-left: 0%;
  width: min(62rem, calc(100vw - 2rem));
  max-height: min(42rem, calc(100vh - 2rem));
  border: 1px solid rgba(215, 170, 85, 0.44);
  background: #090d13;
  color: var(--ink);
  padding: 0;
  box-shadow: 0 36px 110px rgba(0, 0, 0, 0.72);
  transform-origin: var(--dialog-origin-x) var(--dialog-origin-y);
}

.book-dialog[open] {
  animation: dialog-expand-from-cover 320ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.book-dialog.is-measuring {
  opacity: 0;
  pointer-events: none;
}

.book-dialog[open].is-measuring {
  animation: none;
}

.book-dialog.is-measuring::backdrop {
  opacity: 0;
}

.book-dialog[open].is-closing {
  animation: none;
}

.book-dialog::backdrop {
  background: rgba(1, 3, 7, 0.78);
  backdrop-filter: blur(7px);
}

.book-dialog[open]::backdrop {
  animation: backdrop-breathe 260ms ease both;
}

.book-dialog[open].is-closing::backdrop {
  animation: backdrop-fade 220ms ease both;
}

.book-dialog-content {
  display: grid;
  grid-template-columns: minmax(10rem, 13.5rem) minmax(0, 1fr);
  gap: clamp(1.15rem, 2.6vw, 2rem);
  max-height: inherit;
  overflow: auto;
  padding: clamp(1.25rem, 3vw, 2rem);
}

.book-dialog-close {
  position: absolute;
  z-index: 2;
  top: 0.85rem;
  right: 0.85rem;
  width: 2.4rem;
  height: 2.4rem;
  border: 1px solid rgba(238, 247, 242, 0.22);
  background: rgba(6, 10, 15, 0.82);
  color: var(--ink);
  cursor: pointer;
}

.book-dialog-close::before,
.book-dialog-close::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 1rem;
  height: 2px;
  background: currentColor;
}

.book-dialog-close::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.book-dialog-close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.book-dialog-cover {
  position: sticky;
  top: 0;
  align-self: start;
  width: 100%;
  aspect-ratio: 2 / 3;
  border: 1px solid rgba(215, 170, 85, 0.36);
  background: rgba(5, 7, 11, 0.72);
  overflow: hidden;
  box-shadow: 0 22px 58px rgba(0, 0, 0, 0.34);
}

.book-dialog-cover img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.summoned-cover-overlay {
  position: absolute;
  z-index: 2;
  inset: 0;
  opacity: 0;
  pointer-events: none;
}

.book-dialog.is-cover-anchored .summoned-cover-overlay {
  opacity: 1;
}

.summoned-cover-overlay img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.summon-veil {
  position: fixed;
  z-index: 9000;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 45%, rgba(255, 207, 94, 0.12), transparent 24rem),
    rgba(1, 3, 7, 0.42);
  animation: summon-veil-breathe 620ms ease both;
}

.summon-cover {
  position: fixed;
  z-index: 9001;
  pointer-events: none;
  border: 1px solid rgba(255, 218, 122, 0.72);
  box-shadow:
    0 0 22px rgba(255, 207, 94, 0.45),
    0 0 58px rgba(111, 192, 167, 0.28),
    0 22px 74px rgba(0, 0, 0, 0.5);
  overflow: hidden;
}

.summon-cover::before,
.summon-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.summon-cover::before {
  background: linear-gradient(110deg, transparent 0%, rgba(255, 246, 205, 0.55) 48%, transparent 65%);
  transform: translateX(-120%);
  animation: summon-shimmer 620ms ease both;
}

.summon-cover::after {
  border: 1px solid rgba(255, 226, 143, 0.65);
  box-shadow: inset 0 0 24px rgba(255, 210, 102, 0.2);
}

.summon-cover img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.book-dialog-main h2 {
  margin-bottom: 0.55rem;
}

.book-dialog-copy {
  display: grid;
  gap: 0.42rem;
  margin-top: 1.1rem;
  color: var(--muted);
}

.book-dialog-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, max-content));
  gap: clamp(1.2rem, 4vw, 2.4rem);
  margin: 1.45rem 0 1.2rem;
}

.book-dialog-stats div {
  display: flex;
  align-items: baseline;
  gap: 0;
  padding: 0;
}

.book-dialog-stats dt {
  color: var(--gold);
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.book-dialog-stats dd {
  margin: 0 0 0 0.16rem;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 800;
}

.book-dialog-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
  gap: 0.85rem;
  margin-top: 1.55rem;
}

.book-dialog-link {
  --link-glow: rgba(241, 227, 184, 0.18);
  --link-edge: rgba(241, 227, 184, 0.42);
  --link-fill: linear-gradient(135deg, rgba(241, 227, 184, 0.18), rgba(159, 201, 236, 0.14));
  --status-shadow-base: 0 18px 44px rgba(0, 0, 0, 0.32), 0 0 28px var(--link-glow);
  --status-pulse-color: var(--link-glow);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.72rem;
  min-height: 4rem;
  border: 1px solid var(--link-edge);
  background:
    radial-gradient(circle at 25% 20%, rgba(255, 255, 255, 0.18), transparent 32%),
    var(--link-fill),
    rgba(6, 10, 15, 0.92);
  color: #fff;
  font-size: 1.1rem;
  font-weight: 900;
  letter-spacing: 0;
  padding: 0.92rem 1.15rem;
  position: relative;
  overflow: hidden;
  box-shadow: var(--status-shadow-base);
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease, filter 180ms ease;
  animation: statusBorderPulse 5.8s ease-in-out infinite;
}

.book-dialog-link::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 0%, rgba(255, 255, 255, 0.24) 48%, transparent 66%);
  transform: translateX(-120%);
  transition: transform 560ms ease;
}

.book-dialog-link.is-amazon {
  --link-glow: rgba(255, 153, 0, 0.3);
  --link-edge: rgba(255, 181, 74, 0.74);
  --link-fill: linear-gradient(135deg, rgba(255, 153, 0, 0.72), rgba(26, 32, 38, 0.95));
}

.book-dialog-link.is-royal-road {
  --link-glow: rgba(159, 201, 236, 0.28);
  --link-edge: rgba(159, 201, 236, 0.68);
  --link-fill: linear-gradient(135deg, rgba(50, 92, 132, 0.82), rgba(10, 29, 48, 0.95));
}

.book-dialog-link.is-patreon {
  --link-glow: rgba(255, 66, 77, 0.28);
  --link-edge: rgba(255, 107, 116, 0.68);
  --link-fill: linear-gradient(135deg, rgba(255, 66, 77, 0.76), rgba(43, 16, 19, 0.96));
}

.book-dialog-link:hover {
  border-color: #fff;
  box-shadow: 0 22px 58px rgba(0, 0, 0, 0.4), 0 0 36px var(--link-glow);
  filter: saturate(1.08) brightness(1.06);
  transform: translateY(-3px);
}

.book-dialog-link:hover::before {
  transform: translateX(120%);
}

.book-dialog-link .button-icon {
  width: 1.85rem;
  height: 1.85rem;
  position: relative;
  z-index: 1;
}

.book-dialog-link .patreon-svg-icon svg {
  width: 1.65rem;
  height: 1.65rem;
}

.book-dialog-link .button-icon + * {
  position: relative;
  z-index: 1;
}

.button > span:not(.button-icon),
.book-dialog-link > span:not(.button-icon) {
  position: relative;
  z-index: 1;
}

.book-dialog-link .button-icon img {
  filter: brightness(0) invert(1);
}

.book-dialog-link .patreon-svg-icon svg {
  fill: currentColor;
}

@keyframes statusBorderTrace {
  0%,
  100% {
    background-position: -130% 0, 0 0;
  }

  52% {
    background-position: 130% 0, 0 0;
  }
}

@keyframes statusBorderPulse {
  0%,
  100% {
    box-shadow:
      var(--status-shadow-base),
      inset 0 0 0 0 rgba(159, 201, 236, 0);
  }

  48% {
    box-shadow:
      var(--status-shadow-base),
      inset 0 0 0 1px rgba(159, 201, 236, 0.22),
      0 0 16px var(--status-pulse-color);
  }
}

@keyframes dialog-expand-from-cover {
  from {
    opacity: 0;
    clip-path: inset(var(--dialog-reveal-top) var(--dialog-reveal-right) var(--dialog-reveal-bottom) var(--dialog-reveal-left));
  }

  to {
    opacity: 1;
    clip-path: inset(0 0 0 0);
  }
}

@keyframes backdrop-breathe {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes dialog-collapse-to-cover {
  from {
    opacity: 1;
    clip-path: inset(0 0 0 0);
  }

  to {
    opacity: 0;
    clip-path: inset(var(--dialog-reveal-top) var(--dialog-reveal-right) var(--dialog-reveal-bottom) var(--dialog-reveal-left));
  }
}

@keyframes backdrop-fade {
  from {
    opacity: 1;
  }

  to {
    opacity: 0;
  }
}

@keyframes summon-shimmer {
  0% {
    opacity: 0;
    transform: translateX(-120%);
  }

  28% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    transform: translateX(120%);
  }
}

@keyframes summon-veil-breathe {
  0% {
    opacity: 0;
  }

  24% {
    opacity: 1;
  }

  100% {
    opacity: 0;
  }
}

.patron {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(18rem, 1.1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.tiers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.9rem;
}

.tier {
  min-height: 17rem;
  padding: 1.1rem;
  border: 1px solid var(--line);
  background: var(--panel-solid);
  transition: transform 220ms ease, border-color 220ms ease, background 220ms ease;
}

.tier.highlighted {
  border-color: rgba(159, 201, 236, 0.5);
  background: linear-gradient(180deg, rgba(159, 201, 236, 0.13), #10131b);
}

.tier:hover {
  border-color: rgba(241, 227, 184, 0.38);
  background: linear-gradient(180deg, rgba(241, 227, 184, 0.07), var(--panel-solid));
  transform: translateY(-5px);
}

.tier span {
  color: var(--gold);
  font-weight: 800;
}

.tier strong {
  display: block;
  margin: 0.75rem 0;
  font-size: 2.5rem;
  line-height: 1;
}

.tier p,
.updates p {
  color: var(--muted);
}

.updates-copy {
  max-width: 42rem;
  margin-top: 0.9rem;
  font-size: clamp(1.05rem, 1.8vw, 1.35rem);
  line-height: 1.55;
}

.updates {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(20rem, 0.85fr);
  gap: 2rem;
  align-items: center;
  border-top: 1px solid var(--line);
}

.signup {
  padding: 1rem;
  border: 1px solid var(--line);
  background: rgba(238, 247, 242, 0.05);
}

.signup label {
  display: block;
  margin-bottom: 0.6rem;
  color: var(--muted);
  font-weight: 700;
}

.signup-row {
  gap: 0.6rem;
}

.signup-note {
  margin: 0.8rem 0 0;
  color: var(--dim);
  font-size: 0.9rem;
}

.signup-note:empty {
  display: none;
}

.signup-note.is-success {
  color: var(--green);
}

.signup-note.is-error {
  color: var(--rose);
}

.signup button:disabled {
  cursor: wait;
  opacity: 0.72;
}

.site-toast {
  position: fixed;
  z-index: 80;
  right: clamp(1rem, 3vw, 2rem);
  bottom: clamp(1rem, 3vw, 2rem);
  width: min(28rem, calc(100vw - 2rem));
  padding: 1rem 1.1rem;
  border: 1px solid rgba(111, 192, 167, 0.38);
  background:
    linear-gradient(135deg, rgba(111, 192, 167, 0.18), transparent 34%),
    rgba(8, 12, 18, 0.94);
  color: var(--ink);
  font-weight: 800;
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.42), 0 0 22px rgba(111, 192, 167, 0.14);
  opacity: 0;
  pointer-events: none;
  transform: translateY(1rem) scale(0.97);
  transition: opacity 220ms ease, transform 220ms ease;
}

.site-toast.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.site-toast.is-error {
  border-color: rgba(185, 120, 120, 0.5);
  background:
    linear-gradient(135deg, rgba(185, 120, 120, 0.22), transparent 34%),
    rgba(12, 7, 10, 0.95);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.42), 0 0 22px rgba(185, 120, 120, 0.18);
}

input {
  width: 100%;
  min-height: 3rem;
  border: 1px solid var(--line);
  background: rgba(4, 8, 12, 0.86);
  color: var(--ink);
  font: inherit;
  padding: 0.75rem 0.85rem;
  transition: border-color 180ms ease, background 180ms ease;
}

input:focus {
  outline: 2px solid rgba(159, 201, 236, 0.58);
  outline-offset: 2px;
  border-color: rgba(241, 227, 184, 0.44);
  background: rgba(8, 12, 18, 0.94);
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 650ms ease, transform 650ms ease;
}

.reveal-left {
  opacity: 0;
  transform: translateX(-38px);
  transition: opacity 720ms ease, transform 720ms ease;
}

.reveal-right {
  opacity: 0;
  transform: translateX(38px);
  transition: opacity 720ms ease, transform 720ms ease;
}

.reveal.is-visible,
.reveal.is-visible .reveal-left,
.reveal.is-visible .reveal-right,
.reveal-left.is-visible,
.reveal-right.is-visible {
  opacity: 1;
  transform: translate(0, 0);
}

.book.reveal,
.book.reveal.is-visible {
  transform: translateY(0) scale(1);
  transition: transform 180ms ease-out, border-color 180ms ease, box-shadow 180ms ease, background 180ms ease, opacity 650ms ease;
  transition-delay: 0ms !important;
}

.book.reveal:hover,
.book.reveal.is-visible:hover,
.book.reveal.is-selected,
.book.reveal.is-visible.is-selected {
  transform: translateY(-4px) scale(1.018);
}

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

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroBreathe {
  from {
    filter: saturate(0.96) brightness(0.92);
  }
  to {
    filter: saturate(1.08) brightness(1);
  }
}

@keyframes moonPulse {
  0%,
  100% {
    opacity: 0.4;
    transform: scale(0.98);
  }
  50% {
    opacity: 0.72;
    transform: scale(1.03);
  }
}

/*
@keyframes starsDrift {
  from {
    background-position: 0 0, 0 0, 0 0, 0 0, 0 0;
  }
  to {
    background-position: 17rem 23rem, -29rem 19rem, 23rem -31rem, -37rem -27rem, 41rem -35rem;
  }
}

@keyframes starsCrossDrift {
  from {
    background-position: 0 0, 0 0, 0 0;
  }
  to {
    background-position: -31rem 29rem, 43rem -37rem, -26rem -41rem;
  }
}

@keyframes starsWaver {
  from {
    transform: translate3d(-0.4rem, 0.25rem, 0) scale(1);
  }
  to {
    transform: translate3d(0.55rem, -0.35rem, 0) scale(1.015);
  }
}
*/

@keyframes moonRaysDriftA {
  0% {
    background-position: 8vw -8vh, 72vw 16vh;
    transform: translate3d(-1.6rem, -0.8rem, 0) rotate(-1deg);
  }
  46% {
    background-position: 14vw 6vh, 66vw 4vh;
    transform: translate3d(1.2rem, 0.9rem, 0) rotate(0.7deg);
  }
  100% {
    background-position: 4vw 18vh, 78vw -6vh;
    transform: translate3d(-0.4rem, 1.6rem, 0) rotate(-0.4deg);
  }
}

@keyframes moonRaysDriftB {
  0% {
    background-position: 46vw 18vh;
    transform: translate3d(1.3rem, -1rem, 0) rotate(0.9deg);
  }
  52% {
    background-position: 55vw 1vh;
    transform: translate3d(-1rem, 0.8rem, 0) rotate(-0.6deg);
  }
  100% {
    background-position: 39vw -10vh;
    transform: translate3d(0.4rem, 1.4rem, 0) rotate(0.3deg);
  }
}

@keyframes moonRaysFade {
  0%,
  100% {
    opacity: 0.1;
  }
  42% {
    opacity: 0.22;
  }
  68% {
    opacity: 0.15;
  }
}

footer {
  justify-content: center;
  gap: 1rem;
  padding: 2rem clamp(1rem, 4vw, 3.5rem);
  border-top: 1px solid var(--line);
  color: var(--dim);
  text-align: center;
  flex-wrap: wrap;
}

.footer-links {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.legal-header {
  transform: none;
}

.legal-main {
  min-height: calc(100vh - 5rem);
  padding-top: clamp(6.5rem, 11vw, 8.5rem);
}

.legal-page {
  width: min(960px, calc(100% - 2rem));
  margin: 0 auto;
  padding: clamp(2.5rem, 5vw, 4.5rem) 0 clamp(4rem, 8vw, 6rem);
}

.legal-page h1 {
  margin: 0;
  font-family: Cinzel, serif;
  font-size: clamp(3rem, 8vw, 6.8rem);
  line-height: 0.9;
  letter-spacing: -0.05em;
  text-transform: uppercase;
}

.legal-updated {
  margin: 1rem 0 1.8rem;
  color: var(--dim);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.legal-content {
  position: relative;
  padding: clamp(1.25rem, 3vw, 2.4rem);
  border: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(159, 201, 236, 0.06), transparent 30%),
    linear-gradient(180deg, rgba(12, 16, 24, 0.9), rgba(6, 9, 14, 0.86));
  box-shadow: var(--shadow);
}

.legal-content::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border: 1px solid rgba(159, 201, 236, 0.08);
  background:
    linear-gradient(90deg, transparent, rgba(241, 227, 184, 0.08), transparent);
  opacity: 0.38;
}

.legal-content h2,
.legal-content p,
.legal-content ul {
  position: relative;
}

.legal-content h2 {
  margin: 2rem 0 0.5rem;
  color: var(--ink);
  font-family: Cinzel, serif;
  font-size: clamp(1.45rem, 3vw, 2rem);
  line-height: 1.1;
}

.legal-content p,
.legal-content li {
  color: var(--muted);
  font-size: clamp(1rem, 1.5vw, 1.08rem);
}

.legal-content p:first-child {
  margin-top: 0;
}

.legal-content ul {
  margin: 0.75rem 0 0;
  padding-left: 1.2rem;
}

.legal-content li + li {
  margin-top: 0.55rem;
}

.thanks-page {
  min-height: auto;
  text-align: center;
}

.thanks-page h1 {
  font-size: clamp(2.8rem, 7vw, 5.2rem);
}

.thanks-page .legal-content {
  display: grid;
  justify-items: center;
  padding: clamp(1.25rem, 3vw, 2rem);
}

.thanks-page .legal-content p {
  max-width: 62rem;
}

@media (max-width: 820px) {
  html {
    scroll-padding-top: 1.5rem;
    scrollbar-width: auto;
  }

  ::-webkit-scrollbar {
    width: 10px;
    height: 10px;
  }

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

  ::-webkit-scrollbar-thumb {
    border: 2px solid #050608;
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(241, 227, 184, 0.72), rgba(159, 201, 236, 0.72));
  }

  .moon-scroll {
    display: none;
  }

  .site-header {
    position: fixed;
  }

  .author-intro {
    scroll-margin-top: 1.5rem;
  }

  nav {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
    flex-direction: column;
  }

  .hero {
    min-height: clamp(760px, 178vw, 900px);
    height: auto;
    padding-top: 5.4rem;
  }

  .hero-slider {
    height: auto;
    min-height: clamp(650px, 150vw, 790px);
  }

  .hero-slide {
    grid-template-columns: 1fr;
    align-content: start;
    gap: 1.65rem;
    padding: 1rem clamp(1rem, 5vw, 1.35rem) 6.9rem;
  }

  .slide-visual {
    order: -1;
    width: clamp(10.6rem, 52vw, 12.4rem);
    margin: 0 auto;
  }

  .cover-stack img {
    max-height: 18.6rem;
  }

  .hero-content {
    max-width: 100%;
    margin-top: 0.35rem;
    border-left: 0;
    padding-left: 0;
    text-align: center;
  }

  .hero-content h1 {
    max-width: 15ch;
    margin-inline: auto;
    font-size: clamp(1.45rem, 6.5vw, 1.9rem);
  }

  .hero-copy {
    margin-top: 0.9rem;
    font-size: 0.98rem;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.72rem;
    margin-top: 1.25rem;
  }

  .hero-actions .button {
    width: 100%;
    min-height: 3.15rem;
  }

  .slide-arrow {
    display: none;
  }

  .slide-dots {
    bottom: 1.55rem;
  }

  .intro,
  .patron,
  .updates,
  .book {
    grid-template-columns: 1fr;
  }

  .intro {
    justify-items: center;
    gap: 1.6rem;
    text-align: center;
  }

  .author-copy {
    order: 2;
    width: min(100%, 34rem);
  }

  .author-copy h2 {
    max-width: 100%;
  }

  .author-copy .author-name {
    font-size: clamp(1.65rem, 7vw, 2.35rem);
    white-space: normal;
  }

  .author-copy p {
    max-width: 34rem;
    margin-inline: auto;
  }

  .author-portrait {
    order: 1;
    justify-self: center;
    width: min(100%, 20rem);
  }

  .book {
    align-items: start;
    justify-items: center;
    gap: 1rem;
    min-height: 0;
    padding: 1rem;
    text-align: center;
  }

  .book-cover {
    justify-self: center;
    width: min(100%, 11.25rem);
    height: auto;
    aspect-ratio: 2 / 3;
  }

  .book-body {
    width: 100%;
  }

  .book-meta {
    text-align: center;
  }

  .book-body h3 {
    font-size: clamp(1.45rem, 5.7vw, 1.85rem);
    margin-bottom: 0.7rem;
  }

  .book p:not(.book-meta) {
    max-width: 100%;
    margin-inline: auto;
    text-align: center;
  }

  .book-tags {
    justify-content: center;
  }

  .royal-button {
    width: 100%;
    min-height: 3.25rem;
  }

  .book-dialog-content {
    grid-template-columns: 1fr;
    justify-items: center;
    padding-top: 3.7rem;
    text-align: center;
  }

  .book-dialog-cover {
    position: relative;
    justify-self: center;
    width: min(100%, 13rem);
  }

  .book-dialog-main {
    width: 100%;
  }

  .book-dialog-main h2 {
    max-width: 100%;
    text-align: center;
  }

  .book-dialog-copy {
    justify-items: center;
  }

  .book-dialog-copy p {
    text-align: center;
  }

  .book-dialog .book-tags {
    justify-content: center;
  }

  .book-dialog-stats {
    grid-template-columns: repeat(2, minmax(0, max-content));
    justify-content: center;
  }

  .book-dialog-stats div {
    justify-content: center;
  }

  .book-dialog-links {
    grid-template-columns: 1fr;
    width: min(100%, 28rem);
  }

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

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

  .reveal,
  .reveal-left,
  .reveal-right {
    opacity: 1;
    transform: none;
  }

}

@media (max-width: 520px) {
  .brand {
    min-width: 6.4rem;
  }

  .brand-word {
    font-size: 1rem;
  }

  .brand-word-lower {
    transform: translateX(0.8rem);
  }

  .hero {
    min-height: clamp(800px, 218vw, 900px);
    padding-top: 5rem;
  }

  .hero-content {
    padding-left: 0;
  }

  .hero-content h1 {
    font-size: clamp(1.35rem, 7.2vw, 1.72rem);
    line-height: 1.02;
  }

  .hero-slider {
    min-height: clamp(700px, 190vw, 815px);
  }

  .hero-slide {
    padding-inline: 0.9rem;
    padding-bottom: 7rem;
    gap: 1.9rem;
  }

  .slide-visual {
    width: clamp(10rem, 54vw, 11.6rem);
  }

  .cover-stack img {
    max-height: 17.4rem;
  }

  .book-meta {
    font-size: 0.72rem;
    letter-spacing: 0.1em;
  }

  .book-badge {
    min-height: 2rem;
    padding: 0.32rem 0.58rem;
  }

  .books,
  [data-books-list] {
    gap: 0.85rem;
  }

  .book {
    padding: 0.95rem;
  }

  .book-cover {
    width: min(100%, 10.4rem);
  }

  .book-body h3 {
    font-size: clamp(1.32rem, 6.3vw, 1.65rem);
  }

  .book-tags {
    gap: 0.42rem;
    margin-bottom: 0.85rem;
  }

  .book p:not(.book-meta) {
    font-size: 0.95rem;
  }

  .book-dialog {
    width: min(100vw - 1rem, 32rem);
  }

  .book-dialog-content {
    padding-inline: 1rem;
  }

  .book-dialog-cover {
    width: min(100%, 11.5rem);
  }

  .book-dialog-main h2 {
    font-size: clamp(1.8rem, 9vw, 2.35rem);
  }

  .book-dialog-stats {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }

  .hero-copy {
    font-size: 0.94rem;
  }

  .intro {
    gap: 1.2rem;
  }

  .author-portrait {
    width: min(100%, 18rem);
  }

  .author-copy {
    width: 100%;
  }

  .author-copy .author-name {
    font-size: clamp(1.5rem, 8vw, 1.95rem);
  }

  .author-copy p,
  .patron-copy p {
    font-size: 0.98rem;
  }

  .button,
  .hero-actions,
  .signup-row,
  footer {
    width: 100%;
  }

  .button,
  .signup button {
    width: 100%;
  }

  .signup-row,
  footer {
    flex-direction: column;
    align-items: stretch;
  }

  .footer-links {
    justify-content: center;
  }
}
