:root {
  --bg: #060C18;
  --text: #EAF2FA;
  --muted: #8FA3B8;
  --line: #16253A;
  --line-strong: #3A5068;
  --cyan: #3DB4F2;
  --gold: #D2C14A;
  --red: #D2605A;
  --ink: #04101C;
  --font: 'Jost', 'Futura', 'Century Gothic', sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background-color: var(--bg);
  background-image:
    radial-gradient(60% 40% at 82% 8%, rgba(61,180,242,0.16), rgba(6,12,24,0) 70%),
    radial-gradient(50% 30% at 8% 92%, rgba(176,70,63,0.10), rgba(6,12,24,0) 70%),
    radial-gradient(1px 1px at 12% 18%, rgba(234,242,250,0.55), rgba(0,0,0,0)),
    radial-gradient(1px 1px at 38% 62%, rgba(234,242,250,0.35), rgba(0,0,0,0)),
    radial-gradient(1.5px 1.5px at 71% 34%, rgba(234,242,250,0.5), rgba(0,0,0,0)),
    radial-gradient(1px 1px at 88% 78%, rgba(234,242,250,0.4), rgba(0,0,0,0)),
    radial-gradient(1px 1px at 55% 90%, rgba(234,242,250,0.3), rgba(0,0,0,0));
  background-size: 100% 100%, 100% 100%, 520px 520px, 520px 520px, 520px 520px, 520px 520px, 520px 520px;
  background-repeat: no-repeat, no-repeat, repeat, repeat, repeat, repeat, repeat;
  background-attachment: scroll;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--text); text-decoration: none; }
a:hover { color: var(--cyan); }

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

.wrap {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 48px;
  padding-right: 48px;
}

/* Header */
.site-header {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
  align-items: center;
  padding-top: 40px;
  padding-bottom: 40px;
}
.wordmark {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.32em;
}
.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  font-size: 13px;
  letter-spacing: 0.22em;
}
.site-nav a { padding-bottom: 6px; border-bottom: 1px solid transparent; }
.site-nav a:hover { border-bottom-color: var(--cyan); }

/* Hero */
.hero {
  display: flex;
  flex-wrap: wrap;
  gap: 80px;
  align-items: center;
  justify-content: space-between;
  padding-top: 96px;
  padding-bottom: 176px;
}
.hero-text {
  flex: 1 1 460px;
  display: flex;
  flex-direction: column;
  gap: 56px;
}
.hero-copy { display: flex; flex-direction: column; gap: 28px; }
.eyebrow { display: flex; align-items: center; gap: 20px; }
.eyebrow .bar { display: block; width: 48px; height: 1px; background: var(--cyan); }
.eyebrow span:last-child {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.32em;
  color: var(--cyan);
}
.pre-headline {
  margin: 0;
  font-size: 18px;
  font-weight: 300;
  letter-spacing: 0.24em;
  line-height: 1.6;
  color: var(--muted);
}
h1 {
  margin: 0;
  font-size: 80px;
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: 0.01em;
  color: var(--cyan);
  text-shadow: 0 0 60px rgba(61,180,242,0.35);
}
.buttons { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; }
.btn {
  display: inline-block;
  padding: 20px 40px;
  font-family: inherit;
  font-size: 14px;
  letter-spacing: 0.22em;
  border-radius: 2px;
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease, color .2s ease;
}
.btn-solid { background: var(--cyan); color: var(--ink); font-weight: 600; border: 1px solid var(--cyan); }
.btn-solid:hover { background: #7FD0F7; border-color: #7FD0F7; color: var(--ink); }
.btn-ghost { border: 1px solid var(--line-strong); font-weight: 400; }
.btn-ghost:hover { border-color: var(--cyan); color: var(--cyan); }

.hero-cover {
  flex: 0 1 380px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}
.hero-cover img {
  width: 100%;
  max-width: 380px;
  box-shadow: 0 0 140px rgba(61,180,242,0.30), 0 40px 90px rgba(0,0,0,0.6);
}
.caption { font-size: 12px; letter-spacing: 0.3em; color: var(--muted); text-align: center; }

.lift { transition: transform .35s ease; }
.lift:hover { transform: translateY(-8px); }

/* Books */
.books { padding-bottom: 176px; display: flex; flex-direction: column; gap: 80px; }
.section-label { display: flex; align-items: center; gap: 24px; }
.section-label span:first-child {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.32em;
  color: var(--cyan);
}
.rule { display: block; flex: 1; height: 1px; background: var(--line); }
h2 { margin: 0; font-size: 44px; font-weight: 400; letter-spacing: 0.03em; }
.books-head { display: flex; flex-direction: column; gap: 20px; }

.book-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 64px;
  align-items: start;
}
.book { display: flex; flex-direction: column; gap: 32px; }
.book-info { display: flex; flex-direction: column; gap: 12px; }
.tick { display: block; width: 32px; height: 2px; }
.status { font-size: 12px; font-weight: 500; letter-spacing: 0.28em; }
.book-title { font-size: 24px; font-weight: 400; letter-spacing: 0.03em; }
.buy { font-size: 13px; font-weight: 500; letter-spacing: 0.2em; }
.soon { font-size: 13px; letter-spacing: 0.2em; color: var(--muted); }

