:root {
  --ink: #090807;
  --coal: #13100e;
  --paper: #efe4cf;
  --muted: #b9aa8d;
  --blood: #a93226;
  --amber: #d8a045;
  --green: #4f6a58;
  --hj: #ff0f7b;
  --line: rgba(239, 228, 207, 0.18);
  --shadow: rgba(0, 0, 0, 0.58);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--ink);
}

body {
  margin: 0;
  color: var(--paper);
  font-family: "Source Serif 4", Georgia, serif;
  background:
    radial-gradient(circle at 24% 18%, rgba(169, 50, 38, 0.22), transparent 26rem),
    linear-gradient(120deg, rgba(9, 8, 7, 0.74), rgba(19, 16, 14, 0.94)),
    var(--ink);
  overflow-x: hidden;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  content: "";
  background:
    repeating-linear-gradient(105deg, rgba(255, 255, 255, 0.04) 0 1px, transparent 1px 26px),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px 4px);
  opacity: 0.38;
  pointer-events: none;
}

a {
  color: inherit;
}

.rain-canvas {
  position: fixed;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  opacity: 0.28;
  pointer-events: none;
}

.site-header,
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  width: min(1160px, calc(100% - 2rem));
  margin: 0 auto;
}

.site-header {
  min-height: 76px;
  border-bottom: 1px solid var(--line);
}

.brand,
.nav-links {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.brand {
  text-decoration: none;
  font-family: "Special Elite", Georgia, serif;
  letter-spacing: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--paper);
  background: var(--blood);
  color: var(--paper);
  box-shadow: 5px 5px 0 var(--shadow);
}

.brand-logo {
  display: block;
  width: 52px;
  height: 52px;
  object-fit: contain;
  filter: drop-shadow(5px 5px 0 rgba(0, 0, 0, 0.42));
}

.nav-links a {
  padding: 0.65rem 0;
  color: var(--muted);
  text-decoration: none;
  border-bottom: 2px solid transparent;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--paper);
  border-color: var(--blood);
}

.home-hero,
.book-hero,
.author-hero,
.content-band,
.story-section,
.spotlight-band,
.series-section,
.reader-poll-section,
.quote-band {
  width: min(1160px, calc(100% - 2rem));
  margin: 0 auto;
}

.home-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 380px);
  align-items: center;
  gap: clamp(4rem, 8vw, 7rem);
  min-height: calc(100svh - 76px);
  padding: 3rem 0 clamp(5rem, 10vw, 8rem);
}

.home-hero h1 {
  max-width: 10ch;
  font-size: clamp(3.8rem, 8vw, 6.2rem);
}

.hero-copy,
.book-copy,
.author-copy {
  max-width: 680px;
  min-width: 0;
}

.kicker {
  margin: 0 0 0.8rem;
  color: var(--amber);
  font-family: "Special Elite", Georgia, serif;
  font-size: 0.92rem;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  font-weight: 800;
  line-height: 0.94;
}

h1 {
  max-width: 12ch;
  margin-bottom: 1.2rem;
  font-size: clamp(4rem, 12vw, 8.8rem);
}

.book-copy h1,
.author-copy h1 {
  max-width: 13ch;
  font-size: clamp(3rem, 8vw, 6.6rem);
}

.book-copy h1 span {
  color: var(--amber);
  font-size: 0.48em;
  line-height: 1;
}

h2 {
  max-width: 13ch;
  margin-bottom: 0;
  font-size: clamp(2.3rem, 6vw, 4.8rem);
}

h3 {
  margin-bottom: 0.6rem;
  color: var(--amber);
  font-family: "Special Elite", Georgia, serif;
  font-size: 1.1rem;
}

.lede {
  max-width: 60ch;
  color: var(--muted);
  font-size: clamp(1.1rem, 2vw, 1.38rem);
  line-height: 1.6;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.8rem 1.05rem;
  border: 1px solid var(--paper);
  color: var(--paper);
  text-decoration: none;
  box-shadow: 5px 5px 0 var(--shadow);
}

.button.primary {
  background: var(--blood);
}

.button.ghost {
  background: rgba(239, 228, 207, 0.08);
}

.cover-feature {
  display: block;
  justify-self: end;
  padding-bottom: 2rem;
  text-decoration: none;
}

