﻿:root {
  --ink: #141213;
  --paper: #f8f2ea;
  --soft-paper: #efe4d8;
  --wine: #8c2541;
  --wine-dark: #57182d;
  --teal: #123c3e;
  --moss: #5b6b45;
  --gold: #d7a84f;
  --line: rgba(20, 18, 19, 0.16);
  --shadow: 0 24px 70px rgba(20, 18, 19, 0.22);
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Inter", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.6;
}

a {
  color: inherit;
}

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem clamp(1rem, 4vw, 3rem);
  color: #fffaf2;
  background: linear-gradient(180deg, rgba(12, 18, 18, 0.72), rgba(12, 18, 18, 0));
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  min-width: max-content;
  text-decoration: none;
  font-weight: 700;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  border: 1px solid rgba(255, 250, 242, 0.5);
  border-radius: 50%;
  background: rgba(20, 18, 19, 0.36);
  font-family: var(--serif);
  font-size: 1rem;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.85rem 1.15rem;
  font-size: 0.94rem;
  font-weight: 700;
}

.nav-links a,
.site-footer a,
.text-link {
  text-underline-offset: 0.28em;
}

.hero {
  position: relative;
  min-height: 94vh;
  display: grid;
  align-items: center;
  overflow: hidden;
  color: #fffaf2;
}

.hero-image,
.hero-shade,
.hero-atmosphere {
  position: absolute;
  inset: 0;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.03);
  animation: livingFrame 18s ease-in-out infinite alternate;
}

.hero-shade {
  background:
    radial-gradient(circle at 78% 45%, rgba(215, 168, 79, 0.34), rgba(215, 168, 79, 0) 21rem),
    linear-gradient(90deg, rgba(8, 12, 13, 0.92) 0%, rgba(8, 12, 13, 0.66) 43%, rgba(8, 12, 13, 0.22) 100%),
    linear-gradient(0deg, rgba(8, 12, 13, 0.88) 0%, rgba(8, 12, 13, 0.06) 54%);
}

.hero-atmosphere {
  z-index: 1;
  opacity: 0.72;
  background:
    radial-gradient(circle at 20% 80%, rgba(255, 250, 242, 0.18) 0 1px, transparent 2px),
    radial-gradient(circle at 70% 25%, rgba(215, 168, 79, 0.16) 0 1px, transparent 2px),
    radial-gradient(circle at 88% 68%, rgba(255, 250, 242, 0.14) 0 1px, transparent 2px);
  background-size: 7rem 7rem, 10rem 10rem, 13rem 13rem;
  animation: drift 22s linear infinite;
}

.hero-stage {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  padding-top: 5rem;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(280px, 0.55fr);
  gap: clamp(1.5rem, 5vw, 4rem);
  align-items: center;
}

.hero-content {
  max-width: 660px;
}

.kicker {
  margin: 0 0 0.65rem;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
}

.kicker.dark {
  color: var(--wine);
}

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

h1,
h2,
h3 {
  margin: 0;
  line-height: 0.96;
}

h1,
h2 {
  font-family: var(--serif);
}

h1 {
  max-width: 11ch;
  font-size: clamp(4.2rem, 10.4vw, 9.2rem);
  overflow-wrap: normal;
  word-break: normal;
}

h1 span {
  display: block;
}

h2 {
  font-size: clamp(2.35rem, 6vw, 5.5rem);
}

h3 {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
}

