html{
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  min-height: 100%;
}

body{
  margin: 0;
  min-height: 100%;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.5;
  color: var(--ink);
}

  img, svg, video, canvas{
    max-width: 100%;
    height: auto;
  }

  p, li, h1, h2, h3, h4, h5, h6{
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  a{
    overflow-wrap: normal;
    word-break: normal;
  }

  *, *::before, *::after{
    box-sizing: border-box;
  }

  a{color:inherit; text-decoration:none}
  .container{max-width:var(--max); margin:0 auto; padding:0 22px 10px}

  .skip{
    position:absolute; left:-9999px; top:auto; width:1px;height:1px; overflow:hidden;
  }
  .skip:focus{
    left:16px; top:16px; width:auto;height:auto;
    padding:10px 12px; background:#fff;
    border:1px solid rgba(11,20,24,.18);
    border-radius:10px; box-shadow: var(--shadow2); z-index:9999;
  }

  .nav{
    position:sticky; top:0; z-index:30;
    background: rgba(255,255,255,.78);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(10px);
  }
  @supports (background: color-mix(in srgb, white 80%, black 20%)) {
    .nav{
      background: color-mix(in srgb, var(--bg) 75%, white 25%);
    }
  }

  .nav-inner{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:18px;
    padding:14px 0;
    min-width:0;
  }

  .brand{
    display:flex;
    align-items:center;
    gap:10px;
    flex:1 1 auto;
    min-width:0;
    overflow:hidden;
    font-weight:800;
    letter-spacing:.02em;
  }

  .brand-cover{
    width:18px;
    height:26px;
    flex:0 0 18px;
    object-fit:contain;
    background:rgba(255,255,255,.9);
    border-radius:3px;
    border:1px solid rgba(11,20,24,.18);
    box-shadow:0 6px 14px rgba(11,20,24,.18);
    padding:1px;
  }

  .brand span{
    display:block;
    min-width:0;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
    color:var(--ink);
    font-size:15px;
    line-height:1.2;
  }

  .nav-links{
    display:flex;
    align-items:center;
    justify-content:flex-end;
    gap:18px;
    flex:0 0 auto;
    min-width:max-content;
    font-size:15px;
  }

  .nav-links > a,
  .nav-links .bks-shelf-widget{
    flex:0 0 auto;
  }

  .nav-links a:not(.btn){
    white-space:nowrap;
    overflow-wrap:normal;
    word-break:normal;
    color:rgba(11,20,24,.70);
    padding:8px 0;
    border-bottom:2px solid transparent;
    line-height:1.3;
  }

  .bks-shelf-main-nav{
    white-space:nowrap;
  }

  .btn{
    display:inline-flex; align-items:center; justify-content:center; gap:8px;
    padding:13px 18px; border-radius: 6px;
    font-size:16px;
    line-height:1.2;
    cursor:pointer; user-select:none; white-space:nowrap;
  }
  .nav-links a.btn{ padding:13px 18px; border-bottom:0; }

  .btn-dark{
    background: var(--ink);
    color: #fff;
    border-color: rgba(0,0,0,.28);
    box-shadow: 0 10px 18px rgba(0,0,0,.14);
  }
  .btn-dark:hover{opacity:.92}

  .btn-teal{background: var(--teal); color: var(--white); border-color: rgba(15,79,87,.85);}
  .btn-teal:hover{opacity:.92}

  .btn-outline{background: transparent; color: var(--ink); border-color: rgba(11,20,24,.22);}
  .btn-outline:hover{background: rgba(11,20,24,.04)}

  .btn-soft{background: rgba(255,255,255,.65); border-color: rgba(11,20,24,.18);}
  .btn-soft:hover{background:#fff}

  .icon{width:16px;height:16px;display:inline-block}

  .hero{
    padding:34px 0 0;
    position:relative;
    background:var(--white);
    border-bottom:0;
  }

  .hero::before{
    display:none;
  }

  .hero-grid{
    display:grid;
    grid-template-columns: 430px 1fr;
    gap:52px;
    align-items:center;
  }
  .hero-left{ position:relative; padding:26px; }
  .book-frame{
    background: var(--white); padding:12px;
    box-shadow: var(--shadow); position:relative;
  }
  .book-cover{width:100%;height:auto;display:block;}

  .hero-right h1{
    margin:0;
    font-size: clamp(42px, 4.8vw, 68px);
    line-height:1.02;
    letter-spacing:.01em;
  }
  .hero-sub{
    margin:12px 0 12px 0;
    font-weight:900;
    letter-spacing:.08em;
    text-transform: uppercase;
    color: rgba(11,20,24,.78);
    font-size:18px;
    line-height:1.45;
  }

  .hero-specs{
    display:flex; flex-wrap:wrap; gap:10px; align-items:center;
    font-size:17px; font-weight:700;
    color: rgba(11,20,24,.68);
    max-width: 72ch;
    padding:12px 0;
    border-top:1px solid rgba(11,20,24,.10);
    border-bottom:1px solid rgba(11,20,24,.10);
    line-height:1.55;
  }
  .hero-specs .dot{ opacity:.45; }

  .hero-right .desc{
    margin:18px 0 0;
    color: rgba(11,20,24,.74);
    line-height:1.8;
    max-width: 72ch;
    font-size:20px;
  }

  .hero-hook{
    margin:18px 0 0;
    max-width:72ch;
    border-left: 4px solid rgb(41, 55, 55);
    padding-left:16px;
    color: rgb(0 0 0);
    line-height:2;
    font-size:20px;
  }
  .hero-hook strong{color: rgba(11,20,24,.92)}

  .hero-nudge{
    margin-top:16px;
    font-size:17px;
    color: rgba(11,20,24,.68);
    font-weight:800;
    max-width:72ch;
    line-height:1.5;
  }


  .format-tabs{
    margin-top:10px;
    display:inline-flex;
    gap:0;
    border:1px solid rgba(11,20,24,.14);
    border-radius: 12px;
    background: rgba(255,255,255,.80);
    overflow:hidden;
    box-shadow: 0 10px 18px rgba(0,0,0,.06);
  }
  .format-tab{
    appearance:none;
    border:0;
    background: transparent;
    padding:12px 14px;
    font-size:15px;
    color: rgba(11,20,24,.78);
    cursor:pointer;
    white-space:nowrap;
    line-height:1.2;
  }
  .format-tab + .format-tab{
    border-left:1px solid rgba(11,20,24,.10);
  }
  .format-tab:hover{
    background: rgba(11,20,24,.04);
    color: rgba(11,20,24,.92);
  }
  .format-tab.is-active{
    background: var(--ink);
    color: #fff;
  }
  .format-panels{
    width:100%;
  }
  .format-panel{
    width:100%;
  }

/* ==========================================================
   BUY SECTION
   ========================================================== */

.buy-strip{
  padding:36px 0;
  background:var(--bg);

  /* Strong, deliberate Hero → Buy separator */
  border-top:1px solid rgba(11,20,24,.22);
  border-bottom:1px solid rgba(11,20,24,.18);
}

.bks-buy-panel {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 22px 0;
}

.bks-buy-heading {
  width: 100%;
}

.bks-buy-heading .buy-label {
  margin: 0;
  font-size: 24px;
  font-weight: 700;
}

.bks-kdp-select-notice {
  display: grid;
  grid-template-columns:
    42px
    minmax(0, 1fr)
    auto;
  gap: 14px;
  align-items: center;
  width: 100%;
  padding: 14px 16px;
  border: 1px solid rgba(245, 166, 35, 0.42);
  border-radius: 13px;
  background:
    linear-gradient(
      135deg,
      rgba(245, 166, 35, 0.15),
      rgba(255, 255, 255, 0.76)
    );
}

.bks-kdp-select-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  overflow: hidden;
  border-radius: 10px;
  color: #6d4900;
  background: #f5a623;
}

.bks-kdp-select-mark svg {
  display: block;
  width: 21px !important;
  height: 21px !important;
  min-width: 21px;
  max-width: 21px;
  min-height: 21px;
  max-height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.bks-kdp-select-copy {
  min-width: 0;
}

.bks-kdp-select-copy strong {
  display: block;
  margin-bottom: 3px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
}

.bks-kdp-select-copy span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.45;
}

.bks-kdp-select-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 9px 14px;
  border: 1px solid #9b6500;
  border-radius: 10px;
  color: #fff;
  background: #9b6500;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
}

