:root {
  color-scheme: dark;
  --black: #070605;
  --charcoal: #11100d;
  --deep-wood: #24160f;
  --warm-wood: #4a2a18;
  --ember: #d89a42;
  --ember-soft: #f0c271;
  --bone: #f2e7d4;
  --muted-bone: #c9b89f;
  --iron: #87a1a8;
  --moss: #69745d;
  --red-clay: #7c3328;
  --line: rgba(242, 231, 212, 0.17);
  --shadow: rgba(0, 0, 0, 0.62);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  background: var(--black);
  color: var(--bone);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --cursor-x: 50vw;
  --cursor-y: 50vh;
}

a {
  color: inherit;
}

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

[hidden] {
  display: none !important;
}

.ambient-glow {
  position: fixed;
  z-index: 1;
  top: 0;
  left: 0;
  width: 17vw;
  max-width: 260px;
  min-width: 140px;
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(240, 194, 113, 0.16), rgba(88, 154, 140, 0.08) 36%, transparent 68%);
  filter: blur(24px);
  opacity: 0;
  pointer-events: none;
  transform: translate3d(calc(var(--cursor-x) - 50%), calc(var(--cursor-y) - 50%), 0);
  transition: opacity 220ms ease;
}

body.cursor-active .ambient-glow {
  opacity: 1;
}

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 44px;
  color: var(--bone);
  transition: background 180ms ease, border-color 180ms ease, padding 180ms ease;
}

.site-header.is-scrolled {
  border-bottom: 1px solid rgba(242, 231, 212, 0.1);
  background: rgba(7, 6, 5, 0.84);
  backdrop-filter: blur(16px);
  padding-block: 14px;
}

.brand {
  max-width: 52ch;
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-decoration: none;
  text-transform: uppercase;
}

.main-nav {
  display: flex;
  gap: 20px;
  align-items: center;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.main-nav a {
  position: relative;
  text-decoration: none;
}

.main-nav a::after {
  position: absolute;
  right: 0;
  bottom: -7px;
  left: 0;
  height: 1px;
  background: var(--ember);
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 160ms ease;
}

.main-nav a:hover::after,
.main-nav a:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  min-height: 100svh;
  overflow: hidden;
  align-items: center;
  padding: 112px 44px 36px;
  background:
    linear-gradient(103deg, rgba(7, 6, 5, 0.98) 0%, rgba(22, 13, 9, 0.95) 42%, rgba(8, 16, 18, 0.96) 100%),
    repeating-linear-gradient(92deg, rgba(255, 255, 255, 0.03) 0 1px, transparent 1px 23px),
    linear-gradient(180deg, var(--deep-wood), var(--black));
}

.hero::before {
  position: absolute;
  inset: 0;
  z-index: -3;
  background:
    radial-gradient(ellipse at 23% 42%, rgba(216, 154, 66, 0.24), transparent 42%),
    radial-gradient(ellipse at 82% 12%, rgba(135, 161, 168, 0.18), transparent 36%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.72));
  content: "";
}

.hero::after {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    repeating-linear-gradient(8deg, transparent 0 26px, rgba(242, 231, 212, 0.035) 27px 28px, transparent 29px 56px),
    linear-gradient(90deg, rgba(0, 0, 0, 0.58), transparent 44%, rgba(0, 0, 0, 0.5));
  content: "";
  mix-blend-mode: screen;
  opacity: 0.55;
}

.hero__texture {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.carving {
  display: none;
  position: absolute;
  left: 50%;
  width: 86%;
  max-width: 980px;
  height: 44px;
  overflow: hidden;
  border-block: 1px solid rgba(240, 194, 113, 0.13);
  background:
    radial-gradient(ellipse at 18% 42%, rgba(91, 53, 29, 0.48), transparent 18%),
    radial-gradient(ellipse at 73% 58%, rgba(7, 6, 5, 0.52), transparent 20%),
    repeating-linear-gradient(96deg, rgba(255, 230, 188, 0.03) 0 2px, transparent 2px 28px),
    linear-gradient(180deg, rgba(9, 6, 4, 0.46), rgba(74, 42, 24, 0.34) 48%, rgba(7, 6, 5, 0.58));
  box-shadow:
    inset 0 18px 32px rgba(255, 230, 188, 0.035),
    inset 0 -22px 36px rgba(0, 0, 0, 0.54),
    0 18px 34px rgba(0, 0, 0, 0.22);
  clip-path: polygon(0.8% 13%, 99.2% 3%, 100% 86%, 1.1% 96%);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  opacity: 0.56;
  transform: translateX(-50%);
}

.carving::before,
.carving::after {
  position: absolute;
  content: "";
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}

.carving::before {
  inset: 0;
  background:
    url("assets/carved-wood-frieze.svg") center / 100% 100% no-repeat,
    linear-gradient(90deg, transparent, rgba(240, 194, 113, 0.2), transparent);
  mix-blend-mode: screen;
  opacity: 0.9;
}

.carving::after {
  inset: 5px 0;
  background:
    repeating-linear-gradient(90deg, transparent 0 104px, rgba(7, 6, 5, 0.32) 104px 107px, rgba(240, 194, 113, 0.08) 108px 109px, transparent 110px 208px),
    repeating-linear-gradient(176deg, transparent 0 24px, rgba(242, 231, 212, 0.04) 25px 26px, transparent 27px 52px);
  opacity: 0.48;
}

.carving--top {
  top: 86px;
}

.carving--bottom {
  bottom: 94px;
}

.ship-line {
  position: absolute;
  right: -170px;
  bottom: 6%;
  width: 560px;
  height: 420px;
  border: 1px solid rgba(201, 184, 159, 0.16);
  border-left: 0;
  border-radius: 8% 68% 12% 0;
  box-shadow: inset -28px 0 0 rgba(216, 154, 66, 0.03);
  opacity: 0.64;
  transform: rotate(-9deg);
}

.ship-line::before {
  position: absolute;
  top: 66px;
  right: 118px;
  width: 156px;
  height: 156px;
  border: 1px solid rgba(201, 184, 159, 0.15);
  border-left-color: transparent;
  border-radius: 50%;
  content: "";
}

.ship-line::after {
  position: absolute;
  top: 230px;
  right: 92px;
  width: 360px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201, 184, 159, 0.18), transparent);
  content: "";
}