.home-hero .cover-feature {
  position: relative;
  z-index: 1;
  margin-left: clamp(1rem, 3vw, 3rem);
}

.latest-label {
  margin: 0 0 0.75rem;
  color: var(--amber);
  font-family: "Special Elite", Georgia, serif;
  font-size: 0.9rem;
  text-transform: uppercase;
}

.cover-cta {
  display: inline-flex;
  margin-top: 1.35rem;
  color: var(--amber);
  font-family: "Special Elite", Georgia, serif;
  text-decoration: underline;
  text-decoration-color: var(--blood);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.22rem;
}

.book-cover {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: min(100%, 380px);
  aspect-ratio: 2 / 3;
  padding: 1.35rem;
  overflow: hidden;
  border: 1px solid rgba(239, 228, 207, 0.45);
  background: linear-gradient(155deg, #1d1a16, #060504 62%, #22100d);
  box-shadow: 22px 24px 0 rgba(0, 0, 0, 0.36);
}

.book-cover:has(.cover-image) {
  display: block;
  padding: 0;
}

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

.book-cover.large {
  width: min(100%, 430px);
}

.cover-topline,
.cover-author,
.cover-title {
  position: relative;
  z-index: 2;
}

.cover-topline,
.cover-author {
  color: var(--amber);
  font-family: "Special Elite", Georgia, serif;
  font-size: clamp(0.88rem, 2vw, 1.05rem);
  text-transform: uppercase;
}

.cover-title {
  max-width: 9ch;
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 800;
  line-height: 0.85;
}

.cover-art,
.moon,
.blind,
.detective,
.street {
  position: absolute;
}

.cover-art {
  inset: 0;
  overflow: hidden;
}

.cover-art::before {
  position: absolute;
  inset: 34% 0 0;
  content: "";
  background:
    linear-gradient(95deg, transparent 0 38%, rgba(216, 160, 69, 0.16) 39% 43%, transparent 44%),
    linear-gradient(180deg, transparent, rgba(169, 50, 38, 0.32));
}

.moon {
  top: 18%;
  right: 20%;
  width: 72px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(239, 228, 207, 0.86);
  box-shadow: 0 0 45px rgba(239, 228, 207, 0.42);
}

.blind {
  left: -12%;
  width: 124%;
  height: 18px;
  background: rgba(239, 228, 207, 0.16);
  transform: rotate(-17deg);
}

.blind-one {
  top: 40%;
}

.blind-two {
  top: 52%;
}

.detective {
  right: 7%;
  bottom: 13%;
  width: 42%;
  height: 45%;
  background: linear-gradient(90deg, #070605, #5b5143 54%, #0b0908);
  clip-path: polygon(38% 0, 68% 7%, 78% 27%, 100% 100%, 8% 100%, 23% 31%);
}

.detective::before {
  position: absolute;
  top: -18%;
  left: -16%;
  width: 130%;
  height: 22%;
  content: "";
  background: #15110e;
  clip-path: polygon(5% 58%, 46% 22%, 76% 25%, 98% 61%, 62% 82%, 23% 80%);
}

.street {
  left: 0;
  right: 0;
  bottom: 0;
  height: 23%;
  background:
    repeating-linear-gradient(100deg, transparent 0 20px, rgba(239, 228, 207, 0.14) 21px 23px),
    linear-gradient(180deg, rgba(9, 8, 7, 0), rgba(0, 0, 0, 0.78));
}

.content-band,
.story-section,
.spotlight-band,
.series-section,
.reader-poll-section {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(2rem, 5vw, 4rem);
  padding: clamp(4rem, 10vw, 7rem) 0;
  border-top: 1px solid var(--line);
}

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

.feature-grid article {
  min-height: 190px;
  padding: 1.2rem;
  border: 1px solid var(--line);
  background: rgba(239, 228, 207, 0.055);
}

.feature-grid p,
.prose p,
.spotlight-copy p,
.catalog-placeholder p,
.series-item p {
  color: var(--muted);
  font-size: 1.06rem;
  line-height: 1.7;
}

.series-list {
  display: grid;
  gap: 1rem;
}

.series-item {
  position: relative;
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr);
  gap: 1.1rem;
  align-items: center;
  min-height: 180px;
  padding: 1.25rem;
  overflow: hidden;
  border: 1px solid var(--line);
  background: rgba(239, 228, 207, 0.055);
}

.series-item::after {
  position: absolute;
  right: -2rem;
  bottom: -2.8rem;
  color: rgba(239, 228, 207, 0.05);
  content: "CASE";
  font-family: "Special Elite", Georgia, serif;
  font-size: 6rem;
}

.series-item span {
  display: inline-flex;
  margin-bottom: 1rem;
  color: var(--amber);
  font-family: "Special Elite", Georgia, serif;
  text-transform: uppercase;
}

.series-item h3 {
  max-width: 16ch;
  margin-bottom: 0.7rem;
  color: var(--paper);
  font-family: "Source Serif 4", Georgia, serif;
  font-size: clamp(2rem, 4vw, 3.4rem);
  font-weight: 800;
  line-height: 0.98;
}

.series-cover {
  position: relative;
  z-index: 1;
  width: 118px;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border: 1px solid rgba(239, 228, 207, 0.28);
  box-shadow: 8px 8px 0 rgba(0, 0, 0, 0.28);
}

.series-item.coming-soon {
  border-style: dashed;
  background:
    linear-gradient(110deg, transparent 0 48%, rgba(216, 160, 69, 0.1) 49% 52%, transparent 53%),
    rgba(79, 106, 88, 0.12);
}

.spotlight-band {
  position: relative;
}

.spotlight-band::before {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 1px;
  content: "";
  background: linear-gradient(90deg, transparent, rgba(216, 160, 69, 0.42), transparent);
}

.spotlight-copy {
  position: relative;
  padding: clamp(1.2rem, 3vw, 2rem);
  border-left: 3px solid var(--blood);
  background: rgba(239, 228, 207, 0.045);
}

.text-link {
  color: var(--amber);
  font-family: "Special Elite", Georgia, serif;
  text-decoration-color: var(--blood);
  text-decoration-thickness: 2px;
}

.book-hero,
.author-hero {
  display: grid;
  grid-template-columns: minmax(280px, 430px) minmax(0, 1fr);
  align-items: center;
  gap: clamp(2rem, 6vw, 5rem);
  min-height: calc(100svh - 76px);
  padding: 3rem 0;
}

.meta-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.8rem;
}

