@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600&family=Playfair+Display:ital,wght@0,500;0,600;1,500&display=swap');

:root {
  --ivory: #fbf8ed;
  --paper: #fffdf6;
  --mocha: #38170f;
  --pink: #f3aebc;
  --pink-soft: #f9d2d9;
  --rose: #c95272;
  --olive: #778050;
  --line: rgba(56, 23, 15, 0.27);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 104px;
}

body {
  margin: 0;
  background: var(--ivory);
  color: var(--mocha);
  font-family: 'DM Sans', sans-serif;
}

h1, h2, h3, h4, h5, h6,
.section-kicker,
.eyebrow {
  text-wrap: balance;
}

p, li, blockquote {
  text-wrap: pretty;
}

a {
  color: inherit;
  text-decoration: none;
}

button, input {
  font: inherit;
}

.section {
  padding: 90px max(4.5vw, 24px);
}

.section-kicker, .eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  word-spacing: 0.18em;
  font-size: 12px;
  font-weight: 600;
}

/* Site Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: 104px;
  background: rgba(251, 248, 237, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(56, 23, 15, 0.08);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0;
  width: 100%;
}

.site-header nav {
  display: flex;
  align-items: center;
  gap: clamp(12px, 1.5vw, 22px);
  font: 500 clamp(13px, 1.05vw, 15.5px) 'Playfair Display', serif;
}

.nav-left {
  justify-content: flex-start;
  padding-left: clamp(10px, 1.8vw, 26px);
}

.brand-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(6px, 1.2vw, 14px);
  padding: 0 10px;
  overflow: visible;
}

.header-bird {
  display: inline-block;
  height: clamp(34px, 3.4vw, 48px);
  width: auto;
  filter: drop-shadow(1px 2px 3px rgba(56, 23, 15, 0.14));
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  transform-origin: bottom center;
}

.header-bird-pink {
  transform: rotate(-3deg);
}

.header-bird-pink:hover {
  transform: scale(1.18) rotate(-10deg);
}

.header-bird-green {
  transform: scaleX(-1) rotate(-3deg);
}

.header-bird-green:hover {
  transform: scaleX(-1) scale(1.18) rotate(-10deg) !important;
}

.brand {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0;
  overflow: visible;
}

.logo-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: clamp(230px, 20vw, 290px);
  height: 96px;
  overflow: visible;
  transition: transform 0.25s ease;
}

.logo-link img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform: none;
  transition: transform 0.25s ease;
}

.logo-link:hover img {
  transform: scale(1.04);
}

.nav-right {
  justify-content: flex-end;
  padding-right: clamp(10px, 1.8vw, 26px);
}

.site-header nav a {
  white-space: nowrap;
  transition: color 0.2s ease;
}

.site-header nav a:hover {
  color: var(--rose);
}

.site-header nav a.active {
  color: var(--rose);
}

.nav-cta {
  padding: 10px 18px;
  border: 1px solid var(--mocha);
  border-radius: 5px;
  background: var(--pink-soft);
  font-size: clamp(12px, 1vw, 15px);
}

/* Ebook Hero */
.ebook-hero {
  padding: 85px clamp(20px, 4vw, 48px) 65px;
  text-align: center;
  background: var(--ivory);
}

.ebook-hero-inner {
  max-width: 860px;
  margin: 0 auto;
}

.ebook-amazon-notice {
  margin: 0 auto 16px;
  font: italic 600 clamp(18px, 1.8vw, 24px) / 1.35 'Playfair Display', serif;
  color: var(--mocha);
  letter-spacing: 0.02em;
}

.ebook-hero h1 {
  margin: 14px 0 10px;
  font: 500 clamp(46px, 5.2vw, 78px)/1.04 'Playfair Display', serif;
  letter-spacing: -0.035em;
}

.ebook-hero h1 span {
  color: var(--rose);
}