.bks-kdp-select-action:hover,
.bks-kdp-select-action:focus {
  color: #fff;
  background: #b87900;
}

.bks-format-buy-card {
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 100%;
  padding: 16px;
  border: 1px solid rgba(11, 20, 24, 0.14);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 10px 22px rgba(11, 20, 24, 0.06);
}

.bks-buy-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  width: 100%;
}

.bks-buy-controls .format-tabs {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  min-width: 0;
  margin: 0;
  gap: 0;
  flex-wrap: nowrap;
}

.bks-buy-controls .format-tab {
  min-height: 40px;
  padding: 9px 14px;
}

.bks-buy-controls .strip-cta {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: flex-end;
}

.bks-buy-controls #primaryBuyBtn {
  min-width: 160px;
  min-height: 42px;
  justify-content: center;
}

.bks-buy-controls #primaryBuyBtn[aria-disabled="true"] {
  opacity: 0.65;
  pointer-events: none;
}

.bks-format-buy-card .format-panels {
  width: 100%;
  padding: 0;
}

.bks-format-buy-card .format-panel {
  width: 100%;
  min-height: 76px;
  padding: 14px 16px;
  border: 1px solid rgba(11, 20, 24, 0.13);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.68);
}

.bks-format-buy-card .format-panel[hidden] {
  display: none !important;
}

