:root {
  --black: #090909;
  --black-soft: #121212;
  --ink: #171717;
  --paper: #f4f0eb;
  --paper-soft: #fbf8f4;
  --red: #ff1717;
  --red-deep: #c90909;
  --line: rgb(20 20 20 / 14%);
  --white-line: rgb(255 255 255 / 16%);
  --muted: #6b6661;
  --shell: 1180px;
  --radius: 28px;
  --shadow: 0 24px 80px rgb(0 0 0 / 12%);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 118px;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: inherit;
}

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

button,
input,
textarea,
select {
  font: inherit;
}

.shell {
  width: min(calc(100% - 40px), var(--shell));
  margin-inline: auto;
}

.section {
  position: relative;
  padding: 104px 0;
}

.light-texture {
  isolation: isolate;
  overflow: hidden;
}

.light-texture::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  background-image: url("assets/paper-watermark.webp");
  background-repeat: no-repeat;
  background-position: center 45%;
  background-size: min(94vw, 1800px) auto;
  opacity: 0.82;
}

.skip-link {
  position: fixed;
  z-index: 999;
  top: 10px;
  left: 10px;
  transform: translateY(-160%);
  border-radius: 8px;
  background: #fff;
  color: #000;
  padding: 10px 14px;
}

.skip-link:focus {
  transform: none;
}

.site-header {
  position: absolute;
  z-index: 100;
  inset: 0 0 auto;
  color: #fff;
  background: #090909;
  border-bottom: 1px solid rgb(255 255 255 / 10%);
  pointer-events: none;
}

.site-header.is-floating {
  position: fixed;
  box-shadow: 0 10px 30px rgb(0 0 0 / 24%);
}

.header-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 10px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  pointer-events: auto;
}

.brand {
  display: block;
  width: clamp(112px, 11vw, 146px);
}

.brand img {
  width: 100%;
}

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

.site-nav a,
.back-to-top {
  text-decoration: none;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.site-nav a {
  opacity: 0.82;
  transition: color 180ms ease, opacity 180ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.back-to-top:hover,
.back-to-top:focus-visible {
  color: var(--red);
  opacity: 1;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid rgb(255 255 255 / 20%);
  border-radius: 4px;
  background: transparent;
  color: #fff;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 17px;
  height: 1px;
  margin: 4px auto;
  background: currentColor;
  transition: transform 180ms ease, opacity 180ms ease;
}

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 780px;
  display: flex;
  align-items: center;
  background: linear-gradient(145deg, rgb(255 255 255 / 1.8%), transparent 45%), var(--black);
  color: #fff;
  padding: 150px 0 84px;
}

.hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background-image:
    linear-gradient(rgb(255 255 255 / 3.5%) 1px, transparent 1px),
    linear-gradient(90deg, rgb(255 255 255 / 3.5%) 1px, transparent 1px);
  background-size: 56px 56px;
  opacity: 0.18;
  mask-image: linear-gradient(to bottom, #000, transparent 88%);
}

.hero-glow {
  position: absolute;
  z-index: -1;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: var(--red);
  filter: blur(120px);
  opacity: 0.16;
}

.hero-glow-one {
  top: 40px;
  right: -120px;
}

.hero-glow-two {
  bottom: -360px;
  left: 18%;
  opacity: 0.08;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.95fr);
  gap: clamp(40px, 6vw, 72px);
  align-items: center;
}

.eyebrow {
  margin: 0 0 22px;
  color: var(--red);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.eyebrow-dark {
  color: var(--red-deep);
}

.hero h1,
.section h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  letter-spacing: -0.045em;
}

.hero h1 {
  max-width: 760px;
  font-size: clamp(4.2rem, 8vw, 7.8rem);
  line-height: 0.82;
}

.hero h1 span {
  color: var(--red);
}

.hero-text {
  max-width: 670px;
  margin: 34px 0 0;
  color: rgb(255 255 255 / 72%);
  font-size: clamp(1.03rem, 1.6vw, 1.23rem);
  line-height: 1.72;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0 24px;
  text-decoration: none;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: transform 180ms ease, background-color 180ms ease, border-color 180ms ease, color 180ms ease;
}

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

.button-primary {
  background: var(--red);
  color: #fff;
}