.hero-copy {
  max-width: 580px;
  margin: 1.3rem 0 0;
  font-size: clamp(1.15rem, 2.5vw, 1.55rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.hero-portrait {
  position: relative;
  justify-self: end;
  display: block;
  width: min(330px, 34vw);
  min-width: 240px;
  padding: 0.55rem;
  color: #fffaf2;
  text-decoration: none;
  background: linear-gradient(145deg, rgba(255, 250, 242, 0.24), rgba(255, 250, 242, 0.04));
  border: 1px solid rgba(255, 250, 242, 0.3);
  border-radius: 8px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.45);
  transform: rotate(1.5deg);
  animation: floatPortrait 8s ease-in-out infinite;
}

.hero-portrait::before {
  content: "";
  position: absolute;
  inset: -1.5rem;
  z-index: -1;
  background: radial-gradient(circle, rgba(140, 37, 65, 0.46), rgba(140, 37, 65, 0) 67%);
  filter: blur(14px);
}

.hero-portrait img {
  width: 100%;
  display: block;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 5px;
}

.hero-portrait span {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  padding: 0.65rem 0.75rem;
  background: rgba(20, 18, 19, 0.72);
  border: 1px solid rgba(255, 250, 242, 0.24);
  border-radius: 6px;
  font-weight: 800;
  text-align: center;
}

.scroll-cue {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: 1.4rem;
  transform: translateX(-50%);
  color: rgba(255, 250, 242, 0.82);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-decoration: none;
  text-transform: uppercase;
}

.scroll-cue::after {
  content: "";
  display: block;
  width: 1px;
  height: 2.2rem;
  margin: 0.55rem auto 0;
  background: linear-gradient(rgba(255, 250, 242, 0.8), rgba(255, 250, 242, 0));
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.82rem 1.15rem;
  border: 1px solid rgba(255, 250, 242, 0.45);
  border-radius: 6px;
  text-decoration: none;
  font-weight: 800;
}

.button.primary {
  background: var(--wine);
  color: #fffaf2;
  border-color: var(--wine);
}

.button.secondary {
  background: rgba(255, 250, 242, 0.1);
  color: #fffaf2;
}

.section-inner {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
}

.series-gateway {
  position: relative;
  padding: clamp(3.5rem, 8vw, 7rem) 0;
  color: #fffaf2;
  background:
    radial-gradient(circle at 16% 0%, rgba(140, 37, 65, 0.32), transparent 27rem),
    radial-gradient(circle at 82% 35%, rgba(215, 168, 79, 0.2), transparent 25rem),
    #111718;
}

.gateway-heading {
  max-width: 760px;
  margin-bottom: 1.5rem;
}

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

.gateway-card {
  position: relative;
  min-height: 30rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.75rem;
  overflow: hidden;
  padding: 1.25rem;
  color: #fffaf2;
  text-decoration: none;
  border: 1px solid rgba(255, 250, 242, 0.16);
  border-radius: 8px;
  background: #171716;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.24);
  isolation: isolate;
}

.gateway-card::before,
.gateway-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
}

.gateway-card::before {
  background-position: center;
  background-size: cover;
  transform: scale(1.04);
  transition: transform 0.5s ease, filter 0.5s ease;
}

.gateway-card::after {
  z-index: -1;
  background:
    linear-gradient(0deg, rgba(11, 12, 13, 0.92) 0%, rgba(11, 12, 13, 0.56) 48%, rgba(11, 12, 13, 0.12) 100%),
    radial-gradient(circle at 50% 32%, rgba(215, 168, 79, 0.2), transparent 18rem);
}

.gateway-card:hover::before,
.gateway-card:focus-visible::before {
  transform: scale(1.1);
  filter: saturate(1.08);
}

.gateway-card h3 {
  font-size: clamp(2rem, 4vw, 3rem);
}

.gateway-card p,
.gateway-card strong {
  margin: 0;
}

.gateway-card p {
  max-width: 22rem;
}

.gateway-card strong {
  color: var(--gold);
}

.gateway-label {
  width: fit-content;
  padding: 0.35rem 0.55rem;
  border: 1px solid rgba(255, 250, 242, 0.28);
  border-radius: 999px;
  background: rgba(20, 18, 19, 0.4);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.gateway-academy::before {
  background-image: url("assets/covers/academy-volume-1.png");
}

.gateway-winter::before {
  background-image: url("assets/covers/winter-ruin-bundle.jpg");
}

.gateway-obsessions::before {
  background-image: url("assets/covers/forbidden-obsessions-1.jpg");
  background-position: center 24%;
  filter: saturate(1.12) contrast(1.04);
}

.gateway-obsessions::after {
  background:
    linear-gradient(0deg, rgba(11, 12, 13, 0.9) 0%, rgba(11, 12, 13, 0.48) 50%, rgba(11, 12, 13, 0.08) 100%),
    linear-gradient(90deg, rgba(11, 12, 13, 0.58) 0%, rgba(11, 12, 13, 0.14) 100%);
}

.intro-band {
  padding: clamp(3rem, 8vw, 6rem) 0;
  background: var(--teal);
  color: #fffaf2;
}

.intro-grid,
.reading-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(280px, 1fr);
  gap: clamp(2rem, 7vw, 5rem);
  align-items: start;
}

.intro-grid p:last-child {
  margin: 0;
  font-size: clamp(1.05rem, 2.3vw, 1.35rem);
}

.books-section,
.newsletter-section {
  padding: clamp(3rem, 8vw, 6.5rem) 0;
}

.about-section {
  padding: clamp(3rem, 8vw, 6.5rem) 0;
  background: var(--soft-paper);
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 1.1fr);
  gap: clamp(2rem, 7vw, 5rem);
  align-items: start;
}

.about-copy {
  display: grid;
  gap: 1rem;
  font-size: clamp(1rem, 2vw, 1.18rem);
}

.about-copy p {
  margin: 0;
}

.obsessions-section {
  padding: clamp(3rem, 8vw, 6.5rem) 0;
  background: #181215;
  color: #fffaf2;
}

