@font-face {
  font-family: 'DM Serif Text';
  src: url('assets/fonts/dm-serif-text.woff2') format('woff2');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: 'DM Serif Text';
  src: url('assets/fonts/dm-serif-text-italic.woff2') format('woff2');
  font-style: italic;
  font-weight: 400;
  font-display: swap;
}

.books-page {
  --book-ink: #172a46;
  --book-blue: #315b83;
  --book-serif: 'DM Serif Text', Georgia, serif;
  color: var(--book-ink);
  background: linear-gradient(150deg, #fff3f7, #edf5fe 64%, #fafcff);
}

.books-page .header {
  background: #fdf4f8d9;
  border-color: #465e7724;
}

.book-hero {
  background-color: #ebedf8;
  background-image: linear-gradient(90deg, #fff3f7df, #fff6fa70 47%, transparent 73%),
    linear-gradient(0deg, #ecf4fd90, transparent 31%),
    url('assets/books/ceu-e-mar-fundo.webp');
  background-position: center;
  background-size: cover;
}

.book-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr);
  align-items: center;
  gap: clamp(36px, 6vw, 96px);
  padding-block: clamp(60px, 7vw, 108px);
  min-height: min(770px, calc(100svh - 76px));
}

.book-eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #5b4059;
  font-size: .92rem;
  font-weight: 600;
  letter-spacing: .12em;
}

.book-eyebrow::before {
  content: '';
  width: 28px;
  height: 1px;
  background: currentColor;
}

.book-title {
  margin: .18em 0 .24em;
  font-family: var(--book-serif);
  font-weight: 400;
  font-size: clamp(3.3rem, 7.3vw, 7.2rem);
  line-height: .97;
  letter-spacing: -.055em;
}

.book-title em, .book-story h2 em { color: var(--book-blue); }

.book-author {
  font-size: .95rem;
  font-weight: 700;
  letter-spacing: .18em;
}

.book-teaser {
  max-width: 36ch;
  margin-top: 24px;
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  line-height: 1.65;
}

.book-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 24px;
  margin-top: 28px;
}

.book-buy, .book-story-link {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  font-size: .92rem;
  font-weight: 600;
}

.book-buy {
  gap: 13px;
  padding: 11px 20px;
  border-radius: 100px;
  background: var(--book-ink);
  color: white;
  text-decoration: none;
  transition: background .2s ease;
}

.book-buy:hover { background: var(--book-blue); }
.book-buy .arrow { width: 15px; height: 15px; }
.book-story-link { color: var(--book-ink); text-underline-offset: 5px; }

.book-cover {
  justify-self: center;
  width: min(100%, 366px);
  margin: 0;
  padding: 11px;
  border: 1px solid #ffffffc7;
  border-radius: 9px;
  background: #ffffff4f;
  box-shadow: 0 22px 56px #263c6440;
  backdrop-filter: blur(7px);
  transform: rotate(3deg);
}

.book-cover img { width: 100%; height: auto; border-radius: 3px; }

.book-story {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(40px, 9vw, 124px);
  padding-block: clamp(55px, 8vw, 116px);
}

.book-story h2 {
  margin: 0 0 24px;
  font-family: var(--book-serif);
  font-weight: 400;
  font-size: clamp(2.8rem, 5.4vw, 5.2rem);
  line-height: 1;
}

.book-story-copy p { max-width: 47ch; font-size: 1rem; line-height: 1.75; }
.book-story-copy p + p { margin-top: 16px; }
.book-world { margin: 0; }
.book-world img {
  width: 100%;
  height: auto;
  border-radius: 50% 50% 12px 12px / 19% 19% 12px 12px;
  box-shadow: 0 16px 46px #415a7e24;
}
.book-world figcaption { margin-top: 12px; color: #425a72; font-size: .83rem; }

.book-atlas { padding-bottom: clamp(48px, 7vw, 96px); scroll-margin-top: 90px; }
.book-atlas-panel {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: clamp(24px, 4vw, 56px);
  border: 1px solid #5e60842b;
  border-radius: 16px;
  background: linear-gradient(115deg, #f9edf6, #e8f0fb);
}
.book-atlas h2 {
  margin: 0 0 10px;
  font: 400 clamp(2rem, 4vw, 3.5rem)/1.05 var(--book-serif);
}
.book-atlas p { max-width: 50ch; margin: 0; line-height: 1.65; }

@media (max-width: 760px) {
  .book-hero {
    background-image: linear-gradient(180deg, #fff3f7e3 0%, #fff3f773 47%, #edf5fe55 100%),
      url('assets/books/ceu-e-mar-fundo.webp');
    background-position: 60% center;
  }
  .book-hero-inner, .book-story {
    grid-template-columns: minmax(0, 1fr);
    gap: 36px;
    padding-block: 45px 56px;
  }
  .book-title { font-size: clamp(2.85rem, 10.6vw, 4.7rem); }
  .book-eyebrow { font-size: .84rem; }
  .book-cover { width: min(88%, 320px); }
  .book-story { padding-top: 52px; }
  .book-world { width: min(100%, 460px); }
}