.button-primary:hover,
.button-primary:focus-visible {
  background: #ff3434;
}

.button-ghost {
  border-color: rgb(255 255 255 / 26%);
  background: rgb(255 255 255 / 3.5%);
  color: #fff;
}

.button-ghost:hover,
.button-ghost:focus-visible {
  border-color: rgb(255 255 255 / 55%);
  background: rgb(255 255 255 / 7%);
}

.button-dark {
  background: var(--black);
  color: #fff;
}

.button-dark:hover,
.button-dark:focus-visible {
  background: #222;
}

.hero-brand {
  display: grid;
  gap: 26px;
  justify-items: center;
}

.logo-stage {
  width: min(100%, 500px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 1px solid rgb(255 255 255 / 11%);
  border-radius: 50%;
  background: radial-gradient(circle at 45% 42%, rgb(255 23 23 / 12%), transparent 46%), rgb(255 255 255 / 2%);
  box-shadow: inset 0 0 0 16px rgb(255 255 255 / 1.5%), 0 32px 90px rgb(0 0 0 / 35%);
}

.logo-stage img {
  width: 76%;
}

.series-snapshot {
  width: min(100%, 520px);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 0;
  border-block: 1px solid var(--white-line);
}

.series-snapshot div {
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 5px;
  padding: 18px 10px;
  text-align: center;
}

.series-snapshot div + div {
  border-left: 1px solid var(--white-line);
}

.series-snapshot dt {
  order: 2;
  color: rgb(255 255 255 / 53%);
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.series-snapshot dd {
  margin: 0;
  color: #fff;
  font-family: Georgia, serif;
  font-size: 1.9rem;
}

.section-heading {
  display: grid;
  grid-template-columns: 1fr minmax(280px, 460px);
  gap: 40px;
  align-items: end;
  margin-bottom: 52px;
}

.section h2 {
  font-size: clamp(3rem, 6vw, 5.8rem);
  line-height: 0.9;
}

.section-intro {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.72;
}

.books {
  background-color: var(--paper-soft);
}

.book-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.book-card {
  min-width: 0;
}

.cover-link {
  display: block;
  text-decoration: none;
}

.book-cover-image {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 18px;
  box-shadow: 0 18px 50px rgb(0 0 0 / 16%);
  transition: transform 240ms ease, box-shadow 240ms ease;
}

.cover-link:hover .book-cover-image,
.cover-link:focus-visible .book-cover-image {
  transform: translateY(-7px);
  box-shadow: 0 28px 66px rgb(0 0 0 / 22%);
}

.type-cover {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 2 / 3;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-radius: 18px;
  background: #0a0a0a;
  box-shadow: 0 18px 50px rgb(0 0 0 / 16%);
  color: #fff;
  padding: 9%;
  transition: transform 240ms ease, box-shadow 240ms ease;
}

.cover-link:hover .type-cover,
.cover-link:focus-visible .type-cover {
  transform: translateY(-7px);
  box-shadow: 0 28px 66px rgb(0 0 0 / 22%);
}

.type-cover::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 15px;
  border: 1px solid rgb(255 255 255 / 16%);
  pointer-events: none;
}

.type-cover::after {
  content: "";
  position: absolute;
  z-index: -2;
  inset: 0;
  background: radial-gradient(circle at 70% 22%, rgb(255 23 23 / 28%), transparent 28%), linear-gradient(145deg, transparent 20%, rgb(255 23 23 / 8%) 65%, transparent);
}

.cover-series,
.cover-author {
  position: relative;
  z-index: 2;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.cover-series {
  color: var(--red);
}

.cover-author {
  color: rgb(255 255 255 / 66%);
}

.type-cover strong {
  position: relative;
  z-index: 2;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.15rem, 4vw, 4.2rem);
  font-weight: 500;
  letter-spacing: -0.055em;
  line-height: 0.9;
}

.type-cover-forty-two {
  background: linear-gradient(160deg, #171111 0 26%, #090909 70%);
}

.floor-lines {
  position: absolute;
  z-index: -1;
  inset: 10% 13%;
  background: repeating-linear-gradient(90deg, transparent 0 13%, rgb(255 255 255 / 5%) 13.4% 13.9%, transparent 14.2% 26%);
  mask-image: linear-gradient(to bottom, transparent, #000 20%, #000 80%, transparent);
}

.type-cover-rival {
  background: linear-gradient(150deg, #090909, #171111 58%, #090909);
}

.gear {
  position: absolute;
  z-index: -1;
  display: block;
  border: 18px dotted rgb(255 23 23 / 16%);
  border-radius: 50%;
}

.gear::after {
  content: "";
  position: absolute;
  inset: 22%;
  border: 1px solid rgb(255 255 255 / 10%);
  border-radius: 50%;
}

.gear-one {
  width: 72%;
  aspect-ratio: 1;
  right: -26%;
  top: 13%;
}

.gear-two {
  width: 46%;
  aspect-ratio: 1;
  left: -18%;
  bottom: 10%;
}

.type-cover-coming {
  background: linear-gradient(145deg, #171717, #090909 65%);
  opacity: 0.94;
}

.type-cover-coming strong {
  color: rgb(255 255 255 / 54%);
}

.coming-rule {
  width: 46px;
  height: 2px;
  background: var(--red);
}

.book-copy {
  padding: 24px 4px 0;
}

.book-status {
  margin: 0 0 10px;
  color: var(--red-deep);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.book-copy h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.7rem, 2.5vw, 2.25rem);
  font-weight: 500;
  letter-spacing: -0.035em;
}

.book-copy p:not(.book-status) {
  min-height: 3.4em;
  margin: 12px 0 18px;
  color: var(--muted);
  line-height: 1.7;
}

.text-link {
  color: var(--ink);
  text-underline-offset: 5px;
  text-decoration-thickness: 1px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.text-link:hover,
.text-link:focus-visible {
  color: var(--red-deep);
}

.text-link-muted {
  color: #918a84;
  text-decoration: none;
}

.series-footer {
  display: grid;
  grid-template-columns: minmax(180px, 0.7fr) minmax(220px, 1.3fr) auto;
  gap: 28px;
  align-items: center;
  margin-top: 70px;
  border-top: 1px solid var(--line);
  padding-top: 34px;
}

.progress-copy span,
.progress-copy strong {
  display: block;
}

.progress-copy span {
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.progress-copy strong {
  font-family: Georgia, serif;
  font-size: 1.4rem;
  font-weight: 500;
}

.progress-track {
  overflow: hidden;
  height: 5px;
  border-radius: 999px;
  background: #ddd6cf;
}

.progress-track span {
  display: block;
  width: 2%;
  min-width: 9px;
  height: 100%;
  border-radius: inherit;
  background: var(--red);
}

.about {
  background-color: var(--paper);
  border-top: 1px solid var(--line);
}

.about::before {
  transform: scaleX(-1);
  opacity: 0.58;
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(300px, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(48px, 9vw, 120px);
  align-items: start;
}

.about-copy {
  padding-top: 10px;
}

.about-copy p {
  margin: 0;
  max-width: 700px;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.82;
}

.about-copy p + p {
  margin-top: 24px;
}

.about-copy .about-lead {
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.55rem, 2.6vw, 2.35rem);
  line-height: 1.35;
}

.newsletter {
  overflow: hidden;
  background: var(--black-soft);
  color: #fff;
}

.newsletter::before {
  content: "";
  position: absolute;
  inset: auto -180px -330px auto;
  width: 620px;
  height: 620px;
  border-radius: 50%;
  background: var(--red);
  filter: blur(150px);
  opacity: 0.12;
}

.newsletter-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(270px, 0.8fr);
  gap: 60px;
  align-items: end;
}

.newsletter h2 {
  max-width: 780px;
  font-size: clamp(3.2rem, 6.5vw, 6.3rem);
}

.newsletter p:not(.eyebrow) {
  max-width: 650px;
  margin: 28px 0 0;
  color: rgb(255 255 255 / 64%);
  line-height: 1.72;
}

.newsletter-action {
  display: grid;
  gap: 14px;
  justify-items: start;
}

.button-newsletter {
  min-width: min(100%, 270px);
  border-color: rgb(255 255 255 / 18%);
  background: #171717;
  color: rgb(255 255 255 / 62%);
  cursor: default;
}

.button-newsletter:hover {
  transform: none;
}

.newsletter-action small {
  color: rgb(255 255 255 / 40%);
  line-height: 1.55;
}

.site-footer {
  background: #050505;
  color: rgb(255 255 255 / 58%);
}

.footer-inner {
  min-height: 124px;
  display: grid;
  grid-template-columns: 160px 1fr auto;
  gap: 28px;
  align-items: center;
}

.footer-brand {
  display: block;
  width: 145px;
}

.footer-brand img {
  width: 100%;
}

.footer-inner p {
  margin: 0;
  text-align: center;
  font-size: 0.76rem;
}

.back-to-top {
  color: rgb(255 255 255 / 70%);
}

:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 4px;
}

@media (max-width: 920px) {
  .section {
    padding: 84px 0;
  }

  .hero {
    min-height: auto;
  }

  .hero-grid,
  .about-grid,
  .newsletter-card {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    gap: 58px;
  }

  .hero-brand {
    max-width: 620px;
    width: 100%;
    justify-self: center;
  }

  .logo-stage {
    width: min(72vw, 500px);
  }

  .section-heading {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .section-intro {
    max-width: 620px;
  }

  .book-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .book-card:last-child {
    max-width: calc(50% - 14px);
  }

  .series-footer {
    grid-template-columns: 1fr;
  }

  .series-footer .button {
    justify-self: start;
  }

  .newsletter-action {
    margin-top: 6px;
  }
}

@media (max-width: 700px) {
  .shell {
    width: min(calc(100% - 28px), var(--shell));
  }

  .header-inner {
    min-height: 64px;
    padding: 8px 0;
    border-radius: 0;
  }

  .brand {
    width: 110px;
  }

  .menu-toggle {
    display: block;
    position: relative;
    z-index: 3;
  }

  .site-nav {
    position: absolute;
    top: 64px;
    right: 0;
    width: min(280px, calc(100vw - 28px));
    display: grid;
    gap: 0;
    border: 1px solid rgb(255 255 255 / 12%);
    border-radius: 0;
    background: #090909;
    box-shadow: 0 24px 60px rgb(0 0 0 / 42%);
    padding: 10px;
    opacity: 0;
    transform: translateY(-8px) scale(0.98);
    transform-origin: top right;
    pointer-events: none;
    transition: opacity 160ms ease, transform 160ms ease;
  }

  .site-nav[data-open="true"] {
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }

  .site-nav a {
    border-radius: 0;
    padding: 15px 14px;
  }

  .site-nav a:hover,
  .site-nav a:focus-visible {
    background: rgb(255 255 255 / 5%);
  }

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

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

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

  .hero {
    padding: 126px 0 70px;
  }

  .hero h1 {
    font-size: clamp(3.65rem, 18vw, 5.5rem);
  }

  .hero-text {
    font-size: 1rem;
  }

  .hero-actions {
    display: grid;
  }

  .button {
    width: 100%;
  }

  .logo-stage {
    width: min(88vw, 440px);
  }

  .series-snapshot strong,
  .series-snapshot dd {
    font-size: 1.55rem;
  }

  .series-snapshot dt {
    font-size: 0.58rem;
    letter-spacing: 0.1em;
  }

  .section {
    padding: 72px 0;
  }

  .section-heading {
    margin-bottom: 40px;
  }

  .book-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .book-card,
  .book-card:last-child {
    width: min(100%, 420px);
    max-width: none;
    margin-inline: auto;
  }

  .type-cover strong {
    font-size: clamp(3rem, 14vw, 4.4rem);
  }

  .book-copy p:not(.book-status) {
    min-height: 0;
  }

  .about-grid {
    gap: 38px;
  }

  .newsletter-card {
    gap: 34px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 18px;
    padding: 32px 0;
  }

  .footer-inner p {
    order: 3;
  }
}

@media (max-width: 430px) {
  .hero h1 {
    font-size: clamp(3.2rem, 17vw, 4.35rem);
  }

  .series-snapshot div {
    padding-inline: 6px;
  }

  .section h2,
  .newsletter h2 {
    font-size: clamp(2.8rem, 14vw, 4.2rem);
  }
}

@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;
  }
}