.bks-format-buy-card .format-panel.is-active {
  display: block;
}

.bks-format-buy-card .format-price-line {
  margin: 0 0 12px;
}

.bks-format-buy-card .retailers {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.format-panel[hidden] {
  display: none !important;
}

.format-panel.is-active {
  display: block;
}

.format-panel .format-price-line {
  margin-bottom: 13px;
}

.format-panel .retailers {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.bks-buy-tip {
  margin: 0;
  color: rgba(11, 20, 24, 0.58);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.5;
}

@media (max-width: 760px) {
  .bks-kdp-select-notice {
    grid-template-columns:
      42px
      minmax(0, 1fr);
  }

  .bks-kdp-select-action {
    grid-column: 1 / -1;
    width: 100%;
  }

  .bks-buy-controls {
    grid-template-columns: 1fr;
    align-items: stretch;
    gap: 14px;
  }

  .bks-buy-controls .format-tabs {
    width: 100%;
    max-width: none;
  }

  .bks-buy-controls .format-tab {
    flex: 1 1 auto;
  }

  .bks-buy-controls .strip-cta {
    width: 100%;
  }

  .bks-buy-controls #primaryBuyBtn {
    width: 100%;
  }

  .bks-format-buy-card .format-panel {
    min-height: 0;
  }
}

@media (max-width: 520px) {
  .bks-format-buy-card {
    gap: 14px;
    padding: 13px;
  }

  .bks-buy-controls .format-tabs {
    display: grid;
    grid-template-columns:
      repeat(
        2,
        minmax(0, 1fr)
      );
    gap: 8px;
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .bks-buy-controls .format-tab {
    width: 100%;
    min-height: 42px;
    border: 1px solid rgba(11, 20, 24, 0.14);
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.8);
  }

  .bks-buy-controls .format-tab + .format-tab {
    border-left: 1px solid rgba(11, 20, 24, 0.14);
  }

  .bks-buy-controls .format-tab.is-active {
    color: #fff;
    background: var(--ink);
  }

  .bks-format-buy-card .format-panel {
    padding: 14px;
  }

  .bks-format-buy-card .retailers {
    gap: 8px;
  }

  .bks-format-buy-card .retailer-btn {
    min-height: 44px;
  }
}

  .retailers{display:flex; align-items:center; gap:10px; flex-wrap:wrap;}
  .retailer-btn{
    display:inline-flex; align-items:center; gap:10px;
    padding:12px 14px; border-radius: 10px;
    border:1px solid rgba(11,20,24,.14);
    background: rgba(255,255,255,.85);
    font-size:15px;
    color: rgba(11,20,24,.82);
    line-height:1.2;
  }
  .retailer-btn:hover{ background:#fff; color: rgba(11,20,24,.95); }
  .retailer-logo{
    height: 20px;
    width: auto;
    display: block;
  }

  section{padding:52px 0}
  .section-title{
    text-align:center;
    letter-spacing:.08em;
    text-transform: uppercase;
    margin:0 0 26px;
    font-size:18px;
  }

  /* WHAT'S INSIDE */
  #inside .inside-wrap{
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
  }

  #inside .inside-heading{
    text-align:center;
    font-size:2.2rem;
    font-weight:900;
    margin:0 0 60px;
    letter-spacing:-0.6px;
    text-transform: uppercase;
  }

  #inside .steps{
    display:flex;
    justify-content:space-between;
    position:relative;
    gap:40px;
  }

  #inside .step{
    flex:1;
    text-align:center;
    position:relative;
    z-index:2;
    border-radius:14px;
    padding:10px 10px 14px;
    transition: transform .15s ease, background .15s ease;
    outline:none;
  }

  #inside .step:hover{
    background: rgba(0,0,0,.03);
    transform: translateY(-2px);
  }

  #inside .step:focus-visible{
    outline: 3px solid rgba(15,79,87,.22);
    outline-offset: 6px;
  }

  #inside .number{
    width:52px; height:52px;
    background:#000; color:#fff;
    border-radius:50%;
    font-size:1.5rem;
    font-weight:800;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    margin-bottom:14px;
    position:relative;
    z-index:3;
  }

  #inside .title{
    font-size:1.2rem;
    font-weight:900;
    margin-bottom:8px;
    line-height:1.3;
    letter-spacing:-0.1px;
  }

  #inside .meta{
    font-size: 16px;
    color:#666;
    margin-bottom:12px;
    font-weight:800;
    letter-spacing:.02em;
    line-height: 1.5;
  }

  #inside .description{
    font-size: 1.12rem;
    line-height: 1.75;
    color:#444;
    display:-webkit-box;
    -webkit-box-orient:vertical;
    overflow:hidden;
    margin-bottom:14px;
  }

  #inside .more-btn{
    display:inline-flex;
    align-items:center;
    gap:8px;
    padding:11px 16px;
    border-radius: 8px;
    border:1px solid rgba(0,0,0,.18);
    background: rgba(255,255,255,.65);
    cursor:pointer;
    font-weight:900;
    font-size:1rem;
    color:#111;
    user-select:none;
    line-height:1.2;
  }
  #inside .more-btn:hover{ background:#fff; }
  #inside .more-btn:focus-visible{
    outline:3px solid rgba(0,0,0,.25);
    outline-offset:3px;
  }

  #inside .step-2{
    margin-top:100px;
  }

  #inside .connector-svg{
    position:absolute;
    inset:0;
    width:100%;
    height:100%;
    z-index:1;
    pointer-events:none;
    overflow:visible;
  }

  #inside .steps-single{
    justify-content:center;
    max-width:360px;
    margin:0 auto;
  }

  #inside .steps-single .step{
    flex:0 1 360px;
    max-width:360px;
  }

  #inside .steps-single .connector-svg,
  #inside .steps-single .step-2{
    display:none;
  }

  #inside .steps-double{
    justify-content:center;
    align-items:flex-start;
    gap:120px;
    max-width:900px;
    margin:0 auto;
  }

  #inside .steps-double .step{
    flex:0 1 340px;
    max-width:340px;
  }

  #inside .steps-double .step-2{
    margin-top:0;
  }

  #inside .steps-triple{
    justify-content:space-between;
    align-items:flex-start;
    gap:40px;
  }

  #inside .steps-triple .step{
    flex:1 1 0;
    max-width:320px;
  }

  #inside .steps-triple .step-2{
    margin-top:100px;
  }

  #inside .modal-backdrop{
    position:fixed; inset:0;
    background: rgba(0,0,0,.55);
    display:none;
    align-items:center;
    justify-content:center;
    padding:24px;
    z-index:10000;
    overflow:auto;
    -webkit-overflow-scrolling: touch;
  }
  #inside .modal-backdrop.open{ display:flex; }

  #inside .modal{
    width:min(860px, 100%);
    max-height:92vh;
    background:#fbfaf7;
    border-radius:18px;
    box-shadow: 0 20px 60px rgba(0,0,0,.35);
    position:relative;
    overflow:hidden;
    display:flex;
    flex-direction:column;
  }

  @supports (height: 100dvh){
    #inside .modal{
      max-height:92dvh;
    }
  }

  #inside .modal-header{
    padding:18px 20px 14px;
    background: rgba(0,0,0,.03);
    border-bottom:1px solid rgba(0,0,0,.08);
  }

  #inside .modal-kicker{
    display:flex; align-items:center; gap:10px;
    margin-bottom:10px;
  }
  #inside .modal-badge{
    width:34px; height:34px;
    border-radius:999px;
    background:#000; color:#fff;
    display:inline-flex; align-items:center; justify-content:center;
    font-weight:900;
  }
  #inside .modal-title{
    font-size:1.28rem;
    font-weight:900;
    letter-spacing:-0.2px;
    margin:0;
    line-height:1.3;
  }

  #inside .modal-close{
    position:absolute; top:12px; right:12px;
    width:40px; height:40px;
    border-radius:12px;
    border:1px solid rgba(0,0,0,.12);
    background: rgba(255,255,255,.9);
    cursor:pointer;
    display:flex; align-items:center; justify-content:center;
    font-size:18px; line-height:1;
  }
  #inside .modal-close:hover{ background:#fff; }

  #inside .modal-body{
    padding:18px 20px 22px;
    overflow:auto;
    -webkit-overflow-scrolling: touch;
    min-height:0;
  }

  #inside .modal-text{
    font-family: ui-serif, Georgia, "Times New Roman", Times, serif;
    font-size:1.12rem;
    line-height:1.8;
    color:#1a1a1a;
    text-align:left;
    white-space:pre-wrap;
    overflow-wrap:anywhere;
  }

  body.modal-open{
    overflow: hidden;
    touch-action: none;
  }

  /* MAILING LIST */
    .mailing{
    position: relative;
    color: var(--white);
    padding: 0;
    overflow: hidden;
    border-top: 6px solid rgba(11,20,24,.92);
    }