.hero-italic {
  margin: 16px 0 8px !important;
  font: italic 500 clamp(19px, 2vw, 26px)/1.3 'Playfair Display', serif;
  color: var(--rose);
}

.hero-desc {
  max-width: 720px;
  margin: 0 auto;
  font: 500 clamp(15px, 1.35vw, 18px)/1.55 'Playfair Display', serif;
}

/* Lotus Dividers */
.lotus-divider {
  height: 112px;
  display: grid;
  grid-template-columns: minmax(30px, 1fr) minmax(180px, 330px) minmax(30px, 1fr);
  align-items: center;
  gap: 24px;
  padding: 0 max(4vw, 22px);
  background: var(--ivory);
}

.lotus-divider span {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line));
}

.lotus-divider span:last-child {
  background: linear-gradient(90deg, var(--line), transparent);
}

.lotus-divider img {
  width: 100%;
  height: 92px;
  object-fit: contain;
}

.lotus-divider-pink {
  background: var(--ivory);
}

.lotus-divider-green {
  background: var(--ivory);
}

.lotus-divider-green span:first-child {
  background: linear-gradient(90deg, transparent, var(--line));
}

.lotus-divider-green span:last-child {
  background: linear-gradient(90deg, var(--line), transparent);
}

/* Featured Book Section */
.featured-book {
  background: var(--ivory);
}

.story-bird-badge,
.section-bird-badge,
.kicker-bird,
.hero-bird,
.modal-bird {
  display: inline-block;
  height: clamp(30px, 3.2vw, 42px);
  width: auto;
  vertical-align: middle;
  margin-left: 8px;
  filter: drop-shadow(1px 2px 3px rgba(56, 23, 15, 0.14));
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  transform-origin: bottom center;
}

.kicker-bird {
  height: clamp(26px, 2.6vw, 36px);
  margin-left: 8px;
  vertical-align: -5px;
  filter: drop-shadow(1px 2px 3px rgba(56, 23, 15, 0.14));
}

.bird-start {
  margin-left: 0 !important;
  margin-right: 8px !important;
}

.bird-flip {
  transform: scaleX(-1);
}

.story-bird-badge:hover,
.section-bird-badge:hover,
.kicker-bird:hover,
.hero-bird:hover,
.modal-bird:hover {
  transform: rotate(-10deg) scale(1.15);
}

.bird-flip:hover {
  transform: scaleX(-1) rotate(-10deg) scale(1.15) !important;
}

.featured-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 7vw;
  align-items: center;
}

.book-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.book-cover {
  aspect-ratio: 3/4;
  width: 100%;
  max-width: 360px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 44px;
  background: #d98399;
  border: 1px solid var(--mocha);
  box-shadow: 15px 15px 0 var(--olive);
  transition: transform 0.2s, box-shadow 0.2s;
}

.book-cover:hover {
  transform: translate(-3px, -3px);
  box-shadow: 18px 18px 0 var(--olive);
}

