/* I.V. COX — dark romance author site
   Dark, venomous. Palette sampled from the logo artwork. */

:root {
  --ink:        #090b07;   /* page */
  --ink-2:      #11150d;   /* panels */
  --ink-3:      #1a2013;   /* raised panels */
  --bone:       #f2efe8;   /* text */
  --bone-dim:   rgba(242, 239, 232, 0.66);
  --bone-faint: rgba(242, 239, 232, 0.38);
  --moss:       #3b432c;
  --sage:       #61694f;
  --sage-light: #979c89;
  --venom:      #a6d94a;   /* the poison accent */
  --venom-deep: #6f9a24;
  --line:       rgba(166, 217, 74, 0.18);
  --line-soft:  rgba(242, 239, 232, 0.1);
  --max: 1180px;
  --display: "Playfair Display", Georgia, "Times New Roman", serif;
  --body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--bone);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--venom); }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* ---------- Header ---------- */

.site-header {
  /* The glow is painted as a background, not an overflowing pseudo-element,
     so the header never needs overflow:hidden — which used to clip the
     Books dropdown the moment it dropped past the header's edge. */
  background:
    radial-gradient(ellipse 70% 80% at 50% 38%, rgba(166, 217, 74, 0.17), transparent 64%),
    var(--ink);
  position: relative;
  z-index: 50;
  border-bottom: 1px solid var(--line);
}

.inner .brand img.logo-img { max-height: 150px; }
.inner .brand { padding-top: 14px; }

.brand {
  display: block;
  position: relative;
  z-index: 1;
  padding: 26px 20px 6px;
  text-decoration: none;
  max-width: 1240px;
  margin: 0 auto;
}

/* The mark is big on the home page and compact on every other page,
   so the page's own content is visible without scrolling. */
.brand img.logo-img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
  max-height: min(50vh, 460px);
  filter: drop-shadow(0 0 34px rgba(166, 217, 74, 0.2));
}

.brand .logotype {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2.4rem, 11vw, 6rem);
  letter-spacing: 0.1em;
  line-height: 1;
  margin: 0;
  text-align: center;
  color: var(--bone);
}

.brand .tagline {
  font-family: var(--display);
  font-style: italic;
  font-size: clamp(0.9rem, 2.2vw, 1.15rem);
  color: var(--sage-light);
  margin: 12px 0 0;
  text-align: center;
}

/* Tagline set as live text under the mark — always crisp. */
.brand-line {
  position: relative;
  z-index: 1;
  text-align: center;
  font-family: var(--body);
  font-size: clamp(0.64rem, 1.3vw, 0.8rem);
  letter-spacing: clamp(0.18em, 0.5vw, 0.38em);
  text-transform: uppercase;
  color: var(--sage-light);
  margin: 0 0 18px;
  padding: 0 20px;
}

/* ---------- Nav ---------- */

.site-nav { position: relative; z-index: 2; padding-bottom: 18px; }

.site-nav > ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: center;
  gap: 0;
}

.site-nav a {
  display: block;
  text-decoration: none;
  color: var(--bone);
  text-transform: uppercase;
  white-space: nowrap;
  font-size: clamp(0.78rem, 1.35vw, 0.98rem);
  letter-spacing: clamp(0.1em, 0.3vw, 0.2em);
  padding: 11px clamp(8px, 1.3vw, 20px);
  transition: color 0.15s ease, text-shadow 0.15s ease;
}

@media (max-width: 679px) {
  .site-nav > ul { flex-wrap: wrap; gap: 0 2px; }
  .site-nav a { font-size: 0.8rem; letter-spacing: 0.1em; padding: 9px 10px; }
}

.site-nav a:hover,
.site-nav a[aria-current="page"],
.site-nav .has-sub.is-open > a {
  color: var(--venom);
  text-shadow: 0 0 16px rgba(166, 217, 74, 0.5);
}

/* ---------- Books dropdown ---------- */

.has-sub { position: relative; }

.has-sub > a::after {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  margin-left: 8px;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
}

.subnav {
  list-style: none;
  margin: 0;
  padding: 8px 0;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  width: max-content;
  min-width: 215px;
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-top: 2px solid var(--venom);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.7), 0 0 30px rgba(166, 217, 74, 0.1);
  z-index: 60;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.14s ease, transform 0.14s ease;
}

