/* Fraunces + Source Serif 4 (both with italic) are loaded site-wide via the
   shared base.html <link>, so no per-page @import is needed here. */

/* ─────────────────────────────────────────────────────────────────
   Be Still and Know — book landing page.
   Warm honey/gold canvas that bridges the book cover to the site's
   oxblood + cream editorial system. Page-scoped under .book so the
   global base.css `* { font-family: futura-pt }` leak never reaches it.
   ───────────────────────────────────────────────────────────────── */

.book {
  --honey: #f3d675;        /* cover field — the golden light */
  --honey-soft: #f8ecc4;   /* softer wash for panels */
  --honey-deep: #e9c24f;   /* accents / rules on gold */
  --paper: #fbf6ea;        /* warm cream canvas */
  --paper-soft: #f4ecdb;   /* callout backgrounds */
  --ink: #2a1c10;          /* warm near-black, matches cover lettering */
  --ink-soft: #4a3826;
  --ink-mute: #7a6650;
  --oxblood: #732722;      /* site accent — CTAs, links */
  --oxblood-deep: #5b1d1a;
  --hair: rgba(42, 28, 16, 0.16);
  --hair-soft: rgba(42, 28, 16, 0.08);

  --display: clamp(2.6rem, 6vw, 4.6rem);
  --display-l: clamp(1.9rem, 3.6vw, 2.7rem);
  --display-m: clamp(1.35rem, 2vw, 1.6rem);
  --body: 1.13rem;
  --body-lh: 1.66;
  --measure: 36rem;
  --gutter: clamp(1.25rem, 4vw, 3rem);

  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Source Serif 4", "Iowan Old Style", Georgia, serif;
  font-size: var(--body);
  line-height: var(--body-lh);
  -webkit-font-smoothing: antialiased;
}

/* Page-scoped reset — cancel the global base.css `* { font-family: futura-pt;
   font-size: var(--font-size-normal); font-weight: 300 }` leak. Without the
   size/weight resets, every <em>, <strong>, and <span> — including emphasized
   words inside headings — sinks back to small body size. `inherit` hands
   sizing to the cascade so heading italics scale with their parent. Mirrors
   arkstone.css. (.book itself keeps its own explicit font-size below.) */
.book *,
.book *::before,
.book *::after {
  font-family: inherit;
  font-weight: inherit;
  font-size: inherit;
  box-sizing: border-box;
}

.book h1,
.book h2,
.book h3 {
  font-family: "Fraunces", "Source Serif 4", Georgia, serif;
  font-weight: 600;
  line-height: 1.08;
  margin: 0;
  letter-spacing: -0.01em;
}

.book p {
  margin: 0 0 1.1rem;
}

.book a {
  color: var(--oxblood);
}

.book__wrap {
  max-width: 68rem;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.book__eyebrow {
  font-family: "Source Serif 4", serif;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--oxblood);
  margin: 0 0 1.1rem;
}

/* ── Buttons ─────────────────────────────────────────────────────── */
.book__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: "Source Serif 4", serif;
  font-weight: 600;
  font-size: 1.02rem;
  text-decoration: none;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  border: 1.5px solid var(--oxblood);
  transition: transform 0.14s ease, background-color 0.14s ease,
    color 0.14s ease, box-shadow 0.14s ease;
}
/* Specificity note: these are anchors, and `.book a { color: oxblood }`
   (0,1,1) would otherwise win over a bare `.book__cta--primary` (0,1,0) and
   paint the label oxblood-on-oxblood. The `.book` prefix lifts these to
   (0,2,0) so the intended colours hold. */
.book .book__cta--primary {
  background: var(--oxblood);
  color: var(--paper);
  box-shadow: 0 8px 22px rgba(115, 39, 34, 0.24);
}
.book .book__cta--primary:hover {
  background: var(--oxblood-deep);
  border-color: var(--oxblood-deep);
  color: var(--paper);
  transform: translateY(-2px);
}
.book .book__cta--ghost {
  background: transparent;
  color: var(--oxblood);
}
.book .book__cta--ghost:hover {
  background: var(--oxblood);
  color: var(--paper);
  transform: translateY(-2px);
}

