/* The Devil's Ass Trilogy: series layer on amanda334.com /style.css.
   Reuses site variables (--abyss --deep --ink --dim --weed --glow) and serif stack. */
:root { --rule: rgba(95,143,125,0.25); --brim: #b86b4a; --brim-dim: rgba(184,107,74,0.35); }
.trilogy main { max-width: 40rem; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 1rem; background: var(--deep); padding: .4rem .8rem; z-index: 2; }
.trilogy header { margin-bottom: 2.5rem; }
.trilogy .series { margin: 0; font-size: .8rem; letter-spacing: .18em; text-transform: uppercase; text-align: center; }
.trilogy .series a { color: var(--weed); text-decoration: none; }
.story-title {
  font-size: clamp(1.5rem, 5.5vw, 2.4rem); letter-spacing: .08em; padding-left: .08em;
  line-height: 1.25; margin: .6rem 0 .5rem; text-wrap: balance; text-align: center;
  text-transform: none; font-weight: normal; color: var(--glow);
  text-shadow: 0 0 18px rgba(159,209,187,0.25);
}
.byline { font-style: italic; color: var(--dim); margin: 0; text-align: center; }
.story-meta { text-align: center; }

.content-note {
  border: 1px solid var(--brim-dim); border-left: 3px solid var(--brim);
  background: rgba(184,107,74,0.07); padding: .7rem 1rem; margin: 1.25rem 0 1.5rem;
  font-size: .95rem;
}
.content-note .lbl {
  color: #d9a890; letter-spacing: .12em; text-transform: uppercase;
  font-size: .72rem; margin-right: .5rem;
}

.intro .totals { text-align: center; }
.intro .tagline-inline { font-style: italic; color: var(--dim); text-align: center; }
.jump { text-align: center; }
.start { text-align: center; margin: 1rem 0 2rem; }

.book-card {
  margin: 2.5rem 0; padding-top: 1rem;
  border-top: 1px solid var(--rule);
}
.book-card h2 {
  font-weight: normal; font-size: 1.35rem; letter-spacing: .06em;
  text-transform: none; border: 0; margin: 0 0 .4rem; padding: 0; color: var(--glow);
}
.book-card h2 a { text-decoration: none; }
.book-card h2 em { font-style: italic; color: var(--ink); }
.book-card .meta { margin: 0 0 .75rem !important; }

.chapter-list { list-style: none; padding: 0; margin: 0; }
.chapter-list.compact li {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: .35rem .75rem;
  padding: .35rem 0; border-bottom: 1px solid rgba(95,143,125,0.12); font-size: .95rem;
}
.chapter-list.compact .num {
  color: var(--weed); font-variant-numeric: oldstyle-nums; min-width: 1.5rem;
}
.chapter-list.compact a { text-decoration: none; }
.chapter-list.compact a:hover, .chapter-list.compact a:focus { text-decoration: underline; }
.chapter-list.compact .meta { margin: 0 !important; font-size: .8rem; }

.stories.chapter-list .entry {
  display: grid; grid-template-columns: 2.5rem 1fr; gap: .75rem;
  padding: 1rem 0; border-bottom: 1px solid var(--rule);
}
.stories .num {
  color: var(--weed); font-size: 1.4rem; text-align: right; line-height: 1.5;
  font-variant-numeric: oldstyle-nums;
}
.stories h3 { font-weight: normal; font-size: 1.3rem; margin: 0; line-height: 1.35; }
.stories h3 a { text-decoration: none; }
.stories h3 a:hover, .stories h3 a:focus { text-decoration: underline; }
.stories .meta { margin: .15rem 0 0 !important; }

/* long-form prose — shared with Fearless reading layout */
.prose {
  margin-top: 2rem; font-size: 1.15rem; line-height: 1.8;
  hyphens: auto; -webkit-hyphens: auto; overflow-wrap: break-word;
  font-variant-numeric: oldstyle-nums;
}
.prose p { margin: 0 0 1.35rem; }
.prose > p:first-of-type::first-letter {
  float: left; font-size: 3.6em; line-height: .85; padding: .06em .1em 0 0; color: var(--glow);
}
.prose h2 { text-align: center; }
.prose h3 {
  font-weight: normal; font-style: italic; color: var(--glow);
  font-size: 1.2rem; margin: 2.5rem 0 1rem;
}
.prose hr { border: 0; text-align: center; margin: 2.5rem 0; height: auto; }
.prose hr::after { content: "\2042"; color: var(--weed); font-size: 1.3rem; letter-spacing: .5em; }
.prose blockquote {
  margin: 1.5rem 0; padding: 0 1.25rem; border-left: 2px solid var(--rule);
  color: var(--dim); font-style: italic;
}
.prose em { font-style: italic; }
.prose strong { font-weight: 600; }
.prose ul, .prose ol { margin: 0 0 1.35rem; padding-left: 1.4rem; }
.fin { text-align: center; color: var(--weed); font-size: 1.6rem; margin: 3rem 0 2rem; }

.prevnext {
  display: grid; grid-template-columns: 1fr auto 1fr; gap: 1rem; align-items: start;
  border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule);
  padding: 1.1rem 0; font-size: .95rem; line-height: 1.4; margin: 1.5rem 0;
}
.prevnext a { text-decoration: none; color: var(--glow); text-transform: none; letter-spacing: normal; font-size: 1rem; }
.prevnext a:hover .t, .prevnext a:focus .t { text-decoration: underline; }
.prevnext span:not(.t) {
  display: block; font-size: .72rem; color: var(--dim);
  letter-spacing: .14em; text-transform: uppercase; margin-bottom: .2rem;
}
.prevnext .next { text-align: right; }
.prevnext .up {
  align-self: center; font-size: .72rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--dim);
}
.prevnext .up:hover, .prevnext .up:focus { color: var(--glow); }

@media (max-width: 34rem) {
  .trilogy main { padding-top: 3rem; }
  .trilogy header nav { gap: 1.1rem; }
  .story-title { letter-spacing: .04em; padding-left: .04em; }
  .prose { font-size: 1.08rem; line-height: 1.75; }
  .prevnext { grid-template-columns: 1fr 1fr; }
  .prevnext .up { grid-column: 1 / -1; grid-row: 2; text-align: center; }
  .stories .entry { grid-template-columns: 1.8rem 1fr; gap: .6rem; }
  .stories .num { font-size: 1.15rem; }
  .stories h3 { font-size: 1.15rem; }
}
@media print {
  html, body { background: #fff; color: #000; }
  body::after, nav, .prevnext, footer, .skip { display: none; }
  .prose > p:first-of-type::first-letter, a { color: #000; }
}
