/* Brenda Velan — paleta Rupi Kaur */
:root {
  --black: #121212;
  --sienna: #8e5438;
  --sienna-deep: #6e3f2a;
  --white-smoke: #f3f3f3;
  --floral: #fffcf4;
  --floral-deep: #f5efe3;
  --muted: rgba(18, 18, 18, 0.62);
  --line: rgba(18, 18, 18, 0.12);
  --font-display: "Cormorant Garamond", "Palatino Linotype", Palatino, serif;
  --font-body: "Source Serif 4", "Georgia", serif;
  --font-ui: "DM Sans", "Helvetica Neue", sans-serif;
  --max: 72rem;
  --header-h: 4.25rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--black);
  background:
    radial-gradient(ellipse 90% 55% at 10% -10%, rgba(142, 84, 56, 0.08), transparent 55%),
    radial-gradient(ellipse 70% 40% at 100% 0%, rgba(18, 18, 18, 0.04), transparent 50%),
    linear-gradient(180deg, var(--floral) 0%, var(--floral-deep) 100%);
  background-attachment: fixed;
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--sienna);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  transition: color 0.25s var(--ease);
}

a:hover {
  color: var(--sienna-deep);
}

:focus-visible {
  outline: 2px solid var(--sienna);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100%;
  z-index: 1000;
  padding: 0.75rem 1rem;
  background: var(--black);
  color: var(--floral);
  font-family: var(--font-ui);
  font-size: 0.875rem;
}

.skip-link:focus {
  top: 1rem;
}

/* —— Header —— */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: background 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.site-header.is-scrolled,
.site-header.is-solid {
  background: rgba(255, 252, 244, 0.92);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 var(--line);
}

.site-header.is-over-dark:not(.is-scrolled) .brand,
.site-header.is-over-dark:not(.is-scrolled) .nav-toggle,
.site-header.is-over-dark:not(.is-scrolled) .nav-list a {
  color: var(--floral);
}

.site-header.is-over-dark:not(.is-scrolled) .nav-toggle span {
  background: var(--floral);
}

.header-inner {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--black);
  text-decoration: none;
  line-height: 1;
}

.brand:hover {
  color: var(--sienna);
}

.nav-toggle {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 0;
}

.nav-toggle span {
  display: block;
  width: 1.35rem;
  height: 1.5px;
  margin: 0.32rem auto;
  background: var(--black);
  transition: transform 0.3s var(--ease), opacity 0.3s;
}

.nav-list {
  display: flex;
  gap: 1.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
  font-family: var(--font-ui);
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav-list a {
  color: var(--black);
  text-decoration: none;
  opacity: 0.78;
}

.nav-list a:hover,
.nav-list a[aria-current="page"] {
  opacity: 1;
  color: var(--sienna);
}

@media (max-width: 860px) {
  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: fixed;
    inset: var(--header-h) 0 auto;
    background: rgba(255, 252, 244, 0.98);
    border-bottom: 1px solid var(--line);
    padding: 1.25rem 1.5rem 1.75rem;
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.4s var(--ease), opacity 0.3s;
  }

  .site-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-list {
    flex-direction: column;
    gap: 1.1rem;
  }

  .site-header.is-over-dark:not(.is-scrolled) .site-nav.is-open .nav-list a {
    color: var(--black);
  }

  .site-header.is-over-dark:not(.is-scrolled) .site-nav.is-open .nav-list a:hover,
  .site-header.is-over-dark:not(.is-scrolled) .site-nav.is-open .nav-list a[aria-current="page"] {
    color: var(--sienna);
  }

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

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

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

/* —— Layout —— */
.page-main {
  min-height: 60vh;
}

.section {
  padding: clamp(3.5rem, 8vw, 6.5rem) 0;
}

.section--tight {
  padding: clamp(2.5rem, 5vw, 4rem) 0;
}

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

.container--narrow {
  width: min(100% - 2rem, 40rem);
}

.eyebrow {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sienna);
  margin: 0 0 0.75rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 500;
  line-height: 1.15;
  margin: 0 0 1rem;
  letter-spacing: -0.01em;
}

.lead {
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  color: var(--muted);
  margin: 0 0 1.5rem;
  max-width: 36rem;
}

.prose p {
  margin: 0 0 1.15rem;
}

.prose p:last-child {
  margin-bottom: 0;
}

