@import url('https://fonts.googleapis.com/css2?family=Mrs+Saint+Delafield&display=swap');

:root {
  --ink: #18211b;
  --muted: #617067;
  --paper: #f4f1e8;
  --surface: #fffdf7;
  --soft: #e7efe3;
  --line: #d8dece;
  --green: #2f7d4a;
  --green-dark: #1f5d37;
  --coral: #df7a5e;
  --shadow: 0 18px 50px rgba(33, 45, 35, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  overflow-y: scroll;
  scrollbar-gutter: stable;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.5;
}

a {
  color: inherit;
}

.alt-header,
.alt-footer,
main {
  width: min(1440px, calc(100% - 40px));
  margin: 0 auto;
}

.alt-header {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
}

.alt-logo {
  width: 132px;
  display: inline-flex;
}

.alt-logo img {
  width: 100%;
  height: auto;
  display: block;
}

nav {
  display: flex;
  gap: 22px;
}

nav a {
  padding: 8px 0;
  color: var(--muted);
  text-decoration: none;
}

nav a:hover {
  color: var(--green-dark);
}

.alt-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) 460px;
  gap: 76px;
  align-items: center;
  padding: 64px 0 96px;
}

.alt-hero-copy {
  max-width: 880px;
}

.kicker,
.meta,
.panel-label {
  margin: 0 0 12px;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}
.meta {
  margin-top:10px;
}
.alt-hero h1 {
  display: inline-block;
  margin: 0;
  font-size: clamp(2.9rem, 4.8vw, 5.3rem);
  line-height: 0.8;
  letter-spacing: 0;
  word-spacing: -0.08em;
  transform: scaleX(0.94);
  transform-origin: left center;
}

.alt-hero-copy > p:not(.kicker) {
  max-width: 720px;
  color: var(--muted);
  font-size: 1.28rem;
  line-height: 1.55;
  margin-top:0;
}

.alt-actions,
.card-actions,
.mini-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.primary-action,
.secondary-action,
.download,
.details,
.alt-section-head a,
.alt-book-grid article > a,
.alt-hero-panel a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  padding: 0 18px;
  font-weight: 600;
  text-decoration: none;
}

.primary-action,
.download,
.alt-hero-panel a {
  color: #fff;
  background: var(--green);
  box-shadow: 0 8px 20px rgba(47, 125, 74, 0.22);
}

.primary-action:hover,
.download:hover,
.alt-hero-panel a:hover {
  background: var(--green-dark);
}

.secondary-action,
.details,
.alt-section-head a,
.alt-book-grid article > a {
  color: var(--green-dark);
  background: var(--soft);
}

.mini-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 18px;
}

.mini-actions a {
  min-height: 38px;
  padding: 0 12px;
  font-size: 0.9rem;
}

.hero-points {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.hero-points span {
  border-radius: 999px;
  padding: 8px 12px;
  color: var(--green-dark);
  background: rgba(47, 125, 74, 0.1);
  font-size: 0.9rem;
  font-weight: 700;
}

.fresh-note {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: 430px;
  border-radius: 7px;
  padding: 16px 18px;
  background: rgba(47, 125, 74, 0.08);
}

.fresh-note > span {
  width: 10px;
  height: 10px;
  flex: 0 0 auto;
  border-radius: 50%;
  padding: 0;
  background: var(--green);
  box-shadow: 0 0 0 6px rgba(47, 125, 74, 0.12);
  animation: freshPulse 1.8s ease-in-out infinite;
}

.fresh-note strong {
  display: block;
  color: var(--green-dark);
  font-size: 0.95rem;
  line-height: 1.1;
}

.fresh-note p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.2;
}

@keyframes freshPulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.62;
    transform: scale(0.82);
  }
}

.alt-hero-panel {
  position: relative;
  border-radius: 8px;
  padding: 22px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.alt-hero-panel::before {
  content: "";
  position: absolute;
  inset: 18px -18px -18px 34px;
  z-index: -1;
  border-radius: 8px;
  background: var(--soft);
}

.alt-hero-panel img {
  width: 100%;
  display: block;
  border-radius: 6px;
  box-shadow: 0 14px 34px rgba(24, 33, 27, 0.18);
}

.panel-copy {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px 16px;
  align-items: center;
  margin-top: 18px;
}

.panel-copy p {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--muted);
  font-weight: 700;
}

.panel-copy h2 {
  margin: 0;
  font-size: 1.45rem;
  line-height: 1.1;
}

.library-hero-panel {
  position: relative;
  min-height: 520px;
}

