:root {
  --black: #0a0a0a;
  --panel: #151515;
  --panel-2: #1c1c1c;
  --line: #2a2a2a;
  --white: #f4f4ef;
  --muted: #b5b5ad;
  --yellow: #f2e338;
  --red: #b3191d;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--black);
  color: var(--white);
  font-family: Inter, system-ui, sans-serif;
  line-height: 1.6;
}
a { color: var(--yellow); }
img { max-width: 100%; height: auto; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 760px; }

/* Header */
header.site {
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 10;
  background: rgba(10,10,10,.92);
  backdrop-filter: blur(8px);
}
.bar { display: flex; align-items: center; gap: 12px; padding: 12px 0; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--white); }
.brand img { width: 40px; height: 40px; border-radius: 50%; }
.brand span { font-family: Oswald, sans-serif; font-weight: 700; font-size: 1.25rem; letter-spacing: .04em; }
.bar nav { margin-left: auto; display: flex; align-items: center; gap: 18px; }
.bar nav a { color: var(--white); text-decoration: none; font-weight: 600; font-size: .95rem; }
.bar nav a:hover, .bar nav a[aria-current="page"] { color: var(--yellow); }
.bar nav a.cta { background: var(--yellow); color: var(--black); padding: 8px 14px; border-radius: 6px; }

/* Type */
h1, h2, h3 { font-family: Oswald, sans-serif; font-weight: 700; text-transform: uppercase; line-height: 1.12; }
.eyebrow { color: var(--yellow); font-weight: 600; letter-spacing: .1em; text-transform: uppercase; font-size: .82rem; margin: 0 0 10px; }
.rule { width: 110px; height: 5px; background: var(--red); border: 0; margin: 18px 0; }
.center { text-align: center; }
.center .rule { margin-left: auto; margin-right: auto; }
.muted { color: var(--muted); }

/* Hero */
.hero { padding: 64px 0 56px; }
.hero-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(2.3rem, 6vw, 4rem); margin: 0; }
.hero h1 em { color: var(--yellow); font-style: normal; }
.hero p.lead { color: var(--muted); font-size: 1.12rem; max-width: 560px; }
.hero-cover { position: relative; }
.hero-cover img { border-radius: 6px; box-shadow: 0 24px 60px rgba(0,0,0,.7); transform: rotate(2deg); }
.hero-cover .badge { position: absolute; top: -12px; left: -12px; z-index: 2; }

/* Buttons and badges */
.btn {
  display: inline-block; padding: 12px 20px; border-radius: 6px;
  font-weight: 600; text-decoration: none; border: 2px solid var(--yellow);
  font-size: 1rem; cursor: pointer; font-family: inherit;
}
.btn.primary { background: var(--yellow); color: var(--black); }
.btn.ghost { background: transparent; color: var(--yellow); }
.btn:hover { filter: brightness(1.1); }
.buy { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.badge {
  display: inline-block; background: var(--yellow); color: var(--black);
  font-weight: 700; font-size: .75rem; letter-spacing: .06em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 999px;
}
.badge.red { background: var(--red); color: var(--white); }

/* Signup form */
.signup { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; max-width: 560px; }
.signup input[type="email"], .signup input[type="text"] {
  flex: 1 1 200px; min-width: 0; padding: 13px 14px; border-radius: 6px;
  border: 1px solid #3a3a3a; background: #111; color: var(--white); font-size: 1rem; font-family: inherit;
}
.signup input:focus { outline: 2px solid var(--yellow); outline-offset: 1px; }
.signup .btn { flex: 0 0 auto; }
.fine { color: var(--muted); font-size: .85rem; margin-top: 10px; }
.hidden { position: absolute; left: -9999px; }
.center .signup { margin-left: auto; margin-right: auto; justify-content: center; }

/* Sections */
section.block { border-top: 1px solid var(--line); padding: 64px 0; }
section.block h2 { font-size: clamp(1.8rem, 4vw, 2.4rem); margin: 0; }

/* Series */
.series-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 32px; }
.series-card {
  background: var(--panel); border: 1px solid var(--line); border-radius: 10px;
  padding: 22px; display: flex; flex-direction: column; gap: 10px;
}
.series-card.on { border-color: #5a4a10; box-shadow: 0 0 0 1px rgba(242,227,56,.18); }
.series-card .num { font-family: Oswald, sans-serif; color: var(--yellow); font-size: .95rem; letter-spacing: .08em; }
.series-card h3 { margin: 0; font-size: 1.4rem; }
.series-card p { margin: 0; color: var(--muted); }
.series-card .mystery {
  height: 180px; border-radius: 6px; border: 2px dashed #3a3a3a;
  display: flex; align-items: center; justify-content: center;
  font-family: Oswald, sans-serif; font-size: 3.5rem; color: #3a3a3a;
}
.series-card img { border-radius: 4px; height: 180px; width: auto; object-fit: contain; align-self: flex-start; }

/* Books */
.books { display: grid; gap: 28px; margin-top: 32px; }
.book {
  display: grid; grid-template-columns: 200px 1fr; gap: 30px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 26px;
}
.book img { border-radius: 4px; box-shadow: 0 10px 30px rgba(0,0,0,.6); }
.book h3 { font-size: 1.7rem; margin: 0 0 4px; }
.sub { color: var(--yellow); font-weight: 600; margin: 0 0 14px; }
.book ul { padding-left: 20px; color: var(--muted); margin: 12px 0 0; }

/* Quote band */
.quote { background: var(--panel-2); }
.quote blockquote {
  margin: 0; font-family: Oswald, sans-serif; font-size: clamp(1.5rem, 3.6vw, 2.3rem);
  line-height: 1.25; text-transform: uppercase;
}
.quote blockquote em { color: var(--yellow); font-style: normal; }
.quote cite { display: block; margin-top: 14px; color: var(--muted); font-style: normal; }

/* Author page */
.author-hero { display: grid; grid-template-columns: 260px 1fr; gap: 40px; align-items: center; padding: 64px 0 40px; }
.author-hero img { border-radius: 50%; border: 4px solid var(--yellow); }
.author-hero h1 { font-size: clamp(2.4rem, 6vw, 3.6rem); margin: 0; }
.prose p { color: #d9d9d2; font-size: 1.08rem; }
.prose h2 { margin-top: 40px; font-size: 1.7rem; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 32px 0; }
.fact { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 18px; }
.fact b { display: block; font-family: Oswald, sans-serif; color: var(--yellow); text-transform: uppercase; letter-spacing: .05em; }
.fact span { color: var(--muted); font-size: .95rem; }

footer.site { border-top: 1px solid var(--line); padding: 28px 0; color: var(--muted); font-size: .9rem; }
footer.site .row { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; }
footer.site a { color: var(--muted); }

@media (max-width: 820px) {
  .hero-grid, .author-hero { grid-template-columns: 1fr; }
  .hero-cover { max-width: 260px; margin: 0 auto; }
  .author-hero img { max-width: 200px; }
  .series-grid, .facts { grid-template-columns: 1fr; }
  .book { grid-template-columns: 1fr; padding: 20px; }
  .book img { max-width: 220px; }
  .bar nav { gap: 12px; }
  .bar nav a:not(.cta) { font-size: .85rem; }
}
@media (max-width: 420px) {
  .bar nav a.hide-sm { display: none; }
}
