:root{
  --ink:#13141b;
  --ink-2:#1b1d27;
  --parchment:#f3ead7;
  --paper:#faf5ea;
  --ember:#e2572c;
  --ember-dim:#a63f22;
  --thread:#c99a3a;
  --ash:#96917f;
  --ash-dim:#5b5748;
  --white:#f7f2e6;
}
*{margin:0;padding:0;box-sizing:border-box;}
html{scroll-behavior:smooth;}
body{
  background:var(--ink);
  color:var(--white);
  font-family:'Source Serif 4', serif;
  line-height:1.6;
  overflow-x:hidden;
}
.wrap{max-width:1180px;margin:0 auto;padding:0 2rem;}
h1,h2,h3,.display{font-family:'Fraunces', serif;font-weight:600;letter-spacing:-0.01em;}
.mono{font-family:'JetBrains Mono', monospace;letter-spacing:0.02em;}
a{color:inherit;text-decoration:none;}

.thread{
  height:1px;
  background-image:linear-gradient(90deg, var(--thread) 0 6px, transparent 6px 12px);
  background-size:12px 1px;
  opacity:0.5;
}

/* nav */
header{
  position:sticky;top:0;z-index:50;
  background:rgba(19,20,27,0.86);
  backdrop-filter:blur(10px);
  border-bottom:1px solid rgba(247,242,230,0.08);
}
nav{display:flex;align-items:center;justify-content:space-between;padding:1.3rem 0;}
.brand{display:flex;align-items:center;gap:0.6rem;font-size:1.35rem;}
.brand .spark{
  width:9px;height:9px;border-radius:50%;
  background:var(--ember);
  box-shadow:0 0 10px 3px var(--ember-dim);
  animation:pulse 2.6s ease-in-out infinite;
}
@keyframes pulse{0%,100%{opacity:0.5;transform:scale(0.85);}50%{opacity:1;transform:scale(1.15);}}
.navlinks{display:flex;gap:2.2rem;font-size:0.95rem;color:var(--ash);}
.navlinks a:hover{color:var(--white);}
.navcta{
  border:1px solid var(--thread);
  color:var(--thread);
  padding:0.5rem 1.3rem;
  border-radius:2px;
  font-size:0.9rem;
  letter-spacing:0.03em;
}