/* —— Buttons —— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 2.85rem;
  padding: 0.7rem 1.5rem;
  font-family: var(--font-ui);
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s, transform 0.3s var(--ease);
}

.btn:hover {
  transform: translateY(-1px);
}

.btn--primary {
  background: var(--sienna);
  color: var(--floral);
}

.btn--primary:hover {
  background: var(--sienna-deep);
  color: var(--floral);
}

.btn--ghost {
  background: transparent;
  border-color: currentColor;
  color: inherit;
}

.btn--ghost:hover {
  background: rgba(255, 252, 244, 0.12);
  color: inherit;
}

.btn--outline {
  background: transparent;
  border-color: var(--black);
  color: var(--black);
}

.btn--outline:hover {
  background: var(--black);
  color: var(--floral);
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.75rem;
}

/* —— Hero —— */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: end;
  color: var(--floral);
  overflow: hidden;
}

.hero__media {
  position: absolute;
  inset: 0;
}

.hero__media picture {
  display: block;
  width: 100%;
  height: 100%;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
  transform: scale(1.04);
  animation: heroZoom 18s var(--ease) forwards;
}

@keyframes heroZoom {
  to {
    transform: scale(1);
  }
}

.hero__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(18, 18, 18, 0.35) 0%, rgba(18, 18, 18, 0.15) 35%, rgba(18, 18, 18, 0.72) 100%),
    linear-gradient(90deg, rgba(18, 18, 18, 0.45) 0%, transparent 55%);
}

.hero__content {
  position: relative;
  z-index: 1;
  width: min(100% - 2rem, var(--max));
  margin: 0 auto;
  padding: calc(var(--header-h) + 2rem) 0 4.5rem;
}

.hero__brand {
  font-family: var(--font-display);
  font-size: clamp(3.4rem, 11vw, 7.5rem);
  font-weight: 400;
  line-height: 0.92;
  letter-spacing: -0.02em;
  margin: 0 0 1.25rem;
  max-width: 12ch;
}

.hero__tag {
  font-family: var(--font-body);
  font-size: clamp(1.1rem, 2.2vw, 1.35rem);
  font-style: italic;
  max-width: 28rem;
  margin: 0;
  opacity: 0.92;
  line-height: 1.55;
}

.hero .btn--primary {
  background: var(--floral);
  color: var(--black);
}

.hero .btn--primary:hover {
  background: var(--white-smoke);
  color: var(--black);
}

.hero .btn--ghost {
  color: var(--floral);
  border-color: rgba(255, 252, 244, 0.55);
}

/* —— Page hero (inner) —— */
.page-hero {
  padding: calc(var(--header-h) + 3.5rem) 0 2.5rem;
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 6vw, 4.25rem);
  font-weight: 400;
  line-height: 1.05;
  margin: 0 0 1rem;
  letter-spacing: -0.02em;
}

.page-hero .lead {
  margin-bottom: 0;
}

/* —— Books —— */
.book-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 4vw, 2.5rem);
  margin-top: 2.5rem;
}

@media (max-width: 900px) {
  .book-grid {
    grid-template-columns: 1fr;
    max-width: 22rem;
    margin-inline: auto;
  }
}

.book-card {
  display: block;
  text-decoration: none;
  color: inherit;
}

.book-card__cover {
  position: relative;
  aspect-ratio: 2 / 3;
  background: var(--floral-deep);
  overflow: hidden;
  margin-bottom: 1.15rem;
  box-shadow: 0 18px 40px rgba(18, 18, 18, 0.1);
}

.book-card__cover picture {
  display: block;
  width: 100%;
  height: 100%;
}

.book-card__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}

.book-card:hover .book-card__cover img {
  transform: scale(1.04);
}

.book-card__cover--soon {
  display: grid;
  place-items: center;
  background:
    linear-gradient(160deg, rgba(142, 84, 56, 0.18), transparent 60%),
    var(--black);
  color: var(--floral);
}

.book-card__soon-label {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-style: italic;
}

.book-card__title {
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 500;
  margin: 0 0 0.35rem;
  line-height: 1.2;
}

.book-card__meta {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0;
}

/* Book detail */
.book-detail {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.2fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
  padding-bottom: 2rem;
}

@media (max-width: 800px) {
  .book-detail {
    grid-template-columns: 1fr;
  }
}

.book-detail__cover {
  position: relative;
  max-width: 22rem;
  margin-inline: auto;
  box-shadow: 0 24px 50px rgba(18, 18, 18, 0.14);
}

@media (min-width: 801px) {
  .book-detail__cover {
    position: sticky;
    top: calc(var(--header-h) + 1.5rem);
  }
}

.book-detail__cover img {
  width: 100%;
  height: auto;
  display: block;
}

.book-detail__cover picture {
  display: block;
  width: 100%;
}