.hero__inner {
  position: relative;
  display: grid;
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  align-items: center;
  gap: 72px;
  grid-template-columns: minmax(260px, 0.82fr) minmax(0, 1fr);
}

.hero__cover {
  display: grid;
  justify-items: center;
  perspective: 1200px;
}

.book-shell {
  --tilt-x: 0deg;
  --tilt-y: 0deg;
  position: relative;
  width: 100%;
  max-width: 380px;
  margin: 0;
  transform: rotateX(var(--tilt-x)) rotateY(calc(-9deg + var(--tilt-y))) rotateZ(-1.5deg);
  transform-style: preserve-3d;
  transition: transform 180ms ease, filter 180ms ease;
}

.book-shell::before {
  position: absolute;
  inset: 2.5% auto 2.5% -18px;
  z-index: -1;
  width: 34px;
  border-radius: 8px 0 0 8px;
  background: linear-gradient(90deg, rgba(9, 6, 4, 0.96), rgba(97, 58, 32, 0.7));
  box-shadow: -16px 18px 42px rgba(0, 0, 0, 0.34);
  content: "";
  transform: translateZ(-18px) rotateY(-18deg);
}

.book-shell::after {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(242, 231, 212, 0.22);
  border-radius: 6px;
  background: linear-gradient(115deg, rgba(255, 255, 255, 0.28), transparent 17%, transparent 72%, rgba(255, 255, 255, 0.08));
  box-shadow: 0 34px 80px rgba(0, 0, 0, 0.58);
  content: "";
  pointer-events: none;
}

.book-shell:hover,
.book-shell:focus-within {
  filter: saturate(1.06) contrast(1.03);
}

.book-shell img {
  width: 100%;
  border-radius: 6px;
  height: auto;
}

.cover-note {
  margin: 22px 0 0;
  color: var(--muted-bone);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero__content {
  max-width: 650px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 18px;
  color: var(--ember-soft);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 46px;
  height: 1px;
  background: currentColor;
  content: "";
}

h1 {
  max-width: 9ch;
  margin: 0;
  color: var(--bone);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 6rem;
  font-weight: 700;
  line-height: 0.95;
  text-wrap: balance;
}

.intro {
  max-width: 62ch;
  margin: 28px 0 0;
  color: var(--bone);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.32rem;
  line-height: 1.62;
}

.support {
  max-width: 62ch;
  margin: 16px 0 0;
  color: var(--muted-bone);
  font-size: 1rem;
  line-height: 1.75;
}

.book-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 26px 0 0;
}

.book-meta span {
  border: 1px solid rgba(242, 231, 212, 0.18);
  border-radius: 999px;
  background: rgba(7, 6, 5, 0.28);
  color: var(--muted-bone);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 9px 12px;
  text-transform: uppercase;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.button {
  position: relative;
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid rgba(242, 231, 212, 0.22);
  border-radius: 4px;
  background: rgba(242, 231, 212, 0.08);
  color: var(--bone);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.13em;
  padding: 0 22px;
  text-decoration: none;
  text-transform: uppercase;
  transition: border-color 180ms ease, color 180ms ease, transform 180ms ease, background 180ms ease;
}

.button::before {
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent, rgba(255, 255, 255, 0.22), transparent);
  content: "";
  transform: translateX(-120%);
  transition: transform 320ms ease;
}

.button:hover,
.button:focus-visible {
  border-color: rgba(240, 194, 113, 0.8);
  background: rgba(216, 154, 66, 0.13);
  color: #fff8ea;
  transform: translateY(-2px);
}

.button:hover::before,
.button:focus-visible::before {
  transform: translateX(120%);
}

.button--primary {
  border-color: rgba(240, 194, 113, 0.74);
  background: linear-gradient(180deg, rgba(240, 194, 113, 0.28), rgba(124, 51, 40, 0.42));
}

.series-peek {
  position: absolute;
  right: 44px;
  bottom: 24px;
  display: grid;
  gap: 4px;
  max-width: 340px;
  border-left: 1px solid rgba(240, 194, 113, 0.48);
  color: var(--muted-bone);
  padding-left: 18px;
  text-decoration: none;
  transition: color 180ms ease, transform 180ms ease;
}

.series-peek:hover,
.series-peek:focus-visible {
  color: var(--bone);
  transform: translateY(-2px);
}

.series-peek__label {
  color: var(--ember-soft);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.series-peek__title {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.02rem;
  line-height: 1.3;
}

.series {
  position: relative;
  isolation: isolate;
  min-height: 92svh;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 50% 18%, rgba(216, 154, 66, 0.18), transparent 38%),
    radial-gradient(ellipse at 15% 74%, rgba(124, 51, 40, 0.16), transparent 34%),
    linear-gradient(180deg, rgba(7, 6, 5, 1), rgba(18, 12, 8, 0.98) 46%, rgba(7, 6, 5, 1));
  padding: 84px 44px 86px;
}

.series::before {
  position: absolute;
  inset: 0;
  z-index: -3;
  background:
    repeating-linear-gradient(95deg, rgba(255, 238, 203, 0.026) 0 2px, transparent 2px 32px),
    repeating-linear-gradient(4deg, transparent 0 52px, rgba(216, 154, 66, 0.04) 53px 54px, transparent 55px 110px);
  content: "";
}

.series::after {
  position: absolute;
  inset: auto 0 0;
  z-index: -2;
  height: 42%;
  background:
    linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.78)),
    radial-gradient(ellipse at 50% 100%, rgba(216, 154, 66, 0.18), transparent 54%);
  content: "";
}