.book-cover span {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.book-cover strong {
  font: 500 clamp(36px, 3.8vw, 56px)/1 'Playfair Display', serif;
}

.book-cover i {
  font: 500 16px/1.4 'Playfair Display', serif;
}

.book-badge {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 13px;
  font-weight: 600;
}

.book-badge span {
  color: var(--rose);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.book-badge small {
  opacity: 0.7;
}

.amazon-pill {
  margin-top: 4px;
  font: italic 500 13px 'Playfair Display', serif;
  color: var(--mocha);
  opacity: 0.9;
}

.book-info h2 {
  margin: 14px 0 16px;
  font: 500 clamp(44px, 4.8vw, 68px)/1.06 'Playfair Display', serif;
}

.book-info h2 em {
  color: var(--rose);
  font-style: italic;
}

.book-lead {
  font-size: 18px;
  line-height: 1.7;
  margin-bottom: 28px;
}

.chapters-preview {
  padding: 24px 28px;
  background: var(--ivory);
  border: 1px solid var(--mocha);
  border-radius: 6px;
  margin-bottom: 30px;
}

.chapters-preview h4 {
  margin: 0 0 14px;
  font: 500 18px 'Playfair Display', serif;
}

.chapters-preview ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.chapters-preview li {
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14.5px;
  line-height: 1.5;
}

.chapters-preview li:last-child {
  border-bottom: 0;
}

.book-actions {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  align-items: center;
}

.ebook-cta-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 4px;
  padding: 4px 4px 6px;
  background: transparent;
  border: none;
  border-bottom: 2px solid var(--mocha);
  border-radius: 0;
  box-shadow: none;
  color: var(--mocha);
  font: 600 clamp(15.5px, 1.25vw, 17.5px) 'Playfair Display', serif;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.ebook-cta-link:hover {
  background: transparent;
  border: none;
  border-bottom: 2px solid var(--rose);
  box-shadow: none;
  color: var(--rose);
  transform: translateX(3px);
  text-decoration: none;
}

.ebook-cta-link b {
  display: inline-block;
  transition: transform 0.2s ease;
}

.ebook-cta-link:hover b {
  transform: translateX(4px);
}

.amazon-release-note {
  margin: 18px 0 0;
  font: italic 500 15px 'Playfair Display', serif;
  color: var(--mocha);
  opacity: 0.9;
  letter-spacing: 0.02em;
}

/* Library Section */
.library {
  background: var(--ivory);
}

.library-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 55px;
}

.library-header h2 {
  margin: 14px 0 10px;
  font: 500 clamp(42px, 4.8vw, 64px)/1.08 'Playfair Display', serif;
}

.library-header h2 em {
  color: var(--rose);
  font-style: italic;
}

.library-sub {
  font: italic 500 19px/1.4 'Playfair Display', serif;
  margin: 0;
}

.library-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.library-more-wrap {
  display: none;
}

.lib-card {
  background: var(--paper);
  border: 1px solid var(--mocha);
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s;
}

.lib-card:hover {
  transform: translateY(-5px);
  box-shadow: 6px 6px 0 var(--mocha);
}

.lib-cover {
  padding: 30px 22px;
  color: var(--ivory);
  min-height: 180px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.lib-cover.c-rose { background: #c95272; }
.lib-cover.c-olive { background: #778050; }
.lib-cover.c-mocha { background: #38170f; }
.lib-cover.c-pink { background: #d98399; }

.lib-cover span {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.lib-cover h3 {
  margin: 12px 0 6px;
  font: 500 22px/1.15 'Playfair Display', serif;
}

.lib-cover p {
  margin: 0;
  font-size: 12px;
  opacity: 0.9;
  font-style: italic;
}

.lib-content {
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  justify-content: space-between;
}

.lib-tag {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--rose);
  font-weight: 600;
  display: block;
  margin-bottom: 8px;
}

.lib-content h4 {
  margin: 0 0 10px;
  font: 500 20px/1.2 'Playfair Display', serif;
}

.lib-content > p {
  margin: 0 0 20px;
  font-size: 14px;
  line-height: 1.55;
  opacity: 0.88;
}

.lib-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.demo-link {
  font: 600 14px 'Playfair Display', serif;
  color: var(--rose);
  text-decoration: underline;
  text-underline-offset: 3px;
  display: inline-block;
  transition: color 0.2s ease, transform 0.2s ease;
}

.demo-link:hover {
  color: var(--mocha);
  transform: translateX(2px);
}

.request-link {
  font-size: 13px;
  color: var(--mocha);
  opacity: 0.8;
  text-decoration: underline;
  text-underline-offset: 3px;
  display: inline-block;
  transition: opacity 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.request-link:hover {
  opacity: 1;
  color: var(--rose);
  transform: translateX(2px);
}

/* Sample Viewer Section */
.sample-reader {
  background: var(--ivory);
}

.reader-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 40px;
}

.reader-header h2 {
  margin: 14px 0 8px;
  font: 500 clamp(40px, 4.5vw, 60px)/1.08 'Playfair Display', serif;
}

.reader-header h2 em {
  color: var(--rose);
  font-style: italic;
}

.reader-sub {
  font-size: 16px;
  opacity: 0.85;
  margin: 0;
}

.reader-container {
  max-width: 900px;
  margin: 0 auto;
  border: 1px solid var(--mocha);
  border-radius: 8px;
  background: var(--ivory);
  box-shadow: 8px 8px 0 var(--mocha);
  overflow: hidden;
}

.reader-tabs {
  display: flex;
  border-bottom: 1px solid var(--line);
  background: var(--pink-soft);
  overflow-x: auto;
}

.tab-btn {
  padding: 16px 22px;
  background: transparent;
  border: none;
  border-right: 1px solid var(--line);
  font: 500 14px 'Playfair Display', serif;
  color: var(--mocha);
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s;
}

.tab-btn:hover {
  background: rgba(255, 255, 255, 0.5);
}

.tab-btn.active {
  background: var(--ivory);
  font-weight: 600;
  color: var(--rose);
  border-bottom: 2px solid var(--rose);
}

.reader-viewport {
  padding: 45px clamp(20px, 4vw, 50px);
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

.chapter-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--rose);
  font-weight: 600;
  display: block;
  margin-bottom: 12px;
}

.tab-content h3 {
  margin: 0 0 20px;
  font: 500 clamp(28px, 3.2vw, 42px)/1.15 'Playfair Display', serif;
}

.dropcap {
  font-size: 18px;
  line-height: 1.8;
}

.dropcap::first-letter {
  float: left;
  padding: 6px 10px 0 0;
  font: 600 64px/0.8 'Playfair Display', serif;
  color: var(--rose);
}

.tab-content p {
  font-size: 17px;
  line-height: 1.8;
  margin-bottom: 20px;
}

.reader-quote {
  margin: 30px 0;
  padding: 22px 28px;
  background: var(--paper);
  border-left: 3px solid var(--rose);
  font: italic 500 20px/1.5 'Playfair Display', serif;
}

.excerpt-footer {
  margin-top: 30px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.excerpt-cta-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 4px 4px 6px;
  background: transparent;
  border: none;
  border-bottom: 2px solid var(--mocha);
  border-radius: 0;
  box-shadow: none;
  color: var(--mocha);
  font: 600 clamp(16px, 1.3vw, 18px) 'Playfair Display', serif;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.excerpt-cta-link:hover {
  background: transparent;
  border: none;
  border-bottom: 2px solid var(--rose);
  box-shadow: none;
  color: var(--rose);
  transform: translateX(3px);
  text-decoration: none;
}

.excerpt-cta-link b {
  display: inline-block;
  transition: transform 0.2s ease;
}

.excerpt-cta-link:hover b {
  transform: translateX(4px);
}

.library-toggle-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 6px 6px;
  background: transparent;
  border: none;
  border-bottom: 2px solid var(--mocha);
  border-radius: 0;
  box-shadow: none;
  color: var(--mocha);
  font: 600 16px 'Playfair Display', serif;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.library-toggle-link:hover {
  background: transparent;
  border-bottom-color: var(--rose);
  color: var(--rose);
  transform: translateY(-1px);
}

/* Call to action (Compact 40px padding) */
.call {
  padding: 55px clamp(20px, 4vw, 40px) 50px;
  text-align: center;
  background: var(--olive);
  color: var(--ivory);
}

.call .section-kicker {
  letter-spacing: 0.18em;
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.call .kicker-bird {
  height: clamp(32px, 3.2vw, 44px);
  vertical-align: middle;
  margin-right: 10px !important;
}

.call h2 {
  max-width: 940px;
  margin: 22px auto 18px;
  font: 500 clamp(26px, 3.2vw, 42px) / 1.35 'Playfair Display', serif;
}

.call > p:not(.section-kicker) {
  max-width: 750px;
  margin: 10px auto 22px;
  font: italic 500 clamp(22px, 2.3vw, 28px) / 1.45 'Playfair Display', serif;
  color: var(--ivory);
  opacity: 0.95;
  letter-spacing: 0.01em;
}

.call-cta-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
  padding: 4px 4px 6px;
  background: transparent;
  border: none;
  border-bottom: 2px solid var(--ivory);
  border-radius: 0;
  box-shadow: none;
  color: var(--ivory);
  font: 600 clamp(17px, 1.4vw, 20px) 'Playfair Display', serif;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.call-cta-link:hover {
  background: transparent;
  border: none;
  border-bottom: 2px solid var(--pink-soft);
  box-shadow: none;
  color: var(--pink-soft);
  transform: translateX(3px);
  text-decoration: none;
}

.call-cta-link b {
  display: inline-block;
  transition: transform 0.2s ease;
}

.call-cta-link:hover b {
  transform: translateX(4px);
}

.button {
  display: inline-flex;
  align-items: center;
  gap: 20px;
  margin-top: 8px;
  padding: 14px 30px;
  border: 1px solid var(--mocha);
  border-radius: 4px;
  background: var(--pink-soft);
  font: 500 17px 'Playfair Display', serif;
  transition: 0.2s;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 4px 4px 0 var(--mocha);
}

.button.light {
  background: var(--pink);
  color: var(--mocha);
  border-color: var(--ivory);
}

/* Footer */
footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: clamp(16px, 2.5vw, 32px);
  padding: 22px 4vw;
  border-top: 1px solid var(--line);
  background: var(--paper);
  color: var(--mocha);
}

.footer-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.footer-social {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: flex-start;
  flex-wrap: wrap;
}

.footer-email {
  font-family: 'DM Sans', sans-serif;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--mocha);
  opacity: 0.85;
  transition: all 0.2s ease;
  text-decoration: none;
}

.footer-email:hover {
  color: var(--rose);
  opacity: 1;
  text-decoration: underline;
}

.social-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--rose);
  background: transparent;
  color: var(--rose);
  transition: all 0.2s ease;
  text-decoration: none;
}

.social-icon-btn:hover {
  border-color: var(--mocha);
  background: var(--pink-soft);
  color: var(--mocha);
  transform: translateY(-2px);
}

.social-icon-btn svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
  transition: transform 0.2s ease;
}

.social-icon-btn:hover svg {
  transform: scale(1.08);
}

.footer-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: clamp(230px, 22vw, 310px);
  height: 105px;
  overflow: visible;
  transition: transform 0.25s ease;
  margin: 0 auto;
}

.footer-logo:hover {
  transform: scale(1.03);
}

.footer-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform: none;
  transition: transform 0.25s ease;
}