.mailing::before{
  content: "";
  position: absolute;
  inset: 0;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  filter: blur(3px);
  transform: scale(2.12);
  opacity: .65;
  z-index: 0;
}

    .mailing::after{
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to bottom, rgba(11,20,24,.45), rgba(11,20,24,.72));
    z-index: 1;
    }

  .mailing .container,
  .mailing-inner{
    position:relative;
    z-index:2;
  }

  .mailing-inner{
    padding:46px 0 50px;
    text-align:center;
  }

  .mailing h2{
    margin:0;
    letter-spacing:.10em;
    text-transform: uppercase;
    font-size:22px;
    line-height:1.35;
  }

  .mailing p{
    margin: 14px auto 22px;
    max-width: 72ch;
    opacity:.92;
    line-height: 1.8;
    font-size: 19px;
  }

  .mailing-trust{
    margin:10px auto 0;
    font-size:14px;
    opacity:.86;
    display:flex;
    gap:14px;
    justify-content:center;
    flex-wrap:wrap;
    font-weight:900;
    letter-spacing:.06em;
    line-height:1.4;
  }

  .mailing-form{
    display:flex;
    justify-content:center;
    gap:10px;
    flex-wrap:wrap;
    max-width: 760px;
    margin:0 auto;
  }

  .mailing-input{
    flex:1 1 340px;
    min-width: 240px;
    padding:16px 15px;
    border:1px solid rgba(255,255,255,.18);
    outline:none;
    border-radius:10px;
    font-size:16px;
    background: rgba(255,255,255,.94);
    color: var(--ink);
    box-shadow: 0 10px 24px rgba(0,0,0,.18);
  }

  .mailing-btn{
    border:1px solid rgba(255,255,255,.14);
    background: rgba(11,20,24,.92);
    color: var(--white);
    font-weight:900;
    padding:16px 20px;
    border-radius:10px;
    cursor:pointer;
    font-size:16px;
    box-shadow: 0 10px 24px rgba(0,0,0,.22);
    line-height:1.2;
  }

