/*
  THE SRI YANTRA KEY — AUTHOR SITE
  Default direction: Cinematic Temple Noir.
  The colour system is kept in variables so the site can be restyled quickly.
*/

:root {
  --ink: #071014;
  --ink-soft: #0b1518;
  --surface: #111b1d;
  --surface-light: #172326;
  --parchment: #f4e8d0;
  --paper: #f8f1e4;
  --muted: #aeb9b5;
  --gold: #d8ad63;
  --gold-light: #f0d39a;
  --gold-dark: #9d7439;
  --ember: #a84632;
  --line: rgba(216, 173, 99, 0.22);
  --line-light: rgba(244, 232, 208, 0.13);
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.45);
  --serif: Baskerville, "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif;
  --sans: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --shell: min(1180px, calc(100% - 40px));
  --header-height: 76px;
  --radius: 3px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 24px);
}

body {
  margin: 0;
  color: var(--parchment);
  background:
    radial-gradient(circle at 16% 4%, rgba(48, 96, 93, 0.12), transparent 30rem),
    var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.7;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.menu-open {
  overflow: hidden;
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
  font: inherit;
}

a {
  color: inherit;
}

em {
  color: var(--gold-light);
}

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

:focus-visible {
  outline: 2px solid var(--gold-light);
  outline-offset: 5px;
}

.shell {
  width: var(--shell);
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  padding: 10px 16px;
  color: var(--ink);
  background: var(--gold-light);
  font-weight: 750;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform 180ms ease;
}

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

.eyebrow {
  margin: 0 0 20px;
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 760;
  letter-spacing: 0.24em;
  line-height: 1.35;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1.05;
}

h2 {
  max-width: 17ch;
  margin-bottom: 26px;
  font-size: clamp(2.4rem, 5vw, 4.8rem);
}

h3 {
  margin-bottom: 14px;
  font-size: clamp(1.55rem, 3vw, 2.1rem);
}

.section {
  position: relative;
  padding-block: clamp(92px, 12vw, 170px);
}

.section-heading > p:last-child {
  max-width: 62ch;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.section-heading--center {
  max-width: 760px;
  margin: 0 auto clamp(46px, 7vw, 84px);
  text-align: center;
}

.section-heading--center h2,
.section-heading--center > p:last-child {
  margin-inline: auto;
}

.button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  padding: 13px 22px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  line-height: 1.2;
  text-decoration: none;
  text-transform: uppercase;
  transition: color 180ms ease, background 180ms ease, border-color 180ms ease, transform 180ms ease;
}

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

.button--gold {
  color: #091214;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  box-shadow: 0 12px 32px rgba(216, 173, 99, 0.18);
}

.button--gold:hover {
  background: var(--gold-light);
}

.button--ghost {
  border-color: var(--line);
  color: var(--parchment);
  background: rgba(7, 16, 20, 0.3);
}

.button--ghost:hover {
  border-color: var(--gold);
  color: var(--gold-light);
}

.button[aria-disabled="true"],
.is-placeholder {
  cursor: not-allowed;
  opacity: 0.62;
}

/* Header */
.site-header {
  position: fixed;
  z-index: 100;
  top: 0;
  right: 0;
  left: 0;
  height: var(--header-height);
  border-bottom: 1px solid transparent;
  transition: background 180ms ease, border-color 180ms ease, backdrop-filter 180ms ease;
}

.site-header.is-scrolled,
body.menu-open .site-header {
  border-color: var(--line-light);
  background: rgba(7, 16, 20, 0.88);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.site-header__inner {
  display: flex;
  height: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--parchment);
  font-family: var(--serif);
  font-size: 1.28rem;
  letter-spacing: 0.14em;
  text-decoration: none;
  text-transform: uppercase;
}

.wordmark__mark {
  display: grid;
  width: 32px;
  height: 32px;
  border: 1px solid var(--gold-dark);
  border-radius: 50%;
  place-items: center;
  color: var(--gold-light);
  font-size: 0.92rem;
  letter-spacing: 0;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 30px;
}

.site-nav a {
  position: relative;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 720;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
  transition: color 160ms ease;
}

.site-nav a:hover {
  color: var(--parchment);
}

.site-nav__cta {
  padding: 9px 13px;
  border: 1px solid var(--line);
  color: var(--gold-light) !important;
}

.menu-toggle {
  display: none;
  align-items: center;
  gap: 12px;
  padding: 8px;
  border: 0;
  color: var(--parchment);
  background: transparent;
  cursor: pointer;
}

.menu-toggle__label {
  font-size: 0.72rem;
  font-weight: 760;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.menu-toggle__icon {
  display: grid;
  width: 24px;
  gap: 6px;
}

.menu-toggle__icon span {
  width: 100%;
  height: 1px;
  background: currentColor;
  transition: transform 180ms ease;
}

.menu-toggle[aria-expanded="true"] .menu-toggle__icon span:first-child {
  transform: translateY(3.5px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-toggle__icon span:last-child {
  transform: translateY(-3.5px) rotate(-45deg);
}

/* Hero */
.hero {
  position: relative;
  display: grid;
  min-height: max(760px, 100svh);
  overflow: hidden;
  align-items: center;
  padding: calc(var(--header-height) + 54px) 0 96px;
  isolation: isolate;
}

.hero::before {
  position: absolute;
  z-index: -3;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(7, 16, 20, 0.98) 0%, rgba(7, 16, 20, 0.85) 46%, rgba(7, 16, 20, 0.38) 100%),
    linear-gradient(0deg, var(--ink) 0%, transparent 30%);
  content: "";
}

.hero::after {
  position: absolute;
  z-index: -4;
  top: 0;
  right: -12%;
  width: 62%;
  height: 100%;
  background: url("assets/cover-front.jpg") center 32% / cover no-repeat;
  content: "";
  filter: saturate(0.72) brightness(0.45);
  opacity: 0.52;
  transform: scale(1.08);
}

.hero__glow {
  position: absolute;
  z-index: -1;
  top: 15%;
  right: 14%;
  width: 28rem;
  height: 28rem;
  border-radius: 50%;
  background: rgba(216, 173, 99, 0.13);
  filter: blur(90px);
}

.hero__geometry {
  position: absolute;
  z-index: -2;
  top: 50%;
  left: -13rem;
  width: 34rem;
  height: 34rem;
  border: 1px solid rgba(216, 173, 99, 0.09);
  border-radius: 50%;
  transform: translateY(-50%);
}

.hero__geometry span {
  position: absolute;
  inset: 22%;
  border: 1px solid rgba(216, 173, 99, 0.08);
  transform: rotate(45deg);
}

.hero__geometry span:nth-child(2) {
  inset: 32%;
  transform: rotate(22.5deg);
}

.hero__geometry span:nth-child(3) {
  inset: 42%;
  border-radius: 50%;
  transform: none;
}

.hero__grid {
  display: grid;
  align-items: center;
  gap: clamp(50px, 8vw, 110px);
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr);
}

.hero__copy {
  max-width: 700px;
}

.hero h1 {
  margin: 0 0 26px;
  color: var(--gold-light);
  font-size: clamp(4rem, 8.2vw, 8.25rem);
  letter-spacing: -0.045em;
  line-height: 0.82;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
}

.hero h1 span {
  display: block;
  margin-bottom: 0.28em;
  color: var(--parchment);
  font-size: 0.28em;
  letter-spacing: 0.22em;
  line-height: 1;
  text-transform: uppercase;
}

.hero__tagline {
  margin-bottom: 15px;
  color: var(--parchment);
  font-family: var(--serif);
  font-size: clamp(1.38rem, 2.5vw, 2rem);
  font-style: italic;
}

.hero__intro {
  max-width: 58ch;
  margin-bottom: 32px;
  color: var(--muted);
  font-size: clamp(1rem, 1.6vw, 1.14rem);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 34px;
}

.hero__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  margin: 0;
  padding: 0;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  list-style: none;
  text-transform: uppercase;
}

.hero__facts li {
  position: relative;
}

.hero__facts li + li::before {
  position: absolute;
  top: 50%;
  left: -15px;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--gold-dark);
  content: "";
}