.series__backdrop {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.series-rune {
  position: absolute;
  width: 360px;
  height: 360px;
  border: 1px solid rgba(240, 194, 113, 0.12);
  border-radius: 50%;
  opacity: 0.28;
}

.series-rune::before,
.series-rune::after {
  position: absolute;
  inset: 22%;
  border: 1px solid rgba(240, 194, 113, 0.14);
  border-radius: 46% 54% 44% 56%;
  content: "";
}

.series-rune::after {
  inset: 38%;
  border-radius: 50%;
}

.series-rune--left {
  bottom: 10%;
  left: -170px;
}

.series-rune--right {
  top: 12%;
  right: -180px;
}

.series__intro {
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
  text-align: center;
}

.series__intro .eyebrow {
  justify-content: center;
}

.series__intro .eyebrow::before {
  width: 34px;
}

.series__intro h2 {
  max-width: 13ch;
  margin: 0 auto;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 4.2rem;
  line-height: 0.98;
  text-wrap: balance;
}

.series__intro p:not(.eyebrow) {
  max-width: 64ch;
  margin: 22px auto 0;
  color: var(--muted-bone);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.18rem;
  line-height: 1.65;
}

.series-rail {
  display: grid;
  width: 100%;
  max-width: 1280px;
  margin: 44px auto 0;
  gap: 18px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.book-card {
  --cover-glow: rgba(216, 154, 66, 0.22);
  position: relative;
  display: grid;
  min-width: 0;
  align-content: start;
  gap: 13px;
  border: 0;
  background: transparent;
  color: var(--bone);
  cursor: pointer;
  font: inherit;
  padding: 0;
  text-align: center;
}

.book-card[data-book-id="havets-hundar"] {
  --cover-glow: rgba(184, 91, 38, 0.44);
}

.book-card[data-book-id="vinterkrigare"] {
  --cover-glow: rgba(129, 164, 188, 0.42);
}

.book-card[data-book-id="offergudar"] {
  --cover-glow: rgba(220, 130, 43, 0.48);
}

.book-card[data-book-id="miklagard"] {
  --cover-glow: rgba(198, 151, 57, 0.42);
}

.book-card[data-book-id="spjutdansare"] {
  --cover-glow: rgba(45, 195, 153, 0.46);
}

.book-card:focus-visible {
  outline: 1px solid rgba(240, 194, 113, 0.76);
  outline-offset: 8px;
}

.book-card::before {
  position: absolute;
  right: 10%;
  bottom: 56px;
  left: 10%;
  z-index: -1;
  height: 26px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.7);
  box-shadow: 0 0 36px rgba(0, 0, 0, 0.8);
  content: "";
  filter: blur(8px);
  transform: scaleX(0.84);
  transition: transform 180ms ease, opacity 180ms ease;
}

.book-card__cover {
  position: relative;
  display: block;
  overflow: hidden;
  border: 1px solid rgba(242, 231, 212, 0.18);
  border-radius: 6px;
  background: rgba(7, 6, 5, 0.46);
  box-shadow: 0 22px 44px rgba(0, 0, 0, 0.46);
  transform: translateY(0) rotateX(0) rotateY(0);
  transform-origin: center bottom;
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease, filter 220ms ease;
}

.book-card__cover::after {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(110deg, rgba(255, 255, 255, 0.28), transparent 16%, transparent 72%, rgba(255, 255, 255, 0.1)),
    linear-gradient(180deg, transparent 62%, rgba(7, 6, 5, 0.18));
  content: "";
  opacity: 0.24;
  pointer-events: none;
  transition: opacity 220ms ease;
}

.book-card__cover img {
  width: 100%;
  height: 100%;
  aspect-ratio: 2 / 3;
  object-fit: contain;
}

.book-card__body {
  display: grid;
  gap: 4px;
  min-height: 68px;
}

.book-card__title {
  color: var(--bone);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.18rem;
  font-weight: 700;
  line-height: 1.12;
}

.book-card__meta {
  display: grid;
  gap: 3px;
  color: var(--ember-soft);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.4;
  text-transform: uppercase;
}

.book-card__meta span {
  display: block;
}

.book-card:hover::before,
.book-card:focus-visible::before {
  opacity: 0.9;
  transform: scaleX(1);
}

.book-card:hover .book-card__cover,
.book-card:focus-visible .book-card__cover {
  border-color: rgba(240, 194, 113, 0.58);
  box-shadow:
    0 28px 56px rgba(0, 0, 0, 0.68),
    0 0 23px var(--cover-glow),
    0 0 64px var(--cover-glow);
  filter: saturate(1.08) contrast(1.03);
  transform: translateY(-14px) rotateX(3deg);
}

.book-card:hover .book-card__cover::after,
.book-card:focus-visible .book-card__cover::after {
  opacity: 0.48;
}

.journey {
  position: relative;
  isolation: isolate;
  min-height: 100svh;
  overflow: hidden;
  padding: 66px 44px 56px;
  background:
    radial-gradient(ellipse at 24% 22%, rgba(135, 161, 168, 0.14), transparent 34%),
    radial-gradient(ellipse at 82% 64%, rgba(216, 154, 66, 0.16), transparent 38%),
    linear-gradient(180deg, rgba(7, 6, 5, 1), rgba(18, 12, 8, 0.98) 52%, rgba(7, 6, 5, 1));
}

.journey__backdrop {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.journey__grain {
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(95deg, rgba(255, 238, 203, 0.022) 0 2px, transparent 2px 34px),
    linear-gradient(90deg, rgba(0, 0, 0, 0.64), transparent 48%, rgba(0, 0, 0, 0.42));
}

.journey__glow {
  position: absolute;
  width: 420px;
  height: 420px;
  border: 1px solid rgba(240, 194, 113, 0.12);
  border-radius: 50%;
  opacity: 0.38;
}

.journey__glow::before,
.journey__glow::after {
  position: absolute;
  border: 1px solid rgba(240, 194, 113, 0.12);
  border-radius: 43% 57% 48% 52%;
  content: "";
  inset: 18%;
}

.journey__glow::after {
  border-radius: 50%;
  inset: 36%;
}

.journey__glow--left {
  bottom: 8%;
  left: -190px;
}

.journey__glow--right {
  top: 10%;
  right: -210px;
}

.journey__intro {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  text-align: center;
}

.journey__intro .eyebrow {
  justify-content: center;
}

.journey__intro h2 {
  max-width: none;
  margin: 0 auto;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.1rem, 4vw, 4.25rem);
  line-height: 0.98;
  text-wrap: balance;
  white-space: nowrap;
}

.journey__intro p:not(.eyebrow) {
  max-width: none;
  margin: 14px auto 0;
  color: var(--muted-bone);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(0.96rem, 0.98vw, 1.02rem);
  line-height: 1.48;
  white-space: nowrap;
}

.journey__layout {
  display: grid;
  width: 100%;
  max-width: 1360px;
  align-items: start;
  gap: 30px;
  grid-template-columns: minmax(290px, 360px) minmax(0, 1fr);
  margin: 28px auto 0;
}

.journey__map {
  width: min(100%, 900px);
  min-width: 0;
  margin: 0;
}

.journey__map-frame {
  position: relative;
  display: grid;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  place-items: center;
  border: 1px solid rgba(240, 194, 113, 0.22);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(242, 231, 212, 0.08), rgba(7, 6, 5, 0.4)),
    rgba(7, 6, 5, 0.72);
  box-shadow:
    0 30px 90px rgba(0, 0, 0, 0.55),
    inset 0 0 0 1px rgba(242, 231, 212, 0.05);
}