/* ==========================================================
   ABOUT THE AUTHOR
   ========================================================== */

.about-wrap{
  border-top:1px solid var(--line);
  background:var(--bg);
}

.about-title{
  margin:0 0 24px;
  text-align:left;
  font-size:24px;
  font-weight:900;
  letter-spacing:.06em;
  line-height:1.3;
  text-transform:uppercase;
}

.about-bio{
  white-space:pre-line;
}

.about-grid{
  display:grid;
  grid-template-columns:260px minmax(0,1fr);
  gap:34px;
  align-items:start;
}

.about-photo{
  width:100%;
  display:flex;
  justify-content:center;
  align-items:flex-start;
  justify-self:center;
}

.about-photo img{
  width:120px;
  max-width:120px;
  height:auto;
  display:block;
  border-radius:12px;
  border:1px solid rgba(11,20,24,.14);
  box-shadow:var(--shadow2);
  background:rgba(255,255,255,.65);
}

.about-avatar{
  width:140px;
  max-width:100%;
  height:auto;
  display:none;
  filter:drop-shadow(0 10px 14px rgba(11,20,24,.18));
}

.about-photo.fallback .about-avatar{
  display:block;
}

.about-text{
  min-width:0;
}

.about-text p{
  margin:0 0 16px;
  color:rgba(11,20,24,.70);
  font-size:19px;
  line-height:1.85;
}

