/* Book page only. Direction A, Tall Unbound. Shared header and footer stay in the earlier sheets. */

main.book.book-feature {
  --book-ink: var(--ink);
  --book-paper: var(--paper);
  --book-quiet: var(--quiet);
  --book-coral: var(--accent);
  --book-coral-deep: #8f2b19;
  --book-ink-soft: #4d4436;
  --book-rule: rgb(22 19 14 / 14%);
  --book-raised: #fbf8f1;
  /* A centered 1160px frame started inside the wordmark on a wide screen. */
  width: min(100% - 2 * clamp(1.25rem, 4vw, 4.5rem), var(--wrap));
  max-width: 100%;
  min-width: 0;
  margin-inline: auto;
  padding: clamp(1.75rem, 5.4vw, 4.75rem) 0 clamp(3rem, 7vw, 6rem);
}

main.book.book-feature .book-opening__inner {
  width: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: clamp(2rem, 6.7vw, 6.5rem);
}

main.book.book-feature .book-jacket {
  width: 100%;
  max-width: 490px;
  margin: 0 auto;
}

main.book.book-feature .book-jacket img {
  display: block;
  width: 100%;
  height: auto;
  max-height: none;
  object-fit: contain;
}

main.book.book-feature .book-copy {
  width: 100%;
  min-width: 0;
  padding: clamp(0.5rem, 1.5vw, 1.2rem) 0;
}

main.book.book-feature .book-kicker {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0 0 1.05rem;
  color: var(--book-quiet);
  font-size: 0.67rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  line-height: 1.35;
  text-transform: uppercase;
}

main.book.book-feature .book-heel {
  flex: 0 0 62px;
  width: 62px;
  color: var(--book-coral);
}

main.book.book-feature .book-copy h1 {
  max-width: 12ch;
  margin: 0;
  color: var(--book-ink);
  font-family: "Source Serif 4", Georgia, serif;
  font-size: clamp(2.75rem, 5.3vw, 5rem);
  font-weight: 400;
  letter-spacing: -0.045em;
  line-height: 0.99;
  text-align: start;
  text-wrap: balance;
  overflow-wrap: break-word;
}

main.book.book-feature .book-copy h1 em {
  color: var(--book-coral-deep);
  font-style: italic;
  font-weight: 400;
}

