/* The Books & Resources design is deliberately isolated from the other pages. */
.books-reference {
  background-color: #faf3e8;
  background-image: linear-gradient(rgba(250, 243, 232, .80), rgba(250, 243, 232, .80)), url('/assets/paper.webp');
}
.books-reference .site-header { min-height: 112px; }
.books-reference .wordmark-bar { width: 25px; min-height: 89px; }
.books-reference .wordmark-text { font-size: clamp(29px, 3.1vw, 39px); }
.books-page { max-width: 1410px; padding-bottom: 12px; }
.books-page h1, .books-page h2, .books-page h3, .books-page p { margin-top: 0; }

.books-hero { position: relative; isolation: isolate; min-height: 230px; padding: 4px 0 22px; border-bottom: 1px solid rgba(22, 17, 14, .18); }
.books-hero-copy { position: relative; z-index: 1; max-width: 73%; }
.books-eyebrow { display: inline-block; margin-bottom: 11px; color: #bd0b0d; font-size: clamp(14px, 1.5vw, 19px); font-weight: 850; letter-spacing: .19em; line-height: 1.1; }
.books-eyebrow::after { display: block; width: 79px; height: 7px; margin-top: 10px; background: #bd0b0d; content: ''; }
.books-hero-title { margin-bottom: 8px; max-width: 840px; font-family: Montserrat, Arial, sans-serif; font-size: clamp(35px, 3.8vw, 55px); font-weight: 800; letter-spacing: -.055em; line-height: .98; }
.books-hero-description { max-width: 710px; margin-bottom: 0; font-size: clamp(16px, 1.6vw, 21px); font-weight: 500; letter-spacing: -.025em; line-height: 1.24; }
.books-hero-art { position: absolute; z-index: 0; right: calc(-1 * var(--edge)); bottom: 0; width: min(43%, 500px); height: auto; mix-blend-mode: multiply; pointer-events: none; mask-image: linear-gradient(to right, transparent, #000 11%); }

.books-featured { display: grid; grid-template-columns: minmax(0, 34%) minmax(0, 66%); align-items: center; padding: 8px 0 12px; }
.books-cover-art { display: block; width: 100%; max-width: 430px; height: auto; mix-blend-mode: multiply; }
.books-featured-copy { min-width: 0; padding: 5px 0 4px 20px; }
.books-featured-label { display: inline-block; margin: 0 0 7px; padding: 5px 22px; background: #bc0a0d; color: #fff; font-size: clamp(13px, 1.3vw, 18px); font-weight: 850; letter-spacing: .1em; line-height: 1; transform: skew(-12deg); }
.books-featured-label > span { display: block; transform: skew(12deg); }
.books-featured-title { margin-bottom: 0; font-family: Montserrat, Arial, sans-serif; font-size: clamp(33px, 4vw, 58px); font-weight: 800; letter-spacing: -.06em; line-height: .97; }
.books-featured-subtitle { margin-bottom: 7px; font-family: Montserrat, Arial, sans-serif; font-size: clamp(19px, 2.4vw, 31px); font-weight: 800; letter-spacing: -.055em; line-height: 1.05; }
.books-rule { width: 95px; height: 7px; margin: 9px 0; background: #bb0b0d; }
.books-description { max-width: 745px; margin-bottom: 7px; font-size: clamp(15px, 1.4vw, 19px); font-weight: 500; letter-spacing: -.02em; line-height: 1.26; }
.books-actions { display: grid; grid-template-columns: 1fr 1fr 1.12fr 1fr; align-items: stretch; gap: 8px; margin-top: 14px; }
.books-button, .books-substack-cta { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: 0; min-height: 45px; padding: 8px 10px; border: 2px solid #15120f; border-radius: 6px; background: rgba(255, 255, 255, .18); color: #111; font: 800 13px/1.1 Inter, Arial, sans-serif; letter-spacing: -.025em; text-align: center; text-decoration: none; }
.books-button:focus-visible, .books-substack-cta:focus-visible { outline: 3px solid #a60000; outline-offset: 3px; }
.books-button-amazon { border-color: #bd090a; background: #bd090a; color: #fff; }
.books-button-substack { border-color: #e74a18; background: #e74a18; color: #fff; }
.books-button-bn { color: #173c24; }
.books-button:disabled, .books-substack-cta:disabled { cursor: not-allowed; opacity: .82; }
.books-button svg, .books-substack-brand svg { width: 24px; height: 24px; flex: none; }
.books-bn-mark { color: #173c24; font-family: Georgia, serif; font-size: 16px; font-weight: 900; }
.books-links-note { margin: 7px 0 0; color: #51483d; font-size: 12px; line-height: 1.3; }

.books-substack-banner { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 20px; margin: 0 -12px 17px; padding: 13px 19px; background: linear-gradient(95deg, rgba(240, 171, 60, .42), rgba(253, 213, 131, .53) 49%, rgba(231, 155, 47, .36)); clip-path: polygon(1% 4%, 18% 0, 41% 3%, 64% 0, 81% 3%, 99% 1%, 100% 30%, 99% 65%, 100% 94%, 82% 99%, 58% 97%, 39% 100%, 18% 97%, 1% 100%, 0 68%, 1% 35%); }
.books-substack-brand { display: flex; align-items: center; gap: 10px; padding-right: 20px; border-right: 1px solid #17130e; font-size: clamp(22px, 2.4vw, 31px); font-weight: 900; letter-spacing: -.06em; line-height: 1; }
.books-substack-brand svg { width: 37px; height: 37px; color: #f15b2a; }
.books-substack-copy { min-width: 0; }
.books-substack-copy h2, .books-substack-copy h3 { margin: 0 0 4px; font-size: clamp(18px, 2vw, 27px); font-weight: 850; letter-spacing: -.055em; line-height: 1; }
.books-substack-copy p { margin: 0; font-size: 13px; line-height: 1.25; }
.books-substack-cta { white-space: nowrap; }

.books-future, .books-resources { display: grid; gap: 0; padding: 20px 0 17px; border-top: 2px solid #26221d; }
.books-future { grid-template-columns: 1.02fr 1fr 1fr; }
.books-resources { grid-template-columns: 1.02fr 1fr 1fr 1fr; }
.books-section-intro { padding-right: 25px; }
.books-section-intro h2 { position: relative; margin-bottom: 10px; padding-left: 27px; font-family: Montserrat, Arial, sans-serif; font-size: clamp(27px, 3vw, 42px); font-weight: 800; letter-spacing: -.07em; line-height: .97; text-transform: uppercase; }
.books-section-intro h2::before { position: absolute; top: 0; bottom: 0; left: 0; width: 15px; background: #be0a0b; content: ''; }
.books-section-intro p { max-width: 285px; margin: 0; font-size: clamp(15px, 1.45vw, 19px); font-weight: 500; letter-spacing: -.025em; line-height: 1.22; }
.books-future-item, .books-resource-item { min-width: 0; padding: 0 22px; border-left: 1px solid #2d2822; }
.books-in-development { display: inline-block; margin: 0 0 8px; padding: 4px 10px; background: #e6d9c5; font-size: 12px; font-weight: 850; letter-spacing: .14em; line-height: 1; }
.books-future-item h3 { margin-bottom: 3px; font-family: Montserrat, Arial, sans-serif; font-size: clamp(18px, 1.9vw, 25px); font-weight: 850; letter-spacing: -.055em; line-height: 1.02; text-transform: uppercase; }
.books-future-subtitle { margin-bottom: 7px; font-size: clamp(14px, 1.35vw, 18px); font-style: italic; font-weight: 600; line-height: 1.15; }
.books-future-subtitle::after { display: block; width: 76px; height: 6px; margin-top: 6px; background: #bf0b0c; content: ''; }
.books-future-item > p:last-child { margin: 0; font-size: clamp(14px, 1.3vw, 17px); font-weight: 500; letter-spacing: -.02em; line-height: 1.2; }
.books-resource-item { padding: 0 18px; }
.books-resource-heading { display: flex; align-items: center; gap: 11px; margin-bottom: 8px; }
.books-resource-icon { display: grid; width: 56px; height: 56px; flex: none; place-items: center; border-radius: 50%; background: #31788f; color: #fff; }
.books-resource-item:nth-of-type(2) .books-resource-icon { background: #f1a600; }
.books-resource-item:nth-of-type(3) .books-resource-icon { background: #b90b0b; }
.books-resource-icon svg { width: 34px; height: 34px; }
.books-resource-heading h3 { margin: 0; font-size: clamp(17px, 1.6vw, 21px); font-weight: 850; letter-spacing: -.04em; line-height: 1; text-transform: uppercase; }
.books-resource-heading h3::after { display: block; width: 75px; height: 6px; margin-top: 6px; background: #bf0b0c; content: ''; }
.books-resource-item ul { margin: 0; padding: 0; list-style: none; }
.books-resource-item li { position: relative; margin: 0 0 5px; padding-left: 19px; font-size: clamp(15px, 1.45vw, 19px); font-weight: 500; letter-spacing: -.025em; line-height: 1.17; }
.books-resource-item li::before { position: absolute; top: .36em; left: 0; width: 9px; height: 9px; background: #bf0b0c; content: ''; }

@media (max-width: 1050px) {
  .books-featured { grid-template-columns: 34% 66%; }
  .books-featured-copy { padding-left: 14px; }
  .books-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .books-button { font-size: 13px; padding-inline: 10px; }
  .books-future-item, .books-resource-item { padding-inline: 15px; }
  .books-resource-heading { align-items: flex-start; }
  .books-resource-icon { width: 44px; height: 44px; }
  .books-resource-icon svg { width: 28px; height: 28px; }
}
@media (max-width: 850px) {
  .books-reference .site-header { min-height: 105px; }
  .books-reference .wordmark-bar { width: 22px; min-height: 78px; }
  .books-reference .wordmark-text { font-size: 30px; }
  .books-hero { min-height: 205px; }
  .books-hero-copy { max-width: 78%; }
  .books-hero-art { width: 40%; }
  .books-substack-banner { grid-template-columns: auto 1fr; }
  .books-substack-cta { grid-column: 2; justify-self: start; }
  .books-future { grid-template-columns: 1fr 1fr; gap: 18px 0; }
  .books-future .books-section-intro { grid-column: 1 / -1; }
  .books-future-item:first-of-type { border-left: 0; padding-left: 0; }
  .books-resources { grid-template-columns: repeat(3, 1fr); gap: 18px 0; }
  .books-resources .books-section-intro { grid-column: 1 / -1; }
  .books-resource-item:first-of-type { border-left: 0; padding-left: 0; }
}
@media (max-width: 600px) {
  .books-reference .site-header { min-height: 102px; }
  .books-reference .wordmark-bar { width: 20px; min-height: 72px; }
  .books-reference .wordmark-text { font-size: 28px; }
  .books-hero { min-height: 0; padding: 4px 0 110px; }
  .books-hero-copy { max-width: 100%; }
  .books-hero-title { font-size: clamp(34px, 9vw, 47px); }
  .books-hero-description { font-size: 17px; line-height: 1.3; }
  .books-hero-art { right: -22px; bottom: 0; width: 49%; max-width: 220px; }
  .books-featured { grid-template-columns: 1fr; gap: 8px; padding: 10px 0 20px; }
  .books-cover-art { width: min(100%, 330px); margin: 0 auto; }
  .books-featured-copy { padding: 0; }
  .books-featured-title { font-size: clamp(33px, 9vw, 46px); }
  .books-featured-subtitle { font-size: 22px; }
  .books-description { font-size: 16px; line-height: 1.36; }
  .books-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .books-button { min-width: 0; min-height: 48px; white-space: normal; }
  .books-substack-banner { grid-template-columns: 1fr; gap: 10px; margin: 0 -6px 20px; padding: 18px; }
  .books-substack-brand { padding: 0; border: 0; }
  .books-substack-copy h2, .books-substack-copy h3 { font-size: 21px; }
  .books-substack-copy p { font-size: 14px; line-height: 1.3; }
  .books-substack-cta { grid-column: 1; }
  .books-future, .books-resources { grid-template-columns: 1fr; gap: 20px; }
  .books-future .books-section-intro, .books-resources .books-section-intro { grid-column: auto; }
  .books-section-intro h2 { font-size: 30px; }
  .books-section-intro p { max-width: none; font-size: 16px; }
  .books-future-item, .books-resource-item, .books-future-item:first-of-type, .books-resource-item:first-of-type { padding: 15px 0 0; border-left: 0; border-top: 1px solid rgba(45, 40, 34, .5); }
  .books-future-item h3 { font-size: 21px; }
  .books-future-subtitle, .books-future-item > p:last-child, .books-resource-item li { font-size: 16px; line-height: 1.3; }
  .books-resource-heading { align-items: center; }
  .books-resource-icon { width: 52px; height: 52px; }
  .books-resource-icon svg { width: 32px; height: 32px; }
}
@media (max-width: 380px) {
  .books-reference .site-header { gap: 6px; }
  .books-reference .wordmark { gap: 7px; }
  .books-reference .wordmark-bar { width: 18px; min-height: 64px; }
  .books-reference .wordmark-text { font-size: 24px; }
  .books-reference .mobile-nav summary { gap: 6px; padding: 9px; font-size: 14px; }
}
