/* Books section for the honeytreeorchard.com homepage.
   Approved by D.R. 10 November 2026 (America/New_York).
   Brand: forest, gold, ivory, Cormorant Garamond + Inter.
*/

.home-books-line{
  margin:1.15rem 0 0;
  font:500 .72rem/1.35 Inter,system-ui,sans-serif;
  letter-spacing:.16em;
  font-variant:all-small-caps;
}
.home-books-line a{
  color:#E8D4A8;
  text-decoration:none;
  border-bottom:1px solid rgba(232,212,168,.45);
}
.home-books-line a:hover,
.home-books-line a:focus-visible{
  color:#f8f2e4;
  border-bottom-color:#f8f2e4;
}

/* Section */
.htoa-books{
  scroll-margin-top:6.5rem;
  background:#f8f2e4;
  color:#15261D;
  padding-block:clamp(56px,9vw,120px);
  border-top:1px solid rgba(166,138,73,.28);
  border-bottom:1px solid rgba(166,138,73,.28);
}
.htoa-books img,
.htoa-book-dialog img{
  filter:none !important; /* don't let luxe's photo filter tint the covers */
}
.htoa-books-inner{
  width:min(68rem, calc(100% - 2.4rem));
  margin-inline:auto;
}
.htoa-books-head{
  text-align:center;
  margin-bottom:clamp(2rem,4.5vw,3.25rem);
}
.htoa-books-head h2{
  margin:0 auto .6rem;
  font-family:"Cormorant Garamond",Georgia,serif;
  font-weight:600;
  font-size:clamp(2rem,4.2vw,3.1rem);
  line-height:1.12;
  color:#1d3b2a;
  max-width:18ch;
  letter-spacing:.01em;
}
.htoa-books-head .lede{
  margin:0 auto;
  max-width:38rem;
  color:#4a544c;
}

/* Four book cards: two to write in, two to read */
.htoa-book-grid{
  list-style:none;
  margin:0;
  padding:0;
  display:grid;
  grid-template-columns:1fr;
  gap:1.5rem;
}
@media (min-width:760px){
  .htoa-book-grid{grid-template-columns:repeat(2, minmax(0,1fr)); gap:1.75rem;}
}
.htoa-book-card{
  display:flex;
  flex-direction:column;
  background:#FBF8F1;
  border:1px solid rgba(29,59,42,.14);
  padding:1.1rem 1.1rem 1.35rem;
  min-height:100%;
}
.htoa-book-card:hover,
.htoa-book-card:focus-within{
  border-color:#a68a49;
}
.htoa-book-cover{
  display:block;
  margin:0 0 1rem;
  text-decoration:none;
  color:inherit;
  cursor:pointer;
  background:none;
  border:0;
  padding:0;
  width:100%;
  text-align:left;
}
.htoa-book-cover img{
  display:block;
  width:100%;
  height:auto;
  background:#0f1c14;
  box-shadow:0 10px 28px rgba(0,0,0,.22);
  transition:transform .25s ease, box-shadow .25s ease;
}
.htoa-book-cover:hover img,
.htoa-book-cover:focus-visible img{
  transform:translateY(-3px);
  box-shadow:0 14px 32px rgba(0,0,0,.28);
}
.htoa-book-cover:focus-visible{
  outline:3px solid #e9c46a;
  outline-offset:4px;
}
.htoa-book-card h3{
  margin:0 0 .35rem;
  font-family:"Cormorant Garamond",Georgia,serif;
  font-weight:600;
  font-size:1.55rem;
  line-height:1.2;
  color:#1d3b2a;
  max-width:none;
}
.htoa-book-card .byline{
  margin:0 0 .5rem;
  font-size:.88rem;
  color:#4a544c;
}
.htoa-book-card .one-line{
  margin:0 0 1.1rem;
  flex:1 1 auto;
  color:#4a544c;
  font-size:.98rem;
  line-height:1.55;
}
.htoa-book-actions{
  display:flex;
  flex-wrap:wrap;
  gap:.65rem;
  align-items:center;
}
.htoa-books .btn,
.htoa-book-dialog .btn{
  border-radius:0 !important;
  letter-spacing:.12em;
  font-variant:all-small-caps;
}
.htoa-soon{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:46px;
  padding:.7rem 1.2rem;
  border:1px solid rgba(29,59,42,.35);
  color:#1d3b2a;
  background:transparent;
  font:500 .72rem/1.1 Inter,system-ui,sans-serif;
  letter-spacing:.12em;
  font-variant:all-small-caps;
  cursor:default;
}

