/* Book landing: the CodeIndie game workshop direction. */
.book-page {
  --book-ink: var(--studio-ink, #262333);
  --book-muted: var(--studio-muted, #655f72);
  --book-line: var(--studio-line, #dedbe6);
  --book-purple: var(--studio-purple, #6550dd);
  --book-purple-text: #5743c3;
  --book-tint: var(--studio-lilac, #eee9ff);
  --book-mint: var(--studio-mint, #caf2e4);
  --book-mint-tint: var(--studio-mint, #caf2e4);
  padding: 22px 0 40px;
  color: var(--book-ink);
}

.book-page :where(h1, h2, h3) { text-wrap: balance; }
.book-page p { text-wrap: pretty; }
.book-page :where(a, summary):focus-visible { outline: 3px solid var(--book-purple); outline-offset: 5px; }
.book-page [id] { scroll-margin-top: calc(var(--site-header-height, 70px) + 24px); }
.book-breadcrumb { display: flex; flex-wrap: wrap; gap: 10px; color: var(--book-muted); font-size: .8rem; }
.book-breadcrumb a { color: inherit; text-decoration: none; }
.book-breadcrumb a:hover { color: var(--book-purple-text); text-decoration: underline; }
.book-eyebrow { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; color: var(--book-muted); font-size: .73rem; line-height: 1.65; font-weight: 750; letter-spacing: .105em; text-transform: uppercase; }
.book-hero { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); align-items: center; gap: 64px; padding: 48px 6px 60px 0; }
.book-hero-copy { min-width: 0; }
.book-hero h1 { margin: 20px 0 23px; line-height: 1.05; letter-spacing: -.055em; font-weight: 800; }
.book-title-main { display: block; max-width: 10ch; font-size: clamp(2.8rem, 5.6vw, 4.7rem); }
.book-title-sub { display: block; max-width: 26ch; margin-top: 21px; color: var(--book-purple-text); font-size: clamp(1.3rem, 2.2vw, 1.8rem); line-height: 1.3; letter-spacing: -.035em; }
.book-lead { max-width: 49ch; color: var(--book-muted); font-size: 1rem; line-height: 1.8; }
.book-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 27px; }
.book-button { min-height: 50px; display: inline-flex; align-items: center; justify-content: space-between; gap: 18px; padding: 13px 18px; border: 1px solid var(--book-ink); border-radius: 6px; text-decoration: none; font-size: .88rem; font-weight: 750; line-height: 1.45; }
.book-button-primary { color: white; background: var(--book-purple); box-shadow: 3px 3px 0 var(--book-ink); }
.book-button-primary:hover { color: white; background: #5c48ed; box-shadow: 1px 1px 0 var(--book-ink); transform: translate(2px, 2px); }
.book-button-secondary { color: var(--book-ink); border-color: var(--book-line); background: white; }
.book-button-secondary:hover { color: var(--book-ink); border-color: var(--book-ink); background: var(--book-tint); }
.book-purchase-note { margin-top: 14px; color: var(--book-muted); font-size: .76rem; line-height: 1.6; }
.book-hero-tags { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 26px; list-style: none; color: var(--book-ink); font-size: .74rem; font-weight: 600; }
.book-hero-tags li { padding: 5px 9px; border: 1px solid var(--book-line); border-radius: 3px; }
.book-hero-tags li:nth-child(2) { background: var(--book-tint); border-color: var(--book-tint); }
.book-hero-tags li:nth-child(3) { background: var(--book-mint-tint); border-color: var(--book-mint-tint); }

.book-hero-art { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 540px; padding: 67px 42px 60px; border: 1px solid var(--book-ink); border-radius: 8px; background: var(--book-tint); box-shadow: 5px 5px 0 var(--book-ink); isolation: isolate; }
.book-art-shape { position: absolute; top: 55px; right: 18px; width: 105px; height: 105px; z-index: -1; border: 1px solid var(--book-ink); border-radius: 50%; background: var(--book-mint); }
.book-art-tile { position: absolute; bottom: 67px; left: 20px; width: 59px; height: 59px; z-index: -1; border: 1px solid var(--book-ink); background: var(--book-purple); transform: rotate(12deg); }
.book-art-label { position: absolute; top: 20px; left: 21px; right: 21px; display: flex; align-items: center; justify-content: space-between; gap: 8px; color: var(--book-ink); font-size: .65rem; letter-spacing: .075em; font-weight: 700; text-transform: uppercase; }
.book-art-label > span { width: 8px; height: 8px; border: 1px solid var(--book-ink); border-radius: 50%; background: var(--book-mint); }
.book-cover { display: block; width: min(100%, 275px); height: auto; border: 1px solid var(--book-ink); border-radius: 2px; box-shadow: 7px 7px 0 #242130; transform: rotate(-4deg); }
.book-art-caption { position: absolute; right: 20px; bottom: 20px; left: 20px; display: flex; justify-content: center; gap: 10px; color: var(--book-ink); font-size: .66rem; }
.book-art-caption > span { font-family: ui-monospace, monospace; color: var(--book-purple-text); }

.book-page-nav { display: flex; flex-wrap: wrap; gap: 2px 29px; padding: 9px 0; border-block: 1px solid var(--book-ink); }
.book-page-nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--book-muted); text-decoration: none; font-size: .86rem; font-weight: 650; }
.book-page-nav a:hover { color: var(--book-purple-text); text-decoration: underline; text-underline-offset: 5px; }
.book-section { padding: 76px 0; }
.book-section-heading { max-width: 660px; margin-bottom: 32px; }
.book-section h2, .book-final h2 { margin: 13px 0 18px; font-size: clamp(1.9rem, 3.3vw, 2.8rem); line-height: 1.16; letter-spacing: -.045em; font-weight: 800; }
.book-section-heading > p:last-child:not(.book-eyebrow) { max-width: 58ch; color: var(--book-muted); font-size: 1rem; line-height: 1.8; }
.book-page h3 { font-size: 1.08rem; line-height: 1.4; letter-spacing: -.025em; }
.book-benefits { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.book-benefit { padding: 28px; border: 1px solid var(--book-ink); border-radius: 7px; background: #fff; }
.book-benefit:nth-child(2) { background: var(--book-tint); }
.book-benefit:nth-child(3) { background: var(--book-mint-tint); }
.book-card-number { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; margin-bottom: 35px; border: 1px solid var(--book-ink); border-radius: 50%; color: var(--book-ink); font: .78rem ui-monospace, monospace; }
.book-benefit p { margin-top: 12px; color: #595465; font-size: .93rem; line-height: 1.8; }
.book-audience { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 56px; border-top: 1px solid var(--book-line); }
.book-audience .book-section-heading { margin-bottom: 0; }
.book-audience-list > div { display: flex; align-items: flex-start; gap: 20px; padding: 25px 0; border-bottom: 1px solid var(--book-line); }
.book-audience-list > div:first-child { padding-top: 0; }
.book-audience-list > div:last-child { padding-bottom: 0; border: 0; }
.book-audience-mark { display: inline-flex; flex: 0 0 32px; height: 32px; align-items: center; justify-content: center; border: 1px solid var(--book-ink); border-radius: 4px; background: var(--book-tint); color: var(--book-ink); }
.book-audience-list > div:nth-child(2) .book-audience-mark { background: var(--book-mint-tint); }
.book-audience-list p { margin-top: 8px; color: var(--book-muted); font-size: .94rem; line-height: 1.8; }
.book-practice { padding: 42px; border: 1px solid var(--book-ink); border-radius: 8px; background: var(--book-mint-tint); }
.book-practice .book-eyebrow { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; color: #42675d; }
.book-practice-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 26px; list-style: none; }
.book-practice-steps li { padding-top: 20px; border-top: 1px solid #9cbdb2; }
.book-practice-steps li > span { display: block; margin-bottom: 18px; color: #42675d; font: .8rem ui-monospace, monospace; }
.book-practice-steps p { margin-top: 10px; color: #4d625c; font-size: .9rem; line-height: 1.8; }
.book-practice-note { margin-top: 32px; padding-top: 24px; border-top: 1px solid #b4d0c7; color: #4d625c; font-size: .85rem; line-height: 1.8; }
.book-practice-note strong { color: var(--book-ink); }
.book-author { display: grid; grid-template-columns: 150px minmax(0, 660px); align-items: start; gap: 42px; }
.book-author-monogram { display: flex; flex-direction: column; align-items: center; justify-content: center; aspect-ratio: 1; border: 1px solid var(--book-ink); border-radius: 8px; background: var(--book-purple); box-shadow: 5px 5px 0 var(--book-ink); color: white; font-size: 49px; font-weight: 750; letter-spacing: -.06em; }
.book-author-monogram > span { margin-top: 8px; font-size: 9px; letter-spacing: .15em; }
.book-author h2 { margin-top: 8px; }
.book-author p:not(.book-eyebrow) { margin: 12px 0; color: var(--book-muted); line-height: 1.8; }
.book-text-link { display: inline-flex; align-items: center; gap: 16px; min-height: 44px; margin-top: 4px; color: var(--book-purple-text); text-decoration: none; font-size: .9rem; font-weight: 700; }
.book-text-link:hover { text-decoration: underline; text-underline-offset: 4px; }

.book-reviews { border-top: 1px solid var(--book-line); }
.book-reviews-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; margin-bottom: 28px; }
.book-reviews-heading .book-section-heading { margin: 0; }
.book-reviews-heading h2 { margin-bottom: 0; }
.book-reviews-heading > a { flex-shrink: 0; }
.book-review-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.book-review { display: flex; flex-direction: column; min-width: 0; min-height: 294px; margin: 0; padding: 25px; border: 1px solid var(--book-line); border-radius: 7px; background: #fff; }
.book-review:first-child { border-color: var(--book-ink); background: var(--book-tint); }
.book-review-mark { display: inline-block; width: fit-content; margin-bottom: 20px; color: var(--book-purple); font: 800 2.75rem/1 Georgia, serif; }
.book-review blockquote { padding: 0; margin: 0 0 29px; border: 0; font-size: 1.08rem; font-weight: 650; line-height: 1.6; letter-spacing: -.018em; }
.book-review figcaption { display: flex; flex-direction: column; gap: 5px; margin-top: auto; font-size: .72rem; line-height: 1.6; }
.book-review figcaption a { color: var(--book-ink); text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }
.book-review figcaption span { color: var(--book-muted); }
.book-review-note { margin-top: 17px; color: var(--book-muted); font-size: .77rem; line-height: 1.7; }

.book-faq { display: grid; grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); gap: 42px; padding-top: 0; }
.book-faq-list { min-width: 0; border-top: 1px solid var(--book-ink); }
.book-faq details { border-bottom: 1px solid var(--book-line); }
.book-faq summary { position: relative; padding: 21px 38px 21px 0; cursor: pointer; list-style: none; font-size: 1rem; line-height: 1.5; font-weight: 650; }
.book-faq summary::-webkit-details-marker { display: none; }
.book-faq summary::after { position: absolute; top: 22px; right: 0; display: inline-flex; align-items: center; justify-content: center; width: 23px; height: 23px; border: 1px solid var(--book-ink); border-radius: 50%; content: '+'; background: var(--book-tint); color: var(--book-ink); font-size: 1rem; font-weight: 400; }
.book-faq details[open] > summary::after { content: '−'; background: var(--book-mint-tint); }
.book-faq details > p { padding: 0 30px 22px 0; color: var(--book-muted); font-size: .94rem; line-height: 1.8; }
.book-faq p a { color: var(--book-purple-text); text-underline-offset: 3px; }
.book-final { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 32px; padding: 42px; border: 1px solid var(--book-ink); border-radius: 8px; background: var(--book-ink); color: white; }
.book-final .book-eyebrow { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; color: var(--book-mint); }
.book-final h2 { margin-bottom: 15px; }
.book-final p:not(.book-eyebrow) { color: #d9d3e5; font-size: .94rem; }
.book-final .book-button { width: 100%; border-color: var(--book-mint); background: var(--book-mint); color: var(--book-ink); box-shadow: 3px 3px 0 white; }
.book-final .book-button:hover { background: #90e4d3; box-shadow: 1px 1px 0 white; }
.book-final .book-final-action > p { max-width: 260px; margin: 15px auto 0; color: #c1bace; font-size: .74rem; line-height: 1.65; text-align: center; }

@media (max-width: 1000px) {
  .book-hero { gap: 34px; }
  .book-hero-art { min-height: 475px; padding-inline: 30px; }
  .book-cover { width: 235px; }
  .book-benefit { padding: 22px; }
  .book-practice-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .book-final { grid-template-columns: 1fr; }
  .book-final-action { justify-self: start; }
  .book-review { padding: 21px; }
}

@media (max-width: 720px) {
  .book-page { padding-top: 17px; }
  .book-breadcrumb { font-size: .74rem; }
  .book-hero { grid-template-columns: 1fr; gap: 32px; padding: 31px 0 40px; }
  .book-hero h1 { margin-top: 17px; margin-bottom: 20px; }
  .book-title-main { max-width: none; font-size: clamp(2.7rem, 10vw, 3.7rem); }
  .book-title-sub { max-width: 27ch; margin-top: 16px; font-size: clamp(1.2rem, 4.3vw, 1.6rem); line-height: 1.35; }
  .book-eyebrow { font-size: .67rem; letter-spacing: .08em; }
  .book-lead { font-size: .96rem; line-height: 1.8; }
  .book-actions { margin-top: 24px; }
  .book-hero-tags { font-size: .72rem; gap: 7px; margin-top: 21px; }
  .book-hero-art { min-height: 432px; margin-right: 5px; padding-block: 55px; }
  .book-cover { width: 215px; }
  .book-art-shape { top: 48px; right: 22px; width: 85px; height: 85px; }
  .book-art-tile { bottom: 60px; left: 25px; width: 50px; height: 50px; }
  .book-page-nav { gap: 0 23px; padding-block: 7px; }
  .book-page-nav a { font-size: .81rem; }
  .book-section { padding-block: 48px; }
  .book-section-heading { margin-bottom: 25px; }
  .book-section h2, .book-final h2 { font-size: 1.9rem; line-height: 1.2; }
  .book-benefits { grid-template-columns: 1fr; gap: 12px; }
  .book-benefit { padding: 24px; }
  .book-card-number { width: 30px; height: 30px; margin-bottom: 19px; }
  .book-benefit p { margin-top: 9px; }
  .book-audience { grid-template-columns: 1fr; gap: 28px; }
  .book-audience-list > div { gap: 15px; padding-block: 22px; }
  .book-practice { padding: 27px 23px; }
  .book-practice-steps { grid-template-columns: 1fr; gap: 21px; }
  .book-practice-steps li { display: flex; align-items: flex-start; gap: 18px; padding-top: 18px; }
  .book-practice-steps li > span { flex-shrink: 0; padding-top: 5px; margin: 0; }
  .book-practice-steps p { margin-top: 6px; }
  .book-practice-note { margin-top: 25px; padding-top: 20px; }
  .book-author { grid-template-columns: 1fr; gap: 27px; }
  .book-author-monogram { width: 90px; font-size: 31px; box-shadow: 4px 4px 0 var(--book-ink); }
  .book-author-monogram > span { margin-top: 3px; font-size: 7px; }
  .book-reviews-heading { flex-direction: column; align-items: flex-start; gap: 12px; margin-bottom: 22px; }
  .book-review-grid { grid-template-columns: 1fr; gap: 12px; }
  .book-review { min-height: 0; padding: 24px; }
  .book-review-mark { margin-bottom: 10px; }
  .book-review blockquote { margin-bottom: 24px; }
  .book-faq { grid-template-columns: 1fr; gap: 12px; padding-top: 0; }
  .book-faq .book-section-heading { margin-bottom: 7px; }
  .book-faq summary { font-size: .96rem; }
  .book-faq details > p { padding-right: 8px; }
  .book-final { gap: 24px; padding: 30px 24px; }
  .book-final-action { width: calc(100% - 3px); }
}

@media (max-width: 440px) {
  .book-actions { flex-direction: column; margin-right: 3px; }
  .book-button { width: 100%; gap: 12px; padding-inline: 15px; font-size: .87rem; }
  .book-hero-art { min-height: 412px; }
  .book-cover { width: 200px; }
  .book-page-nav { gap: 0 19px; }
  .book-art-caption { right: 13px; left: 13px; gap: 7px; font-size: .62rem; }
}

@media (prefers-reduced-motion: reduce) {
  .book-page a { transition: none; }
  .book-button-primary:hover { transform: none; }
}