main.book.book-feature .book-byline {
  margin: 1.05rem 0 0;
  color: var(--book-quiet);
  font-size: 0.77rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

main.book.book-feature .book-tagline {
  margin: 1.35rem 0 0;
  color: var(--book-ink);
  font-family: "Source Serif 4", Georgia, serif;
  font-size: clamp(1.2rem, 1.8vw, 1.55rem);
  line-height: 1.3;
  text-align: start;
}

main.book.book-feature .book-description {
  max-width: 48ch;
  margin: 0.9rem 0 0;
  color: var(--book-ink-soft);
  font-size: 0.98rem;
  line-height: 1.68;
  text-align: start;
}

main.book.book-feature .book-description cite {
  color: var(--book-ink);
  font-family: "Source Serif 4", Georgia, serif;
  font-style: italic;
}

main.book.book-feature .retailer-actions {
  display: grid;
  gap: 0.62rem;
  margin-top: 1.35rem;
}

main.book.book-feature .retailer-link {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 25px;
  grid-template-rows: auto auto;
  align-items: center;
  column-gap: 1rem;
  min-width: 0;
  min-height: 60px;
  padding: 0.7rem 1rem 0.72rem 1.1rem;
  text-decoration: none;
}

main.book.book-feature .retailer-link svg {
  grid-column: 2;
  grid-row: 1 / span 2;
  width: 22px;
  height: 22px;
  justify-self: end;
}

main.book.book-feature .retailer-format,
main.book.book-feature .retailer-action {
  min-width: 0;
  overflow-wrap: break-word;
}

main.book.book-feature .retailer-format {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  line-height: 1.3;
  text-transform: uppercase;
}

main.book.book-feature .retailer-action {
  font-size: 0.94rem;
  font-weight: 600;
  line-height: 1.4;
}

/* Shared rule at css/12-hero.css, main :is(a:link, a:visited):not(.control):not(.control-quiet),
   is (0, 3, 2). These match that weight. This sheet loads after the shared sheets, so the tie
   goes to the page. Hover and active follow the link rule and win by source order. */
main.book a.retailer-link--primary:link,
main.book a.retailer-link--primary:visited {
  border: 1px solid var(--book-ink);
  background: var(--book-ink);
  color: var(--book-raised);
}

main.book a.retailer-link--primary:hover,
main.book a.retailer-link--primary:active {
  border-color: var(--book-coral-deep);
  background: var(--book-coral-deep);
  color: #fffaf3;
}

main.book a.retailer-link--secondary:link,
main.book a.retailer-link--secondary:visited {
  border: 1px solid rgb(22 19 14 / 29%);
  background: transparent;
  color: var(--book-ink);
}

main.book a.retailer-link--secondary:hover,
main.book a.retailer-link--secondary:active {
  border-color: var(--book-coral);
  background: rgb(184 60 38 / 5%);
  color: var(--book-coral-deep);
}

main.book.book-feature .retailer-link:focus-visible,
main.book.book-feature summary:focus-visible,
main.book.book-feature .about-link:focus-visible {
  outline: 3px solid var(--book-coral);
  outline-offset: 4px;
}

main.book.book-feature .retailer-note {
  margin: 0.68rem 0 0;
  color: var(--book-quiet);
  font-size: 0.74rem;
  line-height: 1.45;
}

main.book.book-feature .edition-details {
  margin-top: 1.05rem;
  border-top: 1px solid var(--book-rule);
  border-bottom: 1px solid var(--book-rule);
}

main.book.book-feature .edition-details summary {
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: var(--book-ink);
  font-size: 0.82rem;
  font-weight: 600;
  list-style: none;
  cursor: pointer;
}

main.book.book-feature .edition-details summary::-webkit-details-marker {
  display: none;
}

main.book.book-feature .edition-toggle {
  position: relative;
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  border: 1px solid rgb(22 19 14 / 34%);
  border-radius: 50%;
}

main.book.book-feature .edition-toggle::before,
main.book.book-feature .edition-toggle::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 8px;
  height: 1px;
  background: currentColor;
  content: "";
  transform: translate(-50%, -50%);
}

main.book.book-feature .edition-toggle::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

main.book.book-feature .edition-details[open] .edition-toggle::after {
  transform: translate(-50%, -50%) rotate(0deg);
}

main.book.book-feature .edition-details__body {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
  padding: 0.25rem 0 1.25rem;
}

main.book.book-feature .edition-facts h2 {
  margin: 0 0 0.55rem;
  color: var(--book-coral-deep);
  font-family: system-ui, "Segoe UI", sans-serif;
  font-size: 0.67rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  line-height: 1.45;
  text-transform: uppercase;
}

main.book.book-feature .edition-facts dl {
  margin: 0;
}

main.book.book-feature .edition-facts dl div {
  display: grid;
  grid-template-columns: minmax(min(4.4rem, 42%), 0.72fr) minmax(0, 1.28fr);
  gap: 0.35rem 0.65rem;
  padding: 0.35rem 0;
  border-top: 1px solid rgb(22 19 14 / 10%);
}

