/* ============================================================
   tlmadison.com — BERSERKER
   Palette: river-dark greens/blacks, bone parchment, blood red
   ============================================================ */

:root {
  --bg: #0c100e;
  --bg-raised: #121815;
  --ink: #d9d2c3;          /* bone/parchment */
  --ink-muted: #9a9382;
  --blood: #8b1e1e;
  --blood-bright: #b03a2e;
  --rule: #2a332e;
  --max: 1080px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: "EB Garamond", Georgia, serif;
  font-size: 1.125rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

h1, h2, .wordmark { font-family: "Cinzel", "EB Garamond", serif; }

a { color: var(--blood-bright); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---------- header ---------- */
.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.25rem 1.5rem;
}

.wordmark {
  font-weight: 700;
  letter-spacing: 0.28em;
  font-size: 0.95rem;
  color: var(--ink);
}
a.wordmark:hover { text-decoration: none; color: var(--blood-bright); }

.site-header nav { display: flex; gap: 1.75rem; align-items: center; }

.site-header nav a {
  color: var(--ink-muted);
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.site-header nav a:hover { color: var(--ink); text-decoration: none; }

.site-header .nav-buy {
  color: var(--ink);
  border: 1px solid var(--blood);
  padding: 0.4rem 1rem;
  border-radius: 2px;
}
.site-header .nav-buy:hover { background: var(--blood); }

/* ---------- hero ---------- */
.hero {
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  background:
    radial-gradient(ellipse 90% 70% at 70% 20%, #16201b 0%, transparent 60%),
    var(--bg);
}

.hero-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 5rem 1.5rem 4.5rem;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3.5rem;
  align-items: center;
}

.kicker {
  text-transform: uppercase;
  letter-spacing: 0.32em;
  font-size: 0.85rem;
  color: var(--ink-muted);
  margin-bottom: 1.25rem;
}

.hero h1 {
  font-size: clamp(3.2rem, 9vw, 5.8rem);
  font-weight: 900;
  letter-spacing: 0.06em;
  line-height: 1;
  color: var(--ink);
  text-shadow: 0 2px 30px rgba(139, 30, 30, 0.25);
}

.tagline {
  margin-top: 1.5rem;
  font-size: clamp(1.25rem, 2.6vw, 1.6rem);
  font-style: italic;
  color: var(--blood-bright);
}

.hero-blurb {
  margin-top: 1.25rem;
  max-width: 34rem;
  color: var(--ink-muted);
}

.cta-row {
  margin-top: 2.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.btn {
  display: inline-block;
  padding: 0.85rem 1.6rem;
  border-radius: 2px;
  font-size: 1rem;
  letter-spacing: 0.05em;
}
.btn:hover { text-decoration: none; }

.btn-primary {
  background: var(--blood);
  color: #f3ece0;
  border: 1px solid var(--blood);
}
.btn-primary:hover { background: var(--blood-bright); border-color: var(--blood-bright); }

.btn-ghost {
  color: var(--ink);
  border: 1px solid var(--rule);
}
.btn-ghost:hover { border-color: var(--ink-muted); }

.ku-note {
  margin-top: 0.9rem;
  font-size: 0.9rem;
  color: var(--ink-muted);
  font-style: italic;
}

.hero-cover img {
  width: 100%;
  max-width: 360px;
  display: block;
  margin: 0 auto;
  border-radius: 3px;
  box-shadow:
    0 30px 60px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(217, 210, 195, 0.08);
  transform: rotate(1.5deg);
  transition: transform 0.3s ease;
}
.hero-cover img:hover { transform: rotate(0deg) scale(1.02); }

/* ---------- sections ---------- */
.section-inner {
  max-width: 46rem;
  margin: 0 auto;
  padding: 4.5rem 1.5rem;
}

section h2 {
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 2rem;
}

section h2::after {
  content: "";
  display: block;
  width: 3.5rem;
  height: 2px;
  background: var(--blood);
  margin-top: 0.9rem;
}

.book p + p { margin-top: 1.2rem; }
.book .lede { font-size: 1.3rem; }

.book-facts {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1.5rem;
  border-top: 1px solid var(--rule);
  padding-top: 2rem;
}

.book-facts dt {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
  color: var(--ink-muted);
  margin-bottom: 0.3rem;
}

.book-facts dd { font-size: 1.05rem; }

/* ---------- quote band ---------- */
.quote-band {
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  background:
    radial-gradient(ellipse 80% 100% at 50% 100%, #171210 0%, transparent 70%),
    var(--bg-raised);
  padding: 5rem 1.5rem;
  text-align: center;
}

.quote-band blockquote {
  font-size: clamp(1.5rem, 3.5vw, 2.2rem);
  font-style: italic;
  line-height: 1.5;
  max-width: 40rem;
  margin: 0 auto;
  color: var(--ink);
}

.quote-turn { color: var(--blood-bright); }

/* ---------- author ---------- */
.author p + p { margin-top: 1.2rem; }
.author-follow { color: var(--ink-muted); }

/* ---------- footer ---------- */
.site-footer {
  border-top: 1px solid var(--rule);
  text-align: center;
  padding: 2.5rem 1.5rem;
  color: var(--ink-muted);
  font-size: 0.95rem;
}

.colophon {
  margin-top: 0.4rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-size: 0.75rem;
}

/* ---------- home hero ---------- */
.hero-inner-home {
  grid-template-columns: 1fr;
  text-align: center;
  padding: 6.5rem 1.5rem 6rem;
}
.hero-inner-home .hero-blurb,
.hero-inner-home .cta-row { margin-left: auto; margin-right: auto; }
.hero-inner-home .cta-row { justify-content: center; }

/* ---------- books grid ---------- */
.books {
  border-bottom: 1px solid var(--rule);
}

.books-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 4.5rem 1.5rem;
}

.book-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
}

.book-card {
  background: var(--bg-raised);
  border: 1px solid var(--rule);
  border-radius: 3px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.card-cover {
  display: block;
  aspect-ratio: 2 / 3;
  max-height: 460px;
  overflow: hidden;
  background: #0a0d0c;
}

.card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  display: block;
  transition: transform 0.35s ease;
}
.card-cover:hover img { transform: scale(1.03); }

/* placeholder "cover" for unreleased books */
.cover-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  border-bottom: 1px solid var(--rule);
  background:
    radial-gradient(ellipse 120% 60% at 50% 110%, #1a2320 0%, transparent 70%),
    linear-gradient(170deg, #101613 0%, #0a0d0c 100%);
  text-align: center;
  padding: 2rem;
}

.ph-raven { font-size: 2.2rem; filter: grayscale(1) brightness(1.6); opacity: 0.7; }

.ph-title {
  font-family: "Cinzel", serif;
  font-weight: 700;
  font-size: 2.2rem;
  letter-spacing: 0.12em;
  color: var(--ink);
}

.ph-series {
  font-style: italic;
  color: var(--ink-muted);
  font-size: 1.05rem;
}

.card-body { padding: 1.75rem 1.75rem 2rem; display: flex; flex-direction: column; gap: 0.7rem; flex: 1; }

.card-kicker {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.78rem;
  color: var(--ink-muted);
}

.coming-soon { color: var(--blood-bright); }

.book-card h3 {
  font-family: "Cinzel", serif;
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}
.book-card h3 a { color: var(--ink); }
.book-card h3 a:hover { color: var(--blood-bright); text-decoration: none; }

.card-series { color: var(--ink-muted); font-style: italic; margin-top: -0.4rem; }

.card-tagline { font-style: italic; color: var(--blood-bright); }

.card-desc { color: var(--ink-muted); font-size: 1.05rem; }

.card-cta { margin-top: auto; padding-top: 1rem; display: flex; gap: 0.8rem; flex-wrap: wrap; }

.btn-sm { padding: 0.6rem 1.2rem; font-size: 0.95rem; }

.btn-disabled {
  cursor: default;
  opacity: 0.55;
  border-style: dashed;
}
.btn-disabled:hover { border-color: var(--rule); }

/* ---------- author w/ photo ---------- */
.author-inner {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 2.5rem;
  align-items: start;
  max-width: 52rem;
}

.author-photo img {
  width: 100%;
  border-radius: 3px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(217, 210, 195, 0.08);
  filter: saturate(0.85);
}

/* ---------- focus styles (accessibility) ---------- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
.btn:focus-visible {
  outline: 2px solid var(--blood-bright);
  outline-offset: 2px;
}

/* ---------- prologue page ---------- */
.prologue-label {
  font-family: "Cinzel", serif;
  font-weight: 400;
  font-size: 1rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--blood-bright);
  margin: 1.4rem 0 0;
}
.prologue-label::after { content: none; }   /* drop the section-h2 underline for the title-block label */

.prologue-section { border-bottom: 1px solid var(--rule); }

.prologue-inner {
  max-width: 40rem;                 /* ~68-character reading measure */
  margin: 0 auto;
  padding: 4rem 1.5rem 4.5rem;
}

.framing {
  font-style: italic;
  color: var(--ink-muted);
  border-left: 2px solid var(--rule);
  padding-left: 1.25rem;
  margin-bottom: 2rem;
}

.soft-notify {
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  color: var(--ink-muted);
  margin-bottom: 2.5rem;
}

#prologue-text {
  font-size: 1.2rem;
  line-height: 1.9;
}
#prologue-text p + p { margin-top: 1.4rem; }
#prologue-text .placeholder-note {
  color: var(--ink-muted);
  font-style: italic;
}

