/* =========================================================
   Honey Locust Books — Grayscale + Nav + Hero Image Band
   - Band is aligned TOP–CENTER
   - Book cover remains in color
   - Band text is dark for readability
   ========================================================= */

/* ------------------------------
   Base tokens (easy to tweak)
--------------------------------*/
:root {
  --bg:    #ffffff;
  --ink:   #111111;
  --muted: #666666;
  --line:  #e6e6e6;

  --max:    1100px;  /* container width */
  --band-h: 260px;   /* desktop band height */
}

/* ------------------------------
   Resets / base elements
--------------------------------*/
* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
}

body {
  font: 16px/1.6 system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--ink);
  text-underline-offset: 3px;
}
a:hover { text-decoration: underline; }

h2 {
	font-family: 'Libre Caslon Text', Georgia, 'Times New Roman', Times, serif;
}
h3.center {
  text-align: center;
  margin: 1em 0;   /* optional: adds some breathing room */
}


.container {
  max-width: var(--max);
  margin-inline: auto;
  padding: 0 20px;
}

.stack > * + * { margin-top: 18px; }

.mono { font-family: ui-monospace, Menlo, Consolas, monospace; }

.skip {
  position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden;
}
.skip:focus {
  left: 10px; top: 10px; width: auto; height: auto;
  background: #000; color: #fff; padding: 8px 12px; z-index: 999;
}

/* ------------------------------
   Header / Navigation
--------------------------------*/
.site-header {
  position: sticky; top: 0;
  background: #fff;
  border-bottom: 1px solid var(--line);
  z-index: 20;
}

.header-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 12px 0;
}

.brand {
  display: inline-flex; align-items: center; gap: 10px;
  text-decoration: none; color: inherit;
}
.brand-mark { border-radius: 6px; filter: grayscale(100%); }
.brand-text { font-weight: 700; letter-spacing: .02em; }

.nav-toggle {
  display: none;
  border: 1px solid #000; background: #fff;
  padding: 6px 10px; border-radius: 999px;
}

