:root {
  --bg: #0b0d0f;
  --panel: #11161a;
  --panel-2: #171d22;
  --line: rgba(215, 210, 196, 0.18);
  --text: #f0ece1;
  --muted: #a7a69e;
  --bone: #d7d2c4;
  --amber: #c6a15b;
  --rust: #8b3e2f;
  --green: #5e6f63;
  --shadow: rgba(0, 0, 0, 0.5);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", "Source Sans 3", "Segoe UI", Arial, sans-serif;
  line-height: 1.45;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: linear-gradient(to bottom, black, transparent 70%);
}

a { color: inherit; text-decoration: none; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  min-height: 74px;
  padding: 12px clamp(20px, 4vw, 64px);
  background: rgba(8, 10, 12, 0.86);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--bone);
  font-family: "Bahnschrift", "Barlow Condensed", "Arial Narrow", sans-serif;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 50%;
}

nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

nav a {
  color: var(--muted);
  padding: 10px 12px;
  border: 1px solid transparent;
  font-size: 0.86rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

nav a:hover {
  color: var(--text);
  border-color: var(--line);
  background: rgba(255,255,255,0.04);
}

.hero {
  min-height: min(760px, calc(100vh - 150px));
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(360px, 0.98fr);
  align-items: center;
  gap: clamp(28px, 4vw, 72px);
  padding: clamp(42px, 5.5vw, 72px) clamp(20px, 5vw, 76px) 42px;
  background:
    linear-gradient(90deg, rgba(8,10,12,0.94) 0%, rgba(8,10,12,0.78) 42%, rgba(8,10,12,0.34) 100%),
    url("assets/site-hero.jpg") center / cover no-repeat;
  border-bottom: 1px solid var(--line);
}

.hero-copy { max-width: 760px; }

.eyebrow {
  margin: 0 0 12px;
  color: var(--amber);
  font-family: "Bahnschrift", "Barlow Condensed", "Arial Narrow", sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1, h2, h3 {
  margin: 0;
  font-family: "Impact", "Bahnschrift Condensed", "Arial Narrow", sans-serif;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

h1 {
  font-size: clamp(4rem, 12vw, 10rem);
  line-height: 0.86;
}

h2 {
  font-size: clamp(2.2rem, 5.2vw, 5.2rem);
  line-height: 0.92;
}

h3 {
  font-size: 1.52rem;
  line-height: 1;
}

.hero-line {
  max-width: 690px;
  margin: 24px 0 0;
  color: var(--bone);
  font-size: clamp(1.16rem, 2.4vw, 1.65rem);
}

.hero-actions,
.card-actions,
.book-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-actions { margin-top: 30px; }

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border: 1px solid var(--line);
  color: var(--text);
  font-family: "Bahnschrift", "Segoe UI", Arial, sans-serif;
  font-weight: 800;
  font-size: 0.86rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
  white-space: normal;
}

.button.primary {
  background: var(--amber);
  border-color: var(--amber);
  color: #15120c;
}

.button.ghost {
  background: rgba(12, 15, 18, 0.45);
}

.button:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px var(--shadow);
}

.signal-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  max-width: 660px;
  margin: 42px 0 0;
  padding: 1px;
  background: var(--line);
}

.signal-strip div {
  padding: 18px;
  background: rgba(12, 15, 18, 0.74);
}

.signal-strip dt {
  color: var(--text);
  font-family: "Impact", "Arial Narrow", sans-serif;
  font-size: 2rem;
  line-height: 1;
}

.signal-strip dd {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.hero-covers {
  min-height: 470px;
  position: relative;
  width: 100%;
}

.hero-cover {
  position: absolute;
  width: min(31vw, 218px);
  aspect-ratio: 13 / 20;
  object-fit: cover;
  border: 1px solid rgba(215, 210, 196, 0.34);
  box-shadow: 0 30px 55px rgba(0,0,0,0.6);
  transform: rotate(var(--r)) translate(var(--x), var(--y));
}

.hero-cover:nth-child(1) { left: 3%; top: 6%; --r: -5deg; --x: 0; --y: 0; z-index: 5; }
.hero-cover:nth-child(2) { left: 31%; top: 2%; --r: 4deg; --x: 0; --y: 0; z-index: 4; }
.hero-cover:nth-child(3) { left: 56%; top: 12%; --r: -2deg; --x: 0; --y: 0; z-index: 3; }
.hero-cover:nth-child(4) { left: 14%; top: 42%; --r: 3deg; --x: 0; --y: 0; z-index: 2; }
.hero-cover:nth-child(5) { left: 44%; top: 42%; --r: -4deg; --x: 0; --y: 0; z-index: 1; }

.section {
  padding: clamp(54px, 7vw, 92px) clamp(20px, 5vw, 76px);
  border-bottom: 1px solid var(--line);
}

.section-head {
  max-width: 980px;
  margin-bottom: 28px;
}

.section-head p {
  color: var(--muted);
  max-width: 760px;
}

.section-head.split {
  max-width: none;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: 24px;
  align-items: end;
}

.featured-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  max-width: 1040px;
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr));
  gap: 18px;
}

.feature-card,
.book-card,
.series-card {
  background: linear-gradient(180deg, rgba(23,29,34,0.94), rgba(13,16,19,0.98));
  border: 1px solid var(--line);
  box-shadow: 0 18px 36px rgba(0,0,0,0.23);
}

.feature-card {
  display: grid;
  grid-template-columns: minmax(118px, 154px) minmax(0, 1fr);
  gap: clamp(16px, 2.4vw, 26px);
  align-items: center;
  padding: clamp(14px, 2vw, 20px);
  min-width: 0;
}