/* ── Hero ────────────────────────────────────────────────────────── */
.book-hero {
  background: radial-gradient(
      120% 90% at 78% 8%,
      var(--honey) 0%,
      var(--honey-soft) 42%,
      var(--paper) 78%
    );
  padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(3rem, 7vw, 5.5rem);
  border-bottom: 1px solid var(--hair-soft);
}
.book-hero__inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.book-hero__title {
  font-size: var(--display);
  margin: 0 0 0.4rem;
}
.book-hero__sub {
  font-family: "Fraunces", serif;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.3rem, 2.6vw, 1.9rem);
  color: var(--ink-soft);
  margin: 0 0 1.4rem;
}
.book-hero__byline {
  font-size: 0.98rem;
  color: var(--ink-mute);
  letter-spacing: 0.02em;
  margin: 0 0 1.6rem;
}
.book-hero__byline strong {
  color: var(--ink);
  font-weight: 600;
}
.book-hero__hook {
  font-size: 1.2rem;
  color: var(--ink-soft);
  max-width: 30rem;
  margin: 0 0 1.9rem;
}
.book-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  align-items: center;
}
.book-hero__meta {
  margin: 1.4rem 0 0;
  font-size: 0.9rem;
  color: var(--ink-mute);
  letter-spacing: 0.03em;
}
.book-hero__stars {
  color: var(--honey-deep);
  letter-spacing: 0.14em;
  filter: drop-shadow(0 1px 0 rgba(42, 28, 16, 0.25));
}

.book-hero__figure {
  margin: 0;
  justify-self: center;
}
.book-hero__cover {
  display: block;
  width: min(24rem, 78vw);
  height: auto;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(42, 28, 16, 0.18),
    0 22px 48px rgba(42, 28, 16, 0.34);
  transform: rotate(-2deg);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.book-hero__cover:hover {
  transform: rotate(0deg) translateY(-4px);
  box-shadow: 0 4px 8px rgba(42, 28, 16, 0.2),
    0 30px 60px rgba(42, 28, 16, 0.4);
}

/* ── Generic section ─────────────────────────────────────────────── */
.book-section {
  padding: clamp(3rem, 7vw, 5.5rem) 0;
}
.book-section--tint {
  background: var(--paper-soft);
  border-top: 1px solid var(--hair-soft);
  border-bottom: 1px solid var(--hair-soft);
}
.book-section__head {
  font-size: var(--display-l);
  text-align: center;
  margin: 0 0 0.6rem;
}
.book-section__head em {
  font-style: italic;
  color: var(--oxblood);
}
.book-section__lead {
  text-align: center;
  max-width: 42rem;
  margin: 0 auto 2.6rem;
  color: var(--ink-soft);
  font-size: 1.15rem;
}

.book-prose {
  max-width: var(--measure);
  margin: 0 auto;
}
.book-prose p {
  margin: 0 0 1.25rem;
}
.book-prose--wide {
  max-width: 44rem;
}

/* ── Meet the village — character cards ──────────────────────────── */
.book-cast {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1.1rem;
  margin-top: 2.4rem;
}
.book-cast__card {
  background: var(--paper);
  border: 1px solid var(--hair);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(42, 28, 16, 0.05);
  display: flex;
  flex-direction: column;
}
.book-cast__card--star {
  background: linear-gradient(160deg, var(--honey-soft), var(--paper));
  border-color: var(--honey-deep);
}
.book-cast__portrait {
  display: block;
  width: 100%;
  /* height:auto is load-bearing — the width/height="600" HTML attributes
     otherwise give the image an explicit 600px height, which makes the
     browser ignore aspect-ratio and render a tall square. */
  height: auto;
  aspect-ratio: 5 / 4;
  object-fit: cover;
  object-position: center 22%;
  border-bottom: 1px solid var(--hair-soft);
}
.book-cast__body {
  padding: 1.4rem 1.4rem 1.5rem;
}
.book-cast__role {
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--oxblood);
  font-weight: 600;
  margin: 0 0 0.4rem;
}
.book-cast__name {
  font-size: 1.32rem;
  margin: 0 0 0.6rem;
}
.book-cast__card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 1.02rem;
}