main.book.book-feature .edition-facts dt,
main.book.book-feature .edition-facts dd {
  margin: 0;
  font-size: 0.71rem;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

main.book.book-feature .edition-facts dt {
  color: var(--book-quiet);
}

main.book.book-feature .edition-facts dd {
  color: var(--book-ink);
  font-weight: 600;
}

main.book.book-feature .edition-source-note {
  grid-column: 1 / -1;
  margin: 0;
  padding-top: 0.7rem;
  border-top: 1px solid rgb(22 19 14 / 12%);
  color: var(--book-quiet);
  font-size: 0.7rem;
  line-height: 1.55;
}

main.book.book-feature .book-reading {
  width: 100%;
  margin: clamp(3.5rem, 8vw, 7rem) auto 0;
  padding: clamp(1.75rem, 3.8vw, 3.1rem) 0;
  border-top: 1px solid var(--book-rule);
  border-bottom: 1px solid var(--book-rule);
}

main.book.book-feature .book-reading__inner {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(2rem, 7vw, 7rem);
}

main.book.book-feature .reading-note {
  min-width: 0;
}

main.book.book-feature .reading-note--second {
  padding-left: clamp(0rem, 3vw, 2.5rem);
  border-left: 1px solid var(--book-rule);
}

main.book.book-feature .reading-note h2 {
  margin: 0;
  max-width: 100%;
  color: var(--book-ink);
  font-family: "Source Serif 4", Georgia, serif;
  font-size: clamp(1.7rem, 3vw, 2.45rem);
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 1.12;
  overflow-wrap: break-word;
  text-align: start;
}

main.book.book-feature .reading-note p {
  max-width: 45ch;
  margin: 0.75rem 0 0;
  color: var(--book-ink-soft);
  font-size: 0.94rem;
  line-height: 1.7;
  text-align: start;
}

main.book.book-feature .book-close {
  width: 100%;
  margin: clamp(3rem, 7vw, 5.5rem) auto 0;
}

main.book.book-feature .book-close__inner {
  display: grid;
  grid-template-columns: minmax(0, 112px) minmax(0, 1fr);
  align-items: center;
  gap: clamp(1.35rem, 3.2vw, 2.7rem);
  max-width: 740px;
  margin-inline: auto;
}

main.book.book-feature .author-note {
  min-width: 0;
}

main.book.book-feature .author-portrait {
  width: 112px;
  margin: 0;
}

main.book.book-feature .author-portrait img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

main.book.book-feature .author-note h2 {
  margin: 0;
  max-width: 100%;
  color: var(--book-ink);
  font-family: "Source Serif 4", Georgia, serif;
  font-size: clamp(1.55rem, 2.5vw, 2rem);
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1.2;
  overflow-wrap: break-word;
  text-align: start;
}

main.book.book-feature .author-note p {
  max-width: 58ch;
  margin: 0.55rem 0 0;
  color: var(--book-ink-soft);
  font-size: 0.91rem;
  line-height: 1.65;
  text-align: start;
}

main.book.book-feature .author-note p a {
  color: var(--book-coral-deep);
  text-underline-offset: 0.16em;
}

main.book.book-feature .about-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 0.55rem;
  margin-top: 0.55rem;
  color: var(--book-ink);
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration-color: var(--book-coral);
  text-underline-offset: 0.22em;
}

main.book.book-feature .about-link span {
  color: var(--book-coral);
}

@media (max-width: 800px) {
  main.book.book-feature .book-opening__inner {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
    gap: clamp(1.2rem, 4vw, 2rem);
  }

  main.book.book-feature .book-copy h1 {
    font-size: clamp(2.15rem, 4.6vw, 3.2rem);
  }
}

@media (max-width: 700px) {
  main.book.book-feature {
    padding-top: 1.4rem;
  }

  main.book.book-feature .book-opening__inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.35rem;
  }

  main.book.book-feature .book-jacket {
    width: min(100%, 230px);
    margin: 0 auto 0.6rem;
  }

  main.book.book-feature .book-copy h1 {
    max-width: min(13ch, 100%);
    font-size: clamp(1.45rem, 10vw, 3.2rem);
  }

  main.book.book-feature .book-reading__inner,
  main.book.book-feature .edition-details__body {
    grid-template-columns: minmax(0, 1fr);
  }

  main.book.book-feature .reading-note--second {
    padding: 1.45rem 0 0;
    border-top: 1px solid var(--book-rule);
    border-left: 0;
  }

  main.book.book-feature .book-close__inner {
    grid-template-columns: minmax(0, 82px) minmax(0, 1fr);
    gap: 1rem;
  }

  main.book.book-feature .author-portrait {
    width: 82px;
  }
}

@media (max-width: 390px) {
  main.book.book-feature .book-close__inner {
    grid-template-columns: minmax(0, 70px) minmax(0, 1fr);
  }

  main.book.book-feature .author-portrait {
    width: 70px;
  }
}

@media (prefers-reduced-motion: reduce) {
  main.book.book-feature .retailer-link,
  main.book.book-feature .edition-toggle::after {
    transition: none;
  }
}
