

@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/cormorant-garamond-latin-600-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Cormorant Garamond";
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/cormorant-garamond-latin-500-italic.woff2") format("woff2");
}

@font-face {
  font-family: "Inter Variable";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/inter-latin-wght-normal.woff2") format("woff2-variations");
}

:root {
  
  --color-night: #04070d;
  --color-night-raised: #08101c;
  --color-panel: rgb(10 18 31 / 92%);
  --color-ink: #e8eef7;
  --color-ink-soft: #aebbd0;
  --color-ink-faint: #6e7d94;
  --color-ice: #9ad6ff;
  --color-ice-glow: rgb(110 185 255 / 38%);
  --color-line: rgb(170 205 255 / 14%);

  
  --bubble-rose: #ff6fcf;
  --bubble-cyan: #5ff0ff;
  --bubble-gold: #ffd56b;
  --bubble-mint: #79ffb8;
  --bubble-violet: #9d80ff;

  
  --placeholder-top: #222a38;
  --placeholder-bottom: #171d28;

  
  --font-display: "Cormorant Garamond", "Iowan Old Style", "Palatino Linotype", "Georgia", serif;
  --font-text: "Inter Variable", "Segoe UI", system-ui, -apple-system, "Roboto", "Arial", sans-serif;

  
  --page-gutter: 16px;
  --content-width: 640px;
  --radius-panel: 18px;
  --radius-book-flat: 12px; 

  
  --ease-soft: cubic-bezier(0.22, 0.7, 0.2, 1);

  color-scheme: dark;
}

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

html {
  background: var(--color-night);
  scroll-behavior: smooth;
}

html:has(dialog[open]) {
  overflow: hidden;
}

body {
  margin: 0;
  min-height: 100svh;
  background: var(--color-night);
  color: var(--color-ink);
  font-family: var(--font-text);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--color-ice);
  text-decoration-color: rgb(154 214 255 / 40%);
  text-underline-offset: 3px;
}

a:hover {
  text-decoration-color: currentcolor;
}

button {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--color-ice);
  outline-offset: 3px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.site-footer {
  padding: 48px var(--page-gutter) calc(40px + env(safe-area-inset-bottom));
  text-align: center;
  color: var(--color-ink-faint);
  font-size: 13px;
}

.site-footer p {
  margin: 0 0 6px;
}

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

  
  *,
  *::before,
  *::after {
    
    animation: none !important;
    transition: none !important;
    
  }
}

.hero {
  --hero-focus-x: 50%;
  --hero-focus-y: 30%; 

  position: relative;
  display: grid;
  align-items: end;
  min-height: 82svh;
  overflow: hidden;
  isolation: isolate;
}

.hero__picture,
.hero__image,
.hero__lights,
.hero__sparkles,
.hero__shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero__image {
  object-fit: cover;
  object-position: var(--hero-focus-x) var(--hero-focus-y);
}

.hero__image,
.hero__lights {
  transform-origin: var(--hero-focus-x) var(--hero-focus-y);
  animation: hero-drift 48s ease-in-out infinite alternate;
}

.hero__lights {
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
}

.hero-light {
  position: absolute;
  top: var(--y);
  left: var(--x);
  width: var(--size);
  height: var(--size);
  margin: calc(var(--size) / -2) 0 0 calc(var(--size) / -2);
  border-radius: 50%;
  opacity: 0;
}

.hero-light--flare {
  background: radial-gradient(
    circle closest-side,
    rgb(var(--rgb) / 90%),
    rgb(var(--rgb) / 35%) 45%,
    rgb(var(--rgb) / 0%)
  );
  mix-blend-mode: screen;
  animation: hero-light-flare var(--flicker-duration) ease-in-out forwards;
}

.hero-light--dip {
  background: radial-gradient(circle closest-side, rgb(4 7 13 / 85%), rgb(4 7 13 / 40%) 55%, rgb(4 7 13 / 0%));
  animation: hero-light-dip var(--flicker-duration) ease-in-out forwards;
}

@keyframes hero-light-flare {
  0% {
    opacity: 0;
  }

  15% {
    opacity: 0.7;
  }

  27% {
    opacity: 0.2;
  }

  42% {
    opacity: 0.85;
  }

  58% {
    opacity: 0.35;
  }

  72% {
    opacity: 0.6;
  }

  100% {
    opacity: 0;
  }
}