/* ── Excerpt ─────────────────────────────────────────────────────── */
.book-excerpt {
  max-width: 40rem;
  margin: 0 auto;
  background: var(--paper);
  border: 1px solid var(--hair);
  border-left: 4px solid var(--honey-deep);
  border-radius: 6px;
  padding: clamp(1.6rem, 4vw, 2.8rem);
  box-shadow: 0 12px 34px rgba(42, 28, 16, 0.08);
  font-size: 1.1rem;
}
.book-excerpt p {
  margin: 0 0 1.15rem;
}
.book-excerpt p:first-of-type::first-letter {
  font-family: "Fraunces", serif;
  font-size: 3.3em;
  float: left;
  line-height: 0.8;
  padding: 0.05em 0.12em 0 0;
  color: var(--oxblood);
}
.book-excerpt__tag {
  display: block;
  text-align: center;
  margin-top: 1.4rem;
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

/* ── Pull-quote / the heart of it ────────────────────────────────── */
.book-pull {
  text-align: center;
  max-width: 40rem;
  margin: 2.4rem auto 0;
}
.book-pull__q {
  font-family: "Fraunces", serif;
  font-style: italic;
  font-size: clamp(1.6rem, 3.4vw, 2.4rem);
  line-height: 1.24;
  color: var(--ink);
  margin: 0 0 0.8rem;
}
.book-pull__cite {
  font-size: 0.9rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--oxblood);
}

/* ── Comps strip ─────────────────────────────────────────────────── */
.book-comps {
  text-align: center;
  max-width: 44rem;
  margin: 0 auto;
}
.book-comps__line {
  font-family: "Fraunces", serif;
  font-style: italic;
  font-size: clamp(1.3rem, 2.6vw, 1.7rem);
  color: var(--ink-soft);
}

/* ── About the author ────────────────────────────────────────────── */
.book-author {
  display: grid;
  grid-template-columns: 8.5rem 1fr;
  gap: clamp(1.4rem, 4vw, 2.8rem);
  align-items: start;
  max-width: 46rem;
  margin: 0 auto;
}
.book-author__photo {
  width: 8.5rem;
  height: 8.5rem;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--honey-deep);
  box-shadow: 0 8px 20px rgba(42, 28, 16, 0.14);
}
.book-author__body p {
  color: var(--ink-soft);
}
.book-author__contact {
  color: var(--ink-soft);
  font-size: 1rem;
}
.book-author__sign {
  font-family: "Fraunces", serif;
  font-style: italic;
  font-size: 1.15rem;
  color: var(--ink);
}
.book-final__contact {
  margin: 1.4rem 0 0;
  font-size: 0.98rem;
  color: var(--ink-mute);
}

/* ── Final CTA band ──────────────────────────────────────────────── */
.book-final {
  background: radial-gradient(
      120% 120% at 50% 0%,
      var(--honey) 0%,
      var(--honey-soft) 48%,
      var(--paper) 82%
    );
  text-align: center;
  padding: clamp(3rem, 7vw, 5.5rem) 0;
}
.book-final__head {
  font-size: var(--display-l);
  margin: 0 0 0.8rem;
}
.book-final__sub {
  max-width: 34rem;
  margin: 0 auto 2rem;
  color: var(--ink-soft);
  font-size: 1.15rem;
}

/* ── Responsive ──────────────────────────────────────────────────── */
@media (max-width: 780px) {
  .book-hero__inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .book-hero__hook,
  .book-hero__byline {
    margin-left: auto;
    margin-right: auto;
  }
  .book-hero__actions {
    justify-content: center;
  }
  .book-hero__figure {
    order: -1;
  }
  .book-author {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .book__cta,
  .book-hero__cover {
    transition: none;
  }
}

/* ── Footer ──────────────────────────────────────────────────────────
   common.footer() is styled per-page (the rules live in each page's
   stylesheet, not base.css). Ported from about-me.css so the book page's
   footer matches the rest of the site instead of rendering unstyled.
   ──────────────────────────────────────────────────────────────────── */
#footer {
  background: var(--color-8-deep-green);
  color: var(--color-9-grey);
  text-align: center;
  font-size: 0.9rem;
  padding: 1.4em;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  margin-top: 2px;
}
#footer a {
  color: var(--color-9-grey);
}
.map {
  display: flex;
  flex-direction: row;
  align-items: center;
}
.map iframe {
  width: 300px;
  height: 96px;
  border: 0;
}
.loc {
  display: block;
  text-align: left;
  margin-left: 1em;
}
.social-media a {
  display: flex;
  flex-direction: row;
  color: var(--color-9-grey);
  align-items: center;
  line-height: 1em;
  font-size: 1em;
  text-decoration: none;
}
.social-media img {
  width: 23px;
  display: inline-block;
  margin-right: 4px;
}
@media (max-width: 700px) {
  #footer {
    flex-direction: column;
    gap: 1.1rem;
    text-align: center;
  }
  .loc {
    text-align: center;
  }
}
