:root {
  --bg: #071116;
  --panel: #0d1b22;
  --text: #f3efe7;
  --muted: #a9b6ba;
  --accent: #d6a45d;
  --line: rgba(255,255,255,.11);
  --max: 1180px;
}
* { box-sizing: border-box; }
html { color-scheme: dark; }
body {
  margin: 0;
  background: radial-gradient(circle at 50% -10%, #17303c 0, var(--bg) 42rem);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}
a { color: inherit; text-decoration: none; }
a:hover { color: #fff; }
.site-header {
  border-bottom: 1px solid var(--line);
  background: rgba(7,17,22,.88);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 10;
}
.nav {
  width: min(calc(100% - 2rem), var(--max));
  margin: 0 auto;
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.brand { letter-spacing: .08em; font-weight: 650; }
.brand span { color: var(--accent); }
.nav-links { display: flex; gap: 1.25rem; color: var(--muted); font-size: .95rem; }
main { width: min(calc(100% - 2rem), var(--max)); margin: 0 auto; }
.hero { padding: 5rem 0 3rem; max-width: 780px; }
.eyebrow { color: var(--accent); text-transform: uppercase; letter-spacing: .18em; font-size: .76rem; font-weight: 700; }
h1, h2 { font-family: Georgia, "Times New Roman", serif; font-weight: 500; }
h1 { font-size: clamp(2.8rem, 7vw, 5.7rem); line-height: .98; margin: .35rem 0 1rem; }
.lede { color: var(--muted); font-size: clamp(1rem, 2vw, 1.18rem); max-width: 66ch; }
.grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 1.4rem; padding: 1rem 0 5rem; }
.book-card { display: block; }
.cover-wrap { border: 1px solid var(--line); background: #071014; box-shadow: 0 22px 55px rgba(0,0,0,.28); overflow: hidden; aspect-ratio: 2/3; }
.cover-wrap img { width: 100%; height: 100%; display: block; object-fit: cover; transition: transform .25s ease; }
.book-card:hover img { transform: scale(1.015); }
.book-meta { padding: .85rem .05rem 0; }
.book-number { color: var(--muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .14em; }
.book-title { margin: .1rem 0 0; font-family: Georgia, "Times New Roman", serif; font-size: 1.35rem; }
.book-page { display: grid; grid-template-columns: minmax(260px, 430px) minmax(0,1fr); gap: clamp(2rem, 6vw, 6rem); align-items: center; padding: 4rem 0 5rem; min-height: calc(100vh - 69px); }
.book-page .cover-wrap { width: 100%; }
.book-copy .series-order { color: var(--accent); text-transform: uppercase; letter-spacing: .15em; font-size: .8rem; font-weight: 700; }
.book-copy h1 { margin-top: .45rem; }
.book-copy p { color: var(--muted); max-width: 54ch; font-size: 1.04rem; }
.book-copy .book-byline { margin-bottom: 1.35rem; }
.book-copy .book-tagline { color: var(--text); font-family: Georgia, "Times New Roman", serif; font-size: 1.18rem; font-style: italic; margin: 0 0 1rem; }
.book-summary { max-width: 60ch; }
.book-summary p { margin: 0 0 1rem; line-height: 1.7; }
.book-nav { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: .75rem; }
.button { border: 1px solid var(--line); padding: .7rem 1rem; border-radius: 999px; color: var(--muted); }
.button:hover { border-color: rgba(255,255,255,.28); color: #fff; }
footer { border-top: 1px solid var(--line); color: var(--muted); }
footer .inner { width: min(calc(100% - 2rem), var(--max)); margin: 0 auto; padding: 2rem 0 3rem; font-size: .9rem; }
@media (max-width: 900px) { .grid { grid-template-columns: repeat(2, minmax(0,1fr)); } .book-page { grid-template-columns: 1fr; max-width: 650px; margin: 0 auto; } .book-page .cover-wrap { max-width: 430px; margin: 0 auto; } }
@media (max-width: 520px) { .grid { grid-template-columns: 1fr; } .nav-links { gap: .8rem; font-size: .85rem; } .hero { padding-top: 3rem; } }

/* Main Roscoe series page */
.series-intro {
  margin: 2rem 0 2.2rem;
  padding: 2rem 2rem 1.9rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(24, 40, 62, .72);
  width: 100%;
}
.series-intro h1 {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 750;
  font-size: clamp(2.35rem, 3.8vw, 3.65rem);
  line-height: 1.05;
  margin: .45rem 0 .85rem;
  max-width: 18ch;
}
.series-intro p {
  max-width: 96ch;
  color: #c2cce0;
  font-size: 1.05rem;
  margin: .35rem 0;
}
.series-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem;
  padding: 0 0 5rem;
}
.series-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: rgba(13, 27, 34, .8);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.series-card:hover,
.series-card:focus-visible {
  transform: translateY(-4px);
  border-color: rgba(93, 191, 255, .55);
  box-shadow: 0 18px 46px rgba(0,0,0,.32);
  color: inherit;
}
.series-card img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  display: block;
  background: #071014;
}
.series-card-copy {
  padding: 1rem 1rem 1.15rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.series-card-copy > span {
  color: #5dc0ff;
  font-size: .78rem;
  letter-spacing: .12em;
}
.series-card-copy h2 {
  margin: .2rem 0 .45rem;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
}
.series-card-copy p {
  color: #b8c4d6;
  font-size: .94rem;
  margin: 0 0 1rem;
}
.series-card-copy strong {
  color: #62c7ff;
  margin-top: auto;
  font-size: .9rem;
}
@media (max-width: 980px) { .series-grid { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 560px) { .series-grid { grid-template-columns: 1fr; } .series-intro { padding: 1.45rem 1.15rem; } }

/* 2026-10-05 series synchronization */
.cover-pending, .series-cover-placeholder {
  background: radial-gradient(circle at 50% 18%, #213c48 0, #0c1920 48%, #071014 100%);
  color: var(--text);
}
.cover-pending-inner, .series-cover-placeholder {
  min-height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 2rem 1.2rem;
}
.cover-pending-inner span, .series-cover-placeholder span { color: var(--accent); text-transform: uppercase; letter-spacing: .16em; font-size: .72rem; }
.cover-pending-inner strong, .series-cover-placeholder strong { font-family: Georgia, "Times New Roman", serif; font-size: clamp(2rem, 4vw, 3.7rem); font-weight: 500; margin: 1.25rem 0; }
.cover-pending-inner small, .series-cover-placeholder small { text-transform: uppercase; letter-spacing: .12em; color: #d5d9d8; }
.cover-pending-inner em, .series-cover-placeholder em { margin-top: 2.2rem; color: var(--muted); font-size: .76rem; font-style: normal; }
.series-cover-placeholder { aspect-ratio: 2/3; }
.edition-note { margin-top: 2.4rem; border-top: 1px solid var(--line); padding-top: 1.8rem; display: grid; grid-template-columns: 105px 1fr; gap: 1.35rem; align-items: start; }
.edition-cover img { width: 100%; display: block; border: 1px solid var(--line); box-shadow: 0 10px 28px rgba(0,0,0,.24); }
.edition-label { color: var(--accent); text-transform: uppercase; letter-spacing: .14em; font-size: .72rem; font-weight: 700; }
.edition-note h2 { font-size: 1.35rem; margin: .25rem 0 .7rem; }
.edition-note p { font-size: .95rem; }
.edition-links { margin-top: 1rem; }
@media (max-width: 520px) { .edition-note { grid-template-columns: 78px 1fr; } }