.meta-strip span {
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--line);
  color: var(--paper);
  background: rgba(79, 106, 88, 0.28);
}

.buy-panel {
  margin-top: 2rem;
  padding: 1.25rem;
  border: 1px solid rgba(216, 160, 69, 0.34);
  background: rgba(239, 228, 207, 0.055);
  box-shadow: 8px 8px 0 rgba(0, 0, 0, 0.24);
}

.buy-panel h2 {
  max-width: none;
  margin-bottom: 0.75rem;
  font-size: clamp(2rem, 4vw, 3.2rem);
}

.buy-panel p {
  max-width: 56ch;
  color: var(--muted);
  line-height: 1.6;
}

.price-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin: 1rem 0 1.25rem;
}

.price-list span {
  padding: 0.48rem 0.65rem;
  border: 1px solid var(--line);
  color: var(--paper);
  background: rgba(9, 8, 7, 0.24);
}

.quote-band {
  padding: clamp(3.5rem, 8vw, 6rem) 0;
  border-top: 1px solid var(--line);
}

.reader-poll {
  padding: clamp(1.2rem, 3vw, 2rem);
  border: 1px solid rgba(216, 160, 69, 0.34);
  background: rgba(239, 228, 207, 0.055);
  box-shadow: 8px 8px 0 rgba(0, 0, 0, 0.24);
}

.reader-poll fieldset {
  display: grid;
  gap: 0.85rem;
  padding: 0;
  margin: 0 0 1.25rem;
  border: 0;
}

.reader-poll legend {
  margin-bottom: 1rem;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.6;
}

.reader-poll label {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.85rem;
  border: 1px solid var(--line);
  background: rgba(9, 8, 7, 0.24);
  cursor: pointer;
}

.reader-poll input {
  width: 1.1rem;
  height: 1.1rem;
  accent-color: var(--blood);
}

.poll-status,
.poll-result p {
  color: var(--muted);
  line-height: 1.6;
}

.poll-status {
  margin: 1rem 0 0;
}

