/* The Work Is the Win — prelaunch site
   Palette: near-black ground, white type, Fearvana red accent.
   Fonts: Poppins (headings, matches fearvana.com), Inter (body). */

:root {
  --bg: #0a0a0a;
  --bg-2: #141414;
  --fg: #f4f4f4;
  --muted: #a3a3a3;
  --accent: #fe0000;
  --accent-dark: #c40000;
  --line: #262626;
  --max: 1100px;
  --font-head: "Poppins", "Arial Black", Arial, sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }

h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin: 0 0 0.6em;
}
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
p { margin: 0 0 1em; }
em { font-style: italic; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.container--narrow { max-width: 760px; }
section { padding: 88px 0; }
.eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.2em;
}
.lede { font-size: 1.15rem; color: var(--muted); }
.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;
}

/* Buttons */
.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 16px 28px;
  border: 2px solid var(--accent);
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, transform 0.1s;
}
.btn:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.btn:active { transform: translateY(1px); }
.btn--small { padding: 10px 18px; font-size: 0.85rem; }
.btn--outline { background: transparent; }
.btn--outline:hover { background: var(--accent); }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 24px;
  background: rgba(10,10,10,0.85);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav__brand {
  font-family: var(--font-head); font-weight: 800; text-decoration: none; font-size: 1rem;
}
.nav__links { display: flex; gap: 22px; align-items: center; }
.nav__links a { text-decoration: none; font-size: 0.95rem; color: var(--muted); }
.nav__links a:hover { color: var(--fg); }
.nav__links .btn { color: #fff; }
@media (max-width: 640px) {
  .nav__links a:not(.btn) { display: none; }
  .nav__brand { font-size: 0.9rem; }
  .btn--small { padding: 10px 14px; font-size: 0.75rem; white-space: nowrap; }
}

/* Hero */
.hero {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  align-items: center;
  max-width: var(--max);
  margin: 0 auto;
  padding: 80px 24px 96px;
  min-height: 80vh;
}
.hero__title {
  font-size: clamp(3rem, 8vw, 6rem);
  line-height: 0.95;
  text-transform: uppercase;
}
.hero__subtitle {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(1.1rem, 2.2vw, 1.5rem);
  color: var(--muted);
  margin-bottom: 1.4em;
}
.hero__lead { font-size: 1.1rem; max-width: 560px; }
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; text-align: center; padding-top: 56px; }
  .hero__lead { margin-left: auto; margin-right: auto; }
  .hero__cover { order: -1; }
  .hero__cover .cover { max-width: 220px; }
}

/* Book cover */
.cover {
  aspect-ratio: 2 / 3;
  max-width: 360px;
  margin: 0 auto;
  border-radius: 6px;
  box-shadow: 0 30px 60px rgba(0,0,0,0.6), 0 0 0 1px var(--line);
}
.cover--placeholder {
  display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 12px;
  background: linear-gradient(160deg, #1c1c1c, #0d0d0d);
  border-top: 10px solid var(--accent);
  font-family: var(--font-head); font-weight: 800; font-size: 2rem; line-height: 1;
  text-transform: uppercase; text-align: center; padding: 24px;
}
.cover--placeholder small { font-family: var(--font-body); font-weight: 500; font-size: 0.9rem; color: var(--muted); text-transform: none; }

/* Countdown */
.countdown { margin: 32px 0; }
.countdown__label { font-size: 0.85rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.countdown__grid { display: flex; gap: 12px; }
@media (max-width: 860px) { .countdown__grid { justify-content: center; } }
.countdown__cell {
  display: flex; flex-direction: column; align-items: center;
  min-width: 76px; padding: 12px 8px;
  background: var(--bg-2); border: 1px solid var(--line); border-radius: 6px;
}
.countdown__cell span { font-family: var(--font-head); font-weight: 800; font-size: 1.8rem; line-height: 1; font-variant-numeric: tabular-nums; }
.countdown__cell small { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); margin-top: 6px; }

/* Signup form */
.signup { display: flex; flex-wrap: wrap; gap: 10px; max-width: 560px; }
@media (max-width: 860px) { .signup { margin: 0 auto; justify-content: center; } }
.signup input {
  flex: 1 1 240px;
  font: inherit; font-size: 1rem;
  padding: 14px 16px;
  background: var(--bg-2); color: var(--fg);
  border: 1px solid var(--line); border-radius: 4px;
}
.signup input:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.signup__note, .signup__success { flex-basis: 100%; font-size: 0.85rem; color: var(--muted); margin: 6px 0 0; }
.signup__success { color: var(--fg); font-weight: 500; }
.signup.is-done input, .signup.is-done .btn, .signup.is-done .signup__note { display: none; }
.signup--claim input { flex-basis: 200px; }

/* Preorder + bonuses */
.preorder, .bonuses { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); text-align: center; }
.retailers { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 24px; }
.steps { text-align: left; max-width: 520px; margin: 24px auto; padding-left: 1.2em; }
.steps li { margin-bottom: 8px; }
.bonuses .signup { margin: 0 auto; justify-content: center; }

/* Book section */
.book h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
.pillars { list-style: none; padding: 0; margin: 32px 0; display: grid; gap: 18px; }
.pillars li { padding-left: 20px; border-left: 3px solid var(--accent); }
.pillars strong { font-family: var(--font-head); display: block; margin-bottom: 2px; }
.book__cta { margin-top: 32px; }

/* Praise */
.praise { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.praise__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 32px; }
.praise blockquote { margin: 0; padding: 0; }
.praise blockquote p { font-size: 1.15rem; font-style: italic; }
.praise cite { font-style: normal; font-size: 0.9rem; color: var(--muted); }

/* Author */
.author__grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 48px; align-items: start; }
@media (max-width: 860px) { .author__grid { grid-template-columns: 1fr; } }
.photo-placeholder {
  aspect-ratio: 4 / 5; border-radius: 6px;
  background: linear-gradient(160deg, #1c1c1c, #0d0d0d); border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 0.9rem;
}

/* Foundation */
.foundation { text-align: center; border-top: 1px solid var(--line); }

/* FAQ */
.faq details { border-top: 1px solid var(--line); padding: 18px 0; }
.faq details:last-of-type { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font-family: var(--font-head); font-weight: 700; font-size: 1.05rem; list-style: none; display: flex; justify-content: space-between; }
.faq summary::after { content: "+"; color: var(--accent); font-weight: 800; }
.faq details[open] summary::after { content: "\2013"; }
.faq details p { margin: 12px 0 0; color: var(--muted); }

/* Final CTA */
.final { text-align: center; background: var(--bg-2); border-top: 1px solid var(--line); }
.final h2 { font-size: clamp(2rem, 5vw, 3.2rem); text-transform: uppercase; }
.final .signup { margin: 0 auto; justify-content: center; }

/* Footer */
.footer { padding: 32px 0; border-top: 1px solid var(--line); font-size: 0.85rem; color: var(--muted); }
.footer__inner { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center; }
.footer nav { display: flex; gap: 18px; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--fg); }