.cover-stage {
  position: relative;
  width: min(100%, 390px);
  margin: 0 auto;
  perspective: 1200px;
}

.cover-stage picture {
  position: relative;
  z-index: 2;
  display: block;
  overflow: hidden;
  border: 1px solid rgba(240, 211, 154, 0.24);
  border-radius: 2px;
  box-shadow: var(--shadow), 14px 18px 0 rgba(216, 173, 99, 0.06);
  transform: rotateY(-4deg) rotateZ(0.6deg);
  transition: transform 350ms ease;
}

.cover-stage:hover picture {
  transform: rotateY(0) rotateZ(0);
}

.cover-stage__halo {
  position: absolute;
  inset: 12% -12% 10%;
  border: 1px solid var(--line);
  border-radius: 50%;
  opacity: 0.55;
}

.cover-stage__button {
  position: relative;
  z-index: 3;
  display: block;
  margin: 24px auto 0;
  padding: 6px 2px;
  border: 0;
  border-bottom: 1px solid var(--gold-dark);
  color: var(--gold-light);
  background: transparent;
  cursor: pointer;
  font-size: 0.72rem;
  font-weight: 760;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.hero__scroll {
  position: absolute;
  bottom: 24px;
  left: 50%;
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  transform: translateX(-50%);
}

.hero__scroll span:last-child {
  color: var(--gold);
  font-size: 1rem;
}

/* Story */
.story {
  background: var(--paper);
  color: #142124;
}

.story::before {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(157, 116, 57, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(157, 116, 57, 0.045) 1px, transparent 1px);
  background-size: 48px 48px;
  content: "";
  mask-image: linear-gradient(to bottom, transparent, black 20%, black 80%, transparent);
  pointer-events: none;
}

.story .eyebrow,
.jacket .eyebrow {
  color: #80591f;
}

.story__grid {
  position: relative;
  display: grid;
  align-items: start;
  gap: 42px clamp(46px, 7vw, 96px);
  grid-template-columns: minmax(260px, 0.8fr) minmax(360px, 1.15fr);
}

.story__copy {
  font-family: var(--serif);
  font-size: clamp(1.1rem, 1.7vw, 1.3rem);
  line-height: 1.82;
}

.story__copy p:last-child {
  margin-bottom: 0;
}

.story-pulse {
  grid-column: 2;
  padding-top: 28px;
  border-top: 1px solid rgba(157, 116, 57, 0.28);
}

.story-pulse__label {
  margin-bottom: 22px;
  color: #80591f;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.story-pulse dl {
  display: grid;
  gap: 22px;
  margin: 0;
  grid-template-columns: repeat(3, 1fr);
}

.story-pulse dt {
  margin-bottom: 5px;
  color: #637072;
  font-size: 0.67rem;
  font-weight: 750;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.story-pulse dd {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.08rem;
  line-height: 1.3;
}

/* Mystery cards */
.mystery {
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 20%, rgba(28, 76, 72, 0.22), transparent 32rem),
    var(--ink-soft);
}

.mystery-grid {
  display: grid;
  border-top: 1px solid var(--line-light);
  border-left: 1px solid var(--line-light);
  grid-template-columns: repeat(3, 1fr);
}

.mystery-card {
  position: relative;
  min-height: 410px;
  padding: clamp(34px, 4vw, 54px);
  overflow: hidden;
  border-right: 1px solid var(--line-light);
  border-bottom: 1px solid var(--line-light);
  transition: background 220ms ease, transform 220ms ease;
}

.mystery-card:hover {
  background: rgba(216, 173, 99, 0.04);
  transform: translateY(-4px);
}

.mystery-card__number {
  position: absolute;
  top: 28px;
  right: 28px;
  color: var(--gold-dark);
  font-family: var(--serif);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
}

.mystery-card__symbol {
  display: grid;
  width: 112px;
  height: 112px;
  margin: 38px 0 62px;
  place-items: center;
  color: var(--gold);
}

.mystery-card__symbol--geometry {
  position: relative;
  border: 1px solid var(--gold-dark);
  border-radius: 50%;
}

.mystery-card__symbol--geometry::before,
.mystery-card__symbol--geometry::after {
  position: absolute;
  width: 68px;
  height: 68px;
  border: 1px solid var(--gold);
  content: "";
  transform: rotate(45deg);
}

.mystery-card__symbol--geometry::after {
  width: 42px;
  height: 42px;
  transform: rotate(22.5deg);
}

.mystery-card__symbol--cipher {
  border: 1px solid var(--line);
  font-family: var(--serif);
  font-size: 3.2rem;
}

.mystery-card__symbol--mountain {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--gold-dark);
}

