/* Palette pulled from the Core Dump cover: night indigo, title cyan, firelight amber. */
:root {
  --bg: #0d1024;
  --bg-alt: #141836;
  --surface: #1a1f44;
  --line: #2b3266;
  --text: #e8ebf7;
  --muted: #a9b0d4;
  --cyan: #4fefff;
  --amber: #ffb347;
  --amber-hover: #ffc56e;
  --ink: #1a1206;

  --font-display: "Chakra Petch", "Segoe UI", system-ui, sans-serif;
  --font-body: "Literata", Georgia, "Times New Roman", serif;

  --wrap: 1120px;
  --gutter: clamp(16px, 4vw, 32px);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--cyan); text-underline-offset: 3px; }
a:hover { color: #fff; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0.01em;
  margin: 0 0 0.5em;
}

p { margin: 0 0 1em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 760px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--amber); color: var(--ink); padding: 8px 14px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(13, 16, 36, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 8px 24px; flex-wrap: wrap;
  min-height: 64px; padding-top: 8px; padding-bottom: 8px;
}
.wordmark {
  font-family: var(--font-display);
  font-weight: 700; font-style: italic;
  font-size: 1.5rem; text-transform: uppercase; letter-spacing: 0.04em;
  color: var(--cyan); text-decoration: none;
}
.site-header ul { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 22px; margin: 0; padding: 0; }
.site-header nav a {
  font-family: var(--font-display); font-weight: 500;
  font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--text); text-decoration: none;
}
.site-header nav a:hover { color: var(--cyan); }

/* Buttons */
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.5em; }
.btn {
  display: inline-block;
  font-family: var(--font-display); font-weight: 700;
  font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.08em;
  padding: 12px 22px; border-radius: 4px; border: 2px solid transparent;
  text-decoration: none; cursor: pointer; line-height: 1.2;
}
.btn-primary { background: var(--amber); color: var(--ink); }
.btn-primary:hover { background: var(--amber-hover); color: var(--ink); }
.btn-ghost { border-color: var(--cyan); color: var(--cyan); background: transparent; }
.btn-ghost:hover { background: var(--cyan); color: var(--bg); }
.more-link {
  margin: 1.1em 0 0;
  font-family: var(--font-display); font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.9rem;
}

/* Hero */
.hero {
  position: relative;
  background:
    linear-gradient(90deg, rgba(13,16,36,0.25) 0%, rgba(13,16,36,0.6) 40%, rgba(13,16,36,0.9) 62%, rgba(13,16,36,0.95) 100%),
    linear-gradient(0deg, var(--bg) 0%, rgba(13,16,36,0) 30%),
    url("/img/hero-bg.webp") center 40% / cover no-repeat;
  padding: clamp(40px, 7vw, 96px) 0;
}
.hero-inner {
  display: grid; gap: clamp(28px, 5vw, 64px);
  grid-template-columns: minmax(0, 340px) minmax(0, 1fr);
  align-items: center;
}
.hero-cover img {
  border-radius: 4px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.6), 0 0 0 1px rgba(79,239,255,0.25), 0 0 48px rgba(79,239,255,0.15);
}
.badge {
  display: flex; align-items: center; gap: 12px;
  margin: 18px 0 0; padding: 10px 14px;
  background: rgba(13,16,36,0.85);
  border: 1px solid var(--amber); border-radius: 4px;
  font-family: var(--font-display); font-size: 0.85rem; line-height: 1.3;
  text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted);
}
.badge strong { color: var(--amber); font-weight: 700; font-size: 1rem; letter-spacing: 0.06em; }
.badge-star { color: var(--amber); font-size: 1.6rem; line-height: 1; }
.hero .badge { justify-content: center; }

.hero h1 {
  font-size: clamp(2.75rem, 7vw, 5rem);
  font-style: italic; text-transform: uppercase;
  color: var(--cyan);
  text-shadow: 0 0 24px rgba(79,239,255,0.25);
  margin-bottom: 0.15em;
}
.hero-text { max-width: 600px; }

.eyebrow {
  font-family: var(--font-display); font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.85rem;
  color: var(--muted); margin-bottom: 0.75em;
}
.tags {
  font-family: var(--font-display); font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.85rem;
  color: var(--cyan); margin-bottom: 1.25em;
}
.tags span { color: var(--muted); margin: 0 0.35em; }
.hook {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.2rem, 2.4vw, 1.45rem); line-height: 1.3;
  color: var(--amber);
}

