:root {
  color-scheme: dark;
  --bg: #080b0d;
  --bg-soft: #101518;
  --panel: #151b1f;
  --text: #f2f4ef;
  --muted: #b8c0b7;
  --line: rgba(242, 244, 239, 0.16);
  --cyan: #24e7e5;
  --green: #22f21f;
  --shadow: rgba(0, 0, 0, 0.45);
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

section {
  scroll-margin-top: 5.5rem;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 78% 12%, rgba(36, 231, 229, 0.12), transparent 34rem),
    linear-gradient(180deg, #060809 0%, var(--bg) 44%, #0b0f10 100%);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.5;
}

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

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

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.15rem clamp(1rem, 4vw, 3rem);
  background: linear-gradient(180deg, rgba(6, 8, 9, 0.92), rgba(6, 8, 9, 0.62));
  border-bottom: 1px solid rgba(242, 244, 239, 0.08);
  backdrop-filter: blur(18px);
}

.brand img {
  width: clamp(10rem, 18vw, 15.5rem);
  height: auto;
}

.site-nav {
  display: flex;
  gap: clamp(1rem, 3vw, 2.25rem);
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

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

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--text);
}

.hero {
  position: relative;
  min-height: 86vh;
  display: grid;
  align-items: center;
  overflow: hidden;
  padding: 7rem clamp(1rem, 5vw, 4rem) 5rem;
  border-bottom: 1px solid var(--line);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(6, 8, 9, 0.98) 0%, rgba(6, 8, 9, 0.78) 42%, rgba(6, 8, 9, 0.18) 100%),
    linear-gradient(180deg, rgba(6, 8, 9, 0.18), rgba(6, 8, 9, 0.88));
}

.hero-art {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: flex-end;
  gap: clamp(0.8rem, 2vw, 1.6rem);
  padding: 6.8rem clamp(1rem, 5vw, 5rem) 3.2rem 34vw;
  opacity: 0.74;
}

.hero-cover {
  width: min(28vw, 20rem);
  min-width: 12rem;
  height: auto;
  object-fit: cover;
  border: 1px solid rgba(242, 244, 239, 0.14);
  box-shadow: 0 2rem 5rem var(--shadow);
}

.hero-cover-one {
  align-self: flex-end;
}

.hero-cover-two {
  align-self: flex-start;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(54rem, 100%);
  margin: 0 auto;
  transform: translateX(calc((min(var(--max), 100vw) - 100vw) / 2));
}

.eyebrow,
.series-label,
.status {
  margin: 0;
  color: var(--cyan);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: break-word;
}

h1 {
  margin: 0.65rem 0 1.2rem;
  font-size: clamp(3.8rem, 9vw, 8rem);
  line-height: 0.9;
  letter-spacing: 0;
  white-space: nowrap;
}

.hero-copy {
  max-width: 40rem;
  margin: 0 0 2rem;
  color: #e3e8df;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.85rem 1.2rem;
  background: var(--text);
  color: #071011;
  font-weight: 800;
  border-radius: 0.25rem;
  transition: transform 180ms ease, background 180ms ease;
}

.button:hover,
.button:focus-visible {
  background: var(--cyan);
  transform: translateY(-1px);
}

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

.section-heading {
  display: block;
  margin-bottom: clamp(1.6rem, 4vw, 3rem);
  border-bottom: 1px solid var(--line);
  padding-bottom: 1.15rem;
}

h2 {
  margin: 0.25rem 0 0;
  font-size: clamp(2.3rem, 6vw, 5.4rem);
  line-height: 0.96;
  letter-spacing: 0;
}

.book-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1rem, 3vw, 2rem);
}

.book {
  display: grid;
  grid-template-rows: auto 1fr;
  gap: clamp(1.25rem, 3vw, 1.8rem);
  align-items: start;
  min-height: 0;
  padding: clamp(1.25rem, 3vw, 2rem);
  background: transparent;
  border: 1px solid rgba(242, 244, 239, 0.18);
  border-radius: 0.5rem;
}

.book img {
  width: min(100%, 24rem);
  height: auto;
  aspect-ratio: auto;
  object-fit: contain;
  justify-self: center;
  opacity: 1;
  filter: none;
  mix-blend-mode: normal;
  border-radius: 0.18rem;
  box-shadow: 0 1.5rem 3rem var(--shadow);
}

.book-meta {
  min-width: 0;
  text-align: center;
}

.book h3 {
  margin: 0.45rem 0 0.9rem;
  font-size: clamp(2rem, 4.5vw, 4rem);
  line-height: 0.95;
}

.book:nth-child(2) .series-label,
.book:nth-child(2) .status {
  color: var(--green);
}

.status {
  color: var(--cyan);
}

.author-section {
  display: grid;
  grid-template-columns: minmax(15rem, 24rem) minmax(0, 1fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
  border-top: 1px solid var(--line);
}

.author-photo img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 0.5rem;
  filter: saturate(0.9) contrast(1.04);
}

.author-copy {
  max-width: 45rem;
}

.author-copy p:not(.eyebrow) {
  margin: 1rem 0 0;
  color: #d8ddd5;
  font-size: clamp(1.02rem, 2vw, 1.22rem);
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 2rem clamp(1rem, 5vw, 4rem);
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.site-footer img {
  width: 12rem;
}

.site-footer p {
  margin: 0;
  font-size: 0.92rem;
}

@media (max-width: 900px) {
  .hero {
    min-height: 82vh;
    align-items: end;
  }

  .hero::before {
    background:
      linear-gradient(180deg, rgba(6, 8, 9, 0.12) 0%, rgba(6, 8, 9, 0.62) 42%, rgba(6, 8, 9, 0.98) 100%),
      linear-gradient(90deg, rgba(6, 8, 9, 0.9), rgba(6, 8, 9, 0.3));
  }

  .hero-art {
    justify-content: center;
    padding: 5.8rem 1rem 13rem;
  }

  .hero-cover {
    width: min(42vw, 16rem);
    min-width: 0;
  }

  .hero-content {
    transform: none;
    margin: 0;
  }

  h1 {
    white-space: normal;
  }

  .book-grid,
  .author-section {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .site-header {
    align-items: flex-start;
    padding: 0.9rem 1rem;
  }

  .brand img {
    width: 10.5rem;
  }

  .site-nav {
    gap: 0.8rem;
    font-size: 0.72rem;
  }

  .hero {
    min-height: 84vh;
    padding: 6.5rem 1rem 3rem;
  }

  .hero-art {
    gap: 0.6rem;
    padding-bottom: 16rem;
  }

  .hero-cover {
    width: 44vw;
  }

  .book {
    min-height: 0;
  }

  .book h3 {
    font-size: clamp(1.45rem, 8vw, 2.25rem);
  }

  .site-footer {
    display: block;
  }

  .site-footer p {
    margin-top: 0.9rem;
  }
}

@media (max-width: 430px) {
  .book img {
    width: min(100%, 20rem);
  }
}