.poll-result {
  margin-top: 1.4rem;
}

.poll-result strong {
  color: var(--amber);
  font-family: "Special Elite", Georgia, serif;
  font-size: clamp(2rem, 4vw, 3rem);
}

.poll-meter {
  height: 0.8rem;
  margin-bottom: 0.9rem;
  overflow: hidden;
  border: 1px solid var(--line);
  background: rgba(9, 8, 7, 0.36);
}

.poll-meter span {
  display: block;
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--blood), var(--amber));
  transition: width 220ms ease;
}

.poll-total {
  margin-bottom: 0;
}

.catalog-hero,
.catalog-grid {
  width: min(1160px, calc(100% - 2rem));
  margin: 0 auto;
}

.catalog-hero {
  padding: clamp(4rem, 12vw, 8rem) 0 clamp(2rem, 5vw, 4rem);
  border-bottom: 1px solid var(--line);
}

.catalog-hero h1 {
  margin-bottom: 1rem;
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 1rem;
  padding: clamp(2rem, 6vw, 4.5rem) 0 clamp(4rem, 10vw, 7rem);
}

.catalog-item {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 1.25rem;
  align-items: center;
  min-height: 230px;
  padding: 1.1rem;
  border: 1px solid var(--line);
  color: inherit;
  text-decoration: none;
  background: rgba(239, 228, 207, 0.055);
}

.catalog-item:hover {
  border-color: rgba(216, 160, 69, 0.72);
  background: rgba(239, 228, 207, 0.085);
}

.catalog-item h2 {
  max-width: 12ch;
  margin-bottom: 0.6rem;
  font-size: clamp(2rem, 4vw, 3.5rem);
}

.catalog-item p:not(.kicker) {
  margin-bottom: 1rem;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.55;
}

.catalog-item span {
  color: var(--amber);
  font-family: "Special Elite", Georgia, serif;
}

.mini-cover {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 150px;
  aspect-ratio: 2 / 3;
  padding: 0.85rem;
  border: 1px solid rgba(239, 228, 207, 0.35);
  background:
    linear-gradient(135deg, transparent 0 44%, rgba(216, 160, 69, 0.22) 45% 48%, transparent 49%),
    linear-gradient(160deg, #1d1a16, #060504 68%, #2b120d);
}

.mini-cover:has(.cover-image) {
  display: block;
  padding: 0;
  overflow: hidden;
}

.mini-cover .cover-title {
  max-width: 6ch;
  font-size: 2rem;
}

.author-card {
  grid-template-columns: 132px minmax(0, 1fr);
}

.author-thumb,
.author-initials {
  width: 132px;
  aspect-ratio: 1;
  overflow: hidden;
  border: 1px solid rgba(239, 228, 207, 0.35);
  background:
    linear-gradient(110deg, rgba(239, 228, 207, 0.16) 0 18%, transparent 18% 31%, rgba(169, 50, 38, 0.32) 31% 34%, transparent 34%),
    #15110e;
  color: var(--amber);
  font-family: "Special Elite", Georgia, serif;
  font-size: 2rem;
}

.author-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.24) contrast(1.08);
}

.catalog-placeholder {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 230px;
  padding: 1.4rem;
  border: 1px dashed rgba(239, 228, 207, 0.24);
  background:
    repeating-linear-gradient(135deg, rgba(239, 228, 207, 0.035) 0 1px, transparent 1px 18px),
    rgba(79, 106, 88, 0.12);
}

.catalog-placeholder h2 {
  max-width: 10ch;
  margin-bottom: 0.8rem;
  color: var(--paper);
  font-size: clamp(2rem, 4vw, 3.2rem);
}

.linked-list a {
  display: grid;
  gap: 0.2rem;
  padding: 1rem 0;
  color: var(--paper);
  text-decoration-color: var(--blood);
  text-decoration-thickness: 2px;
  border-bottom: 1px solid var(--line);
}

.linked-list span {
  color: var(--muted);
}

.author-bio {
  margin-bottom: 1.5rem;
}

blockquote {
  margin: 0;
  max-width: 920px;
  color: var(--amber);
  font-family: "Special Elite", Georgia, serif;
  font-size: clamp(2rem, 5vw, 4.3rem);
  line-height: 1.12;
}