.has-sub:hover > .subnav,
.has-sub:focus-within > .subnav,
.has-sub.is-open > .subnav {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.has-sub::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: 10px;
}

.subnav li { text-align: left; }

.subnav a {
  font-size: 0.8rem;
  letter-spacing: 0.13em;
  padding: 10px 24px;
  color: var(--bone-dim);
  white-space: nowrap;
}

.subnav a:hover { color: var(--venom); }

@media (max-width: 679px) {
  .subnav { min-width: 185px; }
  .subnav a { font-size: 0.76rem; padding: 9px 18px; }
}

/* ---------- Hero ---------- */

.hero {
  background: var(--ink);
  color: var(--bone);
  padding: 76px 0 84px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(111, 154, 36, 0.3), transparent 64%);
  pointer-events: none;
}

.hero .wrap { position: relative; z-index: 1; }

.eyebrow {
  font-size: 0.76rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--venom);
  margin: 0 0 18px;
  text-shadow: 0 0 20px rgba(166, 217, 74, 0.45);
}

.hero h1 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2.3rem, 9vw, 4.4rem);
  line-height: 1.05;
  margin: 0 0 20px;
}

.hero .hook {
  font-family: var(--display);
  font-style: italic;
  font-size: clamp(1.15rem, 4vw, 1.7rem);
  line-height: 1.45;
  max-width: 24ch;
  margin: 0 auto 10px;
  color: var(--bone);
}

.hero .sub {
  color: var(--bone-dim);
  max-width: 48ch;
  margin: 22px auto 32px;
  font-size: 1rem;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 2px;
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  font-weight: 600;
  border: 1px solid transparent;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--venom-deep);
  color: #0b1004;
  box-shadow: 0 0 24px rgba(166, 217, 74, 0.26);
}

.btn-primary:hover {
  background: var(--venom);
  box-shadow: 0 0 34px rgba(166, 217, 74, 0.5);
}

.btn-ghost { border-color: rgba(242, 239, 232, 0.4); color: var(--bone); }
.btn-ghost:hover { border-color: var(--venom); color: var(--venom); box-shadow: 0 0 22px rgba(166, 217, 74, 0.2); }

.btn-dark { border-color: var(--sage); color: var(--bone); }
.btn-dark:hover { border-color: var(--venom); color: var(--venom); box-shadow: 0 0 22px rgba(166, 217, 74, 0.2); }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

/* ---------- Sections ---------- */

section { padding: 68px 0; }

section.alt { background: var(--ink-2); }

section.dark {
  background: var(--ink-2);
  position: relative;
}

section.dark::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 100%, rgba(111, 154, 36, 0.14), transparent 60%);
  pointer-events: none;
}

section.dark .wrap { position: relative; z-index: 1; }

.section-head { text-align: center; max-width: 62ch; margin: 0 auto 44px; }

h2 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.8rem, 5.5vw, 2.7rem);
  line-height: 1.15;
  margin: 0 0 14px;
  color: var(--bone);
}

h3 {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.35rem;
  margin: 0 0 10px;
  line-height: 1.25;
  color: var(--bone);
}

.lede { font-size: 1.08rem; color: var(--bone-dim); margin: 0; }

.rule {
  width: 58px;
  height: 2px;
  background: var(--venom);
  border: 0;
  margin: 0 auto 22px;
  box-shadow: 0 0 16px rgba(166, 217, 74, 0.6);
}

/* ---------- Book cards ---------- */

.books { display: grid; gap: 34px; grid-template-columns: 1fr; }