/* Featured promo for The Orchard Keeper's Record */
.htoa-okr-feature{
  margin-top:clamp(2.75rem,6vw,4.5rem);
  display:grid;
  grid-template-columns:1fr;
  gap:clamp(1.5rem,3vw,2.5rem);
  align-items:center;
  padding-top:clamp(2rem,4vw,3rem);
  border-top:1px solid rgba(166,138,73,.28);
}
@media (min-width:900px){
  .htoa-okr-feature{
    grid-template-columns:minmax(0,280px) minmax(0,1fr);
    gap:2.75rem;
  }
}
.htoa-promo-video{
  margin:0;
  background:#0f1c14;
  box-shadow:0 10px 28px rgba(0,0,0,.22);
}
.htoa-promo-video video{
  display:block;
  width:100%;
  height:auto;
  aspect-ratio:5/7;
  object-fit:contain;
  background:#0f1c14;
  vertical-align:middle;
}
.htoa-promo-note{
  margin:.55rem 0 0;
  font-size:.78rem;
  color:#6b746c;
  letter-spacing:.02em;
}
.htoa-okr-copy h3{
  margin:0 0 .75rem;
  font-family:"Cormorant Garamond",Georgia,serif;
  font-weight:600;
  font-size:clamp(1.7rem,3vw,2.2rem);
  color:#1d3b2a;
  max-width:18ch;
  line-height:1.15;
}
.htoa-okr-copy h4{
  margin:1.25rem 0 .4rem;
  font-family:"Cormorant Garamond",Georgia,serif;
  font-weight:600;
  font-size:1.25rem;
  color:#1d3b2a;
}
.htoa-okr-copy p{margin:0 0 .7rem; color:#3a453e;}
.htoa-okr-copy .features{
  margin:.3rem 0 1rem;
  padding-left:1.2rem;
  color:#3a453e;
}
.htoa-okr-copy .features li{margin:.3rem 0;}

/* Detail dialog */
.htoa-book-dialog{
  width:min(58rem, calc(100% - 1.25rem));
  max-height:min(94dvh, 920px);
  margin:auto;
  padding:0;
  border:1px solid #a68a49;
  background:#f8f2e4;
  color:#15261D;
  box-shadow:0 24px 64px rgba(0,0,0,.4);
}
.htoa-book-dialog::backdrop{
  background:rgba(15,28,20,.72);
}
.htoa-book-dialog-inner{
  display:flex;
  flex-direction:column;
  max-height:min(94dvh, 920px);
  min-height:0;
}
.htoa-book-dialog-bar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:1rem;
  padding:.75rem 1rem .75rem 1.25rem;
  border-bottom:1px solid rgba(166,138,73,.3);
  background:#1d3b2a;
  color:#f8f2e4;
  flex:0 0 auto;
}
.htoa-book-dialog-kicker{
  margin:0;
  font:500 .72rem/1 Inter,system-ui,sans-serif;
  letter-spacing:.16em;
  font-variant:all-small-caps;
  color:#e9c46a;
}
.htoa-book-dialog-close{
  appearance:none;
  border:1px solid rgba(248,242,228,.35);
  background:transparent;
  color:#f8f2e4;
  width:44px;
  height:44px;
  min-width:44px;
  display:grid;
  place-items:center;
  cursor:pointer;
  font-size:1.5rem;
  line-height:1;
}
.htoa-book-dialog-close:hover,
.htoa-book-dialog-close:focus-visible{
  background:#e9c46a;
  color:#1d3b2a;
  border-color:#e9c46a;
}
.htoa-book-dialog-body{
  flex:1 1 auto;
  min-height:0;
  overflow:auto;
  padding:1.25rem 1.25rem 1.75rem;
  -webkit-overflow-scrolling:touch;
}
.htoa-book-gallery{
  display:flex;
  gap:1rem;
  overflow-x:auto;
  scroll-snap-type:x mandatory;
  margin:0 0 1.35rem;
  padding:0 0 .4rem;
  -webkit-overflow-scrolling:touch;
}
.htoa-book-gallery figure{
  margin:0;
  flex:0 0 auto;
  width:min(220px, 68vw);
  scroll-snap-align:start;
}
@media (min-width:800px){
  .htoa-book-gallery figure{width:min(200px, 23%);}
}
.htoa-book-gallery img{
  display:block;
  width:100%;
  height:auto;
  background:#0f1c14;
  box-shadow:0 8px 24px rgba(0,0,0,.25);
}
.htoa-book-gallery figcaption{
  margin:.45rem 0 0;
  font:500 .68rem/1 Inter,system-ui,sans-serif;
  letter-spacing:.14em;
  font-variant:all-small-caps;
  color:#a68a49;
  text-align:center;
}
.htoa-book-dialog-body h2{
  margin:0 0 .25rem;
  font-family:"Cormorant Garamond",Georgia,serif;
  font-weight:600;
  font-size:clamp(1.8rem,3.5vw,2.6rem);
  line-height:1.15;
  color:#1d3b2a;
  max-width:20ch;
}
.htoa-book-dialog-body .subtitle{
  margin:0 0 .2rem;
  font-family:"Cormorant Garamond",Georgia,serif;
  font-style:italic;
  font-size:1.2rem;
  color:#1d3b2a;
}
.htoa-book-dialog-body .byline{margin:0 0 1rem; color:#4a544c;}
.htoa-book-dialog-body .hook{
  margin:0 0 1rem;
  padding-left:1rem;
  border-left:1px solid #a68a49;
  font-family:"Cormorant Garamond",Georgia,serif;
  font-style:italic;
  font-size:clamp(1.2rem,2.2vw,1.45rem);
  line-height:1.4;
  color:#1d3b2a;
}
.htoa-book-dialog-body p{margin:0 0 .8rem; color:#3a453e;}
.htoa-book-dialog-body .formats{
  margin:1.1rem 0 .7rem;
  font:500 .78rem/1.4 Inter,system-ui,sans-serif;
  letter-spacing:.04em;
  color:#1d3b2a;
}
.htoa-buy-row{
  display:flex;
  flex-wrap:wrap;
  gap:.7rem;
  margin:0 0 .4rem;
}
.htoa-buy-row a.btn{
  background:#1d3b2a;
  color:#fff;
  border-color:#1d3b2a;
  text-decoration:none;
}
.htoa-buy-row a.btn:hover{
  background:#244a35;
  color:#fff;
  border-color:#244a35;
}
.htoa-buy-row .htoa-soon{
  opacity:.9;
}
.htoa-page-link{
  margin:.85rem 0 0;
  font-size:.95rem;
}
.htoa-page-link a{color:#1d3b2a;}

@media (prefers-reduced-motion:reduce){
  .htoa-book-cover img{transition:none;}
  .htoa-book-cover:hover img{transform:none;}
}

#orchard-keepers-record{scroll-margin-top:6.5rem;}
#gardeners-record{scroll-margin-top:6.5rem;}

/* Featured block for a book shown with its cover instead of a promo video */
.htoa-feature-cover{
  margin:0;
}
.htoa-feature-cover .htoa-book-cover{
  display:block;
  max-width:280px;
}
.htoa-feature-cover img{
  display:block;
  width:100%;
  height:auto;
  box-shadow:0 10px 28px rgba(0,0,0,.22);
}

.htoa-okr-copy .subtitle{
  margin:0 0 .55rem;
  font-family:"Cormorant Garamond",Georgia,serif;
  font-style:italic;
  font-size:1.15rem;
  color:#1d3b2a;
}
.htoa-okr-copy .hook{
  margin:0 0 1rem;
  padding-left:1rem;
  border-left:1px solid #a68a49;
  font-family:"Cormorant Garamond",Georgia,serif;
  font-style:italic;
  font-size:clamp(1.2rem,2.2vw,1.45rem);
  line-height:1.4;
  color:#1d3b2a;
}


/* Compact homepage books row (staged 2026-11-24). */
.htoa-books--compact{
  padding-block:clamp(40px,6vw,72px);
}
.htoa-books--compact .htoa-books-head{
  margin-bottom:1.5rem;
}
.htoa-books--compact .htoa-books-head h2{
  font-size:clamp(1.65rem,3vw,2.35rem);
  max-width:none;
}
.htoa-books--compact .htoa-book-grid{
  display:flex;
  gap:1rem;
  overflow-x:auto;
  scroll-snap-type:x mandatory;
  padding:.2rem .15rem 7.5rem;
  margin:0;
  -webkit-overflow-scrolling:touch;
}
.htoa-books--compact .htoa-book-grid > li{
  flex:0 0 auto;
  width:min(11.75rem, 70vw);
  scroll-snap-align:start;
}
@media (min-width:1100px){
  .htoa-books--compact .htoa-book-grid{
    display:grid;
    grid-template-columns:repeat(5, minmax(0,1fr));
    overflow:visible;
    gap:1.05rem;
    padding:0 0 7.5rem;
  }
  .htoa-books--compact .htoa-book-grid > li{width:auto;}
}
.htoa-books--compact .htoa-book-card{
  padding:.7rem .7rem .85rem;
}
.htoa-books--compact .htoa-book-cover{margin:0 0 .6rem;}
.htoa-books--compact .htoa-book-cover img{box-shadow:0 6px 16px rgba(0,0,0,.18);}
.htoa-books--compact .htoa-book-card h3{
  font-size:1.12rem;
  margin:0 0 .25rem;
}
.htoa-books--compact .htoa-book-card .byline{
  font-size:.78rem;
  margin:0 0 .3rem;
}
.htoa-books--compact .htoa-book-card .one-line{
  font-size:.82rem;
  line-height:1.4;
  margin:0 0 .65rem;
}
.htoa-books--compact .htoa-book-actions{gap:.35rem;}
.htoa-books--compact .htoa-book-actions .btn{
  font-size:.66rem;
  padding:.4rem .55rem;
  min-height:0;
  letter-spacing:.08em;
}
.htoa-books--compact .htoa-okr-feature{
  margin-top:clamp(1.75rem,4vw,2.75rem);
  padding-top:clamp(1.25rem,3vw,2rem);
}