.mystery-card__symbol--mountain::before,
.mystery-card__symbol--mountain::after {
  position: absolute;
  bottom: -38px;
  width: 94px;
  height: 94px;
  border: 1px solid var(--gold);
  content: "";
  transform: rotate(45deg);
}

.mystery-card__symbol--mountain::after {
  right: -32px;
  bottom: -54px;
  border-color: var(--gold-dark);
}

.mystery-card p {
  margin-bottom: 0;
  color: var(--muted);
}

/* Full jacket */
.jacket {
  background: var(--paper);
  color: #142124;
}

.jacket__grid {
  display: grid;
  align-items: center;
  gap: clamp(48px, 8vw, 110px);
  grid-template-columns: minmax(250px, 0.6fr) minmax(420px, 1.4fr);
}

.jacket__copy p:not(.eyebrow) {
  max-width: 48ch;
  color: #526063;
}

.text-link {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  padding: 5px 0;
  border: 0;
  border-bottom: 1px solid #9d7439;
  color: #6e4b1d;
  background: transparent;
  cursor: pointer;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.jacket__preview {
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
}

.jacket__frame {
  display: block;
  padding: 12px;
  border: 1px solid rgba(157, 116, 57, 0.22);
  background: #e4dac7;
  box-shadow: 0 25px 60px rgba(35, 28, 16, 0.2);
  transition: transform 260ms ease, box-shadow 260ms ease;
}

.jacket__preview:hover .jacket__frame {
  box-shadow: 0 32px 72px rgba(35, 28, 16, 0.28);
  transform: translateY(-5px);
}

/* Series */
.series {
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(168, 70, 50, 0.12), transparent 48%),
    #091518;
}