@media (min-width: 700px) { .books { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .books.three { grid-template-columns: repeat(3, 1fr); } }

.book {
  background: var(--ink-2);
  border: 1px solid var(--line-soft);
  border-radius: 3px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.book:hover {
  border-color: var(--line);
  box-shadow: 0 0 34px rgba(166, 217, 74, 0.1);
}

section.alt .book { background: var(--ink-3); }

.book .cover {
  aspect-ratio: 2 / 3;
  background: linear-gradient(145deg, #1d2415, #0b0e07);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bone-faint);
  font-family: var(--display);
  font-style: italic;
  font-size: 0.9rem;
  text-align: center;
  padding: 20px;
}

.book .cover img { width: 100%; height: 100%; object-fit: cover; }

.book .body { padding: 22px; flex: 1; display: flex; flex-direction: column; }

.book .num {
  font-size: 0.7rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--venom);
  margin: 0 0 8px;
}

.book p { margin: 0 0 14px; font-size: 0.95rem; color: var(--bone-dim); }

.book .links { margin-top: auto; display: flex; flex-wrap: wrap; gap: 10px; }

.book .links a {
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  border-bottom: 1px solid var(--venom-deep);
  padding-bottom: 2px;
}

.book .links a:hover { border-bottom-color: var(--venom); text-shadow: 0 0 14px rgba(166, 217, 74, 0.4); }

.badge {
  display: inline-block;
  font-size: 0.66rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  background: var(--venom-deep);
  color: #0b1004;
  padding: 5px 11px;
  border-radius: 2px;
  margin-bottom: 12px;
  font-weight: 600;
}

.badge.soon {
  background: transparent;
  color: var(--sage-light);
  border: 1px solid var(--sage);
}

/* ---------- Reading order ---------- */

.order-list { list-style: none; margin: 0 auto; padding: 0; max-width: 680px; }

.order-list li {
  display: flex;
  gap: 22px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line-soft);
  align-items: baseline;
}

.order-list .step {
  font-family: var(--display);
  font-size: 1.7rem;
  color: var(--venom);
  min-width: 2.6ch;
  text-shadow: 0 0 18px rgba(166, 217, 74, 0.4);
}

.order-list h3 { margin-bottom: 4px; }
.order-list p { margin: 0; color: var(--bone-dim); font-size: 0.95rem; }

/* ---------- Languages ---------- */

.langs { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }

.lang {
  border: 1px solid var(--line-soft);
  border-radius: 3px;
  padding: 20px;
  transition: border-color 0.2s ease;
}

.lang:hover { border-color: var(--line); }

.lang h3 { font-size: 1.1rem; margin-bottom: 6px; }
.lang p { margin: 0 0 12px; font-size: 0.88rem; color: var(--bone-dim); }
.lang a { font-size: 0.76rem; letter-spacing: 0.14em; text-transform: uppercase; text-decoration: none; border-bottom: 1px solid var(--venom-deep); }

/* ---------- Signup ---------- */

.signup-card {
  max-width: 650px;
  margin: 0 auto;
  background: var(--ink-3);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 40px 28px;
  text-align: center;
  box-shadow: 0 0 60px rgba(166, 217, 74, 0.07);
}

.embed-slot {
  border: 1px dashed var(--line);
  border-radius: 3px;
  padding: 30px 20px;
  color: var(--bone-faint);
  font-size: 0.9rem;
}

/* ---------- Prose ---------- */

.prose { max-width: 70ch; margin: 0 auto; }
.prose p { margin: 0 0 20px; color: var(--bone-dim); }
.prose strong { color: var(--bone); }

.prose p.first::first-letter {
  font-family: var(--display);
  font-size: 3.4rem;
  float: left;
  line-height: 0.82;
  padding: 6px 10px 0 0;
  color: var(--venom);
  text-shadow: 0 0 22px rgba(166, 217, 74, 0.35);
}

.prose ul { color: var(--bone-dim); }

.pull {
  font-family: var(--display);
  font-style: italic;
  font-size: 1.45rem;
  line-height: 1.45;
  color: var(--venom);
  border-left: 2px solid var(--venom-deep);
  padding-left: 24px;
  margin: 34px 0;
}

/* ---------- Note box ---------- */

.note {
  border: 1px solid var(--line-soft);
  border-left: 3px solid var(--venom-deep);
  background: var(--ink-2);
  padding: 22px 24px;
  border-radius: 2px;
  font-size: 0.95rem;
  max-width: 70ch;
  margin: 0 auto;
  color: var(--bone-dim);
}

.note strong { display: block; margin-bottom: 6px; color: var(--bone); letter-spacing: 0.04em; }

/* ---------- Family tree ---------- */

.houses { display: grid; gap: 22px; grid-template-columns: 1fr; }

@media (min-width: 640px) { .houses { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .houses { grid-template-columns: repeat(4, 1fr); } }

.house {
  border: 1px solid var(--line-soft);
  border-top: 2px solid var(--venom-deep);
  border-radius: 3px;
  padding: 22px 20px;
  background: var(--ink-3);
}

.house.enemy { border-top-color: var(--sage); }

.house .origin {
  font-size: 0.68rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--venom);
  margin: 0 0 8px;
}

.house h3 { font-size: 1.25rem; margin-bottom: 14px; }
.house ul { list-style: none; margin: 0; padding: 0; }

.house li {
  padding: 9px 0;
  border-top: 1px solid var(--line-soft);
  font-size: 0.9rem;
  color: var(--bone-dim);
}

.house li:first-child { border-top: 0; }

.house .role {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--bone-faint);
  margin-top: 3px;
}