/* Newsletter band */
.newsletter {
  background: linear-gradient(135deg, #1d2352 0%, #2a1d4a 100%);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: clamp(32px, 5vw, 48px) 0;
}
.newsletter-inner {
  display: grid; gap: 20px 48px; align-items: center;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
}
.newsletter h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); color: var(--cyan); text-transform: uppercase; }
.newsletter p { margin: 0; color: var(--muted); }
.signup { display: flex; flex-wrap: wrap; gap: 10px; }
.signup input {
  flex: 1 1 160px; min-width: 0;
  font: inherit; font-size: 1rem;
  padding: 11px 14px; border-radius: 4px;
  border: 1px solid var(--line); background: var(--bg); color: var(--text);
}
.signup input::placeholder { color: #7d84ad; }
.signup input:focus { border-color: var(--cyan); outline: none; box-shadow: 0 0 0 3px rgba(79,239,255,0.2); }
.signup .btn { flex: 0 0 auto; }
.signup .btn:disabled { opacity: 0.7; cursor: wait; }
.signup-status { flex: 1 1 100%; margin: 0; font-size: 0.95rem; }
.signup-status:empty { display: none; }
.signup-status.ok { color: var(--cyan); font-weight: 600; }
.signup-status.err { color: #ff8f8f; }

/* Sections */
.section { padding: clamp(56px, 8vw, 96px) 0; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-title {
  font-size: clamp(1.9rem, 4vw, 2.6rem); text-transform: uppercase; font-style: italic;
  color: var(--cyan); margin-bottom: 1em;
}
.section-title::after {
  content: ""; display: block; width: 64px; height: 3px; margin-top: 14px;
  background: linear-gradient(90deg, var(--amber), transparent);
}

/* Books */
.book {
  display: grid; gap: clamp(24px, 4vw, 48px);
  grid-template-columns: 260px minmax(0, 1fr);
  align-items: start;
  padding: clamp(28px, 4vw, 40px);
  background: var(--surface); border: 1px solid var(--line); border-radius: 6px;
}
.book + .book { margin-top: 32px; }
.book-cover { border-radius: 4px; box-shadow: 0 14px 36px rgba(0,0,0,0.5); }
.book h3 { font-size: clamp(1.8rem, 3.5vw, 2.4rem); text-transform: uppercase; font-style: italic; }
.book-body { max-width: 68ch; }
blockquote {
  margin: 1.5em 0; padding: 4px 0 4px 20px;
  border-left: 3px solid var(--amber);
  font-style: italic; color: var(--muted);
}
.credit { font-size: 0.9rem; color: var(--muted); margin: 1.5em 0 0; }

.links { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 12px; }
.links a {
  display: inline-block; padding: 10px 18px; border: 1px solid var(--line); border-radius: 4px;
  font-family: var(--font-display); font-weight: 500; text-transform: uppercase; letter-spacing: 0.08em;
  text-decoration: none; background: var(--surface);
}
.links a:hover { border-color: var(--cyan); }
.links a[href^="mailto:"] { text-transform: none; letter-spacing: 0.02em; }

.site-footer { padding: 32px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.9rem; }
.site-footer p { margin: 0; }

/* Narrow screens */
@media (max-width: 820px) {
  .site-header { position: static; }
  .header-inner { flex-direction: column; align-items: flex-start; gap: 4px; }
  .site-header ul { gap: 4px 16px; }
  .site-header nav a { font-size: 0.8rem; letter-spacing: 0.06em; }
  .hero {
    background:
      linear-gradient(0deg, var(--bg) 0%, rgba(13,16,36,0.85) 45%, rgba(13,16,36,0.55) 100%),
      url("/img/hero-bg.webp") 35% 40% / cover no-repeat;
  }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-cover { max-width: 260px; margin: 0 auto; }
  .hero-cover img { max-width: 180px; margin: 0 auto; }
  .book-side { max-width: 260px; }
  .newsletter-inner { grid-template-columns: 1fr; }
  .book { grid-template-columns: 1fr; }
  .book-cover { max-width: 220px; }
}
@media (max-width: 480px) {
  .signup .btn { flex: 1 1 100%; }
}

/* Standalone promo landing pages (e.g. /free-month/) */
.promo-page { min-height: 100vh; display: flex; flex-direction: column; }
.promo-page .promo {
  flex: 1; display: flex; align-items: center;
  background:
    linear-gradient(270deg, rgba(13,16,36,0.3) 0%, rgba(13,16,36,0.65) 35%, rgba(13,16,36,0.92) 60%, rgba(13,16,36,0.96) 100%),
    url("/img/hero-bg.webp") center 40% / cover no-repeat;
}
.promo-inner {
  display: grid; gap: clamp(32px, 6vw, 72px); width: 100%;
  grid-template-columns: minmax(0, 1fr) minmax(0, 300px);
  align-items: center;
}
.promo-text { max-width: 600px; }
.promo h1 {
  font-size: clamp(2.3rem, 5.5vw, 3.8rem);
  font-style: italic; text-transform: uppercase; color: var(--cyan);
  text-shadow: 0 0 24px rgba(79,239,255,0.25);
}
.promo-signup { margin-top: 1.75em; }
.fineprint { margin-top: 0.9em; font-size: 0.9rem; color: var(--muted); }
.promo-cover img {
  border-radius: 4px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.6), 0 0 0 1px rgba(79,239,255,0.25), 0 0 48px rgba(79,239,255,0.15);
}
.promo-cover .badge { justify-content: center; }
@media (max-width: 820px) {
  .promo-inner { grid-template-columns: 1fr; }
  .promo-cover { order: -1; max-width: 260px; margin: 0 auto; }
  .promo-cover img { max-width: 160px; margin: 0 auto; }
}