.about-name{
  margin:0 0 8px;
  font-size:22px;
  font-weight:900;
  letter-spacing:.02em;
  line-height:1.3;
}

.about-cred{
  margin:0 0 14px;
  font-size:14px;
  font-weight:900;
  color:rgba(11,20,24,.68);
  letter-spacing:.06em;
  line-height:1.4;
  text-transform:uppercase;
}

.about-icons{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:10px;
  margin-top:12px;
}

.social-icon{
  width:34px;
  height:34px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border:1px solid rgba(11,20,24,.16);
  border-radius:6px;
  background:transparent;
}

.social-icon:hover{
  background:rgba(11,20,24,.04);
}

.social-icon svg{
  width:18px;
  height:18px;
}

.social-icon img{
  width:20px;
  height:20px;
  display:block;
}

/* ------------------------------
   Mobile
------------------------------ */

@media (max-width:768px){

  .about-title{
    text-align:center;
  }

  .about-grid{
    grid-template-columns:1fr;
    gap:20px;
  }

  .about-photo{
    justify-content:center;
  }

  .about-photo img,
  .about-avatar{
    max-width:160px;
    width:160px;
  }

  .about-name,
  .about-cred{
    text-align:center;
  }

  .about-icons{
    justify-content:center;
  }

  .about-text{
    text-align:left;
  }
}

/* COMMUNITY */
.community{
  border-top: 6px solid rgba(11,20,24,.92);
  background: #efe9df;
}

.community-inner{
  display:grid;
  grid-template-columns:minmax(0, 1fr) auto;
  gap:18px 32px;
  align-items:start;
  padding:22px 0;
}

.community-left{
  min-width:0;
  max-width:none;
  display:contents;
}

.community-left h2,
.community-left > p{
  grid-column:1;
  max-width:62ch;
}

.community-left h2{
  margin:0;
  letter-spacing:.06em;
  text-transform: uppercase;
  font-size:18px;
  font-weight:900;
  line-height:1.35;
}

.community-left p{
  margin:10px 0 0;
  color:rgba(11,20,24,.70);
  font-size:18px;
  line-height:1.8;
}

.community-right{
  grid-column:2;
  grid-row:1 / span 2;
  display:flex;
  flex-direction:column;
  gap:12px;
  align-items:flex-end;
  min-width:320px;
}

.community-actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  justify-content:flex-end;
  align-items:center;
}

.bks-community-talk{
  grid-column:1 / -1;
  width:100%;
  margin-top:24px;
  padding:1cm;
  border-radius:6px;
  background:#3b3b3b;
  color:#cfcfcf;
}

.bks-talk-columns{
  display:grid;
  grid-template-columns:repeat(4, minmax(0, 1fr));
  gap:28px;
}

.bks-talk-col h3{
  margin:0 0 14px;
  padding-left:8px;
  border-left:4px solid #b78c33;
  color:#ddd;
  font-size:1rem;
  text-transform:uppercase;
}

.bks-talk-col a{
  display:block;
  padding:4px 0;
  color:#cfcfcf;
  text-decoration:none;
  line-height:1.35;
}

.bks-talk-col a:hover{
  color:#b78c33;
  text-decoration:underline;
}

@media (max-width:900px){
  .community-inner{
    grid-template-columns:1fr;
  }

  .community-left,
  .community-left h2,
  .community-left > p,
  .community-right,
  .bks-community-talk{
    grid-column:1;
  }

  .community-right{
    grid-row:auto;
    min-width:unset;
    width:100%;
    align-items:flex-start;
  }

  .community-actions{
    justify-content:flex-start;
  }

  .bks-talk-columns{
    grid-template-columns:repeat(2, minmax(0, 1fr));
  }
}

@media (max-width:560px){
  .bks-talk-columns{
    grid-template-columns:1fr;
  }
}



.signup-modal{
  position:fixed;
  inset:0;
  display:none;
  align-items:center;
  justify-content:center;
  padding:20px;
  background:rgba(11,20,24,.55);
  z-index:12000;
}

.signup-modal.is-open{
  display:flex;
}