.febril-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.febril-layout .book-card__cover--soon {
  aspect-ratio: 2 / 3;
  max-width: 22rem;
  margin: 0 auto;
  width: 100%;
}

@media (max-width: 800px) {
  .febril-layout {
    grid-template-columns: 1fr;
  }
}

.quote-pull {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  font-style: italic;
  line-height: 1.4;
  color: var(--sienna);
  margin: 0 0 1.5rem;
  padding-left: 1rem;
  border-left: 2px solid var(--sienna);
}

/* —— Reviews —— */
.reviews {
  background: rgba(243, 243, 243, 0.55);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.review-list {
  display: grid;
  gap: 1.75rem;
  margin-top: 2rem;
}

.review {
  padding: 1.5rem 0 0;
  border-top: 1px solid var(--line);
}

.review:first-child {
  border-top: 0;
  padding-top: 0;
}

.review__stars {
  color: var(--sienna);
  letter-spacing: 0.12em;
  font-size: 0.9rem;
  margin: 0 0 0.4rem;
}

.review__title {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 500;
  margin: 0 0 0.35rem;
}

.review__meta {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: var(--muted);
  margin: 0 0 0.85rem;
}

.review__body {
  margin: 0;
  color: rgba(18, 18, 18, 0.82);
}

.review__body + .review__body {
  margin-top: 0.85rem;
}

/* —— About —— */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

@media (max-width: 800px) {
  .about-grid {
    grid-template-columns: 1fr;
  }
}

.about-photo {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
}

.about-photo picture {
  display: block;
  width: 100%;
  height: 100%;
}

.about-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.photo-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-top: 2rem;
}

.photo-strip picture {
  display: block;
  width: 100%;
}

.photo-strip img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

@media (max-width: 600px) {
  .photo-strip {
    grid-template-columns: 1fr 1fr;
  }

  .photo-strip picture:last-child,
  .photo-strip > img:last-child {
    display: none;
  }
}

.social-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-top: 1.75rem;
  font-family: var(--font-ui);
  font-size: 0.875rem;
  letter-spacing: 0.04em;
}

.social-row a {
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 0.1rem;
}

/* —— Forms —— */
.form {
  display: grid;
  gap: 1.15rem;
  margin-top: 1.75rem;
}

.form-field {
  display: grid;
  gap: 0.4rem;
}

.form-field label {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.form-field input,
.form-field textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid var(--line);
  background: rgba(255, 252, 244, 0.85);
  color: var(--black);
  font-family: var(--font-body);
  font-size: 1.05rem;
  border-radius: 0;
}

.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--sienna);
}

.form-field textarea {
  min-height: 9rem;
  resize: vertical;
}

.hp-field {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  width: 0;
  overflow: hidden;
}

.form-status {
  min-height: 1.5rem;
  font-family: var(--font-ui);
  font-size: 0.875rem;
  margin: 0;
}

.form-status.is-success {
  color: var(--sienna-deep);
}

.form-status.is-error {
  color: #8a2a2a;
}

.form-shell {
  padding: 1.75rem;
  background: rgba(255, 252, 244, 0.7);
  border: 1px solid var(--line);
}

/* —— Blog —— */
.blog-list {
  display: grid;
  gap: 0;
  margin-top: 2rem;
}

.blog-item {
  display: block;
  padding: 1.75rem 0;
  border-top: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
  transition: padding-left 0.35s var(--ease);
}

.blog-item:last-child {
  border-bottom: 1px solid var(--line);
}

.blog-item:hover {
  padding-left: 0.5rem;
}

.blog-item__date {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 0.4rem;
}

.blog-item__title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 500;
  margin: 0 0 0.5rem;
  line-height: 1.2;
}

.blog-item__excerpt {
  margin: 0;
  color: var(--muted);
  max-width: 38rem;
}

.article {
  padding-bottom: 4rem;
}

.article__meta {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 1.5rem;
}

.article .prose {
  font-size: 1.15rem;
}

.article .prose h2 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 500;
  margin: 2rem 0 0.75rem;
}

.article figure {
  margin: 0 0 2rem;
}

.article figcaption {
  margin-top: 0.75rem;
  font-family: var(--font-ui);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  line-height: 1.5;
  color: var(--muted);
}

/* —— Split / CTA —— */
.cta-band {
  position: relative;
  padding: clamp(4rem, 10vw, 6rem) 0;
  color: var(--floral);
  overflow: hidden;
  isolation: isolate;
  z-index: 1;
}

.cta-band__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.cta-band__bg img {
  display: block;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  visibility: hidden;
  pointer-events: none;
}