.series__grid {
  display: grid;
  align-items: center;
  gap: clamp(50px, 10vw, 140px);
  grid-template-columns: 0.7fr 1.3fr;
}

.series__index {
  color: transparent;
  font-family: var(--serif);
  font-size: clamp(9rem, 24vw, 21rem);
  font-weight: 400;
  letter-spacing: -0.09em;
  line-height: 0.7;
  -webkit-text-stroke: 1px rgba(216, 173, 99, 0.27);
}

.series__copy {
  position: relative;
  z-index: 1;
  max-width: 650px;
}

.series__copy > p:not(.eyebrow, .series__note) {
  max-width: 58ch;
  color: var(--muted);
  font-size: 1.05rem;
}

.series__note {
  margin: 34px 0 0;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--gold-light);
  font-family: var(--serif);
  font-size: 1.18rem;
}

.series__geometry {
  position: absolute;
  right: -12rem;
  bottom: -18rem;
  width: 46rem;
  height: 46rem;
  border: 1px solid rgba(216, 173, 99, 0.08);
  border-radius: 50%;
}

.series__geometry::before,
.series__geometry::after {
  position: absolute;
  inset: 25%;
  border: 1px solid rgba(216, 173, 99, 0.08);
  content: "";
  transform: rotate(45deg);
}

.series__geometry::after {
  inset: 37%;
  transform: rotate(22.5deg);
}

/* Retailers */
.retailers {
  background: var(--surface);
}

.retailer-grid {
  display: grid;
  border-top: 1px solid var(--line-light);
  border-left: 1px solid var(--line-light);
  grid-template-columns: repeat(2, 1fr);
}

.retailer-card {
  display: grid;
  min-height: 126px;
  align-items: center;
  gap: 24px;
  padding: 25px 30px;
  border-right: 1px solid var(--line-light);
  border-bottom: 1px solid var(--line-light);
  text-decoration: none;
  grid-template-columns: 54px 1fr auto;
  transition: background 180ms ease;
}

.retailer-card:not([aria-disabled="true"]):hover {
  background: rgba(216, 173, 99, 0.05);
}

.retailer-card[aria-disabled="true"] {
  cursor: not-allowed;
}

.retailer-card__mark {
  display: grid;
  width: 50px;
  height: 50px;
  border: 1px solid var(--line);
  place-items: center;
  color: var(--gold-light);
  font-family: var(--serif);
  font-size: 1.35rem;
}

.retailer-card__mark sub {
  margin-top: 9px;
  margin-left: -7px;
  font-family: var(--sans);
  font-size: 0.44rem;
}