.couple {
  display: inline-block;
  font-family: var(--display);
  font-style: italic;
  color: var(--bone);
  margin-top: 14px;
}

.couple .amp { color: var(--venom); font-style: normal; padding: 0 5px; }

/* ---------- Page head ---------- */

.page-head {
  background: var(--ink);
  color: var(--bone);
  text-align: center;
  padding: 62px 0;
  position: relative;
  overflow: hidden;
}

.page-head::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(111, 154, 36, 0.22), transparent 62%);
  pointer-events: none;
}

.page-head h1 {
  font-family: var(--display);
  font-size: clamp(2rem, 7vw, 3.2rem);
  margin: 0 0 12px;
  position: relative;
  z-index: 1;
}

.page-head p {
  color: var(--bone-dim);
  max-width: 56ch;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--ink-2);
  color: var(--bone-dim);
  padding: 54px 0 44px;
  text-align: center;
  font-size: 0.86rem;
  border-top: 1px solid var(--line);
}

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

.foot-label {
  font-size: 0.64rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--bone-faint);
  margin: 0 0 14px;
}

.social + .foot-label { margin-top: 32px; }

.social {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
  flex-wrap: wrap;
}

.social.stores a { border-bottom-color: var(--venom); }

.social a {
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--venom-deep);
  padding-bottom: 3px;
}

.footer-links {
  margin: 30px 0 22px;
  padding: 0;
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 0.8rem;
}

.fineprint { color: var(--bone-faint); font-size: 0.78rem; margin: 0; }

/* ---------- Utilities ---------- */

.center { text-align: center; }
.mt-32 { margin-top: 32px; }

.todo {
  background: rgba(166, 217, 74, 0.14);
  border: 1px dashed var(--venom-deep);
  color: var(--venom);
  padding: 3px 8px;
  border-radius: 2px;
  font-size: 0.8rem;
}

/* ---------- Third level: languages, flying out to the side ---------- */

.has-sub2 { position: relative; }

.has-sub2 > a::after {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  margin-left: 10px;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: translateY(-1px) rotate(-45deg);
}

.subnav-2 {
  top: 0;
  left: 100%;
  transform: translateX(0) translateY(-4px);
  min-width: 180px;
  margin-left: 1px;
}

.has-sub2:hover > .subnav-2,
.has-sub2:focus-within > .subnav-2,
.has-sub2.is-open > .subnav-2 {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(0) translateY(0);
}

/* bridge across the 1px gap */
.has-sub2::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 100%;
  width: 8px;
}

@media (max-width: 679px) {
  /* no room to fly out sideways — nest it underneath instead */
  .subnav-2 {
    position: static;
    transform: none;
    border: 0;
    border-left: 1px solid var(--line);
    box-shadow: none;
    min-width: 0;
    margin: 0 0 0 18px;
    padding: 0;
    background: transparent;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
  .subnav-2 a { font-size: 0.72rem; padding: 7px 16px; }
  .has-sub2 > a::after { transform: translateY(-2px) rotate(45deg); }
}

/* ---------- Content warnings: one folded card per book ---------- */
.cw-head .cw-eyebrow, .ft-head .cw-eyebrow { font-size: 0.72rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--venom); margin: 0 auto 10px; text-shadow: 0 0 14px rgba(166, 217, 74, 0.45); }
.cw-head h1 { font-style: italic; }
.cw-wrap { max-width: 860px; }
.cw-intro { color: var(--bone-dim); text-align: center; max-width: 56ch; margin: 0 auto 18px; }
.cw-tools { text-align: right; margin: 0 0 12px; }
.cw-all { font: 600 0.72rem/1 var(--body); letter-spacing: 0.16em; text-transform: uppercase; color: var(--venom); background: none; border: 1px solid var(--line); border-radius: 999px; padding: 10px 16px; min-height: 40px; cursor: pointer; }
.cw-all:hover, .cw-all:focus-visible { border-color: var(--venom); box-shadow: 0 0 16px rgba(166, 217, 74, 0.25); outline: none; }

