:root {
  --bg: #050505;
  --panel: #0b0b0b;
  --ink: #f1dfc1;
  --muted: #c9b697;
  --red: #a50f13;
  --red-bright: #c7191f;
  --line: #4b4b4b;
  --max: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Georgia, 'Times New Roman', serif;
  line-height: 1.55;
}
a { color: var(--red-bright); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: #ef4a4f; }
img { display: block; max-width: 100%; }
button, input, textarea { font: inherit; }

.site-shell { min-height: 100vh; background: #000; }
.wrap { width: min(calc(100% - 40px), var(--max)); margin: 0 auto; }

.site-header {
  border-top: 1px dashed #696969;
  border-bottom: 1px dashed #696969;
  background: #050505;
  position: sticky;
  top: 0;
  z-index: 50;
}
.nav-row {
  min-height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.brand,
.heading-font {
  font-family: Impact, Haettenschweiler, 'Arial Narrow Bold', 'Arial Narrow', sans-serif;
  text-transform: uppercase;
  letter-spacing: .025em;
}
.brand {
  color: var(--ink);
  text-decoration: none;
  font-size: 1.42rem;
  line-height: 1;
}
.brand span { color: #f2b993; }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; }
.nav a {
  color: var(--ink);
  text-decoration: none;
  font-size: .92rem;
}
.nav a:hover, .nav a[aria-current='page'] { color: #e18f6b; }
.nav-toggle {
  display: none;
  border: 1px solid #555;
  color: var(--ink);
  background: transparent;
  padding: 7px 10px;
  cursor: pointer;
}

.hero {
  width: 100%;
  background: #000;
  overflow: hidden;
}
.hero img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 1;
  object-fit: cover;
  object-position: center;
}

.section { border-top: 1px dashed #616161; padding: 34px 0 42px; }
.section:first-of-type { border-top: 0; }
.section-title {
  margin: 0 0 8px;
  font-size: 1.8rem;
  line-height: 1;
  color: var(--ink);
}
.section-intro { max-width: 780px; margin: 0; font-size: 1.08rem; }

.bio p { max-width: 840px; margin: 0; }

.featured-book {
  display: grid;
  grid-template-columns: 230px 1fr;
  gap: 54px;
  align-items: start;
  position: relative;
}
.book-art {
  position: relative;
  padding: 26px 0 0 26px;
}
.book-art::before {
  content: '';
  position: absolute;
  inset: 0 38px 28px 0;
  background: #8f0b10;
  z-index: 0;
}
.book-art img {
  position: relative;
  z-index: 1;
  width: 205px;
  box-shadow: 0 12px 26px rgba(0,0,0,.45);
}
.book-copy h2,
.series-copy h2,
.card h2,
.page-title {
  margin: 0;
  color: var(--ink);
  font-size: 1.85rem;
  line-height: 1.02;
}
.book-subtitle { margin: 5px 0 2px; font-style: italic; font-size: 1.18rem; }
.book-series { margin: 2px 0 18px; }
.book-copy p { max-width: 650px; font-size: 1.08rem; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-width: 102px;
  padding: 10px 18px;
  border: 1px solid #6b1113;
  border-radius: 4px;
  background: var(--red);
  color: #fff;
  font-size: .92rem;
  text-decoration: none;
  transition: transform .15s ease, background .15s ease;
}
.btn:hover { background: #c3161b; color: #fff; transform: translateY(-1px); }
.btn.secondary { background: #070707; border-color: #382425; color: var(--ink); }
.btn.secondary:hover { background: #171111; }

.series-grid { display: grid; grid-template-columns: 265px 1fr; gap: 34px; align-items: center; }
.series-thumb {
  background: #0e0e0e;
  min-height: 142px;
  display: grid;
  place-items: center;
  padding: 12px;
}
.series-thumb img { height: 120px; width: auto; box-shadow: 0 7px 18px rgba(0,0,0,.5); }
.series-copy p { margin: 9px 0; }

.mailing {
  position: relative;
  min-height: 360px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-top: 1px dashed #616161;
  border-bottom: 1px dashed #616161;
  background: #100;
}
.mailing::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(0,0,0,.25), rgba(0,0,0,.45)),
    url('../images/mailing-list-background.png') center / cover no-repeat;
}
.mailing-inner {
  position: relative;
  z-index: 1;
  width: min(calc(100% - 40px), 620px);
  text-align: center;
}
.mailing h2 { margin: 0 0 4px; font-size: 2rem; }
.mailing p { margin: 0 0 18px; font-size: 1.04rem; }
.signup-box {
  background: rgba(75, 55, 55, .68);
  padding: 18px 22px;
  text-align: left;
  backdrop-filter: blur(2px);
  border: 1px solid rgba(255,255,255,.08);
}
.signup-box label { display: block; margin-bottom: 6px; font-weight: bold; }
.signup-box input,
.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid #555;
  border-radius: 4px;
  background: #f5f5f5;
  color: #161616;
  padding: 11px 12px;
}
.signup-box .btn { width: 100%; border: 0; margin-top: 13px; cursor: pointer; }
.form-note { margin-top: 9px !important; font-size: .82rem !important; color: #ead9c3; }
.form-status { min-height: 1.4em; margin-top: 8px; font-size: .9rem; }

.page-hero { padding: 44px 0 26px; border-bottom: 1px dashed #616161; }
.page-title { font-size: 2.5rem; }
.page-kicker { margin: 6px 0 0; color: var(--muted); max-width: 720px; }

.book-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 30px;
  padding: 36px 0 54px;
}
.card {
  background: #0a0a0a;
  border: 1px solid #201719;
  padding: 18px;
}
.card img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; margin-bottom: 18px; }
.card h2 { font-size: 1.5rem; }
.card p { color: #d8c7ab; }

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 48px;
  padding: 38px 0 54px;
}
.prose p { margin: 0 0 1.1em; font-size: 1.06rem; }
.sidebar-card { border-left: 4px solid var(--red); background: #0b0b0b; padding: 20px; }
.sidebar-card h2 { margin-top: 0; }

.series-page-row {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 36px;
  align-items: start;
  padding: 40px 0;
  border-bottom: 1px dashed #505050;
}
.series-page-row:last-child { border-bottom: 0; }
.series-page-row img { width: 190px; box-shadow: 0 12px 26px rgba(0,0,0,.5); }

.contact-wrap { max-width: 720px; padding: 38px 0 54px; }
.contact-form { display: grid; gap: 15px; }
.contact-form label { font-weight: bold; }
.contact-form textarea { min-height: 180px; resize: vertical; }
.contact-form .btn { border: 0; cursor: pointer; width: max-content; }

.site-footer { padding: 20px 0 28px; color: #e3caa8; font-size: .82rem; }
.footer-row { border-top: 1px solid #272727; padding-top: 14px; display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.footer-links { display: flex; gap: 13px; flex-wrap: wrap; }
.footer-links a { color: #c99b73; }

@media (max-width: 800px) {
  .wrap { width: min(calc(100% - 28px), var(--max)); }
  .nav-row { align-items: flex-start; padding: 16px 0; }
  .nav-toggle { display: block; }
  .nav { display: none; width: 100%; padding: 13px 0 4px; flex-direction: column; align-items: flex-start; gap: 10px; }
  .nav.open { display: flex; }
  .nav-row { flex-wrap: wrap; }
  .hero img { min-height: 230px; object-position: center; }
  .featured-book, .series-grid, .series-page-row, .content-grid { grid-template-columns: 1fr; }
  .featured-book { gap: 28px; }
  .book-art { width: 230px; }
  .series-thumb { width: 100%; }
  .book-grid { grid-template-columns: 1fr; max-width: 430px; }
  .page-title { font-size: 2.05rem; }
}

@media (max-width: 520px) {
  .hero img { aspect-ratio: 2.1 / 1; min-height: 200px; }
  .section { padding: 28px 0 34px; }
  .mailing { min-height: 390px; }
  .mailing-inner { width: min(calc(100% - 24px), 620px); }
  .signup-box { padding: 15px; }
}

/* ---------- Catalog data-driven additions ---------- */
.home-series-list { display: grid; gap: 28px; }
.home-series-list .series-grid + .series-grid { padding-top: 28px; border-top: 1px dashed #505050; }

.status-badge {
  display: inline-block;
  margin: 0 0 10px;
  padding: 4px 8px;
  border: 1px solid #6e1518;
  color: #f3d8bd;
  background: rgba(165, 15, 19, .18);
  font-family: Impact, Haettenschweiler, 'Arial Narrow Bold', 'Arial Narrow', sans-serif;
  font-size: .78rem;
  letter-spacing: .08em;
  line-height: 1;
  text-transform: uppercase;
}
.status-badge.coming-soon { border-color: #554a3f; background: #14110e; color: #d7c5aa; }
.status-badge.published { border-color: #7f1418; }

.btn.disabled {
  background: #1b1815;
  border-color: #4c433a;
  color: #aa9d8b;
  cursor: default;
  transform: none;
}
.availability-note { align-self: center; color: var(--muted); font-size: .9rem; font-style: italic; }

.cover-link { display: block; text-decoration: none; }
.title-link { color: var(--ink); text-decoration: none; }
.title-link:hover { color: #e18f6b; }
.card-subtitle { margin: 5px 0 4px !important; }
.card-series { margin: 0 0 12px !important; color: var(--muted) !important; font-size: .9rem; }

.book-detail-wrap { padding: 48px 0 62px; }
.book-detail {
  display: grid;
  grid-template-columns: minmax(220px, 310px) minmax(0, 1fr);
  gap: 58px;
  align-items: start;
}
.book-detail-cover { position: relative; padding: 28px 0 0 28px; }
.book-detail-cover::before {
  content: '';
  position: absolute;
  inset: 0 42px 34px 0;
  background: #8f0b10;
}
.book-detail-cover img { position: relative; z-index: 1; width: 100%; box-shadow: 0 14px 30px rgba(0,0,0,.55); }
.book-detail-copy .page-title { margin: 2px 0 0; }
.book-tagline { color: #e0c9aa; font-size: 1.2rem; font-style: italic; margin: 24px 0; }
.book-description p { font-size: 1.07rem; max-width: 700px; }
.book-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; color: var(--muted); font-size: .9rem; margin: 15px 0 22px; }
.book-meta span + span::before { content: '•'; margin-right: 18px; color: #6f5b4a; }
.not-found { padding: 70px 0; }

.series-books { margin-top: 22px; display: grid; gap: 12px; }
.series-book-line {
  display: grid;
  grid-template-columns: 72px minmax(0, max-content) auto;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid #241c1c;
}
.series-number { color: var(--muted); font-size: .85rem; }
.series-book-line .status-badge { margin: 0; justify-self: start; }

/* ---------- What I'm Reading ---------- */
.reading-section { padding: 38px 0 52px; border-bottom: 1px dashed #505050; }
.reading-section:last-of-type { border-bottom: 0; }
.reading-section .section-title { margin-bottom: 24px; }
.reading-list { display: grid; gap: 30px; }
.reading-card {
  display: grid;
  grid-template-columns: 155px minmax(0, 1fr);
  gap: 30px;
  padding: 24px;
  background: #0a0a0a;
  border: 1px solid #211719;
}
.reading-card.current-read { border-left: 4px solid var(--red); }
.reading-cover img,
.reading-cover-placeholder { width: 155px; aspect-ratio: 2 / 3; object-fit: cover; }
.reading-cover img { box-shadow: 0 9px 22px rgba(0,0,0,.45); }
.reading-cover-placeholder { display: grid; place-items: center; background: #141414; border: 1px solid #343434; color: #777; text-align: center; }
.reading-status {
  margin-bottom: 7px;
  color: #d38b68;
  font-family: Impact, Haettenschweiler, 'Arial Narrow Bold', 'Arial Narrow', sans-serif;
  font-size: .8rem;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.reading-copy h2 { margin: 0; font-size: 1.75rem; }
.reading-author { margin: 2px 0 0; color: #d9c8ae; font-style: italic; }
.reading-dates { margin: 10px 0; color: var(--muted); font-size: .88rem; }
.reading-review { margin-top: 15px; }
.reading-review p { margin: 0 0 1em; font-size: 1.03rem; }
.rating { display: inline-flex; gap: 10px; align-items: center; color: #e6b35c; font-size: 1.2rem; letter-spacing: .06em; }
.rating small { color: var(--muted); font-family: Georgia, 'Times New Roman', serif; font-size: .75rem; letter-spacing: 0; }
.rating.pending { color: var(--muted); font-size: .9rem; font-style: italic; }
.empty-state { padding: 32px; border: 1px dashed #4c4240; background: #090909; }
.empty-state h2 { margin: 0 0 6px; }
.empty-state p, .muted-copy { color: var(--muted); }

@media (max-width: 980px) {
  .nav { gap: 12px; }
  .nav a { font-size: .84rem; }
}

@media (max-width: 800px) {
  .book-detail { grid-template-columns: 1fr; gap: 34px; }
  .book-detail-cover { width: min(280px, 82vw); }
  .reading-card { grid-template-columns: 115px minmax(0, 1fr); gap: 20px; padding: 18px; }
  .reading-cover img, .reading-cover-placeholder { width: 115px; }
  .series-book-line { grid-template-columns: 65px minmax(0, 1fr); }
  .series-book-line .status-badge { grid-column: 2; }
}

@media (max-width: 520px) {
  .reading-card { grid-template-columns: 1fr; }
  .reading-cover img, .reading-cover-placeholder { width: 135px; }
  .book-detail-wrap { padding-top: 32px; }
}

/* ---------- Reading lists, collapsible reviews, release dates, mail ---------- */
.reading-section .section-note {
  margin: -14px 0 24px;
  color: var(--muted);
}
.reading-card.tbr-read { border-left: 4px solid #6d5948; }
.reading-card.wishlist-read { border-left: 4px solid #4f3b3d; }
.reading-review-details {
  margin-top: 16px;
  border-top: 1px solid #2c2321;
  padding-top: 12px;
}
.reading-review-details summary {
  width: max-content;
  max-width: 100%;
  cursor: pointer;
  color: #d38b68;
  font-weight: bold;
  user-select: none;
}
.reading-review-details summary:hover { color: #efb08f; }
.reading-review-details[open] summary { margin-bottom: 12px; }
.reading-review-details .reading-review { margin-top: 0; padding-left: 2px; }

.mailing-address-card {
  margin: 26px 0 30px;
  padding: 20px 22px;
  border-left: 4px solid var(--red);
  background: #0b0b0b;
}
.mailing-address-card h2 { margin: 0 0 9px; font-size: 1.35rem; }
.mailing-address-card address { font-style: normal; color: #e3cdb0; }
.mailing-address-card address span { display: block; }
.mailing-address-intro { margin: 0 0 8px; color: var(--muted); }

/* =========================================================
   KIT NEWSLETTER FORM OVERRIDES
   ========================================================= */

.kit-signup {
  max-width: 620px;
  margin: 24px auto 0;
}

/* Remove Kit's default form/background styling */
.kit-signup .formkit-form[data-uid="fb4af2168f"] {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  max-width: 100% !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Kit adds a large amount of padding here */
.kit-signup .formkit-form[data-uid="fb4af2168f"] [data-style="clean"] {
  padding: 0 !important;
  margin: 0 !important;
}

/* Stack email + button */
.kit-signup .formkit-form[data-uid="fb4af2168f"] .formkit-fields {
  display: flex !important;
  flex-direction: column !important;
  gap: 12px !important;
  margin: 0 !important;
  width: 100% !important;
}

/* Remove Kit margins */
.kit-signup .formkit-form[data-uid="fb4af2168f"] .formkit-field,
.kit-signup .formkit-form[data-uid="fb4af2168f"] .formkit-submit {
  width: 100% !important;
  margin: 0 !important;
  flex: none !important;
}

/* Email input */
.kit-signup .formkit-form[data-uid="fb4af2168f"] .formkit-input {
  width: 100% !important;
  padding: 13px 15px !important;

  background: #f3eee5 !important;
  color: #171313 !important;

  border: 1px solid #8f7770 !important;
  border-radius: 3px !important;

  font-family: inherit !important;
  font-size: 16px !important;
  line-height: 1.4 !important;

  box-shadow: none !important;
}

.kit-signup .formkit-form[data-uid="fb4af2168f"] .formkit-input:focus {
  border-color: #a4161a !important;
  outline: 1px solid #a4161a !important;
}

/* Subscribe button */
.kit-signup .formkit-form[data-uid="fb4af2168f"] button.formkit-submit {
  width: 100% !important;

  background: #a4161a !important;
  color: #ffffff !important;

  border: 1px solid #a4161a !important;
  border-radius: 3px !important;

  font-family: inherit !important;
  font-size: 15px !important;
  font-weight: 700 !important;

  cursor: pointer !important;
  box-shadow: none !important;
}

/* Kit puts the actual text inside a span */
.kit-signup .formkit-form[data-uid="fb4af2168f"] button.formkit-submit > span {
  background: transparent !important;
  color: #ffffff !important;
  padding: 12px 20px !important;
}

/* Hover */
.kit-signup .formkit-form[data-uid="fb4af2168f"] button.formkit-submit:hover,
.kit-signup .formkit-form[data-uid="fb4af2168f"] button.formkit-submit:focus {
  background: #c01c21 !important;
  border-color: #c01c21 !important;
}

/* Error/success messages */
.kit-signup .formkit-form[data-uid="fb4af2168f"] .formkit-alert {
  font-family: inherit !important;
  font-size: 14px !important;
  margin: 10px 0 !important;
}

/* Kit branding area */
.kit-signup
  .formkit-form[data-uid="fb4af2168f"]
  .formkit-powered-by-convertkit-container {
  margin: 12px 0 0 !important;
}