.site-nav { display: flex; gap: 18px; flex-wrap: wrap; }
.site-nav a { text-decoration: none; color: #333; padding: 6px 0; }

/* ------------------------------
   Intro block (name + socials)
--------------------------------*/
.intro {
  background: #fff;
  border-bottom: 1px solid var(--line);
  padding: 22px 0 4px;
  text-align: center;
}

.author-name {
  margin: .25rem 0 .1rem;
  font-weight: 700;
  letter-spacing: .1em;
  font-size: clamp(2.4rem, 6.6vw, 4rem);
  font-family: 'Libre Caslon Text', Georgia, 'Times New Roman', Times, serif;
  line-height: 1.1;
}



.social-bar {
  display: flex; gap: 10px; justify-content: center; align-items: center;
  margin-top: 8px; color: #888; flex-wrap: wrap;
}

.social-bar a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px;
  border: 1px solid #000; border-radius: 50%;
  margin: 0 6px; text-decoration: none; color: #333;
}
.social-bar a:hover { background: #000; color: #fff; }
.social-bar i { font-size: 16px; }

/* ------------------------------
   HERO — full-width image band
--------------------------------*/
.hero {
  position: relative;
  background: #fff;
  padding: 3em;
}

.band {
  position: absolute;
  left: 0; right: 0; top: 50%;
  height: 350px;
  transform: translateY(-50%);
  background: url('assets/feature-band.png') top right / cover no-repeat;
  z-index: 0;
  box-shadow: 0 8px 20px rgba(0,0,0,0.4); /* horizontal, vertical, blur, spread, color */
}

/* Overlay */
.band::before {
  content: "";
  position: absolute;
  inset: 0; /* top:0; right:0; bottom:0; left:0 */
  background: rgba(255,255,255,0.65); /* white with 65% opacity */
}

.hero-inner {
  position: relative; z-index: 1;
  display: grid;
  grid-template-columns: minmax(260px, 400px) 1fr; /* book left, text right */
  gap: 36px; align-items: center;
}

/* Book cover stays in COLOR */
.book-mock img {
  border-radius: 6px;
  box-shadow: 0 18px 50px rgba(0,0,0,.35);
}

/* CTA text dark for readability */
.cta       { color: #111; }
.series    { margin: 0 0 6px; letter-spacing: .06em; color: #666; }
.book-title{ margin: .2rem 0; font-size: clamp(1.6rem, 3.2vw, 2.2rem); font-weight: 800; }
.sub       { margin: .2rem 0 1rem; color: #333; }

/* CTA buttons (dark text / border) */
.links .btn {
  display: inline-block;
  border: 1px solid #000; color: #000; background: transparent;
  text-decoration: none; border-radius: 0;
  padding: 10px 16px; margin: 6px 10px 0 0;
}
.links .btn:hover { background: #000; color: #fff; }
.links .btn.ghost { background: transparent; }

/* ------------------------------
   Sections
--------------------------------*/
.section {
  padding: 64px 0;
  border-top: 1px solid var(--line);
  background: #fff;
}

.about-grid {
  display: grid; grid-template-columns: 300px 1fr;
  gap: 24px; align-items: start;
}

.portrait {
  border: 1px solid var(--line);
  border-radius: 6px;
  filter: grayscale(100%);
}

/* ------------------------------
   Footer
--------------------------------*/
.site-footer {
  border-top: 1px solid var(--line);
  padding: 18px 0;
  background: #fff;
  text-align: center;
}

/* ------------------------------
   Back to top
--------------------------------*/
.back-to-top {
  position: fixed; right: 16px; bottom: 16px;
  border: 1px solid #000; background: #fff;
  border-radius: 999px; padding: 10px 14px;
  opacity: 0; pointer-events: none; transition: opacity .25s;
}
.back-to-top.show { opacity: 1; pointer-events: auto; }


/* Cards stretch to equal height */
.buy-grid { display:grid; grid-template-columns: repeat(3, 1fr); gap:28px; }
.buy-card { border:1px solid var(--line); background:#fff; padding:16px; display:flex; flex-direction:column; }
.buy-card h3 { margin:0 0 12px; font-weight:800; }

/* Buttons as equal-width boxes, centered */
.buy-list { 
  list-style:none; margin:0; padding:0;
  display:grid; grid-template-columns: 1fr;  /* default: one column */
  gap:12px; justify-items:center; align-content:start;
}

/* Make Ebook list two columns on larger screens */
.buy-list.cols-2 { grid-template-columns: repeat(2, minmax(220px, 1fr)); }

/* Button box look: idle outline, hover invert */
.buy-list li { width:100%; }
.buy-list a.btn{
  display:block; width:100%; max-width:260px;
  text-align:center; border:2px solid #000; background:transparent; color:#000;
  padding:10px 16px; border-radius:6px; text-decoration:none; font-weight:600;
  transition:background .25s ease, color .25s ease;
}
.buy-list a.btn:hover{ background:#000; color:#fff; }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.contact-text ul {
  margin: 1em 0 0;
  padding-left: 1.2em;
  list-style: none;
}
.contact-text li {
  margin-bottom: .5em;
}

.contact-info p {
  margin: .5em 0;
}

@media (max-width: 700px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}


/* Responsive: stack cards & collapse Ebook to one column on mobile */
@media (max-width: 900px){
  .buy-grid{ grid-template-columns:1fr; }
  .buy-list.cols-2{ grid-template-columns:1fr; }
}

/* Note box under the grid */
.buy-note{
  margin-top:24px;
  padding:16px;
  border:1px dashed var(--line);
  background:#fafafa;
  color:#333;
  font-size:.95rem;
}

/* ------------------------------
   Responsive
--------------------------------*/
@media (max-width: 600px){
  /* Nudge the whole hero content a bit lower so the CTA clears the band edge */
  .hero{
    /* if you're using the rem-based band height, keep this pattern */
    padding-top: calc(var(--band-h)/2 + 40px);   /* +40px gives breathing room */
    padding-bottom: calc(var(--band-h)/2 + 56px);
  }

  /* Extra micro-space before the first CTA line */
  .cta { margin-top: 8px; }         /* was 0 */
  .cta .series { padding-top: 6px; }/* keeps “Featured Title” off the seam */
}

@media (max-width: 900px) {
  .nav-toggle { display: inline-block; }

  .site-nav {
    display: none; flex-direction: column; gap: 10px; padding: 10px 0;
  }
  .site-nav.open { display: flex; }

  :root {
    --band-h: 200px; /* tablet band height */
  }

  .hero {
    padding: calc(var(--band-h)/2 + 24px) 0 calc(var(--band-h)/2 + 60px);
  }

  .hero-inner { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  :root {
    --band-h: 180px; /* mobile band height */
  }

  .hero {
    padding: calc(var(--band-h)/2 + 20px) 0 calc(var(--band-h)/2 + 48px);
  }
}

/* ------------------------------
   Reveal animations
--------------------------------*/
.reveal {
  opacity: 0; transform: translateY(14px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.in {
  opacity: 1; transform: none;
}

/* Prevent text selection / touch callout; block drag on images */
.no-save {
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;      /* iOS long-press menu */
}
img.no-save {
  -webkit-user-drag: none;
  user-drag: none;
}

/* Optional: an invisible overlay that soaks right-clicks on wrapped images */
.overlay-guard {
  position: relative;
}
.overlay-guard::after {
  content: "";
  position: absolute;
  inset: 0;
  /* transparent layer that intercepts context menu on the image */
}