.book-1 img { box-shadow: 0 30px 80px rgba(61,180,242,0.22), 0 20px 50px rgba(0,0,0,0.5); }
.book-1 .tick { background: var(--cyan); }
.book-1 .status, .book-1 .buy { color: var(--cyan); }
.book-2 img { box-shadow: 0 30px 80px rgba(210,193,74,0.20), 0 20px 50px rgba(0,0,0,0.5); }
.book-2 .tick { background: var(--gold); }
.book-2 .status, .book-2 .buy { color: var(--gold); }
.book-3 img { box-shadow: 0 30px 80px rgba(210,96,90,0.22), 0 20px 50px rgba(0,0,0,0.5); }
.book-3 .tick { background: var(--red); }
.book-3 .status, .book-3 .buy { color: var(--red); }

.more { font-size: 14px; font-weight: 300; letter-spacing: 0.22em; color: var(--muted); }
.more-row { display: flex; align-items: center; gap: 24px; }

/* About */
.about { padding-bottom: 176px; display: flex; flex-direction: column; gap: 40px; max-width: 760px; }
.about p { margin: 0; font-size: 20px; font-weight: 300; line-height: 1.7; color: var(--muted); }

/* Join */
.join { border-top: 1px solid var(--line); background: rgba(61,180,242,0.04); }
.join-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 56px;
  justify-content: space-between;
  align-items: center;
  padding-top: 120px;
  padding-bottom: 120px;
}
.join-text { flex: 1 1 380px; display: flex; flex-direction: column; gap: 16px; }
.join-text p { margin: 0; font-size: 18px; font-weight: 300; line-height: 1.6; color: var(--muted); max-width: 440px; }
.join-form { flex: 1 1 420px; max-width: 520px; }
.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; }