@keyframes hero-light-dip {
  0% {
    opacity: 0;
  }

  12% {
    opacity: 0.8;
  }

  22% {
    opacity: 0.25;
  }

  34% {
    opacity: 0.9;
  }

  62% {
    opacity: 0.85;
  }

  78% {
    opacity: 0.3;
  }

  100% {
    opacity: 0;
  }
}

@keyframes hero-drift {
  from {
    transform: scale(1);
  }

  to {
    transform: scale(1.07);
  }
}

.hero__sparkles {
  z-index: 1;
  pointer-events: none;
}

.hero__shade {
  z-index: 2;
  background:
    linear-gradient(to bottom, rgb(4 7 13 / 35%) 0%, rgb(4 7 13 / 0%) 18%),
    linear-gradient(to bottom, rgb(4 7 13 / 0%) 42%, rgb(4 7 13 / 70%) 72%, var(--color-night) 100%);
}

.hero__content {
  position: relative;
  z-index: 3;
  padding: 0 var(--page-gutter) 72px;
  text-align: center;
}

.hero__kicker {
  margin: 0 0 4px;
  color: var(--color-ice);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
}

.hero__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(64px, 19vw, 148px);
  font-weight: 600;
  line-height: 0.95;
  letter-spacing: 0.01em;
  text-shadow:
    0 0 28px var(--color-ice-glow),
    0 2px 18px rgb(0 0 0 / 70%);
}

.hero__subline {
  margin: 10px auto 0;
  max-width: 28ch;
  color: var(--color-ink-soft);
  font-family: var(--font-display);
  font-size: clamp(19px, 5vw, 26px);
  font-style: italic;
  font-weight: 500;
  line-height: 1.25;
  text-shadow: 0 1px 12px rgb(0 0 0 / 80%);
  text-wrap: balance;
}

.hero__scroll {
  position: absolute;
  bottom: 18px;
  left: 50%;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-left: -20px;
  border-radius: 50%;
  color: var(--color-ink-soft);
  animation: hero-scroll-hint 2.8s ease-in-out infinite;
}

.hero__scroll svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentcolor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@keyframes hero-scroll-hint {
  0%,
  100% {
    transform: translateY(0);
    opacity: 0.55;
  }

  50% {
    transform: translateY(5px);
    opacity: 1;
  }
}

@media (width >= 760px) {
  .hero {
    min-height: min(100svh, 980px);
  }

  .hero__content {
    padding-bottom: 96px;
  }

  .hero__subline {
    max-width: none;
    font-size: 30px;
  }
}

.series {
  padding: 8px var(--page-gutter) 24px;
}

.series__heading {
  display: flex;
  gap: 14px;
  align-items: center;
  max-width: var(--content-width);
  margin: 0 auto 36px;
  color: var(--color-ink-faint);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
}

.series__heading::before,
.series__heading::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--color-line));
}

.series__heading::after {
  background: linear-gradient(to left, transparent, var(--color-line));
}

.shelf {
  --book-width: min(40vw, 172px);

  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px 20px;
  justify-items: center;
  max-width: 520px;
  margin: 0 auto;
}

.volume {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  text-align: center;
}

.volume__number {
  margin: 22px 0 2px;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  line-height: 1.1;
}

.volume__status {
  margin: 0;
  color: var(--color-ink-faint);
  font-size: 13px;
  line-height: 1.45;
}

.volume__status--soon {
  background: linear-gradient(
    100deg,
    var(--bubble-cyan),
    var(--bubble-violet),
    var(--bubble-rose),
    var(--bubble-gold),
    var(--bubble-cyan)
  );
  background-size: 300% 100%;
  background-clip: text;
  color: transparent;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 12px;
  animation: soon-shift 9s linear infinite;
}

@keyframes soon-shift {
  to {
    background-position: 300% 0;
  }
}

.volume__more {
  margin-top: 8px;
  padding: 8px 12px;
  border: 0;
  background: none;
  color: var(--color-ice);
  font-size: 13px;
  cursor: pointer;
  text-decoration: underline;
  text-decoration-color: rgb(154 214 255 / 35%);
  text-underline-offset: 4px;
}

.volume__more::after {
  content: " ›";
}

.volume__more:hover {
  text-decoration-color: currentcolor;
}