.cw { border: 1px solid var(--line-soft); background: linear-gradient(180deg, var(--ink-2), var(--ink)); border-radius: 6px; margin: 0 0 14px; transition: border-color .25s, box-shadow .25s; }
.cw:hover, .cw[open] { border-color: var(--line); }
.cw[open] { box-shadow: 0 0 40px -12px rgba(166, 217, 74, 0.35); }
.cw summary { cursor: pointer; list-style: none; display: flex; align-items: center; gap: 18px; padding: 14px 18px; }
.cw summary::-webkit-details-marker { display: none; }
.cw summary:focus-visible { outline: 1px solid var(--venom); outline-offset: -1px; }
.cw-thumb { flex: none; width: 52px; }
.cw-thumb img { width: 52px; height: auto; border-radius: 2px; box-shadow: 0 6px 18px rgba(0, 0, 0, .6); }
.cw-spine { display: flex; align-items: center; justify-content: center; width: 52px; height: 83px; border: 1px solid var(--line); border-radius: 2px; background: var(--ink-3); font: italic 0.62rem/1.15 var(--display); color: var(--bone-dim); text-align: center; padding: 4px; }
.cw-name { display: flex; flex-direction: column; min-width: 0; }
.cw-num { font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--sage-light); }
.cw-title { font-family: var(--display); font-size: 1.3rem; line-height: 1.2; color: var(--bone); transition: color .2s; }
.cw summary:hover .cw-title, .cw[open] .cw-title { color: var(--venom); }
.cw-couple { font-size: 0.85rem; color: var(--bone-faint); font-style: italic; }
.cw-count { margin-left: auto; flex: none; font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--venom); border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; white-space: nowrap; }
.cw-count::after { content: " +"; }
.cw[open] .cw-count::after { content: " \2212"; }

.cw-body { padding: 4px 24px 22px; border-top: 1px solid var(--line-soft); }
.cw-note { margin: 16px 0 0; display: inline-block; font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink); background: var(--venom); padding: 4px 10px; border-radius: 2px; }
.cw-voice { margin: 18px 0; padding: 0 0 0 16px; border-left: 2px solid var(--venom); font: italic 1.08rem/1.5 var(--display); color: var(--bone); }
.cw-mid { color: var(--bone-dim); font-size: 1rem; margin-top: 26px; }
.cw-body h3 { font: 600 0.74rem/1.3 var(--body); letter-spacing: 0.16em; text-transform: uppercase; color: var(--venom); margin: 22px 0 10px; }
.cw-list { list-style: none; margin: 0; padding: 0; columns: 2 300px; column-gap: 32px; }
.cw-list li { break-inside: avoid; position: relative; padding: 0 0 8px 20px; color: var(--bone-dim); font-size: 0.95rem; line-height: 1.45; }
.cw-list li::before { content: ""; position: absolute; left: 2px; top: 0.5em; width: 7px; height: 7px; background: var(--venom); border-radius: 0 50% 50% 50%; transform: rotate(45deg); box-shadow: 0 0 8px rgba(166, 217, 74, 0.6); }
.cw-list li.joke { color: var(--venom); font-style: italic; }
.cw-end { margin: 22px 0 0; text-align: center; font: italic 1rem/1.6 var(--display); color: var(--bone-dim); }
.cw-ask { text-align: center; color: var(--bone-dim); margin: 36px auto 8px; max-width: 56ch; }
.cw-sign { text-align: center; font: italic 1.1rem var(--display); color: var(--venom); text-shadow: 0 0 18px rgba(166, 217, 74, 0.35); margin: 0 0 20px; }

@media (max-width: 600px) {
  .cw summary { gap: 12px; padding: 12px; flex-wrap: wrap; }
  .cw-thumb, .cw-thumb img { width: 42px; }
  .cw-spine { width: 42px; height: 67px; font-size: 0.5rem; }
  .cw-name { flex: 1 1 calc(100% - 60px); }
  .cw-count { margin-left: 54px; padding: 4px 10px; font-size: 0.64rem; }
  .cw-body { padding: 4px 16px 18px; }
}
@media (prefers-reduced-motion: reduce) { .cw, .cw-title { transition: none; } }
.cw-section { padding-top: 28px; }