/* MailerLite form, restyled to match the site */
.join-form .ml-form-embedContainer { width: 100%; display: block; margin: 0; }
.join-form .ml-form-embedWrapper { background: transparent; width: 100%; max-width: none; }
.join-form .ml-form-embedBody form { margin: 0; width: 100%; }
.join-form .ml-form-formContent { margin: 0 0 12px; width: 100%; }
.join-form .ml-form-fieldRow input {
  display: block;
  width: 100%;
  height: 56px;
  padding: 0 20px;
  background: rgba(6,12,24,0.6);
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  color: var(--text);
  font-family: inherit;
  font-size: 16px;
}
.join-form .ml-form-fieldRow input::placeholder { color: var(--muted); opacity: 1; }
.join-form .ml-form-fieldRow input:focus { outline: 2px solid var(--cyan); outline-offset: 2px; }
.join-form .ml-form-recaptcha { margin: 0 0 12px; }
.join-form .ml-form-embedSubmit { width: 100%; margin: 0; }
.join-form .ml-form-embedSubmit button {
  width: 100%;
  height: 56px;
  padding: 0 36px;
  background: var(--cyan);
  color: var(--ink);
  border: 0;
  border-radius: 2px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.22em;
  cursor: pointer;
  transition: background .2s ease;
}
.join-form .ml-form-embedSubmit button:hover { background: #7FD0F7; }
.join-form .ml-form-embedSubmit button.loading { cursor: default; }
.join-form .ml-form-embedSubmitLoad { display: inline-block; width: 20px; height: 20px; }
.join-form .ml-form-embedSubmitLoad:after {
  content: " ";
  display: block;
  width: 11px;
  height: 11px;
  margin: 1px;
  border-radius: 50%;
  border: 4px solid var(--ink);
  border-color: var(--ink) var(--ink) var(--ink) transparent;
  animation: ml-spin 1.2s linear infinite;
}
@keyframes ml-spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
.join-form .ml-error input { border-color: #FF6B6B; }
.join-form .ml-form-recaptcha.ml-error iframe { border: 1px solid #FF6B6B; }
.join-form .ml-form-successContent h4 { margin: 0 0 8px; font-size: 28px; font-weight: 400; letter-spacing: 0.03em; color: var(--text); }
.join-form .ml-form-successContent p { margin: 0; font-size: 18px; font-weight: 300; line-height: 1.6; color: var(--muted); }
@media (max-width: 480px) {
  .join-form .ml-form-recaptcha { width: 220px; }
  .join-form .g-recaptcha { transform: scale(0.78); transform-origin: 0 0; }
}

/* Footer */
.site-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
  align-items: center;
  padding-top: 40px;
  padding-bottom: 56px;
  font-size: 12px;
  letter-spacing: 0.22em;
  color: var(--muted);
}

/* Buy links and sample page */
.buy-alt { font-size: 13px; font-weight: 400; letter-spacing: 0.2em; color: var(--muted); }
.buy-alt:hover { color: var(--cyan); }

.sample-wrap { width: 100%; max-width: 720px; margin: 0 auto; padding: 0 24px; }
.sample-head { display: flex; flex-direction: column; gap: 20px; padding-top: 56px; padding-bottom: 56px; }
.sample-title { font-size: 64px; font-weight: 500; line-height: 1.05; color: var(--text); text-shadow: none; }
.sample-book { margin: 0; font-size: 12px; letter-spacing: 0.28em; color: var(--muted); }
.prose p { margin: 0 0 1.25em; font-size: 20px; font-weight: 400; line-height: 1.8; color: #DCE6F1; }
.prose p.dateline { margin: 2.4em 0 1.1em; font-size: 13px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--cyan); }
.prose p.dateline strong { font-weight: 500; }
.prose p.scene { margin: 2.2em 0; text-align: center; letter-spacing: 0.6em; color: var(--muted); }
.sample-end { margin-top: 96px; padding: 72px 0 128px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 20px; }
.sample-end h2 { font-size: 36px; }
.sample-end p { margin: 0 0 12px; font-size: 18px; font-weight: 300; line-height: 1.6; color: var(--muted); }
@media (max-width: 720px) {
  .sample-head { padding-top: 32px; padding-bottom: 40px; }
  .sample-title { font-size: 44px; }
  .prose p { font-size: 18px; }
  .sample-end h2 { font-size: 30px; }
}

/* Book One pitch */
.pitch { max-width: 1200px; padding-bottom: 176px; display: flex; flex-direction: column; gap: 32px; }
.pitch > p { margin: 0; max-width: 760px; font-size: 24px; font-weight: 300; line-height: 1.65; color: #DCE6F1; }
.pitch > p.comps { font-size: 18px; color: var(--muted); }
.pitch > .section-label { margin-bottom: 16px; }
.pitch .buttons { margin-top: 16px; }

/* Tablet */
@media (max-width: 960px) {
  .wrap { padding-left: 32px; padding-right: 32px; }
  h1 { font-size: 60px; }
  .hero { gap: 56px; padding-top: 64px; padding-bottom: 128px; }
  .book-grid { gap: 32px; }
  .books, .about, .pitch { padding-bottom: 128px; }
}

/* Phone */
@media (max-width: 720px) {
  .wrap { padding-left: 24px; padding-right: 24px; }
  .site-header { padding-top: 28px; padding-bottom: 24px; }
  .site-nav { gap: 24px; font-size: 12px; }
  h1 { font-size: 44px; }
  h2 { font-size: 32px; }
  .pre-headline { font-size: 15px; }
  .hero { padding-top: 40px; padding-bottom: 96px; gap: 48px; }
  .hero-text { gap: 40px; }
  .btn { width: 100%; text-align: center; }
  .book-grid { grid-template-columns: 1fr; gap: 64px; }
  .book { max-width: 360px; margin: 0 auto; width: 100%; }
  .books, .about, .pitch { padding-bottom: 96px; }
  .pitch > p { font-size: 20px; }
  .pitch > p.comps { font-size: 16px; }
  .books { gap: 56px; }
  .join-inner { padding-top: 72px; padding-bottom: 72px; gap: 32px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .lift, .btn { transition: none; }
  .lift:hover { transform: none; }
}