.journey__map-frame img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 7px;
  object-fit: contain;
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.46);
  transition: opacity 260ms ease, transform 260ms ease;
}

.journey__map-frame img.is-fading {
  opacity: 0.12;
  transform: scale(0.994);
}

.journey__map-frame.is-empty {
  min-height: 460px;
}

.journey__map-empty {
  display: grid;
  max-width: 32ch;
  place-items: center;
  color: var(--muted-bone);
  gap: 9px;
  text-align: center;
}

.journey__map-empty span {
  color: var(--ember-soft);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.journey__map-empty p {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.55;
}

.journey__map figcaption {
  margin-top: 12px;
  color: rgba(201, 184, 159, 0.76);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.journey__map figcaption a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: rgba(201, 184, 159, 0.34);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  transition: color 160ms ease, text-decoration-color 160ms ease;
}

.journey__map figcaption a:hover,
.journey__map figcaption a:focus-visible {
  color: var(--ember-soft);
  text-decoration-color: rgba(240, 194, 113, 0.72);
}

.journey__map figcaption a:focus-visible {
  outline: 1px solid rgba(240, 194, 113, 0.42);
  outline-offset: 3px;
}

.journey__panel {
  min-width: 0;
  border-right: 1px solid rgba(240, 194, 113, 0.28);
  padding: 2px 24px 0 0;
}

.journey__copy {
  display: grid;
  gap: 12px;
}

.journey__kicker,
.journey__route {
  margin: 0;
  color: var(--ember-soft);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.13em;
  line-height: 1.45;
  text-transform: uppercase;
}

.journey__panel h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.25rem;
  line-height: 1;
}

.journey__copy p:not(.journey__kicker, .journey__route) {
  margin: 0;
  color: var(--bone);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1rem;
  line-height: 1.58;
}

.journey__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.journey__chips span {
  border: 1px solid rgba(242, 231, 212, 0.14);
  border-radius: 999px;
  background: rgba(242, 231, 212, 0.045);
  color: var(--muted-bone);
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  padding: 7px 9px;
  text-transform: uppercase;
}

.journey__tabs {
  display: grid;
  width: 100%;
  gap: 7px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  justify-content: center;
  margin: 0 0 24px;
}

.journey-tab {
  position: relative;
  display: grid;
  min-width: 0;
  gap: 7px;
  border: 0;
  background: transparent;
  color: var(--muted-bone);
  cursor: pointer;
  font: inherit;
  padding: 0;
  text-align: center;
}

.journey-tab::before {
  position: absolute;
  display: none;
  inset: -5px;
  z-index: -1;
  border: 1px solid rgba(240, 194, 113, 0);
  border-radius: 7px;
  background: rgba(216, 154, 66, 0);
  content: "";
  transition: border-color 170ms ease, background 170ms ease, box-shadow 170ms ease;
}

.journey-tab img {
  width: 100%;
  height: auto;
  aspect-ratio: 2 / 3;
  border: 1px solid rgba(242, 231, 212, 0.14);
  border-radius: 4px;
  object-fit: cover;
  transition: border-color 170ms ease, filter 170ms ease, transform 170ms ease;
}

.journey-tab[data-has-map="false"] img {
  filter: grayscale(0.45) brightness(0.72);
}

.journey-tab:hover img,
.journey-tab:focus-visible img,
.journey-tab.is-active img {
  border-color: rgba(240, 194, 113, 0.66);
  filter: saturate(1.05) contrast(1.02);
  transform: translateY(-3px);
}

.journey-tab:hover::before,
.journey-tab:focus-visible::before,
.journey-tab.is-active::before {
  border-color: transparent;
  background: transparent;
  box-shadow: none;
}

.journey-tab:focus-visible {
  outline: 1px solid rgba(240, 194, 113, 0.72);
  outline-offset: 8px;
}

.journey .series-peek--section {
  bottom: 58px;
}