/* ---------- The Families: ivy trees ---------- */
.ft-head h1 { font-style: italic; }
.ft-section { padding-top: 28px; }
.ft-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin: 0 0 6px; }
.ft-legend { margin: 0; font-size: 0.8rem; color: var(--bone-dim); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ft-legend span { display: inline-block; width: 26px; height: 2px; background: var(--venom-deep); margin-left: 10px; }
.ft-legend span:first-child { margin-left: 0; }
.ft-legend .lg-twist { height: 6px; background: none; border-top: 2px solid var(--venom-deep); border-bottom: 2px solid var(--venom-deep); border-radius: 50%; }
.ft-legend .lg-secret { background: none; border-top: 2px dashed var(--venom); box-shadow: 0 0 8px rgba(166, 217, 74, .6); }
.ft-toggle { font: 600 0.74rem/1 var(--body); letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink); background: var(--venom); border: 0; border-radius: 999px; padding: 12px 20px; min-height: 44px; cursor: pointer; box-shadow: 0 0 22px rgba(166, 217, 74, .35); }
.ft-toggle:hover, .ft-toggle:focus-visible { box-shadow: 0 0 30px rgba(166, 217, 74, .6); outline: none; }
.ft-toggle[aria-pressed="true"] { background: none; color: var(--venom); border: 1px solid var(--venom); }
.ft-warn { font-size: 0.78rem; color: var(--sage-light); text-align: right; margin: 0 0 18px; }
.ft-jump { display: flex; flex-wrap: wrap; gap: 8px 18px; justify-content: center; margin: 10px 0 34px; font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; }
.ft-jump a { color: var(--bone-dim); text-decoration: none; border-bottom: 1px solid var(--line); padding-bottom: 2px; }
.ft-jump a:hover { color: var(--venom); }

.family { margin: 0 0 54px; border-top: 1px solid var(--line); padding-top: 26px; }
.family header { text-align: center; margin-bottom: 10px; }
.family .origin { font-size: 0.7rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--venom); margin: 0 0 6px; }
.family h2 { font-family: var(--display); font-size: clamp(1.6rem, 4vw, 2.3rem); margin: 0 0 8px; }
.family .fline { color: var(--bone-dim); max-width: 60ch; margin: 0 auto; font-size: 0.95rem; }
.tree-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: 6px; }
.tree-svg { display: block; width: 100%; height: auto; margin: 0 auto; }

.tree-svg .vine { fill: none; stroke: var(--venom-deep); stroke-width: 2; stroke-linecap: round; opacity: .85; }
.tree-svg .vine.thin { stroke-width: 1.4; stroke-dasharray: 2 5; }
.tree-svg .leaf { fill: var(--venom-deep); opacity: .9; }
.tree-svg .vlabel { font: italic 13px var(--display); fill: var(--sage-light); }
.tree-svg .vlabel.mid { text-anchor: middle; }
.tree-svg .node rect { fill: var(--ink-2); stroke: rgba(166, 217, 74, .35); stroke-width: 1; }
.tree-svg .node.in rect { fill: var(--ink); stroke: var(--line-soft); stroke-dasharray: 3 3; }
.tree-svg .nm { font: 17px var(--display); fill: var(--bone); text-anchor: middle; }
.tree-svg .node.in .nm { fill: var(--bone-dim); }
.tree-svg .sb { font: 10.5px var(--body); fill: var(--sage-light); text-anchor: middle; letter-spacing: .02em; }
.tree-svg .tag { font: 600 9px var(--body); fill: var(--sage); text-anchor: end; letter-spacing: .14em; text-transform: uppercase; }
.tree-svg .skull circle, .tree-svg .skull rect { fill: var(--bone-dim); }
.tree-svg .skull .eye { fill: var(--ink); }