/* ---------- email signup ---------- */
.signup {
  border-top: 1px solid var(--rule);
  background:
    radial-gradient(ellipse 80% 100% at 50% 0%, #171210 0%, transparent 70%),
    var(--bg-raised);
}
.signup-inner { max-width: 40rem; }

.signup-note { color: var(--ink-muted); margin-top: -1rem; margin-bottom: 1.75rem; }

.signup-label {
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
  color: var(--ink-muted);
  margin-bottom: 0.5rem;
}

.signup-row { display: flex; flex-wrap: wrap; gap: 0.8rem; }

.signup-row input[type="email"] {
  flex: 1 1 260px;
  background: var(--bg);
  border: 1px solid var(--rule);
  border-radius: 2px;
  color: var(--ink);
  font-family: inherit;
  font-size: 1rem;
  padding: 0.8rem 1rem;
}
.signup-row input[type="email"]::placeholder { color: var(--ink-muted); }
.signup-row input[type="email"]:focus { border-color: var(--blood); outline: none; }

.signup-form button { cursor: pointer; font-family: inherit; }

/* honeypot: kept out of view and off the tab order for humans, catches bots */
.hp-wrap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.footer-links { margin-top: 0.6rem; }

/* ---------- responsive ---------- */
@media (max-width: 760px) {
  .author-inner { grid-template-columns: 1fr; }
  .author-photo img { max-width: 200px; }

  .hero-inner {
    grid-template-columns: 1fr;
    padding: 3.5rem 1.5rem;
    gap: 3rem;
    text-align: center;
  }
  .hero-blurb { margin-left: auto; margin-right: auto; }
  .cta-row { justify-content: center; }
  .hero-cover { order: -1; }
  .hero-cover img { max-width: 260px; }
  .site-header nav a:not(.nav-buy) { display: none; }
}