.btn{
  padding:0.85rem 1.9rem;
  border-radius:2px;
  font-size:0.95rem;
  font-weight:500;
  letter-spacing:0.02em;
  display:inline-flex;
  align-items:center;
  gap:0.5rem;
  border:none;
  cursor:pointer;
}
.btn-ember{background:var(--ember);color:var(--ink);}
.btn-ember:hover{background:#f16a3d;}
.btn-ghost{border:1px solid rgba(247,242,230,0.25);color:var(--white);background:transparent;}
.btn-ghost:hover{border-color:var(--white);}
.btn-small{padding:0.55rem 1.2rem;font-size:0.85rem;}

/* hero (home) */
.hero{padding:5.5rem 0 4rem;}
.eyebrow{
  color:var(--thread);
  font-size:0.8rem;
  letter-spacing:0.16em;
  text-transform:uppercase;
  margin-bottom:1.1rem;
}
.hero h1{font-size:3.4rem;line-height:1.08;margin-bottom:1.3rem;}
.hero h1 em{font-style:italic;color:var(--ember);font-weight:500;}
.hero p.lede{color:var(--ash);font-size:1.15rem;max-width:34rem;margin-bottom:2rem;}
.heroctas{display:flex;gap:1rem;flex-wrap:wrap;}

.hero-visual{
  position:relative;
  aspect-ratio:4/5;
  background:linear-gradient(160deg,#1e2029,#15161d);
  border:1px solid rgba(247,242,230,0.08);
  border-radius:4px;
  display:flex;
  align-items:flex-end;
  padding:2rem;
  overflow:hidden;
}
.hero-visual::before{
  content:"";
  position:absolute;
  width:260px;height:260px;
  background:radial-gradient(circle, var(--ember) 0%, transparent 70%);
  opacity:0.35;
  top:-40px;right:-60px;
  filter:blur(10px);
}
.hv-tag{position:relative;color:var(--ash);}
.hv-tag .mono{font-size:0.78rem;color:var(--thread);display:block;margin-bottom:0.5rem;}
.hv-tag .display{font-size:1.6rem;color:var(--white);}

.section{padding:3.5rem 0;}
.section-head{display:flex;justify-content:space-between;align-items:baseline;margin-bottom:2rem;}
.section-head h2{font-size:1.7rem;}
.section-head .count{color:var(--ash);font-size:0.9rem;}

.flagship{
  display:grid;
  grid-template-columns:280px 1fr;
  gap:2.5rem;
  background:var(--ink-2);
  border:1px solid rgba(247,242,230,0.07);
  border-radius:4px;
  padding:2.2rem;
}
.cover{
  aspect-ratio:2/3;
  border-radius:3px;
  background:
    radial-gradient(circle at 30% 20%, rgba(226,87,44,0.55), transparent 55%),
    linear-gradient(200deg,#2a1c16,#141018);
  position:relative;
  display:flex;
  align-items:flex-end;
  padding:1.2rem;
  box-shadow:0 20px 40px -18px rgba(0,0,0,0.6);
}
.cover.small{aspect-ratio:2/3;}
.cover .spark-big{
  position:absolute;top:1.4rem;left:1.4rem;
  width:14px;height:14px;border-radius:50%;
  background:var(--ember);
  box-shadow:0 0 22px 8px rgba(226,87,44,0.55);
  animation:pulse 3s ease-in-out infinite;
}
.cover-title{font-family:'Fraunces', serif;font-size:1.5rem;color:var(--white);line-height:1.2;}
.flagship-body{display:flex;flex-direction:column;justify-content:center;}
.flagship-body .mono.tag{color:var(--thread);font-size:0.78rem;margin-bottom:0.6rem;}
.flagship-body h3{font-size:2rem;margin-bottom:0.6rem;}
.flagship-body .by{color:var(--ash);margin-bottom:1.1rem;font-size:0.95rem;}
.flagship-body p.blurb{color:#cfc9b8;max-width:38rem;margin-bottom:1.4rem;}

.progress-row{display:flex;align-items:center;gap:0.8rem;margin-bottom:1.6rem;}
.progress-track{flex:1;max-width:220px;height:4px;background:rgba(247,242,230,0.1);border-radius:2px;overflow:hidden;}
.progress-fill{height:100%;width:16%;background:var(--thread);}
.progress-label{font-size:0.82rem;color:var(--ash);}
.flagship-ctas{display:flex;gap:1rem;flex-wrap:wrap;align-items:center;}
.price-tag{color:var(--ash);font-size:0.9rem;}
.price-tag b{color:var(--white);font-weight:600;}

.chapters{margin-top:1.6rem;display:flex;flex-direction:column;}
.chapter-row{
  display:flex;align-items:center;gap:1rem;
  padding:0.85rem 0;border-top:1px solid rgba(247,242,230,0.06);
  color:var(--ash);font-size:0.92rem;
}
.chapter-row.linked{cursor:pointer;}
.chapter-row.linked:hover{color:var(--white);}
.chapter-row .num{font-family:'JetBrains Mono',monospace;color:var(--thread);width:2.4rem;}
.chapter-row .locked{margin-left:auto;color:var(--ash-dim);font-size:0.78rem;}
.chapter-row .go{margin-left:auto;color:var(--ember);font-size:0.82rem;}

.steps{display:grid;grid-template-columns:repeat(3,1fr);gap:2rem;}
.step{padding-top:1.4rem;border-top:1px solid rgba(247,242,230,0.1);}
.step .mono{color:var(--thread);font-size:0.78rem;display:block;margin-bottom:0.7rem;}
.step h3{font-size:1.2rem;margin-bottom:0.5rem;}
.step p{color:var(--ash);font-size:0.95rem;}

footer{padding:3rem 0 2.5rem;}
.foot-row{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:1rem;}
footer .brand{font-size:1.1rem;}
footer .fine{color:var(--ash-dim);font-size:0.82rem;}

/* breadcrumb */
.crumb{color:var(--ash);font-size:0.85rem;padding:1.6rem 0 0;}
.crumb a:hover{color:var(--white);}
.crumb span{color:var(--ash-dim);margin:0 0.4rem;}

/* story page */
.story-head{
  display:grid;
  grid-template-columns:220px 1fr;
  gap:2.5rem;
  padding:2rem 0 3rem;
  align-items:center;
}
.story-head h1{font-size:2.6rem;margin-bottom:0.5rem;}
.story-head .by{color:var(--ash);margin-bottom:1rem;}
.story-head p.blurb{color:#cfc9b8;max-width:40rem;margin-bottom:1.6rem;}

/* chapter reader */
.reader-bar{
  display:flex;justify-content:space-between;align-items:center;
  padding:1.4rem 0;border-bottom:1px solid rgba(247,242,230,0.08);
}
.reader-bar .mono{color:var(--thread);font-size:0.8rem;}
.reader-bar h2{font-size:1.3rem;}
.reader-nav{display:flex;gap:0.8rem;}
.reader-body{
  max-width:38rem;margin:0 auto;padding:3rem 0 4rem;
  font-size:1.12rem;color:#e7e1d2;
}
.reader-body p{margin-bottom:1.3rem;}
.reader-body .dropcap::first-letter{
  font-family:'Fraunces', serif;
  font-size:3.4rem;
  float:left;line-height:0.8;
  padding:0.1rem 0.5rem 0 0;
  color:var(--ember);
}
.reader-foot{
  max-width:38rem;margin:0 auto;
  display:flex;justify-content:space-between;
  padding:2rem 0 4rem;border-top:1px solid rgba(247,242,230,0.08);
}

@media (max-width:860px){
  .hero{grid-template-columns:1fr;}
  .hero > .wrap{display:block !important;}
  .flagship{grid-template-columns:1fr;}
  .cover{max-width:220px;}
  .steps{grid-template-columns:1fr;}
  .story-head{grid-template-columns:1fr;}
}