/* Secrets: hidden until the reader asks */
.tree-svg .secret, .tree-svg .sec { display: none; }
.show-secrets .tree-svg .secret { display: inline; }
.show-secrets .tree-svg .pub { display: none; }
.show-secrets .tree-svg .sec { display: inline; fill: var(--venom); }
.show-secrets .tree-svg .vine.secret { stroke: var(--venom); stroke-dasharray: 6 5; filter: drop-shadow(0 0 4px rgba(166, 217, 74, .8)); opacity: 1; }
.show-secrets .tree-svg .leaf.secret { fill: var(--venom); }
.show-secrets .tree-svg .vlabel.secret { fill: var(--venom); }
.show-secrets .tree-svg .node.secret rect { stroke: var(--venom); stroke-dasharray: none; filter: drop-shadow(0 0 6px rgba(166, 217, 74, .5)); }
.show-secrets .tree-svg .skull.secret circle, .show-secrets .tree-svg .skull.secret rect { fill: var(--venom); }
.show-secrets .tree-svg .skull.secret .eye { fill: var(--ink); }

@media (max-width: 600px) {
  .ft-bar { justify-content: center; }
  .ft-warn { text-align: center; }
  .tree-scroll::after { content: "Swipe to see the whole tree"; display: block; text-align: center; font-size: 0.7rem; color: var(--sage); margin-top: 4px; }
}

/* ---------- Trope tags under each book ---------- */
.tropes { list-style: none; margin: 12px 0 14px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.tropes li { font-size: 0.72rem; letter-spacing: 0.04em; color: var(--venom); border: 1px solid var(--line); border-radius: 999px; padding: 4px 10px; line-height: 1.3; background: rgba(166, 217, 74, 0.04); }

/* ---------- Home: one featured book ---------- */
.feature { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: 44px; align-items: center; max-width: 980px; margin-left: auto; margin-right: auto; }
.feature-cover img { width: 100%; height: auto; display: block; border-radius: 3px; box-shadow: 0 24px 60px rgba(0, 0, 0, .7), 0 0 50px -10px rgba(166, 217, 74, .35); }
.feature-body .num { font-size: 0.72rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--venom); margin: 0 0 10px; }
.feature-body h3 { font-family: var(--display); font-size: clamp(1.8rem, 4vw, 2.6rem); line-height: 1.1; margin: 0 0 14px; }
.feature-body p { color: var(--bone-dim); }
.feature-cta { margin: 22px 0 8px; }
.feature-body .small a { font-size: 0.8rem; color: var(--sage-light); }
@media (max-width: 760px) {
  .feature { grid-template-columns: 1fr; gap: 26px; text-align: center; }
  .feature-cover { max-width: 260px; margin: 0 auto; }
  .feature-body .tropes { justify-content: center; }
}

/* ---------- Books: covers only ---------- */
.books-only { padding-top: 10px; }
.series-title { text-align: center; font-family: var(--display); font-size: clamp(1.5rem, 3.5vw, 2.1rem); margin: 0 0 30px; }
.cover-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 28px; max-width: 900px; margin: 0 auto; }
.cover-link { display: block; border-radius: 3px; transition: transform .25s, box-shadow .25s; }
.cover-link img { display: block; width: 100%; height: auto; border-radius: 3px; box-shadow: 0 14px 34px rgba(0, 0, 0, .65); }
.cover-link:hover, .cover-link:focus-visible { transform: translateY(-4px); box-shadow: 0 0 34px -6px rgba(166, 217, 74, .55); outline: none; }
@media (max-width: 600px) { .cover-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; } }