.author {
  position: relative;
  isolation: isolate;
  min-height: 100svh;
  overflow: hidden;
  padding: 96px 44px 90px;
  background:
    radial-gradient(ellipse at 18% 22%, rgba(135, 161, 168, 0.15), transparent 34%),
    radial-gradient(ellipse at 74% 76%, rgba(124, 51, 40, 0.18), transparent 36%),
    linear-gradient(130deg, rgba(7, 6, 5, 1), rgba(24, 15, 10, 0.98) 48%, rgba(8, 16, 18, 0.98));
}

.author::before {
  position: absolute;
  inset: 0;
  z-index: -3;
  background:
    repeating-linear-gradient(100deg, rgba(255, 238, 203, 0.026) 0 2px, transparent 2px 34px),
    linear-gradient(90deg, rgba(0, 0, 0, 0.62), transparent 46%, rgba(0, 0, 0, 0.48));
  content: "";
}

.author::after {
  position: absolute;
  inset: auto 0 0;
  z-index: -2;
  height: 44%;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.76));
  content: "";
}

.author__backdrop {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.author__ring {
  position: absolute;
  right: -130px;
  bottom: 12%;
  width: 430px;
  height: 430px;
  border: 1px solid rgba(240, 194, 113, 0.12);
  border-radius: 50%;
  opacity: 0.38;
}

.author__ring::before,
.author__ring::after {
  position: absolute;
  inset: 18%;
  border: 1px solid rgba(240, 194, 113, 0.12);
  border-radius: 48% 52% 43% 57%;
  content: "";
}

.author__ring::after {
  inset: 36%;
  border-radius: 50%;
}

.author__line {
  position: absolute;
  top: 18%;
  left: -12%;
  width: 58%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(240, 194, 113, 0.2), transparent);
  transform: rotate(-8deg);
}

.author__inner {
  display: grid;
  width: 100%;
  max-width: 1180px;
  min-height: auto;
  margin: 0 auto;
  align-items: center;
  gap: 68px;
  grid-template-columns: minmax(280px, 0.78fr) minmax(0, 1fr);
}

.author__portrait {
  position: relative;
  width: 100%;
  max-width: 430px;
  margin: 0;
  transform: none;
}

.author__portrait img {
  width: 100%;
  height: auto;
  border: 1px solid rgba(240, 194, 113, 0.26);
  border-radius: 6px;
  box-shadow: 0 32px 76px rgba(0, 0, 0, 0.56);
}

.author__portrait figcaption {
  margin: 20px 0 0;
  color: var(--muted-bone);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-align: center;
  text-transform: uppercase;
}

.author__content {
  max-width: 690px;
}

.author__content h2 {
  max-width: 11ch;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 4.5rem;
  line-height: 0.96;
  text-wrap: balance;
}

.author__content p:not(.eyebrow) {
  max-width: 62ch;
  margin: 22px 0 0;
  color: var(--bone);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.12rem;
  line-height: 1.7;
}

.author__content .author__lead {
  color: var(--bone);
  font-size: 1.28rem;
  line-height: 1.62;
}

.author__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 32px 0 0;
}

.author__facts span {
  border: 1px solid rgba(242, 231, 212, 0.18);
  border-radius: 999px;
  background: rgba(7, 6, 5, 0.36);
  color: var(--muted-bone);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  padding: 10px 14px;
  text-transform: uppercase;
}

.author__links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
}

.author__links .button {
  white-space: nowrap;
}

.author__footer {
  display: grid;
  gap: 20px;
  margin: 32px 0 0;
  align-items: end;
  grid-template-columns: minmax(200px, 0.76fr) minmax(250px, auto);
}

.author__contact {
  border-left: 1px solid rgba(240, 194, 113, 0.48);
  color: var(--muted-bone);
  font-size: 0.9rem;
  font-style: normal;
  font-weight: 650;
  line-height: 1.65;
  padding-left: 18px;
}

.author__contact span {
  display: block;
  margin: 0 0 8px;
  color: var(--ember-soft);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.book-modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 28px;
}

.book-modal.is-open {
  display: flex;
}

.book-modal__scrim {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.74);
  backdrop-filter: blur(14px);
}

.book-modal__dialog {
  --modal-cover-gutter: clamp(28px, 3.9vw, 40px);
  --modal-dialog-height: min(780px, calc(100svh - 56px), calc(69vw - 39px));

  position: relative;
  display: grid;
  width: 100%;
  max-width: 1180px;
  height: var(--modal-dialog-height);
  max-height: calc(100svh - 56px);
  overflow: hidden;
  border: 1px solid rgba(240, 194, 113, 0.2);
  border-radius: 8px;
  background:
    radial-gradient(ellipse at 12% 18%, rgba(216, 154, 66, 0.18), transparent 36%),
    linear-gradient(120deg, rgba(18, 12, 8, 0.98), rgba(7, 6, 5, 0.98));
  box-shadow: 0 44px 110px rgba(0, 0, 0, 0.72);
  grid-template-columns: minmax(340px, 0.92fr) minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr);
}

.book-modal__dialog:focus {
  outline: none;
}

.book-modal__close {
  position: absolute;
  z-index: 2;
  top: 14px;
  right: 14px;
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid rgba(242, 231, 212, 0.18);
  border-radius: 50%;
  background: rgba(7, 6, 5, 0.68);
  color: var(--bone);
  cursor: pointer;
  font-size: 1.4rem;
  line-height: 1;
}

.book-modal__image {
  display: flex;
  align-self: stretch;
  align-items: center;
  justify-content: center;
  min-height: 0;
  padding: var(--modal-cover-gutter);
}

.book-modal__image img {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: calc(var(--modal-dialog-height) - var(--modal-cover-gutter) - var(--modal-cover-gutter));
  margin: 0 auto;
  border-radius: 6px;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.5);
  object-fit: contain;
}

.book-modal__content {
  display: flex;
  align-self: stretch;
  flex-direction: column;
  justify-content: center;
  overflow: auto;
  padding: 58px 64px 54px 24px;
}