.book {
  position: relative;
  display: block;
  width: var(--book-width);
  aspect-ratio: 2 / 3;
  padding: 0;
  border: 0;
  background: none;
}

.book__cover {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: 3px 7px 7px 3px;
  box-shadow:
    inset 0 0 0 1px rgb(255 255 255 / 6%),
    4px 4px 0 -1px #c9d0dc,
    7px 7px 0 -2px #8f98a8,
    18px 26px 40px rgb(0 0 0 / 65%);
}

.book__spine {
  position: absolute;
  inset: 0 auto 0 0;
  width: 9%;
  background: linear-gradient(
    to right,
    rgb(0 0 0 / 45%),
    rgb(255 255 255 / 10%) 55%,
    rgb(0 0 0 / 30%) 80%,
    rgb(0 0 0 / 0%)
  );
}

.book--bubble {
  --pointer-x: 0.5;
  --pointer-y: 0.5;
  --pointer-strength: 0;
  --lift: 0px;

  cursor: pointer;
  transform: translateY(var(--lift));
}

.book--bubble:focus-visible {
  outline: 1.5px solid rgb(154 214 255 / 45%);
  outline-offset: 6px;
  border-radius: 8px;
}

.book__glow {
  position: absolute;
  inset: -14% -18%;
  background:
    radial-gradient(closest-side at 30% 35%, rgb(255 111 207 / 40%), transparent),
    radial-gradient(closest-side at 70% 60%, rgb(95 240 255 / 40%), transparent),
    radial-gradient(closest-side at 45% 85%, rgb(255 213 107 / 30%), transparent);
  filter: blur(22px);
  opacity: 0.55;
  translate: calc((var(--pointer-x) - 0.5) * 16%) calc((var(--pointer-y) - 0.5) * 16%);
  animation: glow-breathe 7s ease-in-out infinite alternate;
}

@keyframes glow-breathe {
  from {
    opacity: 0.4;
    transform: scale(0.96);
  }

  to {
    opacity: 0.7;
    transform: scale(1.04);
  }
}

.bubble {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: radial-gradient(130% 100% at 30% 20%, #141a35, #070a16 75%);
}

.bubble__wash,
.bubble__film {
  position: absolute;
  will-change: transform;
}

.bubble__wash {
  inset: -30%;
  background:
    radial-gradient(closest-side at 30% 30%, rgb(255 111 207 / 35%), transparent),
    radial-gradient(closest-side at 75% 70%, rgb(95 240 255 / 35%), transparent);
  mix-blend-mode: screen;
  animation: film-drift-b 12s ease-in-out infinite alternate;
}

.bubble__film {
  inset: -80%;
  filter: blur(3px);
}

.bubble__film--a {
  background: repeating-radial-gradient(
    circle at 35% 40%,
    rgb(255 80 200 / 0%) 0,
    rgb(255 80 200 / 80%) 18px,
    rgb(255 210 90 / 75%) 34px,
    rgb(90 255 170 / 60%) 50px,
    rgb(80 220 255 / 80%) 66px,
    rgb(150 110 255 / 75%) 82px,
    rgb(255 80 200 / 0%) 100px
  );
  mix-blend-mode: screen;
  opacity: 0.85;

  
  translate: calc((var(--pointer-x) - 0.5) * 10%) calc((var(--pointer-y) - 0.5) * 10%);
  animation: film-drift-a 16s ease-in-out infinite alternate;
}

.bubble__film--b {
  background: repeating-radial-gradient(
    ellipse at 70% 65%,
    rgb(80 220 255 / 0%) 0,
    rgb(80 220 255 / 70%) 24px,
    rgb(255 90 210 / 70%) 46px,
    rgb(255 220 110 / 55%) 64px,
    rgb(80 220 255 / 0%) 86px
  );
  mix-blend-mode: difference;
  opacity: 0.45;

  
  translate: calc((0.5 - var(--pointer-x)) * 8%) calc((0.5 - var(--pointer-y)) * 8%);
  animation: film-drift-b 21s ease-in-out infinite alternate;
}

.bubble__film--c {
  background: repeating-radial-gradient(
    ellipse at 50% 30%,
    rgb(121 255 184 / 0%) 0,
    rgb(121 255 184 / 55%) 22px,
    rgb(157 128 255 / 60%) 44px,
    rgb(255 111 207 / 50%) 64px,
    rgb(121 255 184 / 0%) 88px
  );
  mix-blend-mode: overlay;
  opacity: 0.55;
  translate: calc((var(--pointer-y) - 0.5) * 6%) calc((0.5 - var(--pointer-x)) * 6%);
  animation: film-drift-c 27s ease-in-out infinite alternate;
}

@keyframes film-drift-c {
  from {
    transform: translate(0, 0) rotate(0) scale(1);
  }

  to {
    transform: translate(6%, -6%) rotate(80deg) scale(1.1);
  }
}

.bubble__vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(100% 80% at 50% 45%, transparent 45%, rgb(5 8 18 / 60%));
}