.cta-band__bg picture {
  display: contents;
}

.cta-band__shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(105deg, rgba(18, 18, 18, 0.82) 0%, rgba(18, 18, 18, 0.45) 100%);
}

.cta-band .container {
  position: relative;
  z-index: 2;
}

.cta-band .section-title {
  max-width: 16ch;
}

.cta-band .lead {
  color: rgba(255, 252, 244, 0.82);
}

@media (prefers-reduced-motion: reduce) {
  .cta-band__bg img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    visibility: visible !important;
    clip-path: none !important;
  }
}

/* —— Footer —— */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 3rem 0 2.25rem;
  background: rgba(243, 243, 243, 0.4);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
}

@media (max-width: 700px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 1.75rem;
  margin: 0 0 0.5rem;
}

.footer-note {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  max-width: 22rem;
}

.footer-col h3 {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 0 0 0.85rem;
  font-weight: 500;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}

.footer-col a {
  text-decoration: none;
  color: var(--black);
  opacity: 0.75;
  font-size: 1rem;
}

.footer-col a:hover {
  opacity: 1;
  color: var(--sienna);
}

.footer-bottom {
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  font-family: var(--font-ui);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: var(--muted);
}

/* —— Reveal animations —— */
.reveal {
  opacity: 0;
  transform: translateY(1.25rem);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.reveal-delay-1 {
  transition-delay: 0.12s;
}

.reveal-delay-2 {
  transition-delay: 0.24s;
}

.reveal-delay-3 {
  transition-delay: 0.36s;
}

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

  .hero__media img {
    animation: none;
    transform: none;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .book-card:hover .book-card__cover img,
  .blog-item:hover,
  .btn:hover {
    transform: none;
  }
}

/* —— Blog: um caderno aberto —— */
.blog-page { padding: calc(var(--header-h) + 2.5rem) 0 5rem; }
.blog-running-head { display: flex; justify-content: space-between; gap: 1rem; padding-bottom: 1rem; margin-bottom: 3rem; border-bottom: 1px solid var(--line); font: 0.6875rem var(--font-ui); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.blog-opening h1 { margin: 1rem 0 1.75rem; font: 400 clamp(3.8rem, 8.5vw, 7.25rem)/0.96 var(--font-display); letter-spacing: -0.045em; }
.blog-opening h1 em { color: var(--sienna); font-weight: 400; }
.blog-opening__bottom { display: flex; align-items: end; justify-content: space-between; gap: 2rem; margin-bottom: 3rem; }
.blog-opening__bottom p { margin: 0; max-width: 39rem; color: var(--muted); }
.blog-text-link { display: inline-flex; align-items: center; gap: 1.25rem; font: 0.75rem var(--font-ui); letter-spacing: 0.04em; text-decoration: none; padding-bottom: 0.5rem; border-bottom: 1px solid var(--sienna); color: var(--sienna); }
.blog-feature { display: grid; grid-template-columns: 0.85fr 1.15fr; border: 1px solid rgba(142, 84, 56, 0.22); box-shadow: 0 12px 35px rgba(74, 48, 30, 0.06); }
.blog-feature__cover { display: block; align-self: stretch; background: #c5b298; overflow: hidden; }
.blog-feature__cover img { width: 100%; height: auto; }
.blog-feature__story { position: relative; display: flex; flex-direction: column; align-items: start; justify-content: center; padding: clamp(2rem, 4vw, 4rem); background: linear-gradient(90deg, rgba(74, 48, 30, 0.06), transparent 5%), var(--floral); }
.blog-feature__meta { display: flex; flex-wrap: wrap; gap: 0.4rem 1rem; margin-bottom: 1.5rem; }
.blog-feature__meta .eyebrow { margin: 0; }
.blog-feature__meta time { color: var(--muted); font: 0.6875rem/1.6 var(--font-ui); }
.blog-feature h2 { font: 500 clamp(2.2rem, 3.5vw, 3.25rem)/1.08 var(--font-display); letter-spacing: -0.025em; margin: 0 0 1.25rem; }
.blog-feature h2 a { color: inherit; text-decoration: none; }
.blog-feature h2 a:hover { color: var(--sienna); }
.blog-feature__story p { margin: 0 0 1.5rem; font-size: 1rem; color: var(--muted); }
.blog-feature__story .blog-feature__lead { font-size: 1.2rem; color: var(--black); }
.blog-feature__story .btn { margin: 0.25rem 0 1rem; gap: 2rem; }
.blog-feature__folio { position: absolute; right: 1.5rem; bottom: 0.75rem; color: var(--sienna); font: italic 1rem var(--font-display); }
.blog-archive { padding-top: 4rem; scroll-margin-top: calc(var(--header-h) + 2rem); }
.blog-archive__heading { display: flex; justify-content: space-between; align-items: end; gap: 1rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--line); }
.blog-archive h2, .blog-letter h2 { font: 500 clamp(2rem, 3.5vw, 2.75rem)/1.15 var(--font-display); margin: 0; }
.blog-archive__heading > span { font: italic 1rem var(--font-body); color: var(--muted); }
.blog-chapters { display: grid; grid-template-columns: 1fr 1fr; }
.blog-chapter { display: grid; grid-template-columns: auto 1fr; gap: 1.5rem; padding: 2.5rem 2.5rem 2.5rem 0; color: inherit; text-decoration: none; border-bottom: 1px solid var(--line); }
.blog-chapter:nth-child(even) { padding-left: 2.5rem; padding-right: 0; border-left: 1px solid var(--line); }
.blog-chapter__number { font: italic 2.5rem/1 var(--font-display); color: var(--sienna); opacity: 0.65; }
.blog-chapter .eyebrow { font-size: 0.625rem; letter-spacing: 0.09em; }
.blog-chapter h3 { font: 500 clamp(1.75rem, 2.5vw, 2.25rem)/1.15 var(--font-display); margin: 0 0 1rem; }
.blog-chapter p:not(.eyebrow) { font-size: 1rem; color: var(--muted); margin: 0 0 1.5rem; }
.blog-chapter:hover h3 { color: var(--sienna); }
.blog-letter { display: flex; align-items: center; gap: 2rem; margin-top: 4rem; padding: 2.5rem; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: rgba(255, 252, 244, 0.6); }
.blog-letter__mark { font: italic 5rem/1 var(--font-display); color: var(--sienna); }
.blog-letter > div { flex: 1; }
.blog-letter h2 { font-size: 2rem; }
.blog-letter p:not(.eyebrow) { font-size: 1rem; color: var(--muted); margin: 0.75rem 0 0; }
.blog-letter .btn { flex-shrink: 0; text-align: center; }
@media (max-width: 760px) {
  .blog-running-head { margin-bottom: 2rem; }
  .blog-running-head span:last-child { display: none; }
  .blog-opening__bottom { flex-direction: column; align-items: start; gap: 1.5rem; }
  .blog-feature { grid-template-columns: 1fr; }
  .blog-feature__cover img { height: auto; object-fit: contain; }
  .blog-feature__story { padding: 2rem 1.5rem 2.5rem; }
  .blog-archive__heading { align-items: start; flex-direction: column; }
  .blog-chapters { grid-template-columns: 1fr; }
  .blog-chapter, .blog-chapter:nth-child(even) { padding: 2rem 0; border-left: 0; gap: 1rem; }
  .blog-letter { flex-wrap: wrap; padding: 2rem 1.25rem; gap: 1.25rem; }
  .blog-letter__mark { font-size: 3.5rem; }
  .blog-letter > div { flex-basis: calc(100% - 5rem); }
  .blog-letter .btn { width: 100%; flex-shrink: 1; }
}

/* —— Elementos das capas nas páginas dos livros —— */
.book-world--petals { --book-ink: #7e2026; --book-wash: rgba(126, 32, 38, 0.07); }
.book-world--clues { --book-ink: #a31b5c; --book-wash: rgba(190, 34, 107, 0.065); }
.book-world--rails { --book-ink: #925325; --book-wash: rgba(178, 104, 39, 0.09); }
.book-world { background: radial-gradient(ellipse at 95% 12%, var(--book-wash), transparent 45%), var(--floral); }
.book-world__opening { position: relative; isolation: isolate; overflow: hidden; border-bottom: 1px solid var(--line); }
.book-world__opening::before { content: ''; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 40%, var(--book-wash)); z-index: -1; }
.book-world__opening > .container { position: relative; z-index: 1; }
.book-world__opening h1 { max-width: 75%; }
.book-world__motif { position: absolute; width: clamp(14rem, 35vw, 29rem); height: auto; right: max(1rem, calc((100vw - var(--max)) / 2)); bottom: -1.5rem; opacity: .2; pointer-events: none; }
.book-world--petals .book-world__motif { filter: invert(17%) sepia(38%) saturate(2877%) hue-rotate(326deg) brightness(87%) contrast(93%); }
.book-world--clues .book-world__motif { filter: invert(20%) sepia(43%) saturate(2782%) hue-rotate(303deg) brightness(85%) contrast(95%); }
.book-world--rails .book-world__motif { filter: invert(34%) sepia(49%) saturate(825%) hue-rotate(345deg) brightness(92%) contrast(88%); }
.book-world .eyebrow, .book-world .quote-pull, .book-world .review__stars { color: var(--book-ink); }
.book-world .btn--primary { background: var(--book-ink); border-color: var(--book-ink); }
.book-world .btn--primary:hover { background: var(--black); border-color: var(--black); }
.book-world__spread { position: relative; padding-top: 1rem; }
.book-world__spread .prose p:first-child::first-letter { float: left; font: 500 3.75rem/.85 var(--font-display); padding: .18rem .5rem 0 0; color: var(--book-ink); }
.book-world__spread .quote-pull { border-left-color: var(--book-ink); }
.book-world__spread .prose::after { content: ''; display: block; width: 5rem; height: 2.5rem; margin: 2rem auto; background: center / contain no-repeat; opacity: .4; }
.book-world--petals .prose::after { background-image: url('../img/ornamentos/petals.svg'); }
.book-world--clues .prose::after { background-image: url('../img/ornamentos/clues.svg'); }
.book-world--rails .prose::after { background-image: url('../img/ornamentos/rails.svg'); }
.book-world--rails .book-world__spread { border-bottom: 3px double rgba(146, 83, 37, .25); }
.book-world--clues .book-world__spread .quote-pull { padding: 1.5rem; background: var(--book-wash); border-left: 2px solid var(--book-ink); }
.book-world .febril-layout .book-card__cover { max-width: 22rem; width: 100%; margin-inline: auto; }
@media (max-width: 700px) {
  .book-world__opening h1 { max-width: 100%; }
  .book-world__motif { width: 15rem; right: -4rem; opacity: .1; }
  .book-world__opening .lead { max-width: 85%; }
}

/* —— Atmosfera das capas: movimento lento ao fundo —— */
.book-world { isolation: isolate; }
.book-world > .page-main, .book-world > .site-footer { position: relative; z-index: 1; }
.book-atmosphere { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; user-select: none; }
.book-atmosphere span { position: absolute; left: var(--drift-x); top: -12vh; opacity: 0; animation: book-petal-drift var(--drift-time) linear infinite; animation-delay: var(--drift-delay); }
.book-atmosphere span:nth-child(1) { --drift-x: 5%; --drift-time: 29s; --drift-delay: -7s; --drift-turn: 125deg; }
.book-atmosphere span:nth-child(2) { --drift-x: 18%; --drift-time: 37s; --drift-delay: -23s; --drift-turn: -100deg; }
.book-atmosphere span:nth-child(3) { --drift-x: 36%; --drift-time: 32s; --drift-delay: -14s; --drift-turn: 180deg; }
.book-atmosphere span:nth-child(4) { --drift-x: 49%; --drift-time: 41s; --drift-delay: -32s; --drift-turn: -145deg; }
.book-atmosphere span:nth-child(5) { --drift-x: 65%; --drift-time: 35s; --drift-delay: -4s; --drift-turn: 110deg; }
.book-atmosphere span:nth-child(6) { --drift-x: 78%; --drift-time: 43s; --drift-delay: -19s; --drift-turn: -190deg; }
.book-atmosphere span:nth-child(7) { --drift-x: 90%; --drift-time: 31s; --drift-delay: -26s; --drift-turn: 160deg; }
.book-atmosphere span:nth-child(8) { --drift-x: 96%; --drift-time: 39s; --drift-delay: -11s; --drift-turn: -120deg; }
.book-world--petals .book-atmosphere span { width: 2.2rem; height: 3.4rem; border-radius: 12% 85% 18% 80%; background: radial-gradient(ellipse at 30% 30%, #b64b50, #7e2026 65%, #451b21); box-shadow: inset 1px 0 0 rgba(255, 252, 244, .3); }
.book-world--petals .book-atmosphere span:nth-child(2n) { width: 1.2rem; height: 2rem; }
.book-world--petals .book-atmosphere span:nth-child(3n) { border-radius: 85% 15% 75% 20%; }
.book-world--clues .book-atmosphere span { width: 6rem; height: 4rem; border: 2px solid var(--book-ink); background: linear-gradient(30deg, transparent 49%, var(--book-ink) 50%, transparent 51%), linear-gradient(-30deg, transparent 49%, var(--book-ink) 50%, transparent 51%); animation-name: book-letter-drift; }
.book-world--clues .book-atmosphere span:nth-child(2n) { width: 2.5rem; height: 2.5rem; border: 0; background: var(--book-ink); clip-path: polygon(50% 22%, 65% 8%, 87% 12%, 100% 35%, 95% 53%, 50% 95%, 5% 53%, 0 35%, 13% 12%, 35% 8%); }
.book-world--rails .book-atmosphere span { top: auto; bottom: -25vh; width: 16rem; height: 22rem; border-radius: 50%; background: radial-gradient(ellipse at 45% 60%, rgba(91, 65, 44, .6), rgba(146, 83, 37, .3) 35%, transparent 70%); animation-name: book-smoke-drift; }
@keyframes book-petal-drift {
  0% { opacity: 0; transform: translate3d(0, 0, 0) rotate(-25deg); }
  15% { opacity: .11; }
  45% { opacity: .08; transform: translate3d(-3rem, 45vh, 0) rotate(45deg); }
  75% { opacity: .03; }
  100% { opacity: 0; transform: translate3d(2rem, 110vh, 0) rotate(var(--drift-turn)); }
}
@keyframes book-letter-drift {
  0% { opacity: 0; transform: translate3d(0, 0, 0) rotate(-12deg); }
  15% { opacity: .18; }
  45% { opacity: .15; }
  75% { opacity: .07; }
  100% { opacity: 0; transform: translate3d(-3rem, 110vh, 0) rotate(25deg); }
}
@keyframes book-smoke-drift {
  0% { opacity: 0; transform: translate3d(0, 0, 0) scale(.6); }
  20% { opacity: .38; }
  50% { opacity: .3; }
  75% { opacity: .12; }
  100% { opacity: 0; transform: translate3d(-4rem, -115vh, 0) scale(1.8); }
}
@media (max-width: 700px) {
  .book-atmosphere span:nth-child(2n) { display: none; }
  .book-world--petals .book-atmosphere span { width: 1.4rem; height: 2.2rem; }
}
@media (prefers-reduced-motion: reduce) {
  .book-atmosphere { display: none; }
  .book-atmosphere span { animation: none; }
}

/* Pause decorative motion while the document is hidden. */
.is-page-hidden .book-atmosphere span,
.is-page-hidden .hero__media img { animation-play-state: paused; }

.febril-manuscript { margin: 2.5rem 0; }
.febril-manuscript img { width: 100%; height: auto; border: 1px solid var(--line); }
.febril-manuscript figcaption { font: italic 1rem/1.6 var(--font-body); text-align: center; color: var(--book-ink); margin-top: .75rem; }

/* —— Febril: página de pré-venda —— */
.febril-sales-page { --book-ink: #711d25; background: radial-gradient(ellipse at 95% 15%, rgba(126,32,38,.055), transparent 50%), #fffcf4; }
.febril-landing { padding-top: var(--header-h); }
.febril-landing h2 { font: 400 clamp(2.3rem, 4.3vw, 3.7rem)/1.08 var(--font-display); letter-spacing: -.025em; margin: 0 0 1.5rem; }
.febril-landing h2 em { color: var(--book-ink); }
.febril-landing p { color: var(--muted); }
.febril-hero { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; padding-block: clamp(3rem, 7vw, 6rem); }
.febril-hero h1 { font: 400 clamp(4.75rem, 8vw, 7.5rem)/1 var(--font-display); letter-spacing: -.045em; color: var(--book-ink); margin: 1.25rem 0 1.5rem; }
.febril-hero h2 { font-size: clamp(2.1rem, 3.5vw, 3.1rem); }
.febril-hero__copy > p:not(.eyebrow) { max-width: 33rem; }
.febril-hero__copy > .eyebrow { color: var(--book-ink); font-size: .6875rem; }
.febril-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; margin-top: 1rem; }
.febril-reserve .febril-actions { justify-content: center; margin-top: 0; }
.febril-buy { background: var(--book-ink); color: var(--floral); border: 1px solid var(--book-ink); border-radius: 3rem; padding: 1.1rem 1.75rem; min-height: 3.75rem; gap: 1.5rem; text-align: center; box-shadow: 0 8px 24px rgba(113,29,37,.14); }
.febril-buy:hover { color: var(--floral); background: #4c1319; border-color: #4c1319; }
.febril-buy--outline { background: transparent; color: var(--book-ink); box-shadow: none; }
.febril-buy--outline:hover { background: var(--book-ink); color: var(--floral); border-color: var(--book-ink); }
.febril-hero .febril-hero__note { font: .75rem/1.6 var(--font-ui); margin: .75rem 0 1.5rem; }
.febril-facts { display: flex; flex-wrap: wrap; list-style: none; padding: 1.25rem 0; margin: 0; border-top: 1px solid var(--line); gap: .75rem 1.25rem; font: .6875rem/1.5 var(--font-ui); color: var(--sienna-deep); }
.febril-scroll { display: inline-flex; gap: 1.5rem; font: italic 1.1rem var(--font-display); margin-top: 1.75rem; color: var(--book-ink); text-decoration: none; }
.febril-hero__book { position: relative; margin: 0; }
.febril-hero__book img { width: 100%; height: auto; border-radius: .25rem; box-shadow: 0 24px 55px rgba(75,41,25,.16); }
.febril-hero__book figcaption { font: italic 1.125rem/1.5 var(--font-display); text-align: center; margin-top: 1rem; color: var(--book-ink); }
.febril-inside { display: grid; grid-template-columns: .85fr 1.15fr; align-items: center; gap: clamp(2rem, 7vw, 6rem); border-top: 1px solid var(--line); padding-block: clamp(3rem, 7vw, 6rem); scroll-margin-top: calc(var(--header-h) + 1rem); }
.febril-inside .febril-manuscript { margin: 0; max-width: 27rem; }
.febril-inside .febril-manuscript img { box-shadow: 0 15px 35px rgba(18,18,18,.08); }
.febril-inside__copy { max-width: 34rem; }
.febril-inside__copy p { margin: 0 0 1.25rem; }
.febril-journey { background: rgba(126,32,38,.045); border-block: 1px solid rgba(126,32,38,.1); padding-block: clamp(3rem, 7vw, 6rem); }
.febril-journey > .container > h2 { max-width: 47rem; }
.febril-journey__pages { display: grid; grid-template-columns: repeat(3,1fr); margin-top: 3rem; }
.febril-journey__pages article { padding: 0 2.25rem; border-left: 1px solid rgba(126,32,38,.2); }
.febril-journey__pages article:first-child { padding-left: 0; border: 0; }
.febril-journey__pages article:last-child { padding-right: 0; }
.febril-journey__pages span { font: italic 1.5rem var(--font-display); color: var(--book-ink); }
.febril-journey h3 { font: 500 2rem var(--font-display); margin: .75rem 0; }
.febril-journey__pages p { font-size: 1rem; margin: 0; }
.febril-author { display: grid; grid-template-columns: .65fr 1.35fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; padding-block: clamp(3rem, 7vw, 6rem); }
.febril-author img { width: 100%; height: auto; max-height: 27rem; object-fit: cover; object-position: center 25%; }
.febril-author > div { max-width: 37rem; }
.febril-reserve { padding: clamp(3rem, 7vw, 6rem) 0; background: #f5eae4; text-align: center; scroll-margin-top: var(--header-h); }
.febril-reserve .eyebrow { color: var(--book-ink); }
.febril-reserve p { margin: 0 0 1.5rem; }
.febril-reserve .febril-reserve__note { font: .75rem/1.7 var(--font-ui); margin: 1.25rem 0 0; }
.febril-faq { padding-block: clamp(3rem, 7vw, 5rem); }
.febril-faq h2 { font-size: 2.5rem; }
.febril-faq details { border-bottom: 1px solid var(--line); }
.febril-faq summary { padding: 1.25rem 0; cursor: pointer; font: 500 1.35rem/1.5 var(--font-display); }
.febril-faq details p { font-size: 1rem; margin: 0 0 1.25rem; }
.febril-newsletter { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; border-top: 1px solid var(--line); padding-block: 2rem 3rem; }
.febril-newsletter p { margin: 0; font-style: italic; }
@media (max-width: 760px) {
  .febril-hero, .febril-inside, .febril-author { grid-template-columns: 1fr; }
  .febril-hero { padding-top: 2.5rem; gap: 2.5rem; }
  .febril-hero__book { max-width: 27rem; margin-inline: auto; }
  .febril-inside__copy { order: -1; }
  .febril-inside .febril-manuscript { margin-inline: auto; }
  .febril-actions { flex-direction: column; align-items: stretch; }
  .febril-buy { width: 100%; font-size: .75rem; padding-inline: 1rem; gap: .75rem; }
  .febril-journey__pages { grid-template-columns: 1fr; gap: 1.75rem; }
  .febril-journey__pages article, .febril-journey__pages article:first-child { padding: 0 0 1.75rem; border: 0; border-bottom: 1px solid rgba(126,32,38,.15); }
  .febril-journey__pages article:last-child { border: 0; padding-bottom: 0; }
  .febril-author img { max-width: 22rem; margin-inline: auto; }
}