.signup-modal-card{
  width:min(520px,100%);
  background:#fff;
  color:#111827;
  border-radius:18px;
  box-shadow:0 30px 80px rgba(0,0,0,.28);
  padding:26px 22px 20px;
  position:relative;
  text-align:center;
}

.signup-modal-close{
  position:absolute;
  top:12px;
  right:12px;
  width:40px;
  height:40px;
  border:1px solid rgba(11,20,24,.12);
  background:#fff;
  border-radius:12px;
  cursor:pointer;
}

.signup-modal-icon{
  width:56px;
  height:56px;
  margin:0 auto 12px;
  border-radius:999px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:rgba(15,79,87,.10);
  color:var(--teal);
  font-size:24px;
  font-weight:900;
}

.signup-modal-title{
  margin:0 0 8px;
  font-size:1.45rem;
  font-weight:900;
}

.signup-modal-text{
  margin:0;
  color:rgba(17,24,39,.78);
  line-height:1.7;
}

footer{
  text-align:center;
}

footer .container{
  display:block;
  text-align:center;
}

.footer-bookline,
.footer-meta{
  text-align:center;
}

.bks-shelf-widget {
  position: relative;
  display: inline-block;
}

.bks-shelf-main {
  border: 0;
  border-radius: 6px;
  font-size:16px;
  line-height:1.2;
  padding: 12px 18px;
  background: #4f7f84;
  color: #ffffff;
  cursor: pointer;
}

.bks-shelf-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 210px;
  padding: 8px;
  border-radius: 14px;
  background: #111113;
  border: 1px solid rgba(255,255,255,.16);
  box-shadow: 0 18px 45px rgba(0,0,0,.35);
  z-index: 50;
}

.bks-shelf-menu button {
  display: block;
  width: 100%;
  border: 0;
  background: transparent;
  color: #fff;
  text-align: left;
  padding: 10px 12px;
  border-radius: 10px;
  font-weight: 700;
  cursor: pointer;
}

.bks-shelf-menu button:hover {
  background: rgba(77,179,255,.18);
}

.bks-hero-actions-clean {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  margin-top: 22px;
}

.bks-cover-rating-row {
  width: min(100%, 390px);
  margin: 16px auto 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

.bks-cover-rating-row-empty {
  justify-content: center;
}

.bks-rating-chip {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  height: 36px;
  padding: 0 14px;
  border-radius: 4px;
  background: #232d3a;
  color: #a8f04f;
}

.bks-rating-number {
  color: #fff;
  font-size: 14px;
  line-height: 1;
}

.bks-rating-stars {
  color: #a8f04f;
  font-size: 24px;
  letter-spacing: 3px;
  line-height: 1;
  white-space: nowrap;
}

.bks-rate-book-button {
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border-radius: 4px;
  background: var(--ink);
  color: #fff;
  font-size: 14px;
  white-space: nowrap;
}

.bks-rate-book-button:hover {
  opacity: .92;
}

@media (max-width: 520px) {
  .bks-cover-rating-row {
    flex-direction: column;
  }
}

.bks-hero-actions-clean {
  margin-top: 22px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}

.bks-main-buy-btn {
  min-width: 150px;
}

.bks-reader-actions-card {
  width: min(100%, 430px);
  padding: 12px;
  border-radius: 12px;
  background: #50525b;
  border: 1px solid rgba(11,20,24,.12);
  box-shadow: 0 10px 24px rgba(0,0,0,.08);
}

.bks-reader-actions-title {
  margin-bottom: 8px;
  font-size: 14px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #ffffff;
}

.bks-reader-actions-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.bks-reader-actions-list > * {
  width: 100%;
  min-width: 0;
}

.bks-reader-action {
  appearance: none;
  width: 100%;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  border: 1px solid rgba(11,20,24,.12);
  background: #fff;
  color: rgba(11,20,24,.82);
  border-radius: 8px;
  padding: 9px 10px;
  font-size: 13px;
  line-height: 1.2;
  cursor: pointer;
  text-align: left;
}

.bks-reader-action:hover {
  background: rgb(23, 30, 40);
  color: #ffffff;
}

@media (max-width: 700px) {
  .bks-hero-actions-clean {
    align-items: stretch;
  }

  .bks-main-buy-btn,
  .bks-reader-actions-card {
    width: 100%;
  }

  .bks-reader-actions-list {
    grid-template-columns: 1fr;
  }
}

.bks-rating-chip {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  height: 36px;
  padding: 0 20px;
}

.bks-rating-number {
  align-items: center;
  height: 34px;
  color: #fff;
  font-size: 20px;
  line-height: 38px;
}

.bks-rating-stars {
  display: inline-flex;
  align-items: center;
  height: 34px;
  gap: 3px;
  font-size: 34px;
  line-height: 34px;
  transform: translateY(-1px);
}

.bks-rating-stars .star-on {
  color: #74ad2d;
}

.bks-rating-stars .star-off {
  color: rgba(0,0,0,.45);
}

.bks-rating-modal[hidden] {
  display: none !important;
}

.bks-rating-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(0,0,0,.65);
  display: flex;
  align-items: center;
  justify-content: center;
}