.bubble__glint,
.bubble__glint::after {
  position: absolute;
  inset: 0;
  opacity: var(--pointer-strength);
}

.bubble__glint {
  --glint-at: calc(var(--pointer-x) * 100%) calc(var(--pointer-y) * 100%);

  background: radial-gradient(circle at var(--glint-at), rgb(255 255 255 / 45%), rgb(255 255 255 / 0%) 45%);
  mix-blend-mode: overlay;
}

.bubble__glint::after {
  content: "";
  background: radial-gradient(circle at var(--glint-at), rgb(255 255 255 / 30%), rgb(255 255 255 / 0%) 16%);
  mix-blend-mode: screen;
}

@keyframes film-drift-a {
  from {
    transform: translate(0, 0) rotate(0) scale(1);
  }

  to {
    transform: translate(8%, 6%) rotate(40deg) scale(1.15);
  }
}

@keyframes film-drift-b {
  from {
    transform: translate(0, 0) rotate(0);
  }

  to {
    transform: translate(-8%, -10%) rotate(-55deg) scale(0.92);
  }
}

.book__gloss {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(115deg, rgb(255 255 255 / 0%) 30%, rgb(255 255 255 / 16%) 42%, rgb(255 255 255 / 0%) 54%),
    linear-gradient(to bottom, rgb(255 255 255 / 8%), rgb(255 255 255 / 0%) 30%);
  pointer-events: none;
}

.book--placeholder .book__cover {
  background: linear-gradient(160deg, var(--placeholder-top), var(--placeholder-bottom));
  box-shadow:
    inset 0 0 0 1px rgb(255 255 255 / 5%),
    4px 4px 0 -1px #59606d,
    7px 7px 0 -2px #3b414c,
    18px 26px 40px rgb(0 0 0 / 55%);
}

.volume--later .volume__number {
  color: var(--color-ink-soft);
}

.shelf--flat .book__cover {
  border-radius: var(--radius-book-flat);
  box-shadow:
    inset 0 0 0 1px rgb(255 255 255 / 8%),
    0 18px 40px rgb(0 0 0 / 60%);
}

.shelf--flat .book--placeholder .book__cover {
  box-shadow:
    inset 0 0 0 1px rgb(255 255 255 / 6%),
    0 18px 40px rgb(0 0 0 / 50%);
}

.shelf--flat .book__gloss {
  background: linear-gradient(to bottom, rgb(255 255 255 / 9%), rgb(255 255 255 / 0%) 35%);
}

.shelf--flat .book--bubble:focus-visible {
  border-radius: calc(var(--radius-book-flat) + 6px);
}

@media (width >= 760px) {
  .series {
    padding-bottom: 48px;
  }

  .shelf {
    --book-width: 210px;

    gap: 40px 72px;
    max-width: 640px;
  }

  .volume__number {
    font-size: 28px;
  }
}

.bubble__spawn {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  container-type: inline-size;
}