/* ---------- One book ---------- */
.book-page { padding-top: 40px; }
.book-grid { display: grid; grid-template-columns: minmax(0, 360px) minmax(0, 1fr); gap: 52px; align-items: start; max-width: 1100px; }
.b-cover { position: sticky; top: 24px; }
.b-cover img { display: block; width: 100%; height: auto; border-radius: 3px; box-shadow: 0 24px 60px rgba(0, 0, 0, .7), 0 0 50px -10px rgba(166, 217, 74, .35); }
.b-num { font-size: 0.72rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--venom); margin: 0 0 10px; }
.b-text h1 { font-family: var(--display); font-size: clamp(2rem, 5vw, 3.1rem); line-height: 1.05; margin: 0 0 8px; }
.b-status { display: inline-block; font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--bone-dim); border: 1px solid var(--line); padding: 5px 12px; margin: 4px 0 26px; }
.b-quote { margin: 0 0 18px; padding: 0 0 0 18px; border-left: 2px solid var(--venom); }
.b-quote p { font: italic 1.25rem/1.45 var(--display); color: var(--bone); margin: 0 0 6px; }
.b-quote cite { font-style: normal; font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--sage-light); }
.b-tagline { color: var(--venom); font-style: italic; margin: 0 0 24px; }
.b-blurb p { color: var(--bone-dim); margin: 0 0 10px; line-height: 1.65; }
.b-pov { font: 600 0.8rem/1 var(--body); letter-spacing: 0.24em; color: var(--venom); margin: 28px 0 12px; text-shadow: 0 0 12px rgba(166, 217, 74, .4); }
.b-note { font-size: 0.9rem; color: var(--sage-light); border-top: 1px solid var(--line-soft); padding-top: 16px; margin-top: 24px; }
.b-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin: 26px 0 30px; }
.b-actions a:not(.btn) { color: var(--sage-light); font-size: 0.85rem; }
.b-h { font: 600 0.74rem/1.3 var(--body); letter-spacing: 0.2em; text-transform: uppercase; color: var(--venom); margin: 0 0 12px; }
.b-soon { color: var(--bone-dim); font-style: italic; }
.series-strip { border-top: 1px solid var(--line-soft); }
.strip { display: flex; gap: 18px; overflow-x: auto; padding: 8px 2px 14px; justify-content: center; }
.strip a { flex: none; width: 120px; text-align: center; text-decoration: none; color: var(--bone-dim); font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; }
.strip img { display: block; width: 120px; height: auto; border-radius: 2px; margin-bottom: 8px; opacity: .75; transition: opacity .2s, transform .2s; }
.strip a:hover img, .strip a.here img { opacity: 1; transform: translateY(-3px); }
.strip a.here span { color: var(--venom); }
@media (max-width: 760px) {
  .book-grid { grid-template-columns: 1fr; gap: 28px; }
  .b-cover { position: static; max-width: 260px; margin: 0 auto; }
  .strip { justify-content: flex-start; }
  .strip a, .strip img { width: 96px; }
}
.feature-cover { display: block; }
.feature-body .b-quote p { font-size: 1.15rem; }

/* About: author photo, mostly hidden, as on Amazon */
.author-photo { display:block; width:220px; height:220px; border-radius:50%; object-fit:cover; margin:40px auto 28px; border:1px solid rgba(255,255,255,.12); }
@media (max-width:600px){ .author-photo{ width:170px; height:170px; } }

/* ---------- MailerLite sign-up forms (styled to the site) ---------- */
.ml-site-form { max-width: 440px; margin: 0 auto; text-align: left; }
.ml-site-form .ml-form-fieldRow { margin-bottom: 16px; }
.ml-site-form .ml-label { display:block; font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--sage-light); margin-bottom: 6px; }
.ml-site-form input.form-control {
  width: 100%; box-sizing: border-box; padding: 13px 14px; font: inherit; font-size: 1rem;
  background: var(--ink); color: var(--bone); border: 1px solid var(--line-soft); border-radius: 3px; outline: none;
}
.ml-site-form input.form-control::placeholder { color: var(--bone-faint); }
.ml-site-form input.form-control:focus { border-color: var(--venom); box-shadow: 0 0 0 3px rgba(166,217,74,.15); }
.ml-site-form .ml-error input.form-control { border-color: #d9534f; }
.ml-site-form .ml-form-recaptcha { margin: 6px 0 18px; min-height: 78px; }
.ml-site-form .ml-form-recaptcha.ml-error iframe { outline: 1px solid #d9534f; }
.ml-site-form .ml-form-embedSubmit button { width: 100%; }
.ml-site-form .ml-note { margin: 14px 0 0; font-size: .8rem; color: var(--bone-faint); text-align: center; }
.ml-site-form .ml-note a { color: var(--sage-light); }
.ml-site-form .ml-form-successContent { text-align: center; padding: 10px 0; }
.ml-site-form .ml-form-successContent h3 { color: var(--venom); margin: 0 0 8px; }
.ml-site-form .ml-form-successContent p { color: var(--bone-dim); margin: 0; }
@media (max-width: 400px){ .ml-site-form .g-recaptcha { transform: scale(.86); transform-origin: 0 0; } }