.portrait-panel {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  border: 1px solid rgba(239, 228, 207, 0.24);
  background:
    linear-gradient(110deg, rgba(239, 228, 207, 0.16) 0 12%, transparent 12% 22%, rgba(239, 228, 207, 0.12) 22% 25%, transparent 25%),
    linear-gradient(180deg, #211a15, #080706);
  box-shadow: 22px 24px 0 rgba(0, 0, 0, 0.36);
}

.portrait-image {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 520px;
  object-fit: cover;
  object-position: center;
  filter: grayscale(0.18) contrast(1.08);
}

.portrait-panel:has(.portrait-image)::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(90deg, rgba(9, 8, 7, 0.12), transparent 48%, rgba(9, 8, 7, 0.24)),
    repeating-linear-gradient(105deg, rgba(239, 228, 207, 0.08) 0 1px, transparent 1px 24px);
  pointer-events: none;
}

.portrait-light,
.portrait-shadow,
.typewriter {
  position: absolute;
}

.portrait-light {
  top: 15%;
  left: 20%;
  width: 46%;
  height: 58%;
  background: linear-gradient(145deg, rgba(239, 228, 207, 0.72), rgba(169, 50, 38, 0.12));
  clip-path: polygon(45% 0, 71% 13%, 78% 39%, 66% 74%, 50% 100%, 23% 70%, 14% 33%);
}

.portrait-shadow {
  right: 9%;
  bottom: 0;
  width: 50%;
  height: 70%;
  background: rgba(0, 0, 0, 0.46);
  clip-path: polygon(20% 0, 70% 12%, 100% 100%, 0 100%);
}

.typewriter {
  left: 13%;
  right: 13%;
  bottom: 12%;
  height: 20%;
  border: 1px solid rgba(239, 228, 207, 0.32);
  background:
    repeating-linear-gradient(90deg, rgba(239, 228, 207, 0.38) 0 11px, transparent 11px 20px),
    linear-gradient(180deg, #312921, #0d0b09);
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  min-height: 92px;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.site-footer a {
  color: var(--paper);
  text-decoration-color: var(--blood);
  text-decoration-thickness: 2px;
}

.site-footer a:hover {
  color: var(--hj);
  text-decoration-color: var(--hj);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.developed-by {
  justify-self: end;
  text-align: right;
}

@media (max-width: 1080px) {
  .home-hero {
    grid-template-columns: 1fr;
    min-height: auto;
    row-gap: 3rem;
  }

  .home-hero h1 {
    max-width: 9ch;
    font-size: clamp(3.6rem, 12vw, 6.2rem);
  }

  .home-hero .cover-feature {
    justify-self: start;
    width: min(100%, 380px);
    margin-left: 0;
    margin-bottom: 1.5rem;
  }
}

@media (max-width: 860px) {
  .site-footer {
    grid-template-columns: 1fr;
  }

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

  .developed-by {
    justify-self: start;
    text-align: left;
  }

  .home-hero,
  .book-hero,
  .author-hero,
  .content-band,
  .story-section,
  .spotlight-band,
  .series-section,
  .reader-poll-section {
    grid-template-columns: 1fr;
  }

  .home-hero,
  .book-hero,
  .author-hero {
    min-height: auto;
  }

  .cover-feature {
    justify-self: start;
    width: min(100%, 380px);
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
  }

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

  .book-hero .book-cover {
    order: 2;
  }

  .catalog-item,
  .author-card {
    grid-template-columns: 1fr;
  }

  .series-item {
    grid-template-columns: 92px minmax(0, 1fr);
  }

  .series-cover {
    width: 92px;
  }
}

@media (max-width: 560px) {
  .site-header,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    padding: 1rem 0;
  }

  .site-header {
    min-height: 112px;
  }

  .brand {
    align-items: flex-start;
  }

  h1 {
    font-size: clamp(3.2rem, 18vw, 5.2rem);
  }

  .book-copy h1,
  .author-copy h1 {
    font-size: clamp(2.8rem, 15vw, 4.4rem);
  }

  .book-cover {
    box-shadow: 12px 14px 0 rgba(0, 0, 0, 0.36);
  }

  .portrait-panel {
    min-height: 390px;
    box-shadow: 12px 14px 0 rgba(0, 0, 0, 0.36);
  }
}
