:root{
    --paper: #EDE6D6;
    --paper-deep: #E3DAC5;
    --ink: #1F2A24;
    --ink-soft: #3D453F;
    --green: #2F6B4A;
    --green-deep: #1E4A32;
    --mustard: #C89B3C;
    --red: #A6291D;
    --steel: #4B5A5A;
    --charcoal: #21201C;
    --cream-line: rgba(31,42,36,0.16);
    --card: #F6F1E4;
    --focus: #1D6F5C;
  }

  *{box-sizing:border-box;}
  html{scroll-behavior:smooth;}
  body{
    margin:0;
    background:var(--paper);
    color:var(--ink);
    font-family:'Public Sans', system-ui, sans-serif;
    font-size:19px;
    line-height:1.65;
    -webkit-font-smoothing:antialiased;
  }
  h1,h2,h3{
    font-family:'Zilla Slab', Georgia, serif;
    color:var(--ink);
    line-height:1.12;
    margin:0;
  }
  a{color:inherit;}
  img{max-width:100%;display:block;}
  .mono{
    font-family:'IBM Plex Mono', monospace;
    letter-spacing:0.04em;
  }
  .wrap{
    max-width:1080px;
    margin:0 auto;
    padding:0 28px;
  }

  /* Reduced motion */
  @media (prefers-reduced-motion: reduce){
    *{animation-duration:0.001ms !important; transition-duration:0.001ms !important;}
  }

  /* Focus visibility */
  a:focus-visible, button:focus-visible{
    outline:3px solid var(--focus);
    outline-offset:3px;
    border-radius:4px;
  }

  /* ---------- TOP BAR ---------- */
  .topbar{
    background:var(--charcoal);
    color:#EEE7D6;
    padding:10px 0;
    font-family:'IBM Plex Mono', monospace;
    font-size:14px;
    letter-spacing:0.06em;
    text-align:center;
    border-bottom:3px solid var(--mustard);
  }
  .topbar strong{color:var(--mustard);}

  /* ---------- HEADER ---------- */
  header.site{
    padding:26px 0 10px;
  }
  .brandrow{
    display:flex;
    align-items:center;
    justify-content:space-between;
    flex-wrap:wrap;
    gap:14px;
  }
  .brand{
    display:flex;
    align-items:center;
    gap:12px;
  }
  .brand-mark{
    width:46px;height:46px;
    border-radius:50%;
    background:var(--charcoal);
    color:var(--mustard);
    display:flex;align-items:center;justify-content:center;
    font-family:'Zilla Slab',serif;
    font-weight:700;
    font-size:20px;
    flex:none;
    border:2px solid var(--mustard);
    object-fit:cover;
  }
  .brand-text .name{
    font-family:'Zilla Slab',serif;
    font-weight:700;
    font-size:22px;
  }
  .brand-text .tag{
    font-size:14px;
    color:var(--ink-soft);
  }
  .headercta{
    font-family:'Public Sans';
    font-weight:700;
    background:var(--green);
    color:#FBF3E4;
    padding:12px 20px;
    border-radius:8px;
    text-decoration:none;
    font-size:17px;
    border-bottom:3px solid var(--green-deep);
  }
  .headercta:hover{background:var(--green-deep);}

  /* ---------- HERO ---------- */
  .hero{
    padding:56px 0 40px;
  }
  .hero-grid{
    display:grid;
    grid-template-columns:1.15fr 0.85fr;
    gap:48px;
    align-items:center;
  }
  @media (max-width:860px){
    .hero-grid{grid-template-columns:1fr; gap:36px;}
  }
  .eyebrow{
    display:inline-flex;
    align-items:center;
    gap:8px;
    font-family:'IBM Plex Mono', monospace;
    font-size:14px;
    letter-spacing:0.08em;
    color:var(--green-deep);
    background:rgba(47,107,74,0.10);
    border:1px solid rgba(47,107,74,0.35);
    padding:6px 12px;
    border-radius:999px;
    margin-bottom:20px;
  }
  /* ---------- HOOK BANNER (standalone, high-impact) ---------- */
  .hookbanner{
    background:var(--charcoal);
    border-top:4px solid var(--mustard);
    border-bottom:4px solid var(--mustard);
    padding:40px 0;
    text-align:center;
  }
  .hookbanner .wrap{max-width:880px;}
  .hookbanner .hook-1{
    font-family:'IBM Plex Mono', monospace;
    font-size:clamp(15px,2vw,18px);
    letter-spacing:0.04em;
    color:#D8CEB4;
    margin:0 0 14px;
  }
  .hookbanner .hook-2{
    font-family:'Zilla Slab', serif;
    font-weight:700;
    font-size:clamp(26px,4.2vw,40px);
    line-height:1.25;
    color:var(--mustard);
    margin:0;
  }
  .hookbanner .hook-2 .num{
    color:#8FE0B8;
  }
  .hero h1{
    font-size:clamp(34px, 5vw, 54px);
    font-weight:700;
    letter-spacing:-0.01em;
  }
  .hero h1 em{
    font-style:normal;
    color:var(--green);
  }
  .hero p.lede{
    font-size:21px;
    color:var(--ink-soft);
    margin-top:20px;
    max-width:52ch;
  }
  .hero-actions{
    margin-top:30px;
    display:flex;
    gap:16px;
    flex-wrap:wrap;
    align-items:center;
  }
  .btn{
    display:inline-block;
    font-weight:700;
    font-size:18px;
    padding:16px 28px;
    border-radius:9px;
    text-decoration:none;
    text-align:center;
  }
  .btn-primary{
    background:var(--green);
    color:#FBF3E4;
    border-bottom:4px solid var(--green-deep);
  }
  .btn-primary:hover{background:var(--green-deep);}
  .btn-ghost{
    background:var(--green);
    color:#FBF3E4;
    border:2px solid var(--green-deep);
  }
  .btn-ghost:hover{background:var(--green-deep);}
  .trustline{
    margin-top:18px;
    font-size:15.5px;
    color:var(--ink-soft);
    font-family:'IBM Plex Mono', monospace;
  }

  /* --- inspection tag signature element --- */
  .tag-card{
    position:relative;
    background:var(--card);
    border:2px solid var(--ink);
    border-radius:6px;
    padding:34px 30px 30px;
    box-shadow:8px 8px 0 rgba(31,42,36,0.14);
    transform:rotate(-2deg);
  }
  .tag-card::before{
    content:"";
    position:absolute;
    top:20px; left:-13px;
    width:26px;height:26px;
    background:var(--paper);
    border:2px solid var(--ink);
    border-radius:50%;
  }
  .tag-card::after{
    content:"";
    position:absolute;
    top:31px; left:-4px;
    width:60px;height:2px;
    background:var(--ink);
    opacity:0.35;
    transform:rotate(28deg);
  }
  .tag-head{
    display:flex;
    justify-content:space-between;
    align-items:flex-start;
    border-bottom:2px dashed var(--cream-line);
    padding-bottom:14px;
    margin-bottom:16px;
  }
  .tag-head .mono{font-size:13px;color:var(--ink-soft);}
  .tag-card h3{font-size:22px; margin-bottom:10px;}
  .tag-card ul{
    margin:0; padding-left:20px;
    font-size:16.5px;
    color:var(--ink-soft);
  }
  .tag-card li{margin-bottom:6px;}

  /* ---------- SECTION HEADERS ---------- */
  .section{padding:64px 0;}
  .section-head{
    max-width:640px;
    margin-bottom:40px;
  }
  .kicker{
    font-family:'IBM Plex Mono', monospace;
    font-size:14px;
    letter-spacing:0.1em;
    color:var(--steel);
    text-transform:uppercase;
    margin-bottom:10px;
    display:block;
  }
  .section-head h2{
    font-size:clamp(28px,3.4vw,38px);
  }
  .section-head p{
    color:var(--ink-soft);
    font-size:18.5px;
    margin-top:14px;
  }

  /* ---------- WHY IT MATTERS ---------- */
  .cost-list{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(230px,1fr));
    gap:2px;
    background:var(--ink);
    border:2px solid var(--ink);
    border-radius:10px;
    overflow:hidden;
  }
  .cost-item{
    background:var(--card);
    padding:24px 22px;
  }
  .cost-item .amt{
    font-family:'Zilla Slab',serif;
    font-weight:700;
    font-size:30px;
    color:var(--red);
  }
  .cost-item.positive .amt{
    color:var(--green);
  }
  .cost-item .desc{
    margin-top:8px;
    font-size:15.5px;
    color:var(--ink-soft);
  }
  .cost-note{
    margin-top:18px;
    font-size:15px;
    color:var(--ink-soft);
    font-style:italic;
  }

  /* ---------- BOOK CARDS ---------- */
  .book-grid{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:26px;
  }
  @media (max-width:900px){
    .book-grid{grid-template-columns:1fr;}
  }
  .book{
    background:var(--card);
    border:2px solid var(--ink);
    border-radius:10px;
    padding:28px 26px;
    display:flex;
    flex-direction:column;
    transition:transform 0.18s ease, box-shadow 0.18s ease;
  }
  .book:hover{
    transform:translateY(-4px);
    box-shadow:6px 8px 0 rgba(31,42,36,0.14);
  }
  .book .num{
    font-family:'IBM Plex Mono', monospace;
    font-size:13px;
    color:var(--steel);
    letter-spacing:0.08em;
    margin-bottom:10px;
  }
  .book h3{
    font-size:23px;
    margin-bottom:6px;
  }
  .book .pages{
    font-size:14.5px;
    color:var(--ink-soft);
    margin-bottom:16px;
  }
  .book .price{
    font-family:'Zilla Slab',serif;
    font-weight:700;
    font-size:28px;
    color:var(--green);
    margin-bottom:16px;
  }
  .book ul{
    padding-left:20px;
    margin:0 0 22px;
    font-size:16px;
    color:var(--ink-soft);
    flex-grow:1;
  }
  .book li{margin-bottom:7px;}
  .book .btn{width:100%;}
  .featured{
    border-color:var(--green);
    box-shadow:0 0 0 3px rgba(47,107,74,0.18);
    position:relative;
  }
  .featured .ribbon{
    position:absolute;
    top:-14px; left:24px;
    background:var(--mustard);
    color:var(--charcoal);
    font-family:'IBM Plex Mono',monospace;
    font-size:13px;
    font-weight:600;
    padding:5px 12px;
    border-radius:5px;
    border:2px solid var(--charcoal);
  }

  /* ---------- DEEP DIVE BOOKS ---------- */
  .deepbook{
    display:grid;
    grid-template-columns:0.9fr 1.4fr;
    gap:40px;
    padding:44px 0;
    border-top:2px solid var(--cream-line);
    align-items:start;
  }
  @media (max-width:820px){
    .deepbook{grid-template-columns:1fr;}
  }
  .deepbook .label{
    font-family:'IBM Plex Mono',monospace;
    font-size:14px;
    color:var(--steel);
    margin-bottom:10px;
    letter-spacing:0.06em;
  }
  .deepbook h3{font-size:30px;margin-bottom:10px;}
  .deepbook .price{
    font-family:'Zilla Slab',serif;
    font-weight:700;
    color:var(--green);
    font-size:24px;
    margin-bottom:16px;
  }
  .deepbook p.desc{
    color:var(--ink-soft);
    font-size:17.5px;
    margin-bottom:20px;
  }
  .chapters{
    list-style:none;
    margin:0;padding:0;
    display:grid;
    gap:0;
    border-top:1px solid var(--cream-line);
  }
  .chapters li{
    display:flex;
    align-items:center;
    gap:16px;
    padding:14px 4px;
    border-bottom:1px solid var(--cream-line);
    font-size:16.5px;
    transition:background 0.15s ease;
  }
  .chapters li:hover{background:rgba(47,107,74,0.06);}
  .chapters .cn{
    font-family:'IBM Plex Mono',monospace;
    color:var(--paper);
    background:var(--green);
    font-weight:600;
    font-size:13px;
    flex:none;
    width:30px;height:30px;
    border-radius:50%;
    display:flex;
    align-items:center;
    justify-content:center;
  }

  /* ---------- BUNDLE BAND ---------- */
  .bundle{
    background:var(--charcoal);
    color:#F1E9D4;
    border-radius:14px;
    padding:44px;
    display:grid;
    grid-template-columns:1.3fr 1fr;
    gap:32px;
    align-items:center;
  }
  @media (max-width:820px){
    .bundle{grid-template-columns:1fr; padding:32px 26px;}
  }
  .bundle .kicker{color:var(--mustard);}
  .bundle h2{color:#F6EFDD; font-size:clamp(26px,3.2vw,34px);}
  .bundle p{color:#D8CEB4; font-size:17.5px; margin-top:14px;}
  .bundle-price-box{
    background:#2B2A24;
    border:2px solid var(--mustard);
    border-radius:10px;
    padding:30px 26px;
    text-align:center;
  }
  .bundle-price-box .was{
    text-decoration:line-through;
    text-decoration-color:#E0574A;
    color:#E0574A;
    font-size:20px;
    font-weight:600;
  }
  .bundle-price-box .now{
    font-family:'Zilla Slab',serif;
    font-weight:700;
    font-size:52px;
    color:#4ADE9B;
    margin:6px 0 4px;
  }
  .bundle-price-box .save{
    display:inline-block;
    font-family:'IBM Plex Mono',monospace;
    font-size:14px;
    font-weight:700;
    color:#063449;
    background:#7DD3F0;
    padding:5px 16px;
    border-radius:999px;
    margin-bottom:20px;
  }
  .bundle-price-box .btn-primary{
    width:100%;
    background:#22C55E;
    color:#FFFFFF;
    border-bottom:4px solid #16A34A;
  }
  .bundle-price-box .btn-primary:hover{background:#16A34A;}
  .bundle-price-box .onetime{
    margin-top:14px;
    font-size:13px;
    color:#9B9585;
  }

  /* ---------- ABOUT ---------- */
  .about{
    display:grid;
    grid-template-columns:220px 1fr;
    gap:40px;
    align-items:start;
  }
  @media (max-width:700px){
    .about{grid-template-columns:1fr;}
  }
  .about-photo{
    width:200px;height:200px;
    border-radius:50%;
    background:var(--card);
    border:3px solid var(--ink);
    display:flex;align-items:center;justify-content:center;
    font-family:'Zilla Slab',serif;
    font-size:56px;
    font-weight:700;
    color:var(--green);
    object-fit:cover;
    flex:none;
  }
  .about blockquote{
    font-family:'Zilla Slab',serif;
    font-size:24px;
    font-weight:600;
    margin:0 0 18px;
    line-height:1.4;
    color:var(--ink);
  }
  .about p{
    color:var(--ink-soft);
    font-size:17.5px;
    margin-bottom:14px;
  }
  .about .sig{
    font-family:'IBM Plex Mono',monospace;
    color:var(--steel);
    font-size:15px;
    margin-top:18px;
  }

  /* ---------- FAQ ---------- */
  .faq-item{
    border-bottom:1px solid var(--cream-line);
    padding:22px 0;
  }
  .faq-item h3{
    font-size:19px;
    font-family:'Public Sans';
    font-weight:700;
    margin-bottom:8px;
  }
  .faq-item p{
    color:var(--ink-soft);
    font-size:16.5px;
  }

  /* ---------- FOOTER CTA ---------- */
  .final-cta{
    text-align:center;
    padding:60px 0 20px;
  }
  .final-cta h2{
    font-size:clamp(28px,4vw,40px);
    margin-bottom:14px;
  }
  .final-cta p{
    color:var(--ink-soft);
    font-size:18.5px;
    margin-bottom:28px;
  }

  footer{
    background:var(--charcoal);
    color:#B9B29C;
    padding:36px 0;
    font-size:14.5px;
    margin-top:40px;
  }
  footer .fbrand{
    color:#F1E9D4;
    font-family:'Zilla Slab',serif;
    font-weight:700;
    font-size:18px;
    margin-bottom:8px;
  }
  footer .flinks{
    display:flex;gap:20px;flex-wrap:wrap;
    margin:16px 0;
  }
  footer .flinks a{text-decoration:none;color:#D8CEB4;}
  footer .flinks a:hover{color:var(--mustard);}
  footer .fine{
    max-width:760px;
    color:#8B8571;
    line-height:1.6;
  }

/* ---------- NAV (multi-page) ---------- */
.navrow{
  width:100%;
  margin-top:14px;
  border-top:1px solid var(--cream-line);
  padding-top:14px;
}
.nav-links{
  display:flex;
  align-items:center;
  gap:28px;
  flex-wrap:wrap;
  font-weight:700;
  font-size:16.5px;
}
.nav-links a{
  text-decoration:none;
  color:var(--ink-soft);
  padding-bottom:3px;
  border-bottom:2px solid transparent;
}
.nav-links a:hover{color:var(--ink);}
.nav-links a.active{
  color:var(--ink);
  border-bottom:2px solid var(--green);
}
.nav-links a.nav-cta{
  background:var(--green);
  color:#FBF3E4;
  padding:9px 18px;
  border-radius:7px;
  border-bottom:3px solid var(--green-deep);
  margin-left:4px;
}
.nav-links a.nav-cta:hover{background:var(--green-deep); color:#FBF3E4;}
.nav-links a.nav-cta.active{border-bottom:3px solid var(--green-deep);}

/* ---------- SUB PAGE HEADER ---------- */
.page-head{
  padding:44px 0 8px;
}
.backlink{
  display:inline-flex;
  align-items:center;
  gap:6px;
  font-family:'IBM Plex Mono', monospace;
  font-size:14.5px;
  color:var(--ink-soft);
  text-decoration:none;
  margin-bottom:18px;
}
.backlink:hover{color:var(--green);}
.page-head .label{
  font-family:'IBM Plex Mono', monospace;
  font-size:14px;
  letter-spacing:0.08em;
  color:var(--steel);
  text-transform:uppercase;
  display:block;
  margin-bottom:10px;
}
.page-head h1{
  font-size:clamp(30px,4.6vw,46px);
  max-width:20ch;
}
.page-head .sub{
  font-size:19px;
  color:var(--ink-soft);
  margin-top:16px;
  max-width:60ch;
}

/* ---------- PURCHASE BAR (replaces the old sidebar layout) ---------- */
.purchase-bar{
  background:var(--card);
  border:2px solid var(--ink);
  border-radius:12px;
  padding:26px 30px;
  margin:30px 0 8px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
  flex-wrap:wrap;
  box-shadow:6px 6px 0 rgba(31,42,36,0.10);
}
.purchase-bar .info{
  display:flex;
  align-items:baseline;
  gap:16px;
  flex-wrap:wrap;
}
.purchase-bar .price{
  font-family:'Zilla Slab',serif;
  font-weight:700;
  font-size:34px;
  color:var(--green);
}
.purchase-bar .meta{
  font-size:15px;
  color:var(--ink-soft);
}
.purchase-bar .cta-group{
  display:flex;
  flex-direction:column;
  align-items:flex-end;
  gap:8px;
}
.purchase-bar .btn{white-space:nowrap; max-width:100%;}
@media (max-width:560px){
  .purchase-bar .btn{white-space:normal; word-break:break-word;}
}
.purchase-bar .upsell{
  font-size:14px;
  color:var(--ink-soft);
  text-align:right;
}
.purchase-bar .upsell a{color:var(--green); font-weight:600; text-decoration:none;}
.purchase-bar .upsell a:hover{text-decoration:underline;}
@media (max-width:560px){
  .purchase-bar{flex-direction:column; align-items:stretch; text-align:center;}
  .purchase-bar .info{justify-content:center;}
  .purchase-bar .cta-group{align-items:stretch;}
  .purchase-bar .upsell{text-align:center;}
}

.detail-copy{padding:36px 0 10px; max-width:720px;}
.detail-copy p.lead{
  font-size:19px;
  color:var(--ink-soft);
  margin-bottom:24px;
}
.detail-copy h2{
  font-size:24px;
  margin:34px 0 16px;
  display:flex;
  align-items:center;
  gap:12px;
}
.detail-copy h2::before{
  content:"";
  width:28px;height:3px;
  background:var(--green);
  display:inline-block;
  border-radius:2px;
}

/* ---------- RELATED BOOKS STRIP ---------- */
.related-head{
  margin-bottom:26px;
}

/* ---------- COVER IMAGES ---------- */
.cover-thumb{
  width:100%;
  border-radius:8px;
  margin-bottom:18px;
  box-shadow:0 10px 24px rgba(31,42,36,0.16);
}
.cover-large{
  display:block;
  max-width:340px;
  width:100%;
  margin:0 auto;
  border-radius:10px;
  box-shadow:0 16px 36px rgba(31,42,36,0.20);
}
.cover-page-head{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:28px;
}
@media (min-width:760px){
  .cover-page-head{
    flex-direction:row;
    align-items:flex-start;
    text-align:left;
  }
  .cover-page-head .cover-large{margin:6px 0 0;}
  .cover-page-head .headtext{flex:1;}
}
.bundle-cover{
  width:100%;
  max-width:420px;
  border-radius:10px;
  box-shadow:0 16px 36px rgba(31,42,36,0.20);
  margin-top:24px;
}

/* ---------- INLINE TEXT LINKS (not buttons/nav) ---------- */
p a:not(.btn), .fine a:not(.btn), .backlink, .upsell a, .also a, .single-book-note a {
  color:#1652D6;
  font-weight:700;
  text-decoration:underline;
  text-decoration-thickness:1.5px;
  text-underline-offset:2px;
}
p a:not(.btn):hover, .backlink:hover, .upsell a:hover, .also a:hover, .single-book-note a:hover {
  color:#0F3AA3;
}
p a:not(.btn):visited, .fine a:not(.btn):visited, .backlink:visited, .upsell a:visited, .also a:visited, .single-book-note a:visited {
  color:#111111;
}

.single-book-note{
  text-align:center;
  margin-top:22px;
  font-size:15px;
  color:var(--ink-soft);
}