.retailer-card__copy {
  display: grid;
  gap: 3px;
}

.retailer-card__copy strong {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 400;
}

.retailer-card__copy small,
.retailer-card__arrow {
  color: var(--muted);
}

.retailer-card__copy small {
  font-size: 0.68rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.retailers__format-note {
  margin: 32px 0 0;
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-align: center;
  text-transform: uppercase;
}

/* Author */
.author {
  background:
    radial-gradient(circle at 18% 50%, rgba(216, 173, 99, 0.08), transparent 25rem),
    var(--ink);
}

.author__grid {
  display: grid;
  align-items: center;
  gap: clamp(50px, 9vw, 130px);
  grid-template-columns: minmax(260px, 0.75fr) minmax(360px, 1.25fr);
}

.author-portrait {
  position: relative;
  display: grid;
  aspect-ratio: 4 / 5;
  border: 1px solid var(--line);
  background:
    linear-gradient(135deg, transparent 49.8%, var(--line) 50%, transparent 50.2%),
    linear-gradient(45deg, transparent 49.8%, var(--line) 50%, transparent 50.2%),
    var(--surface);
  place-items: center;
}

.author-portrait > span {
  color: var(--gold);
  font-family: var(--serif);
  font-size: clamp(5rem, 14vw, 10rem);
  opacity: 0.55;
}

.author-portrait small {
  position: absolute;
  right: 20px;
  bottom: 18px;
  left: 20px;
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-align: center;
  text-transform: uppercase;
}

.author__copy {
  max-width: 660px;
}

.author__copy > p:not(.eyebrow) {
  color: var(--muted);
  font-size: 1.05rem;
}

.author__copy .placeholder-copy {
  margin-bottom: 30px;
  padding-left: 18px;
  border-left: 1px solid var(--gold-dark);
  font-size: 0.9rem;
}

/* Closing + footer */
.closing {
  position: relative;
  padding-block: clamp(100px, 14vw, 180px);
  overflow: hidden;
  background:
    linear-gradient(rgba(7, 16, 20, 0.58), rgba(7, 16, 20, 0.92)),
    url("assets/cover-front.jpg") center 49% / cover no-repeat;
  text-align: center;
}

.closing__inner {
  position: relative;
  z-index: 1;
}

.closing h2 {
  max-width: 18ch;
  margin-inline: auto;
}

.closing__geometry {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(74vw, 720px);
  aspect-ratio: 1;
  border: 1px solid rgba(216, 173, 99, 0.19);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.closing__geometry::before,
.closing__geometry::after {
  position: absolute;
  inset: 24%;
  border: 1px solid rgba(216, 173, 99, 0.17);
  content: "";
  transform: rotate(45deg);
}

.closing__geometry::after {
  inset: 36%;
  transform: rotate(22.5deg);
}

.site-footer {
  padding-block: 38px;
  border-top: 1px solid var(--line-light);
  background: #050b0d;
}

.site-footer__inner {
  display: grid;
  align-items: center;
  gap: 20px;
  grid-template-columns: 1fr auto 1fr;
}

.site-footer p {
  margin: 0;
  color: #7f8c89;
  font-size: 0.67rem;
  letter-spacing: 0.06em;
  text-align: center;
  text-transform: uppercase;
}

.site-footer p:last-child {
  text-align: right;
}

.wordmark--footer {
  font-size: 1rem;
}

/* Full-cover dialog */
.cover-dialog {
  width: min(96vw, 1320px);
  max-height: 94vh;
  margin: auto;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  color: var(--parchment);
  background: #071014;
  box-shadow: var(--shadow);
}

.cover-dialog::backdrop {
  background: rgba(2, 7, 8, 0.86);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.cover-dialog__bar {
  display: flex;
  min-height: 62px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--line-light);
}

.cover-dialog__bar h2 {
  max-width: none;
  margin: 0;
  font-size: 1.1rem;
  letter-spacing: 0;
}

.cover-dialog__bar button {
  padding: 8px 12px;
  border: 1px solid var(--line);
  color: var(--gold-light);
  background: transparent;
  cursor: pointer;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.cover-dialog__canvas {
  max-height: calc(94vh - 63px);
  padding: clamp(12px, 2vw, 28px);
  overflow: auto;
}

.cover-dialog__canvas img {
  width: 100%;
  height: auto;
}

/* JS-enhanced reveal. Content stays visible when JavaScript is unavailable. */
.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 700ms ease, transform 700ms ease;
}

.js .reveal--delay-short {
  transition-delay: 90ms;
}

.js .reveal--delay {
  transition-delay: 170ms;
}

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

@media (max-width: 960px) {
  :root {
    --header-height: 70px;
  }

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

  .site-nav {
    position: fixed;
    top: var(--header-height);
    right: 0;
    left: 0;
    display: grid;
    max-height: 0;
    gap: 0;
    overflow: hidden;
    border-bottom: 1px solid transparent;
    background: rgba(7, 16, 20, 0.98);
    opacity: 0;
    visibility: hidden;
    transition: max-height 240ms ease, opacity 180ms ease, visibility 180ms ease, border-color 180ms ease;
  }

  .site-nav.is-open {
    max-height: calc(100vh - var(--header-height));
    border-color: var(--line-light);
    opacity: 1;
    visibility: visible;
  }

  .site-nav a {
    padding: 20px;
    border-top: 1px solid var(--line-light);
    text-align: center;
  }

  .site-nav__cta {
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
  }

  .hero__grid {
    gap: 60px;
    grid-template-columns: minmax(0, 1.1fr) minmax(250px, 0.9fr);
  }

  .hero h1 {
    font-size: clamp(3.7rem, 10.8vw, 6.6rem);
  }

  .story__grid,
  .author__grid {
    gap: 48px;
  }

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

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

  .mystery-card__symbol {
    margin-bottom: 40px;
  }

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

  .jacket__copy {
    max-width: 680px;
  }
}

@media (max-width: 760px) {
  :root {
    --shell: min(calc(100% - 28px), 620px);
  }

  h2 {
    font-size: clamp(2.35rem, 12vw, 3.65rem);
  }

  .section {
    padding-block: 92px;
  }

  .hero {
    min-height: auto;
    padding-top: calc(var(--header-height) + 62px);
  }

  .hero::before {
    background:
      linear-gradient(180deg, rgba(7, 16, 20, 0.84) 0%, var(--ink) 42%, var(--ink) 100%);
  }

  .hero::after {
    top: 0;
    right: 0;
    width: 100%;
    height: 54%;
    opacity: 0.35;
  }

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

  .hero__copy {
    text-align: center;
  }

  .hero h1 {
    font-size: clamp(4rem, 20vw, 6rem);
  }

  .hero__intro {
    margin-inline: auto;
  }

  .hero__actions,
  .hero__facts {
    justify-content: center;
  }

  .cover-stage {
    width: min(72vw, 390px);
  }

  .cover-stage picture {
    transform: none;
  }

  .hero__scroll {
    display: none;
  }

  .story__grid,
  .author__grid,
  .series__grid {
    grid-template-columns: 1fr;
  }

  .story-pulse {
    grid-column: 1;
  }

  .story-pulse dl {
    grid-template-columns: 1fr;
  }

  .story-pulse dl div {
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(157, 116, 57, 0.16);
  }

  .series__index {
    position: absolute;
    top: 80px;
    right: 14px;
    font-size: 10rem;
    opacity: 0.45;
  }

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

  .author-portrait {
    width: min(100%, 420px);
    margin-inline: auto;
  }

  .site-footer__inner {
    grid-template-columns: 1fr;
  }

  .site-footer__inner > * {
    justify-self: center;
    text-align: center !important;
  }
}

@media (max-width: 480px) {
  .hero__actions .button {
    width: 100%;
  }

  .hero__facts {
    display: grid;
    gap: 8px;
  }

  .hero__facts li + li::before {
    display: none;
  }

  .cover-stage {
    width: min(82vw, 350px);
  }

  .mystery-card {
    padding: 32px 26px;
  }

  .retailer-card {
    gap: 16px;
    padding: 22px 18px;
    grid-template-columns: 48px 1fr auto;
  }

  .retailer-card__mark {
    width: 46px;
    height: 46px;
  }

  .retailer-card__copy strong {
    font-size: 1.12rem;
  }

  .cover-dialog__bar h2 {
    font-size: 0.95rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

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