/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
img { display: block; max-width: 100%; height: auto; }

:root {
  /* Colors sampled from the printed cover */
  --cover-blue:  #125DAA;  /* "ENCOUNTERS", subtitle, accents */
  --cover-tint:  #BCC4AC;  /* cool sage/grey-green background tone */
  --cover-tint-pale: #E6EADD;  /* very pale version for page background */
  --ink:         #1a1a1a;
  --ink-soft:    #4a4a4a;
  --rule:        #c5cdb3;

  --sans: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cover-tint-pale);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ---------- Hero ----------
   Full-bleed cover photo with text overlaid.
   Typography (Helvetica Bold, white BRIEF + cobalt-blue ENCOUNTERS) follows the book cover.
*/
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  width: 100%;
  overflow: hidden;
  text-align: center;
}

.hero__bg,
.hero__bg img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hero__bg img {
  object-fit: cover;
  object-position: center 15%;
}

/* Content sits high in the sky band above the photographer */
.hero__content {
  position: absolute;
  top: 8%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  padding: 0 1.5rem;
  max-width: 1200px;
  width: 100%;
}

.hero__title {
  font-family: var(--sans);
  font-weight: 700;
  font-size: clamp(2.25rem, 8vw, 6rem);
  letter-spacing: -0.01em;
  line-height: 1;
  margin: 0;
  text-transform: uppercase;
  color: #fff;
  white-space: nowrap;
  text-shadow: 0 2px 12px rgba(0,0,0,0.4);
}
.hero__title .accent {
  color: var(--cover-blue);
  text-shadow: 0 2px 14px rgba(0,0,0,0.55);
}

.hero__subtitle {
  font-family: var(--sans);
  font-weight: 700;
  font-size: clamp(1.2rem, 3.2vw, 2.4rem);
  line-height: 1.2;
  letter-spacing: 0;
  margin: 1.25rem 0 0;
  color: #fff;
  text-shadow: 0 2px 12px rgba(0,0,0,0.55);
}

.hero__publisher {
  font-family: var(--sans);
  font-weight: 400;
  font-size: clamp(0.85rem, 1.4vw, 1.1rem);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin: 1.6rem 0 0;
  color: #fff;
  opacity: 0.85;
  text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.hero__cta {
  margin: 1.4rem 0 0;
}
.hero__cta a {
  display: inline-block;
  font-family: var(--sans);
  font-weight: 700;
  font-size: clamp(0.85rem, 1.3vw, 1rem);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  background: var(--cover-blue);
  padding: 0.85rem 1.5rem;
  text-decoration: none;
  border: 2px solid var(--cover-blue);
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.hero__cta a:hover,
.hero__cta a:focus-visible {
  background: rgba(255,255,255,0.1);
  border-color: #fff;
  color: #fff;
}

/* Author — bottom of hero, white on photo with strong shadow */
.hero__author {
  position: absolute;
  bottom: clamp(2rem, 7vh, 4.5rem);
  left: 0;
  right: 0;
  z-index: 2;
  font-family: var(--sans);
  font-weight: 700;
  font-size: clamp(1.15rem, 2.4vw, 1.8rem);
  letter-spacing: 0.005em;
  margin: 0;
  color: #fff;
  text-align: center;
  text-shadow: 0 2px 14px rgba(0,0,0,0.65);
}

/* ---------- Info section ---------- */
.info {
  max-width: 720px;
  margin: 0 auto;
  padding: 6rem 1.75rem 4rem;
}

.info section + section { margin-top: 3.5rem; }

.info h2 {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cover-blue);
  margin: 0 0 1.25rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--rule);
}

.info p { margin: 0 0 1rem; }
.info p:last-child { margin-bottom: 0; }

.info__lede {
  font-weight: 700;
  font-size: 1.1rem;
  line-height: 1.45;
  color: var(--ink);
  margin-bottom: 1.5rem !important;
}

/* Praise / blockquote */
.info__praise {
  text-align: center;
  padding: 2.5rem 1rem;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.info__praise blockquote { margin: 0; }
.info__praise blockquote p {
  font-family: var(--sans);
  font-weight: 300;
  font-style: italic;
  font-size: clamp(1.15rem, 2.2vw, 1.45rem);
  line-height: 1.5;
  margin: 0 0 1rem;
  color: var(--ink);
}
.info__praise cite {
  font-style: normal;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cover-blue);
}

/* Publication details */
.info__details dl {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 0.5rem 1.5rem;
  margin: 0 0 1.75rem;
}
.info__details dt {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  align-self: baseline;
}
.info__details dd { margin: 0; }

.info__cta a {
  display: inline-block;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  background: var(--cover-blue);
  padding: 0.95rem 1.6rem;
  text-decoration: none;
  border: 1px solid var(--cover-blue);
  transition: background 0.2s ease, color 0.2s ease;
}
.info__cta a:hover,
.info__cta a:focus-visible {
  background: var(--ink);
  border-color: var(--ink);
}

/* ---------- Footer ---------- */
.site-footer {
  text-align: center;
  font-size: 0.8rem;
  color: var(--ink-soft);
  padding: 2rem 1rem 3rem;
  background: var(--cover-tint);
  border-top: 1px solid var(--rule);
}
.site-footer p { margin: 0; }

/* ---------- Small screens ---------- */
@media (max-width: 600px) {
  .hero { min-height: 520px; padding-top: 8vh; }
  .hero__author-band { padding: 1.1rem 0.75rem; }
  .info { padding: 4rem 1.25rem 3rem; }
  .info section + section { margin-top: 2.75rem; }
  .info__details dl {
    grid-template-columns: 1fr;
    gap: 0.1rem 0;
  }
  .info__details dt { margin-top: 0.75rem; }
}

/* ---------- Print ---------- */
@media print {
  .hero { height: auto; min-height: 0; color: #000; }
  .hero__overlay { display: none; }
}