.bks-rating-modal-card {
  position: relative;
  width: min(92vw, 360px);
  padding: 24px;
  border-radius: 16px;
  background: #303238;
  color: #fff;
  text-align: center;
  box-shadow: 0 24px 70px rgba(0,0,0,.35);
}

.bks-rating-close {
  position: absolute;
  top: 10px;
  right: 12px;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 28px;
  cursor: pointer;
}

.bks-modal-rating-stars {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin: 18px 0;
}

.bks-modal-rating-stars button {
  border: 0;
  background: transparent;
  color: rgba(0,0,0,.45);
  font-size: 42px;
  line-height: 1;
  cursor: pointer;
}

.bks-modal-rating-stars button.is-selected {
  color: #a8f04f;
}


@media (max-width: 1100px) {
  .nav-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .brand {
    width: 100%;
    justify-content: flex-start;
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    text-align: left;
  }

  .brand span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .nav-links {
    width: 100%;
    min-width: 0;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 10px 16px;
    font-size: 14px;
  }

  .nav-links > a,
  .nav-links .bks-shelf-widget {
    flex: 0 0 auto;
  }

  .nav-links a:not(.btn) {
    white-space: nowrap;
    overflow-wrap: normal;
    word-break: normal;
  }

  .nav-links a:not(.btn),
  .nav-links .btn,
  .bks-shelf-main-nav {
    padding: 9px 10px;
  }

  .bks-shelf-main-nav {
    white-space: nowrap;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 22px;
    align-items: start;
  }

  .hero-left {
    width: 100%;
    max-width: 360px;
    margin: 0 auto;
    padding: 14px;
  }

  .hero-right {
    text-align: center;
  }

  .hero-right h1 {
    font-size: clamp(34px, 9vw, 52px);
  }

  .hero-specs {
    justify-content: center;
  }

  .hero-actions {
    justify-content: center;
  }
}


header.nav {
  position: sticky;
  top: 0;
  z-index: 1100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

html {
  scroll-padding-top: 90px;
}


@media (max-width: 560px) {
  .nav {
    position: relative;
  }

  .nav-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  .nav-links a,
  .nav-links .bks-shelf-widget,
  .nav-links .btn {
    width: 100%;
  }

  .nav-links a:not(.btn),
  .nav-links .btn,
  .bks-shelf-main-nav {
    justify-content: center;
    text-align: center;
    white-space: normal;
  }

  .hero {
    padding-top: 18px;
  }

  .hero-left {
    max-width: 280px;
  }

  .hero-specs {
    display: block;
    text-align: center;
  }

  .hero-specs .dot {
    display: none;
  }

  .hero-specs span {
    display: block;
    margin: 8px 0;
  }
}

.back-to-top{
  position:fixed;
  right:24px;
  bottom:24px;
  z-index:1000;

  width:44px;
  height:44px;

  display:flex;
  align-items:center;
  justify-content:center;

  border:1px solid rgba(11,20,24,.18);
  border-radius:50%;

  background:rgba(255,255,255,.94);
  color:var(--ink);

  font-size:22px;
  line-height:1;

  box-shadow:0 4px 16px rgba(0,0,0,.10);

  cursor:pointer;

  opacity:0;
  visibility:hidden;
  transform:translateY(8px);

  transition:
    opacity .2s ease,
    transform .2s ease,
    visibility .2s ease,
    background .2s ease;
}

.back-to-top.is-visible{
  opacity:1;
  visibility:visible;
  transform:translateY(0);
}

.back-to-top:hover{
  background:var(--white);
}

@media (max-width: 767px){
  .back-to-top{
    right:16px;
    bottom:16px;
    width:42px;
    height:42px;
  }
}