.library-card {
  position: absolute;
  width: 280px;
  border-radius: 12px;
  padding: 24px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.library-card p {
  margin: 0 0 46px;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.library-card strong {
  display: block;
  font-size: 1.45rem;
  line-height: 1.12;
}

.top-card {
  top: 26px;
  right: 26px;
  transform: rotate(3deg);
}

.mid-card {
  top: 166px;
  left: 10px;
  background: #eef5e9;
  transform: rotate(-4deg);
}

.low-card {
  right: 0;
  bottom: 72px;
  background: #fff9ef;
  transform: rotate(5deg);
}

.library-summary {
  position: absolute;
  left: 52px;
  bottom: 22px;
  width: 270px;
  border-radius: 8px;
  padding: 18px;
  color: #fff;
  background: var(--green);
  box-shadow: 0 18px 44px rgba(47, 125, 74, 0.24);
}

.library-summary span {
  display: block;
  margin-bottom: 6px;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.library-summary strong {
  display: block;
  font-size: 1.18rem;
  line-height: 1.16;
}

.stacked-hero-panel {
  position: relative;
  min-height: 540px;
}

.stack-book {
  position: absolute;
  display: block;
  border-radius: 3px;
 /* background: var(--surface); */
 /*  box-shadow:   4px 4px 0 rgba(24, 33, 27, 0.12),
  0 8px 16px rgba(33, 45, 35, 0.08); */
}

.stack-main {
  top: 18px;
  right: 96px;
  z-index: 3;
  width: 300px;
 /*  box-shadow:   4px 4px 0 rgba(24, 33, 27, 0.12),
  0 8px 16px rgba(33, 45, 35, 0.08); */
}

.stack-left {
  top: 110px;
  left: 28px;
  z-index: 1;
  width: 210px;
  transform: rotate(-8deg);
  opacity: 0.9;
}

.stack-right {
  right: 4px;
  bottom: 76px;
  z-index: 1;
  width: 220px;
  transform: rotate(7deg);
  opacity: 0.9;
}

.stack-note {
  position: absolute;
  left: 46px;
  bottom: 45px;
  z-index: 4;
  width: 290px;
  border-radius: 8px;
  padding: 18px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.stack-note strong {
  display: block;
  color: var(--green-dark);
  font-size: 1rem;
}

.stack-note span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
}

.path-section {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 0 0 30px;
}

.path-card {
  display: block;
  overflow: hidden;
  border: 1px solid rgba(216, 222, 206, 0.95);
  border-radius: 18px;
  padding: 22px;
  background: rgba(255, 253, 247, 0.78);
  box-shadow: 0 10px 30px rgba(33, 45, 35, 0.06);
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.path-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.path-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.path-card h2 {
  margin: 0;
  font-size: 1.35rem;
  line-height: 1.1;
}

.path-card p {
  margin: 6px 0 0;
  color: var(--muted);
}

.path-arrow {
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--green-dark);
  background: var(--soft);
  transition: transform 180ms ease, background 180ms ease;
}

.path-arrow::before {
  content: "";
  width: 10px;
  height: 10px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: rotate(45deg);
  margin-left: -3px;
}

.path-card:hover .path-arrow {
  color: #fff;
  background: var(--green);
  transform: translateX(3px);
}

.path-covers {
  display: flex;
  gap: 1%;
  margin-top: 26px;
}

.path-covers img {
  width: 32%;
  height: auto;
  border-radius: 8px;
  object-fit: contain;
  box-shadow: 0 8px 18px rgba(24, 33, 27, 0.12);
}

.alt-section {
  padding: 72px 0;
}

.alt-section + .alt-section {
  border-top: 1px solid var(--line);
}

.alt-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.alt-section-head h1 {
  margin: 0;
  font-size: clamp(2.4rem, 4vw, 4.6rem);
  line-height: 0.96;
}

.alt-section-head h2 {
  margin: 0;
  font-size: clamp(1.8rem, 3vw, 3rem);
  line-height: 1.05;
}

.release-feed {
  position: relative;
  display: grid;
  gap: 12px;
  border-radius: 12px;
  padding: 14px;
  background: rgba(255, 253, 247, 0.62);
  box-shadow: inset 0 0 0 1px rgba(216, 222, 206, 0.8);
}

.release-item {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
  border-radius: 8px;
  padding: 20px;
  background: var(--surface);
  box-shadow: 0 10px 28px rgba(33, 45, 35, 0.07);
}

.release-cover {
  width: 92px;
  display: block;
  border-radius: 5px;
  box-shadow: 0 8px 20px rgba(24, 33, 27, 0.14);
}

.release-item h3 {
  margin: 0;
  font-size: 1.45rem;
  line-height: 1.12;
}

.release-item p:not(.meta) {
  margin: 6px 0 0;
  color: var(--muted);
}

.topic-grid,
.alt-book-grid,
.book-shelf {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.topic-grid a,
.alt-book-grid article,
.book-card {
  border-radius: 8px;
  padding: 22px;
  background: var(--surface);
  box-shadow: 0 10px 30px rgba(33, 45, 35, 0.08);
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.topic-grid a:hover,
.alt-book-grid article:hover,
.book-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.topic-grid span {
  display: block;
  margin-bottom: 52px;
  color: var(--coral);
  font-weight: 800;
  text-transform: uppercase;
}

.topic-grid strong {
  display: block;
  font-size: 1.5rem;
  line-height: 1.14;
}

.benefits-section {
  padding: 88px 0;
  text-align: center;
  border-top: 1px solid var(--line);
}

.benefits-head {
  max-width: 720px;
  margin: 0 auto 54px;
}

.benefits-head h2 {
  margin: 0;
  font-size: clamp(2rem, 3.4vw, 3.3rem);
  line-height: 1.12;
}

.benefit-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  max-width: 1200px;
  margin: 0 auto;
  text-align: left;
}

.benefit-grid article {
  min-height: 235px;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 28px 24px;
  background: var(--surface);
  box-shadow: 0 10px 30px rgba(33, 45, 35, 0.06);
}

.benefit-grid h3 {
  margin: 22px 0 10px;
  font-size: 1.45rem;
  line-height: 1.16;
}

.benefit-grid p {
  margin: 0;
  color: var(--muted);
}

.benefit-icon {
  width: 46px;
  height: 46px;
  object-fit: contain;
}

.benefits-action {
  min-width: 224px;
  min-height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  margin-top: 46px;
  color: #fff;
  background: var(--green);
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(47, 125, 74, 0.22);
}

.benefits-action:hover {
  background: var(--green-dark);
}

.alt-book-grid img,
.book-card img {
  width: 100%;
  border-radius: 6px;
  box-shadow: 0 12px 28px rgba(24, 33, 27, 0.12);
}

.alt-book-grid h3,
.book-card h2 {
  margin: 10px 0 16px;
  font-size: 1.25rem;
  line-height: 1.16;
}

.alt-book-grid p:not(.meta),
.book-card p:not(.meta) {
  color: var(--muted);
}

.book-card {
  display: flex;
  flex-direction: column;
}

.book-card .mini-actions {
  margin-top: auto;
  padding-top: 16px;
}

.books-page-section {
  padding-top: 70px;
}

.book-controls {
  display: grid;
  grid-template-columns: minmax(260px, 0.55fr) minmax(460px, 1fr);
  gap: 18px;
  align-items: center;
  margin-bottom: 28px;
}

.book-search-input {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 14px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
}

.book-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-start;
}

.book-tabs button {
  min-height: 44px;
  border: 0;
  border-radius: 999px;
  padding: 0 16px;
  color: var(--green-dark);
  background: var(--soft);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.book-tabs button.active,
.book-tabs button:hover {
  color: #fff;
  background: var(--green);
}

.empty-books {
  color: var(--muted);
}

.detail-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 64px;
  align-items: start;
  padding: 82px 0;
}

.detail-copy {
  max-width: 820px;
}

.detail-copy h1 {
  margin: 0;
  font-size: clamp(3rem, 6vw, 4rem);
  line-height: 0.94;
}

.detail-copy > p:not(.kicker) {
  max-width: 680px;
  color: var(--muted);
  font-size: 1.12rem;
}

.back-link-alt {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  margin-bottom: 28px;
  padding: 0 14px;
  color: var(--green-dark);
  background: var(--soft);
  font-weight: 600;
  text-decoration: none;
}



.detail-card {
  border-radius: 8px;
  padding: 22px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.detail-card img {
  width: 100%;
  display: block;
  border-radius: 6px;
  box-shadow: 0 12px 28px rgba(24, 33, 27, 0.12);
}

.detail-meta {
  margin-top: 22px;
}

.detail-meta h2 {
  margin: 0 0 14px;
}

.detail-meta p {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--line);
  margin: 0;
  padding: 12px 0;
  color: var(--muted);
}

.detail-meta strong {
  color: var(--ink);
}

.policy-content {
  max-width: 800px;
}

.policy-content h1 {
  margin: 0;
  font-size: clamp(2.4rem, 4vw, 4.6rem);
  line-height: 0.96;
}

.policy-content h2 {
  margin: 34px 0 10px;
  font-size: 1.45rem;
}

.policy-content p,
.policy-content li {
  color: var(--muted);
}

.alt-footer {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
}

.alt-footer a {
  color: var(--green-dark);
  text-decoration: none;
}

.modal-open {
  overflow: hidden;
}

.lead-modal[hidden] {
  display: none;
}

.lead-modal {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 20px;
}

.lead-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(24, 33, 27, 0.45);
}

.lead-modal-panel {
  position: relative;
  width: min(440px, 100%);
  border-radius: 8px;
  padding: 28px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.lead-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 8px;
  background: var(--soft);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}

.lead-modal-panel h2 {
  margin: 0;
  font-size: 1.7rem;
  line-height: 1.1;
}

.lead-modal-copy {
  margin: 12px 0 20px;
  color: var(--muted);
}

.lead-form label {
  display: block;
  margin-bottom: 8px;
  font-weight: 700;
}

.lead-form input {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  background: #fff;
  font: inherit;
}

.lead-modal-actions {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.button-small,
.skip-button {
  width: 100%;
  min-height: 44px;
  border: 0;
  border-radius: 8px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.button-small {
  color: #fff;
  background: var(--green);
}

.skip-button {
  color: var(--green-dark);
  background: var(--soft);
}

@media (max-width: 900px) {
  .alt-hero,
  .release-item,
  .topic-grid,
  .alt-book-grid,
  .path-section,
  .benefit-grid,
  .book-shelf,
  .detail-hero {
    grid-template-columns: 1fr;
  }
  .detail-card {
    order: -1;
  }
  .detail-copy {
    order: 1;
  }

  .release-cover {
    width: 120px;
  }

  .alt-hero-panel {
    max-width: 460px;
  }

  .library-hero-panel {
    min-height: 560px;
    max-width: 520px;
  }

  .stacked-hero-panel {
    min-height: 520px;
    max-width: 520px;
  }

  .book-controls {
    grid-template-columns: 1fr;
  }
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 30px;
  height: 30px;
  border: none;
  background: none;
  cursor: pointer;
  padding: 0;
  margin-left: auto;
}

.hamburger span {
  width: 100%;
  height: 3px;
  background: var(--ink);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.hamburger[aria-expanded="true"] span:nth-child(1) {
  transform: rotate(45deg) translateY(11px);
}

.hamburger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.hamburger[aria-expanded="true"] span:nth-child(3) {
  transform: rotate(-45deg) translateY(-11px);
}

@media (max-width: 560px) {
  .hamburger {
    display: flex;
  }

  nav {
    display: none;
  }

  nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 78px;
    left: 0;
    right: 0;
    background: var(--surface);
    padding: 16px 20px;
    gap: 12px;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 4px 8px rgba(24, 33, 27, 0.1);
  }

  nav.open a {
    padding: 12px 0;
    text-decoration: none;
  }

  .alt-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
    padding: 18px 0;
  }

  .alt-hero {
    padding: 54px 0;
  }

  .library-hero-panel {
    min-height: auto;
    display: grid;
    gap: 14px;
  }

  .stacked-hero-panel {
    min-height: 430px;
  }

  .stack-main {
    right: 32px;
    width: 230px;
  }

  .stack-left {
    left: 0;
    width: 160px;
  }

  .stack-right {
    right: 0;
    width: 165px;
  }

  .stack-note {
    left: 0;
    bottom: 0;
    width: min(290px, 100%);
  }

  .library-card,
  .library-summary {
    position: static;
    width: 100%;
    transform: none;
  }

  .library-card p {
    margin-bottom: 24px;
  }

  .alt-section-head {
    display: block;
  }

  .alt-section-head a {
    display: inline-flex;
    margin-top: 16px;
  }

  .panel-copy,
  .release-item {
    grid-template-columns: 1fr;
  }

  .fresh-note {
    min-width: 0;
    width: 100%;
  }

  .path-covers {
    grid-template-columns: repeat(4, 56px);
  }

  .path-covers img {
    width: 56px;
    height: 76px;
  }
}


 .book-short {
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: normal;
 }


 .detail-hero {
    padding-top: 0;
}
.books-back-link {
    margin-top: 50px;
}

.min-font {
  font-family: "Mrs Saint Delafield", cursive;
  font-weight: 400;
  font-style: normal;
  font-size: 2em;
}
article img {
  cursor:pointer;
}

.back-arrow {
    height: 24px;
    transform: rotate(180deg);
    margin-right: 10px;
   filter: invert(0)
}

.detail-hero .book-description {
    margin-top: 30px;
}