.feature-card img,
.book-card img {
  width: 100%;
  aspect-ratio: 13 / 20;
  object-fit: cover;
  background: #090a0b;
  border: 1px solid rgba(215, 210, 196, 0.22);
}

.card-copy,
.book-copy {
  min-width: 0;
}

.feature-card .card-copy {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.feature-card .tagline,
.feature-card .description {
  max-width: 720px;
}

.feature-card .tagline,
.feature-card .description,
.feature-card .meta {
  margin: 0;
}

.feature-card .card-actions {
  margin-top: 4px;
}

.meta {
  color: var(--amber);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  overflow-wrap: anywhere;
}

.tagline {
  color: var(--bone);
  font-weight: 800;
  margin: 10px 0 8px;
}

.description {
  color: var(--muted);
  font-size: 0.92rem;
  overflow-wrap: anywhere;
}

.catalog-tools {
  display: grid;
  grid-template-columns: minmax(180px, 1.2fr) minmax(160px, 1fr) minmax(140px, 0.8fr);
  gap: 12px;
  min-width: 0;
}

label span {
  display: block;
  margin-bottom: 6px;
  color: var(--amber);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

input,
select {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  background: rgba(7,9,11,0.86);
  border: 1px solid var(--line);
  color: var(--text);
  min-width: 0;
}

.book-card {
  display: grid;
  grid-template-rows: auto 1fr;
  min-height: 100%;
}

.book-card img {
  border-left: 0;
  border-right: 0;
  border-top: 0;
}

.book-copy {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px;
}

.status-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pill {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 24px;
  padding: 4px 8px;
  border: 1px solid var(--line);
  color: var(--bone);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.pill.direct { border-color: rgba(198, 161, 91, 0.7); color: var(--amber); }
.pill.soon { border-color: rgba(94, 111, 99, 0.8); color: #bac8bc; }

.book-actions { margin-top: auto; }

.book-actions .button {
  width: 100%;
  min-height: 40px;
  font-size: 0.78rem;
}

.series-map {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 16px;
}

.series-card {
  padding: 18px;
}

.series-card ol {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
  display: grid;
  gap: 8px;
}

.series-card li {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 8px;
  align-items: baseline;
  color: var(--muted);
}

.series-card a {
  overflow-wrap: anywhere;
}

.series-card strong {
  color: var(--bone);
  font-weight: 800;
}

.dispatch {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: clamp(42px, 7vw, 72px) clamp(20px, 5vw, 76px);
  background:
    linear-gradient(90deg, rgba(8,10,12,0.92), rgba(8,10,12,0.66)),
    url("assets/hayes-mann-cover-image.jpg") center / cover no-repeat;
  border-bottom: 1px solid var(--line);
}

.dispatch h2 {
  max-width: 860px;
  font-size: clamp(2rem, 4.6vw, 4rem);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 24px clamp(20px, 5vw, 76px);
  color: var(--muted);
  border-top: 1px solid rgba(255,255,255,0.05);
}

@media (max-width: 980px) {
  .site-header {
    min-height: auto;
  }

  .hero,
  .section-head.split {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 52px;
    background:
      linear-gradient(180deg, rgba(8,10,12,0.96) 0%, rgba(8,10,12,0.82) 54%, rgba(8,10,12,0.5) 100%),
      url("assets/site-hero.jpg") center / cover no-repeat;
  }

  .hero-covers {
    display: grid;
    grid-template-columns: repeat(5, minmax(76px, 1fr));
    gap: 12px;
    min-height: 0;
  }

  .hero-cover {
    position: static;
    width: 100%;
    max-width: 168px;
    transform: none;
    justify-self: center;
    box-shadow: 0 18px 32px rgba(0,0,0,0.48);
  }

  .catalog-tools {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .site-header,
  .dispatch,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-header {
    gap: 10px;
    padding: 10px 16px;
  }

  .brand-lockup {
    font-size: 0.95rem;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
  }

  nav {
    width: 100%;
    justify-content: flex-start;
    gap: 6px;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: thin;
  }

  nav a {
    padding: 8px 10px;
    font-size: 0.76rem;
  }

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

  h2 {
    font-size: clamp(2rem, 13vw, 3.8rem);
  }

  h3 {
    font-size: 1.28rem;
  }

  .hero {
    gap: 28px;
    padding: 38px 16px 32px;
  }

  .hero-actions,
  .card-actions,
  .book-actions {
    width: 100%;
  }

  .hero-actions .button,
  .card-actions .button,
  .book-actions .button,
  .dispatch .button {
    width: 100%;
  }

  .signal-strip {
    grid-template-columns: 1fr;
    margin-top: 28px;
  }

  .hero-covers {
    grid-template-columns: repeat(5, minmax(50px, 1fr));
    gap: 8px;
  }

  .hero-cover {
    max-width: 104px;
  }

  .feature-card {
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 12px;
    padding: 12px;
  }

  .section {
    padding: 46px 16px;
  }

  .section-head {
    margin-bottom: 22px;
  }

  .catalog-grid,
  .series-map {
    gap: 14px;
  }

  .featured-grid {
    gap: 14px;
  }

  .dispatch {
    padding: 42px 16px;
  }

  .site-footer {
    padding: 22px 16px;
  }
}

@media (max-width: 420px) {
  .feature-card {
    grid-template-columns: 76px minmax(0, 1fr);
    gap: 10px;
  }

  .button {
    min-height: 44px;
    padding-inline: 12px;
    font-size: 0.78rem;
  }

  .book-copy,
  .series-card {
    padding: 12px;
  }

  .status-row {
    gap: 6px;
  }

  .pill {
    font-size: 0.66rem;
  }
}