.book-modal__kicker,
.book-modal__meta,
.book-modal__published {
  color: var(--ember-soft);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.book-modal__content h2 {
  margin: 10px 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 3.6rem;
  line-height: 0.95;
}

.book-modal__meta {
  margin: 18px 0 0;
  color: var(--muted-bone);
}

.book-modal__published {
  align-self: flex-start;
  display: inline-flex;
  margin: 12px 0 0;
  border: 1px solid rgba(242, 231, 212, 0.16);
  border-radius: 999px;
  background: rgba(7, 6, 5, 0.28);
  color: rgba(201, 184, 159, 0.86);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  padding: 8px 11px;
}

.book-modal__description {
  margin: 22px 0 0;
  color: var(--bone);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.1rem;
  line-height: 1.65;
}

.book-modal__links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.book-modal__links a {
  border: 1px solid rgba(242, 231, 212, 0.2);
  border-radius: 4px;
  background: rgba(242, 231, 212, 0.07);
  color: var(--bone);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  padding: 13px 16px;
  text-decoration: none;
  text-transform: uppercase;
}

.book-modal__links a:hover,
.book-modal__links a:focus-visible {
  border-color: rgba(240, 194, 113, 0.78);
  background: rgba(216, 154, 66, 0.14);
}

.book-modal__nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 34px;
  border-top: 1px solid rgba(242, 231, 212, 0.13);
  padding-top: 20px;
}

.book-modal__nav-button {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 38px;
  border: 1px solid rgba(240, 194, 113, 0.22);
  border-radius: 999px;
  background: rgba(242, 231, 212, 0.045);
  color: var(--muted-bone);
  cursor: pointer;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 0.74rem;
  font-weight: 850;
  letter-spacing: 0.03em;
  line-height: 1;
  padding: 7px 13px;
  text-align: left;
  transition:
    border-color 160ms ease,
    background 160ms ease,
    color 160ms ease,
    transform 160ms ease;
}

.book-modal__nav-button::before,
.book-modal__nav-button::after {
  content: "";
  display: none;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 50%;
  background:
    var(--modal-nav-icon) center / 14px 14px no-repeat,
    rgba(240, 194, 113, 0.12);
}

.book-modal__nav-button[data-modal-prev]::before,
.book-modal__nav-button[data-modal-next]::after {
  display: grid;
}