.obsessions-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 0.9fr) minmax(190px, 0.36fr);
  gap: clamp(1.25rem, 4vw, 3rem);
  align-items: center;
}

.obsessions-panel p {
  margin: 0;
  color: rgba(255, 250, 242, 0.84);
}

.obsessions-copy {
  display: grid;
  gap: 1rem;
}

.obsessions-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.dark-outline {
  color: #fffaf2;
  border-color: rgba(255, 250, 242, 0.35);
  background: rgba(255, 250, 242, 0.08);
}

.obsessions-cover {
  display: block;
  padding: 0.45rem;
  border: 1px solid rgba(255, 250, 242, 0.18);
  border-radius: 8px;
  background: rgba(255, 250, 242, 0.06);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.24);
}

.obsessions-cover img {
  display: block;
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 5px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

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

.featured-book-grid {
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.featured-book-grid > article:nth-child(-n + 8) {
  order: 3;
}

.featured-book-grid > article:nth-child(n + 9):nth-child(-n + 22) {
  order: 1;
}

.featured-book-grid > article:nth-child(23) {
  order: 2;
}

.book-card {
  display: grid;
  grid-template-rows: auto 1fr;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #fffaf2;
  box-shadow: 0 16px 50px rgba(20, 18, 19, 0.08);
}

.cover {
  display: grid;
  place-items: end start;
  aspect-ratio: 2 / 3;
  padding: 1rem;
  color: #fffaf2;
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 700;
  background: var(--teal);
}

.image-cover {
  padding: 0;
  background: #16191d;
}

.image-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cover-one {
  background: linear-gradient(135deg, var(--teal), var(--wine-dark) 58%, var(--gold));
}

.cover-two {
  background: linear-gradient(135deg, #1f2420, var(--moss) 56%, #d6b06a);
}

.cover-three {
  background: linear-gradient(135deg, var(--wine-dark), #281923 55%, var(--teal));
}

.cover-four {
  background: linear-gradient(135deg, #171716, var(--wine-dark) 46%, var(--moss));
}

.cover-five {
  background: linear-gradient(135deg, #171716, var(--teal) 48%, var(--wine-dark));
}

.cover-six {
  background: linear-gradient(135deg, #2d302f, #6f735e 48%, var(--gold));
}

.cover-seven {
  background: linear-gradient(135deg, #241920, var(--wine) 48%, #697b58);
}

.cover-eight {
  background: linear-gradient(135deg, #221a16, #6f4a2e 50%, var(--gold));
}

.cover-nine {
  background: linear-gradient(135deg, #161319, #31243f 48%, var(--wine));
}

.cover-ten {
  background: linear-gradient(135deg, #11191d, #315263 50%, #d9d3c3);
}

.cover-eleven {
  background: linear-gradient(135deg, #191412, #4d3325 48%, #9f7845);
}

.cover-twelve {
  background: linear-gradient(135deg, #18151b, #4c2b4f 48%, #7c8b56);
}

.cover-thirteen {
  background: linear-gradient(135deg, #120f14, #44213a 50%, #9d2f4a);
}

.cover-fourteen {
  background: linear-gradient(135deg, #2f3430, #7b805f 48%, #d0b36c);
}

.cover-fifteen {
  background: linear-gradient(135deg, #211814, #7a4f2a 48%, #c58d42);
}

.cover-sixteen {
  background: linear-gradient(135deg, #101a1d, #36565e 48%, #c5d0d2);
}

.cover-seventeen {
  background: linear-gradient(135deg, #171111, #6b1e2b 48%, #d7a84f);
}

.cover-eighteen {
  background: linear-gradient(135deg, #12191a, #43616b 48%, #d7dce0);
}

.cover-nineteen {
  background: linear-gradient(135deg, #111715, #2e493f 48%, #c7d0c3);
}

.cover-twenty {
  background: linear-gradient(135deg, #171010, #8c2541 48%, #d7a84f);
}

.cover-twenty-one {
  background: linear-gradient(135deg, #111619, #24495a 44%, #c26335);
}

.cover-twenty-two {
  background: linear-gradient(135deg, #101517, #5d1f2b 48%, #d0d6d9);
}

.book-copy {
  display: grid;
  align-content: start;
  gap: 0.75rem;
  padding: 1.1rem;
}

.book-copy p {
  margin: 0;
}

.featured-book .book-copy {
  padding: clamp(1.1rem, 3vw, 1.6rem);
}

.note {
  color: rgba(20, 18, 19, 0.68);
  font-size: 0.92rem;
  font-style: italic;
}

.series {
  color: var(--wine);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.text-link {
  width: fit-content;
  color: var(--wine-dark);
  font-weight: 800;
}

.reading-band {
  padding: clamp(3rem, 8vw, 6rem) 0;
  background: var(--wine-dark);
  color: #fffaf2;
}

.reading-list,
.story-list {
  display: grid;
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.collection-lists {
  display: grid;
  gap: 1.2rem;
}

.collection-lists h3 {
  margin-bottom: 0.75rem;
  color: #fffaf2;
  font-size: clamp(1.65rem, 4vw, 2.25rem);
}

.reading-list li,
.story-list li {
  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  padding: 1rem;
  border: 1px solid rgba(255, 250, 242, 0.18);
  border-radius: 8px;
  background: rgba(255, 250, 242, 0.07);
}

.story-list li {
  grid-template-columns: 3rem minmax(0, 1fr);
  align-items: start;
}

.reading-list span,
.story-list span {
  color: var(--gold);
  font-weight: 800;
}

.reading-list em,
.story-list em {
  color: rgba(255, 250, 242, 0.72);
  font-style: normal;
}

.story-list strong,
.story-list em {
  display: block;
}

.story-list strong {
  margin-bottom: 0.18rem;
}

.academy-summary {
  padding: 1rem;
  border: 1px solid rgba(255, 250, 242, 0.18);
  border-radius: 8px;
  background: rgba(255, 250, 242, 0.07);
}

.academy-summary p {
  margin: 0;
}

.academy-books {
  margin-top: 1rem;
}

.trope-list {
  display: grid;
  gap: 0.45rem;
  margin: 1rem 0;
  padding-left: 1.1rem;
  color: rgba(255, 250, 242, 0.78);
}

.collection-note {
  color: var(--gold);
  font-weight: 800;
}

.newsletter-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1.5rem;
  align-items: center;
  padding: clamp(1.25rem, 4vw, 2.5rem);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft-paper);
  box-shadow: var(--shadow);
}

.newsletter-panel p {
  max-width: 640px;
  margin: 1rem 0 0;
}

.social-links,
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem 1rem;
}

.social-links {
  margin-top: 1.1rem;
}

.social-links a,
.footer-links a {
  font-weight: 800;
  text-underline-offset: 0.28em;
}

.newsletter-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.75rem;
}

.dark-button {
  min-width: 13rem;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.5rem clamp(1rem, 4vw, 3rem);
  color: #fffaf2;
  background: var(--ink);
}

.site-footer p {
  margin: 0;
}

@keyframes livingFrame {
  from {
    transform: scale(1.03) translate3d(0, 0, 0);
  }

  to {
    transform: scale(1.08) translate3d(-1.2rem, -0.7rem, 0);
  }
}

@keyframes drift {
  from {
    background-position: 0 0, 0 0, 0 0;
  }

  to {
    background-position: 7rem 14rem, -10rem 10rem, 13rem -13rem;
  }
}

@keyframes floatPortrait {
  0%,
  100% {
    transform: translateY(0) rotate(1.5deg);
  }

  50% {
    transform: translateY(-0.75rem) rotate(-0.5deg);
  }
}

@media (max-width: 850px) {
  .site-header {
    position: absolute;
    align-items: flex-start;
  }

  .nav-links {
    font-size: 0.85rem;
  }

  .hero {
    min-height: auto;
    padding: 7rem 0 4.5rem;
  }

  .hero-stage {
    grid-template-columns: 1fr;
    padding-top: 0;
  }

  .hero-portrait {
    justify-self: start;
    width: min(260px, 72vw);
    min-width: 0;
    transform: none;
  }

  .intro-grid,
  .reading-grid,
  .about-grid,
  .obsessions-panel,
  .newsletter-panel {
    grid-template-columns: 1fr;
  }

  .newsletter-actions {
    justify-content: flex-start;
  }

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

  .gateway-card {
    min-height: 23rem;
  }

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

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

  .book-card {
    grid-template-columns: minmax(120px, 0.38fr) minmax(0, 1fr);
    grid-template-rows: 1fr;
  }

  .cover {
    min-height: 100%;
    aspect-ratio: auto;
    font-size: 1.45rem;
  }
}

@media (max-width: 560px) {
  .site-header,
  .hero-actions,
  .newsletter-actions,
  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-links {
    justify-content: flex-start;
  }

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

  .scroll-cue {
    display: none;
  }

  .hero-portrait {
    width: 100%;
  }

  .gateway-card {
    min-height: 20rem;
  }

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

  .cover {
    aspect-ratio: 2 / 3;
  }

  .reading-list li,
  .story-list li {
    grid-template-columns: 2.4rem minmax(0, 1fr);
  }

  .reading-list em {
    grid-column: 2;
  }

  .button,
  .dark-button {
    width: 100%;
  }
}

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

  .hero-image,
  .hero-atmosphere,
  .hero-portrait {
    animation: none;
  }

  .gateway-card::before {
    transition: none;
  }
}