.soap-bubble {
  position: absolute;
  top: var(--y);
  left: var(--x);
  width: var(--size);
  aspect-ratio: 1;
  margin: calc(var(--size) / -2) 0 0 calc(var(--size) / -2);
  border-radius: 50%;
  background: repeating-radial-gradient(
    ellipse closest-side at var(--cx) var(--cy),
    rgb(255 80 200 / 0%) 0,
    rgb(255 80 200 / 75%) 18%,
    rgb(255 210 90 / 65%) 32%,
    rgb(90 255 170 / 55%) 46%,
    rgb(80 220 255 / 75%) 61%,
    rgb(150 110 255 / 65%) 75%,
    rgb(255 80 200 / 0%) 90%
  );

  
  mask: radial-gradient(circle closest-side, #000 25%, transparent 100%);
  filter: blur(7px);
  mix-blend-mode: screen;
  animation:
    soap-bubble-drift var(--life) cubic-bezier(0.3, 0.1, 0.4, 1) forwards,
    soap-bubble-breathe var(--life) ease-in-out forwards,
    soap-bubble-turn var(--life) ease-in-out forwards,
    soap-bubble-fade var(--life) ease-in-out forwards;
}

.soap-bubble--invert {
  mix-blend-mode: difference;
}

.soap-bubble--small {
  filter: blur(6px);
}

@keyframes soap-bubble-drift {
  from {
    translate: 0 0;
  }

  to {
    translate: var(--drift-x) var(--drift-y);
  }
}

@keyframes soap-bubble-breathe {
  0% {
    scale: 0.3;
  }

  20% {
    scale: 1.05 0.92;
  }

  40% {
    scale: 0.9 1.08;
  }

  60% {
    scale: 1.1 0.95;
  }

  80% {
    scale: 0.95 1.06;
  }

  100% {
    scale: 1.25 1.15;
  }
}

@keyframes soap-bubble-turn {
  from {
    rotate: 0deg;
  }

  to {
    rotate: var(--turn);
  }
}

@keyframes soap-bubble-fade {
  0% {
    opacity: 0;
  }

  25% {
    opacity: 0.95;
  }

  70% {
    opacity: 0.85;
  }

  100% {
    opacity: 0;
  }
}

.soap-bubble--pop {
  animation: soap-bubble-pop 0.7s ease-out forwards;
}

@keyframes soap-bubble-pop {
  0% {
    scale: 1;
    opacity: 0.95;
  }

  100% {
    scale: 1.9;
    opacity: 0;
  }
}

.soap-swirl {
  position: absolute;
  top: var(--y);
  left: var(--x);
  width: var(--size);
  aspect-ratio: 1;
  margin: calc(var(--size) / -2) 0 0 calc(var(--size) / -2);
  border-radius: 50%;
  background: radial-gradient(
    circle closest-side,
    rgb(255 213 107 / 55%) 0,
    rgb(255 111 207 / 60%) 22%,
    rgb(95 240 255 / 0%) 38%,
    rgb(95 240 255 / 60%) 52%,
    rgb(157 128 255 / 55%) 66%,
    rgb(121 255 184 / 30%) 80%,
    rgb(121 255 184 / 0%) 100%
  );
  filter: blur(6px);
  mix-blend-mode: overlay;
  animation:
    soap-swirl-grow var(--life) ease-out forwards,
    soap-swirl-fade var(--life) ease-in-out forwards;
}

@keyframes soap-swirl-grow {
  from {
    scale: 0.2;
    rotate: 0deg;
  }

  to {
    scale: 1.5;
    rotate: 70deg;
  }
}

@keyframes soap-swirl-fade {
  0% {
    opacity: 0;
  }

  30% {
    opacity: 0.9;
  }

  100% {
    opacity: 0;
  }
}

.book-dialog {
  width: 100%;
  max-width: 100%;
  max-height: 90svh;
  margin: auto 0 0;
  padding: 0;
  border: 0;
  border-radius: var(--radius-panel) var(--radius-panel) 0 0;
  background: transparent;
  color: var(--color-ink);
  overflow: hidden;
}

.book-dialog[open] {
  display: flex;
  animation: dialog-rise 0.45s var(--ease-soft);
}

.book-dialog::backdrop {
  background: rgb(2 4 9 / 72%);
  backdrop-filter: blur(6px);
}

@keyframes dialog-rise {
  from {
    transform: translateY(40px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.book-dialog__panel {
  position: relative;
  width: 100%;
  overflow-y: auto;
  padding: 30px 22px calc(28px + env(safe-area-inset-bottom));
  border: 1px solid var(--color-line);
  border-bottom: 0;
  border-radius: inherit;
  background:
    radial-gradient(120% 60% at 50% 0%, rgb(60 110 190 / 18%), transparent 70%),
    linear-gradient(to bottom, #0b1526, var(--color-night-raised));
  overscroll-behavior: contain;
}

.book-dialog__close {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: rgb(255 255 255 / 6%);
  color: var(--color-ink-soft);
  cursor: pointer;
}

.book-dialog__close:hover {
  background: rgb(255 255 255 / 12%);
  color: var(--color-ink);
}

.book-dialog__close svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentcolor;
  stroke-width: 1.8;
  stroke-linecap: round;
}

.book-dialog__kicker {
  margin: 0;
  color: var(--color-ice);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
}

.book-dialog__title {
  margin: 2px 0 0;
  font-family: var(--font-display);
  font-size: 44px;
  font-weight: 600;
  line-height: 1;
}

.book-dialog__subline {
  margin: 6px 0 0;
  color: var(--color-ink-soft);
  font-family: var(--font-display);
  font-size: 20px;
  font-style: italic;
  font-weight: 500;
  line-height: 1.25;
}

.book-dialog__teaser {
  margin: 22px 0 0;
  padding: 2px 0 2px 16px;
  border-left: 2px solid transparent;
  border-image: linear-gradient(to bottom, var(--bubble-cyan), var(--bubble-violet), var(--bubble-rose)) 1;
  color: var(--color-ink);
  font-family: var(--font-display);
  font-size: 19px;
  font-style: italic;
  font-weight: 500;
  line-height: 1.35;
}

.book-dialog__teaser p {
  margin: 0;
}

.book-dialog__teaser p + p {
  margin-top: 8px;
}

.book-dialog__section {
  margin: 28px 0 14px;
  color: var(--color-ink-faint);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.progress {
  --marker-size: 18px;

  margin: 0;
  padding: 0;
  list-style: none;
}

.progress__step {
  position: relative;
  display: grid;
  gap: 1px;
  padding: 0 0 18px 34px;
}

.progress__step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: calc(var(--marker-size) + 4px);
  bottom: 2px;
  left: calc(var(--marker-size) / 2 - 1px);
  width: 2px;
  border-radius: 1px;
  background: var(--color-line);
}

.progress__step--done:not(:last-child)::after {
  background: rgb(154 214 255 / 45%);
}

.progress__step::before {
  content: "";
  position: absolute;
  top: 2px;
  left: 0;
  width: var(--marker-size);
  height: var(--marker-size);
  border: 2px solid var(--color-ink-faint);
  border-radius: 50%;
  background: var(--color-night-raised);
}

.progress__step--done::before {
  border-color: var(--color-ice);
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.4l2.6 2.6L12 5.4' fill='none' stroke='%2304070d' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
      center / 12px no-repeat,
    var(--color-ice);
}

.progress__step--current::before {
  border-color: var(--color-ice);
  background: linear-gradient(to right, var(--color-ice) 50%, var(--color-night-raised) 50%);
  box-shadow: 0 0 0 0 var(--color-ice-glow);
  animation: current-pulse 2.4s ease-out infinite;
}

@keyframes current-pulse {
  0% {
    box-shadow: 0 0 0 0 rgb(154 214 255 / 45%);
  }

  100% {
    box-shadow: 0 0 0 10px rgb(154 214 255 / 0%);
  }
}

.progress__label {
  font-weight: 600;
  font-size: 15px;
}

.progress__step:not(.progress__step--done, .progress__step--current) .progress__label {
  color: var(--color-ink-soft);
}

.progress__detail {
  color: var(--color-ink-soft);
  font-size: 14px;
}

.facts {
  display: grid;
  gap: 6px;
  margin: 0 0 20px;
}

.facts__row {
  display: grid;
  grid-template-columns: 124px 1fr;
  gap: 12px;
  align-items: baseline;
}

.facts dt {
  color: var(--color-ink-faint);
  font-size: 13px;
}

.facts dd {
  margin: 0;
  color: var(--color-ink);
  font-size: 14px;
}

.book-dialog__note {
  margin: 8px 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--color-line);
  color: var(--color-ink-soft);
  font-size: 14px;
}

@media (width >= 760px) {
  .book-dialog {
    width: min(520px, calc(100% - 48px));
    max-height: min(86svh, 760px);
    margin: auto;
    border-radius: var(--radius-panel);
  }

  .book-dialog[open] {
    animation-name: dialog-appear;
  }

  .book-dialog__panel {
    padding: 36px 36px 32px;
    border-bottom: 1px solid var(--color-line);
  }

  .book-dialog__title {
    font-size: 52px;
  }
}

@keyframes dialog-appear {
  from {
    transform: translateY(12px) scale(0.98);
    opacity: 0;
  }

  to {
    transform: none;
    opacity: 1;
  }
}

.newsletter {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 24px var(--page-gutter) 48px;
  text-align: center;
  scroll-margin-top: 24px;
}

.newsletter:focus {
  outline: none;
}

.newsletter .series__heading {
  margin-bottom: 24px;
}

.newsletter__lead {
  margin: 0;
  color: var(--color-ink);
  font-family: var(--font-display);
  font-size: clamp(24px, 6.4vw, 30px);
  font-style: italic;
  font-weight: 500;
  line-height: 1.2;
  text-wrap: balance;
}

.newsletter__text {
  margin: 6px 0 0;
  color: var(--color-ink-soft);
  font-size: 14px;
  line-height: 1.5;
  text-wrap: balance;
}

.newsletter__form {
  position: relative;
  max-width: 440px;
  margin: 22px auto 0;
}

.newsletter__row {
  display: flex;
  gap: 8px;
}

.newsletter__input {
  flex: 1;
  min-width: 0;
  height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  background: rgb(154 214 255 / 8%);
  color: var(--color-ink);
  font: inherit;
  font-size: 15px;
  transition:
    background-color 0.2s var(--ease-soft),
    box-shadow 0.2s var(--ease-soft);
}

.newsletter__input::placeholder {
  color: var(--color-ink-faint);
}

.newsletter__input:hover {
  background: rgb(154 214 255 / 11%);
}

.newsletter__input:focus {
  outline: none;
  background: rgb(154 214 255 / 12%);
  box-shadow:
    0 0 0 2px rgb(154 214 255 / 55%),
    0 0 24px var(--color-ice-glow);
}

.newsletter__submit {
  flex: none;
  height: 44px;
  padding: 0 20px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #c4ebff, #86c9ff);
  color: #04121f;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 0 22px rgb(110 185 255 / 28%);
  transition:
    filter 0.2s var(--ease-soft),
    box-shadow 0.2s var(--ease-soft);
}

.newsletter__submit:hover {
  filter: brightness(1.08);
  box-shadow: 0 0 30px rgb(110 185 255 / 45%);
}

.newsletter__submit:focus-visible {
  outline: 2px solid var(--color-ice);
  outline-offset: 3px;
}

.newsletter__submit:disabled {
  cursor: progress;
  filter: saturate(0.6);
}

.newsletter__done {
  max-width: 440px;
  margin: 22px auto 0;
  animation: newsletter-done 0.6s var(--ease-soft);
}

.newsletter__done:focus {
  outline: none;
}

.newsletter__done-title {
  margin: 0;
  color: var(--color-ice);
  font-family: var(--font-display);
  font-size: 26px;
  font-style: italic;
  font-weight: 500;
  text-shadow: 0 0 24px var(--color-ice-glow);
}

.newsletter__done-text {
  margin: 8px 0 0;
  color: var(--color-ink);
  font-size: 15px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.newsletter__done-hint {
  margin: 10px 0 0;
  color: var(--color-ink-faint);
  font-size: 13px;
  line-height: 1.5;
}

.newsletter__error {
  margin: 12px auto 0;
  max-width: 400px;
  color: #ffb4b4;
  font-size: 13px;
  line-height: 1.5;
}

@keyframes newsletter-done {
  from {
    opacity: 0;
    transform: translateY(6px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

.newsletter__trap {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.newsletter__consent {
  margin: 12px auto 0;
  max-width: 400px;
  color: var(--color-ink-faint);
  font-size: 12px;
  line-height: 1.55;
}

.newsletter__consent a {
  color: var(--color-ink-soft);
  text-decoration-color: rgb(174 187 208 / 35%);
}

.newsletter__alt {
  margin: 20px 0 0;
  color: var(--color-ink-soft);
  font-size: 13px;
}

.newsletter__alt a {
  color: var(--color-ice);
  text-decoration-color: rgb(154 214 255 / 35%);
  text-underline-offset: 4px;
}

.newsletter__alt a::after {
  content: " ›";
}

.newsletter__alt a:hover {
  text-decoration-color: currentcolor;
}

.hero--notice {
  min-height: 86svh;
  place-items: center;
}

.hero__shade--deep {
  background:
    radial-gradient(ellipse at 50% 55%, rgb(4 7 13 / 72%), rgb(4 7 13 / 30%) 70%),
    linear-gradient(to bottom, rgb(4 7 13 / 0%) 55%, var(--color-night) 100%);
}

.notice {
  position: relative;
  z-index: 3;
  max-width: 30rem;
  padding: 48px var(--page-gutter);
  text-align: center;
}

.notice__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(44px, 13vw, 72px);
  font-weight: 600;
  line-height: 1;
  text-shadow:
    0 0 28px var(--color-ice-glow),
    0 2px 18px rgb(0 0 0 / 70%);
}

.notice__text {
  margin: 16px 0 0;
  color: var(--color-ink);
  font-size: 16px;
  line-height: 1.55;
  text-shadow: 0 1px 12px rgb(0 0 0 / 80%);
  text-wrap: pretty;
}

.notice__hint {
  margin: 12px 0 0;
  color: var(--color-ink-soft);
  font-size: 14px;
  line-height: 1.5;
  text-shadow: 0 1px 12px rgb(0 0 0 / 80%);
}

.notice__back {
  display: inline-block;
  margin-top: 24px;
  padding: 8px 12px;
  color: var(--color-ice);
  font-size: 14px;
  text-decoration: underline;
  text-decoration-color: rgb(154 214 255 / 35%);
  text-underline-offset: 4px;
}

.notice__back::before {
  content: "‹ ";
}

.notice__back:hover {
  text-decoration-color: currentcolor;
}

.site-footer__legal {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin: 0 0 6px;
}

.site-footer__legal a {
  color: var(--color-ink-soft);
  text-decoration-color: rgb(174 187 208 / 35%);
}

.legal-header {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: calc(18px + env(safe-area-inset-top)) var(--page-gutter) 0;
}

.legal-header__back {
  color: var(--color-ink);
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 600;
  text-decoration: none;
}

.legal-header__back::before {
  content: "‹ ";
  color: var(--color-ice);
}

.legal {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 24px var(--page-gutter) 0;
  color: var(--color-ink-soft);
  font-size: 14px;
  line-height: 1.6;
}

.legal__title {
  margin: 0 0 20px;
  color: var(--color-ink);
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 600;
  line-height: 1.05;
}

.legal__block {
  margin: 0 0 20px;
}

.legal h2:not(.legal__title),
.legal h3 {
  margin: 0 0 4px;
  color: var(--color-ink);
  font-size: 14px;
  font-weight: 600;
}

.legal p {
  margin: 0 0 8px;
}

.legal__part {
  margin-top: 44px;
  padding-top: 32px;
  border-top: 1px solid var(--color-line);
  scroll-margin-top: 16px;
}

.legal__stand {
  color: var(--color-ink-faint);
  font-size: 13px;
}

html::-webkit-scrollbar,
.book-dialog__panel::-webkit-scrollbar {
  width: 12px;
  background: transparent;
}

html::-webkit-scrollbar-track,
.book-dialog__panel::-webkit-scrollbar-track {
  background: transparent;
}

html::-webkit-scrollbar-thumb,
.book-dialog__panel::-webkit-scrollbar-thumb {
  border: 3px solid transparent;
  border-radius: 999px;
  background: rgb(154 214 255 / 55%) padding-box;
}

html::-webkit-scrollbar-thumb:hover,
.book-dialog__panel::-webkit-scrollbar-thumb:hover {
  background-color: rgb(154 214 255 / 85%);
}

html::-webkit-scrollbar-button:single-button,
.book-dialog__panel::-webkit-scrollbar-button:single-button {
  display: block;
  height: 22px; 
  background-color: transparent;
  background-position: center;
  background-repeat: no-repeat;
  background-size: 10px;
  opacity: 0.8;
}

html::-webkit-scrollbar-button:single-button:vertical:decrement,
.book-dialog__panel::-webkit-scrollbar-button:single-button:vertical:decrement {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M2 6.5 5 3.5 8 6.5' fill='none' stroke='%239ad6ff' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

html::-webkit-scrollbar-button:single-button:vertical:increment,
.book-dialog__panel::-webkit-scrollbar-button:single-button:vertical:increment {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M2 3.5 5 6.5 8 3.5' fill='none' stroke='%239ad6ff' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

@supports not selector(::-webkit-scrollbar) {
  html,
  .book-dialog__panel {
    scrollbar-color: rgb(154 214 255 / 55%) transparent;
    scrollbar-width: thin;
  }
}