.book-modal__nav-button[data-modal-prev] {
  --modal-nav-icon: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M15 6l-6 6 6 6' fill='none' stroke='%23f0c271' stroke-width='2.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.book-modal__nav-button[data-modal-next] {
  --modal-nav-icon: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M9 6l6 6-6 6' fill='none' stroke='%23f0c271' stroke-width='2.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.book-modal__nav-button:last-child {
  margin-left: auto;
  text-align: right;
}

.book-modal__nav-button:hover,
.book-modal__nav-button:focus-visible {
  border-color: rgba(240, 194, 113, 0.58);
  background: rgba(216, 154, 66, 0.1);
  color: var(--bone);
  transform: translateY(-1px);
}

.book-modal__nav-button:disabled {
  display: none;
}

body.modal-open {
  overflow: hidden;
}

@media (hover: none), (pointer: coarse) {
  .ambient-glow {
    display: none;
  }
}

@media (max-width: 1100px) {
  .hero__inner {
    gap: 48px;
    grid-template-columns: minmax(220px, 0.72fr) minmax(0, 1fr);
  }

  .book-shell {
    max-width: 330px;
  }

  h1 {
    font-size: 4.7rem;
  }

  .intro {
    font-size: 1.2rem;
  }

  .series {
    padding-inline: 32px;
  }

  .journey {
    padding-inline: 32px;
  }

  .journey__intro h2 {
    font-size: 3.45rem;
  }

  .journey__layout {
    gap: 28px;
    grid-template-columns: minmax(250px, 300px) minmax(0, 1fr);
  }

  .journey__panel h3 {
    font-size: 2.15rem;
  }

  .series__intro h2 {
    font-size: 3.4rem;
  }

  .series-rail {
    gap: 14px;
  }

  .book-card__title {
    font-size: 1rem;
  }

  .book-card__meta {
    font-size: 0.66rem;
  }

  .author {
    padding-inline: 32px;
  }

  .author__inner {
    gap: 54px;
    grid-template-columns: minmax(240px, 0.72fr) minmax(0, 1fr);
  }

  .author__content h2 {
    font-size: 3.7rem;
  }
}

@media (max-width: 1180px) {
  .journey .series-peek--section {
    position: static;
    width: max-content;
    max-width: min(360px, 100%);
    margin: 24px auto 0;
  }
}

@media (max-width: 840px) {
  .site-header {
    padding: 18px 24px;
  }

  .main-nav {
    display: none;
  }

  .hero {
    min-height: 100svh;
    padding: 86px 24px 44px;
  }

  .hero__inner {
    gap: 28px;
    grid-template-columns: minmax(190px, 0.66fr) minmax(0, 1fr);
  }

  .book-shell {
    max-width: 250px;
    transform: none;
  }

  .hero__content {
    max-width: none;
  }

  h1 {
    font-size: 3.35rem;
  }

  .intro {
    font-size: 1.02rem;
    line-height: 1.55;
  }

  .support {
    font-size: 0.92rem;
    line-height: 1.6;
  }

  .button {
    min-height: 48px;
    padding-inline: 18px;
  }

  .ship-line {
    right: -250px;
    opacity: 0.38;
  }

  .series {
    min-height: auto;
    padding: 78px 24px 64px;
  }

  .series__intro h2 {
    font-size: 3rem;
  }

  .series__intro p:not(.eyebrow) {
    font-size: 1.05rem;
  }

  .series-rail {
    display: flex;
    overflow-x: auto;
    margin-top: 42px;
    padding: 16px 4px 28px;
    scroll-padding: 4px;
    scroll-snap-type: x mandatory;
  }

  .book-card {
    flex: 0 0 184px;
    scroll-snap-align: start;
  }

  .journey {
    min-height: auto;
    padding: 78px 24px 72px;
  }

  .journey__intro {
    display: block;
    max-width: 680px;
    text-align: center;
  }

  .journey__intro .eyebrow {
    justify-content: center;
  }

  .journey__intro h2 {
    max-width: 12ch;
    margin: 0 auto;
    font-size: 3rem;
    white-space: normal;
  }

  .journey__intro p:not(.eyebrow) {
    margin: 18px auto 0;
    font-size: 1.05rem;
    white-space: normal;
  }

  .journey__layout {
    gap: 26px;
    grid-template-columns: 1fr;
    margin-top: 34px;
  }

  .journey__panel {
    border-right: 0;
    padding: 0;
  }

  .journey__copy {
    max-width: 680px;
    margin: 0 auto;
    text-align: center;
  }

  .journey__chips {
    justify-content: center;
  }

  .journey__tabs {
    display: grid;
    width: min(100%, 560px);
    gap: 14px;
    grid-template-columns: repeat(auto-fit, minmax(98px, 112px));
    justify-content: center;
    overflow: visible;
    margin: 0 auto 28px;
    padding: 0;
  }

  .journey-tab {
    align-self: start;
  }

  .journey__map-frame {
    height: auto;
    overflow-x: auto;
    aspect-ratio: auto;
    justify-content: start;
  }

  .journey__map-frame img {
    width: 760px;
    max-width: none;
    height: auto;
    object-fit: initial;
  }

  .journey__map-frame.is-empty {
    min-height: 320px;
  }

  .author {
    padding: 78px 24px 76px;
  }

  .author__inner {
    min-height: auto;
    gap: 34px;
    grid-template-columns: minmax(200px, 0.62fr) minmax(0, 1fr);
  }

  .author__portrait {
    max-width: 300px;
  }

  .author__content h2 {
    font-size: 3rem;
  }

  .author__content p:not(.eyebrow) {
    font-size: 1.02rem;
    line-height: 1.62;
  }

  .author__content .author__lead {
    font-size: 1.12rem;
  }

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

  .author__links {
    justify-content: flex-start;
  }

  .book-modal__dialog {
    height: auto;
    grid-template-columns: minmax(180px, 0.62fr) minmax(0, 1fr);
  }

  .book-modal__image img {
    width: 100%;
    height: auto;
    max-height: calc(100svh - 120px);
  }

  .book-modal__content {
    display: block;
    padding: 54px 36px 42px 10px;
  }

  .book-modal__content h2 {
    font-size: 2.9rem;
  }
}

@media (max-width: 640px) {
  .hero {
    display: block;
    min-height: 100svh;
    padding: 92px 24px 92px;
  }

  .hero__inner {
    gap: 36px;
    grid-template-columns: 1fr;
  }

  .hero__content {
    text-align: center;
  }

  .eyebrow {
    justify-content: center;
  }

  .eyebrow::before {
    display: none;
  }

  h1 {
    max-width: none;
    font-size: 4rem;
  }

  .intro,
  .support {
    margin-right: auto;
    margin-left: auto;
  }

  .book-meta,
  .cta-row {
    justify-content: center;
  }

  .series-peek {
    position: static;
    max-width: 420px;
    margin: 34px auto 0;
  }

  .series__intro h2 {
    font-size: 2.45rem;
  }

  .journey__intro h2 {
    font-size: 2.55rem;
  }

  .journey__panel h3 {
    font-size: 2.3rem;
  }

  .journey__map figcaption {
    font-size: 0.7rem;
    line-height: 1.45;
  }

  .author {
    padding: 78px 24px 72px;
  }

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

  .author__portrait {
    max-width: min(320px, 84vw);
    margin: 0 auto;
  }

  .author__content {
    text-align: center;
  }

  .author__content h2 {
    max-width: 12ch;
    margin: 0 auto;
    font-size: 3.15rem;
  }

  .author__content p:not(.eyebrow) {
    margin-right: auto;
    margin-left: auto;
  }

  .author__facts,
  .author__links {
    justify-content: center;
  }

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

  .author__contact {
    width: min(280px, 100%);
    margin: 0 auto;
    text-align: left;
  }

  .book-modal {
    padding: 16px;
  }

  .book-modal__dialog {
    display: block;
    --modal-cover-gutter: 0px;

    height: auto;
    max-height: calc(100svh - 32px);
    overflow: auto;
    grid-template-columns: none;
    grid-template-rows: none;
  }

  .book-modal__image {
    display: flex;
    justify-content: center;
    padding: 24px 24px 6px;
  }

  .book-modal__image img {
    width: min(190px, 48vw);
    max-width: none;
    max-height: none;
    height: auto;
  }

  .book-modal__content {
    display: block;
    padding: 24px 24px 32px;
  }

  .book-modal__content h2 {
    font-size: 2.55rem;
  }

  .book-modal__description {
    font-size: 1rem;
  }
}

@media (max-width: 560px) {
  .brand {
    max-width: 24ch;
    font-size: 0.72rem;
    line-height: 1.35;
  }

  .hero {
    padding: 84px 18px 104px;
  }

  .book-shell {
    width: 82%;
    max-width: 245px;
    transform: none;
  }

  .cover-note {
    font-size: 0.72rem;
  }

  .eyebrow {
    font-size: 0.72rem;
    line-height: 1.45;
  }

  h1 {
    font-size: 3.15rem;
  }

  .intro {
    font-size: 1.08rem;
    line-height: 1.56;
  }

  .support {
    font-size: 0.95rem;
  }

  .book-meta {
    gap: 8px;
  }

  .book-meta span {
    font-size: 0.68rem;
  }

  .cta-row {
    display: grid;
    grid-template-columns: 1fr;
  }

  .button {
    width: 100%;
  }

  .series-peek__title {
    font-size: 0.92rem;
  }

  .series {
    padding: 70px 18px 58px;
  }

  .series__intro h2 {
    font-size: 2.15rem;
  }

  .journey {
    padding: 70px 18px 64px;
  }

  .journey__intro h2 {
    font-size: 2.12rem;
  }

  .journey__intro p:not(.eyebrow),
  .journey__copy p:not(.journey__kicker, .journey__route) {
    font-size: 1rem;
  }

  .journey__panel h3 {
    font-size: 2.05rem;
  }

  .journey__tabs {
    width: min(100%, 360px);
    gap: 12px;
    grid-template-columns: repeat(auto-fit, minmax(92px, 104px));
  }

  .journey__map-frame img {
    width: 680px;
  }

  .author {
    padding: 70px 18px 66px;
  }

  .author__content h2 {
    font-size: 2.55rem;
  }

  .author__content p:not(.eyebrow) {
    font-size: 1rem;
  }

  .author__content .author__lead {
    font-size: 1.08rem;
  }

  .author__facts span {
    font-size: 0.66rem;
  }

  .author__links {
    display: grid;
    grid-template-columns: 1fr;
  }

  .book-card {
    flex-basis: 158px;
  }

  .book-card__body {
    min-height: 62px;
  }

  .book-modal__links {
    display: grid;
    grid-template-columns: 1fr;
  }

  .book-modal__links a {
    text-align: center;
  }

  .book-modal__nav {
    display: flex;
    gap: 10px;
  }

  .book-modal__nav-button,
  .book-modal__nav-button:last-child {
    flex: 1 1 0;
    justify-content: center;
    min-width: 0;
    margin-left: 0;
    gap: 6px;
    overflow: hidden;
    padding: 7px 9px;
    font-size: 0.68rem;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .book-modal__nav-button::before,
  .book-modal__nav-button::after {
    flex: 0 0 20px;
    width: 20px;
    height: 20px;
  }
}

@media (max-width: 640px) {
  .book-modal {
    align-items: stretch;
    height: var(--app-viewport-height, 100dvh);
    min-height: 0;
    justify-content: center;
    overflow: hidden;
    padding:
      max(12px, env(safe-area-inset-top))
      12px
      max(12px, env(safe-area-inset-bottom));
  }

  .book-modal__dialog {
    width: 100%;
    height: calc(var(--app-viewport-height, 100dvh) - max(12px, env(safe-area-inset-top)) - max(12px, env(safe-area-inset-bottom)));
    max-height: none;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain;
    scroll-padding-block: 76px 96px;
    -webkit-overflow-scrolling: touch;
  }

  .book-modal__close {
    position: fixed;
    top: max(16px, env(safe-area-inset-top));
    right: max(16px, env(safe-area-inset-right));
    z-index: 60;
    width: 48px;
    height: 48px;
    border-color: rgba(242, 231, 212, 0.28);
    background: rgba(7, 6, 5, 0.78);
    box-shadow: 0 12px 34px rgba(0, 0, 0, 0.42);
    font-size: 1.65rem;
  }

  .book-modal__image {
    padding-top: 58px;
  }

  .book-modal__content {
    padding-bottom: max(44px, calc(env(safe-area-inset-bottom) + 44px));
  }
}

@media (max-height: 560px) and (orientation: landscape) and (pointer: coarse) {
  .hero {
    display: block;
    min-height: auto;
    overflow: visible;
    padding: 78px 28px 32px;
  }

  .hero__inner {
    gap: 30px;
  }

  .book-shell {
    max-width: min(250px, 27vw);
    transform: none;
  }

  .cover-note {
    margin-top: 14px;
  }

  .hero .series-peek {
    position: static;
    width: max-content;
    max-width: min(300px, 100%);
    margin: 22px 0 0 auto;
  }

  .book-modal {
    align-items: stretch;
    height: var(--app-viewport-height, 100dvh);
    min-height: 0;
    overflow: hidden;
    padding:
      max(6px, env(safe-area-inset-top))
      max(8px, env(safe-area-inset-right))
      max(6px, env(safe-area-inset-bottom))
      max(8px, env(safe-area-inset-left));
  }

  .book-modal__dialog {
    --modal-cover-gutter: 0px;

    display: grid;
    width: 100%;
    max-width: none;
    height: calc(var(--app-viewport-height, 100dvh) - max(6px, env(safe-area-inset-top)) - max(6px, env(safe-area-inset-bottom)));
    max-height: none;
    min-height: 0;
    overflow: hidden;
    grid-template-columns: minmax(136px, 0.38fr) minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr);
  }

  .book-modal__close {
    top: 12px;
    right: 12px;
    width: 44px;
    height: 44px;
  }

  .book-modal__image {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px 10px 18px 18px;
  }

  .book-modal__image img {
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: calc(var(--app-viewport-height, 100dvh) - 46px);
  }

  .book-modal__content {
    display: block;
    overflow-y: auto;
    padding: 32px 72px 24px 18px;
  }

  .book-modal__content h2 {
    margin-top: 6px;
    font-size: clamp(2.35rem, 7vw, 3.4rem);
  }

  .book-modal__meta {
    margin-top: 12px;
  }

  .book-modal__published {
    margin-top: 10px;
  }

  .book-modal__description {
    margin-top: 18px;
    font-size: 0.98rem;
    line-height: 1.55;
  }

  .book-modal__links {
    flex-wrap: nowrap;
    gap: 9px;
    margin-top: 20px;
  }

  .book-modal__links a {
    flex: 1 1 0;
    min-width: 0;
    padding: 11px 10px;
    text-align: center;
  }

  .book-modal__nav {
    gap: 10px;
    margin-top: 20px;
    padding-top: 14px;
  }
}

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

  .book-shell,
  .book-card__cover {
    transform: none;
  }
}