.footer-logo:hover img {
  transform: scale(1.04);
}

.footer-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  text-align: right;
}

.footer-right p {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: clamp(14px, 1.1vw, 17px);
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.footer-bird-icon {
  display: inline-block;
  height: clamp(28px, 2.8vw, 36px);
  width: auto;
  vertical-align: -5px;
  filter: drop-shadow(1px 2px 3px rgba(56, 23, 15, 0.14));
  transition: transform 0.3s ease;
  transform-origin: bottom center;
}

.footer-bird-icon:hover {
  transform: rotate(-8deg) scale(1.15);
}

.footer-copy {
  font-size: 12px;
  opacity: 0.75;
  letter-spacing: 0.02em;
  margin-top: 2px;
}

/* Responsive Media Queries */
@media (max-width: 1100px) {
  html {
    scroll-padding-top: 20px;
  }

  .site-header {
    position: relative;
    top: auto;
    height: auto;
    min-height: auto;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    padding: 10px 16px 12px;
    gap: 8px 16px;
    width: 100%;
  }

  .site-header > .brand,
  .site-header > .brand-wrap {
    order: 1;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: clamp(8px, 1.8vw, 16px);
    margin: 4px 0 6px;
  }

  .logo-link {
    width: 260px;
    height: 96px;
  }

  .logo-link img {
    transform: none;
  }

  .site-header .nav-left {
    order: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-wrap: nowrap;
    padding: 0;
    gap: clamp(8px, 2vw, 16px);
    width: auto;
  }

  .site-header .nav-right {
    order: 3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-wrap: nowrap;
    padding: 0;
    gap: clamp(8px, 2vw, 16px);
    width: auto;
  }

  .featured-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .library-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 720px) {
  html {
    scroll-padding-top: 15px;
  }

  .section {
    padding: 55px 20px;
  }

  .section-heading {
    margin-bottom: 28px;
    gap: 12px;
    text-align: center;
  }

  .section-heading h2 {
    font-size: clamp(26px, 6.8vw, 34px);
    line-height: 1.2;
    word-spacing: 0.14em;
    letter-spacing: 0.01em;
  }

  .site-header {
    position: relative;
    top: auto;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    padding: 8px 10px 10px;
    gap: 6px 12px;
    width: 100%;
  }

  .site-header > .brand,
  .site-header > .brand-wrap {
    order: 1;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: clamp(6px, 1.8vw, 12px);
    margin: 2px 0 3px;
  }

  .site-header .header-bird {
    height: clamp(26px, 5.5vw, 36px);
  }

  .logo-link {
    width: clamp(230px, 68vw, 280px);
    height: 90px;
  }

  .logo-link img {
    transform: none;
  }

  .site-header .nav-left {
    order: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-wrap: nowrap;
    gap: clamp(5px, 1.8vw, 12px);
    width: auto;
    padding: 0;
  }

  .site-header .nav-right {
    order: 3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-wrap: nowrap;
    gap: clamp(5px, 1.8vw, 12px);
    width: auto;
    padding: 0;
  }

  .site-header nav a {
    font-size: clamp(11.5px, 3.2vw, 13.5px);
    font-weight: 500;
    white-space: nowrap;
    padding: 2px 3px;
  }

  .nav-cta {
    padding: 4px 10px;
    font-size: clamp(11px, 3vw, 12px);
    white-space: nowrap;
  }

  .ebook-hero {
    padding: 45px 20px 35px;
    text-align: center;
  }

  .ebook-hero .eyebrow {
    margin: 0 auto 12px;
    text-align: center;
  }

  .ebook-hero h1 {
    font-size: clamp(30px, 7.5vw, 40px);
    line-height: 1.22;
    word-spacing: 0.14em;
    letter-spacing: 0.01em;
    margin: 0 0 16px;
  }

  .ebook-hero .hero-italic {
    font-size: clamp(16px, 4.5vw, 20px);
    line-height: 1.45;
    margin: 0 auto 16px !important;
    word-spacing: 0.06em;
    max-width: 480px;
  }

  .ebook-hero .hero-desc {
    font-size: 15px;
    line-height: 1.65;
    max-width: 480px;
    margin: 0 auto;
    opacity: 0.92;
  }

  .featured-book.section {
    padding-top: 32px;
    padding-bottom: 45px;
  }

  .book-cover {
    max-width: 280px;
    margin: 0 auto 20px;
    padding: 24px;
  }

  .book-info {
    text-align: center;
  }

  .book-info .section-kicker {
    margin: 0 auto 12px;
    text-align: center;
  }

  .book-info h2 {
    margin: 0 0 12px;
    font-size: clamp(28px, 7.5vw, 36px);
    line-height: 1.25;
    word-spacing: 0.14em;
    letter-spacing: 0.01em;
    text-align: center;
  }

  .book-lead {
    font-size: 15.5px;
    line-height: 1.65;
    margin: 0 auto 20px;
    max-width: 480px;
    text-align: center;
  }

  .chapters-preview {
    padding: 20px 18px;
    border-radius: 8px;
    margin-bottom: 24px;
    text-align: left;
  }

  .book-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
  }

  .book-actions .button,
  .book-actions .button-outline {
    width: 100%;
    text-align: center;
    justify-content: center;
    padding: 13px 20px;
    font-size: 14.5px;
  }

  .library.section {
    padding-top: 32px;
    padding-bottom: 45px;
  }

  .library-header {
    margin: 0 auto 32px;
    text-align: center;
  }

  .library-header .section-kicker {
    margin: 0 auto 12px;
    text-align: center;
  }

  .library-header h2 {
    margin: 0 0 12px;
    font-size: clamp(28px, 7.5vw, 36px);
    line-height: 1.25;
    word-spacing: 0.14em;
    letter-spacing: 0.01em;
    text-align: center;
  }

  .library-sub {
    font-size: 15.5px;
    line-height: 1.6;
    margin: 0 auto 28px;
    max-width: 480px;
    text-align: center;
  }

  .library-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .library-grid .lib-card:nth-child(n+3) {
    display: none;
  }

  .library-grid.expanded .lib-card:nth-child(n+3) {
    display: flex;
    animation: fadeInLib 0.35s ease forwards;
  }

  .library-more-wrap {
    display: flex;
    justify-content: center;
    margin-top: 24px;
    width: 100%;
  }

  .library-toggle-btn {
    padding: 11px 24px;
    font-size: 13.5px;
    font-weight: 500;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    background: var(--pink-soft);
    border: 1px solid var(--mocha);
    color: var(--mocha);
    box-shadow: 2px 2px 0 var(--mocha);
    transition: all 0.2s ease;
    text-decoration: none;
  }

  .library-toggle-btn:hover {
    background: var(--pink);
    transform: translateY(-1px);
    box-shadow: 3px 3px 0 var(--mocha);
  }

  .lib-card {
    padding: 24px 20px;
    border-radius: 10px;
  }

  .sample-reader.section {
    padding-top: 32px;
    padding-bottom: 45px;
  }

  .reader-header {
    margin: 0 auto 32px;
    text-align: center;
  }

  .reader-header .section-kicker {
    margin: 0 auto 12px;
    text-align: center;
  }

  .reader-header h2 {
    margin: 0 0 12px;
    font-size: clamp(28px, 7.5vw, 36px);
    line-height: 1.25;
    word-spacing: 0.14em;
    letter-spacing: 0.01em;
    text-align: center;
  }

  .reader-sub {
    font-size: 15.5px;
    line-height: 1.6;
    margin: 0 auto 28px;
    max-width: 480px;
    text-align: center;
  }

  .reader-tabs {
    flex-direction: column;
  }

  .tab-btn {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    text-align: left;
    padding: 12px 18px;
  }

  .reader-viewport {
    padding: 24px 20px;
    border-radius: 0 0 8px 8px;
  }

  .lotus-divider {
    height: 60px;
    margin: 18px 0 14px;
    grid-template-columns: 1fr minmax(120px, 175px) 1fr;
    gap: 10px;
  }

  .lotus-divider img {
    height: 48px;
  }

  footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 18px;
    padding: 36px 20px 28px;
  }

  .footer-left {
    align-items: center;
    text-align: center;
  }

  .footer-social {
    justify-content: center;
    gap: 12px;
  }

  .footer-right {
    align-items: center;
    text-align: center;
  }

  .footer-logo {
    width: 210px;
    height: 78px;
    margin: 0 auto;
  }

  .footer-logo img {
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .button, .book-cover, .lib-card, .library-toggle-btn, .footer-logo {
    transition: none;
  }
}

@keyframes fadeInLib {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
