:root {
  color-scheme: light;
  --green: #4a5a3f;
  --green-dark: #31412d;
  --beige: #e9dfcf;
  --cream: #f6f1e8;
  --ink: #2e2a25;
  --blue: #1d4ed8;
  --yellow: #f5b800;
  --white: #fffdf9;
  --radius: 22px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body { margin: 0; padding-top: 80px; min-width: 320px; color: var(--ink); background: var(--cream); font-family: "Avenir Next", Avenir, "Segoe UI", sans-serif; line-height: 1.5; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; }
.container { width: min(100% - 48px, 1180px); margin-inline: auto; }
.section { padding-block: clamp(72px, 9vw, 128px); }
.eyebrow { margin: 0 0 20px; color: var(--green-dark); font-size: .73rem; font-weight: 800; letter-spacing: .16em; line-height: 1.4; }
h1, h2, h3, p { overflow-wrap: break-word; }
h1, h2, h3 { margin-top: 0; line-height: 1.08; letter-spacing: -.045em; }
h1, h2 { font-weight: 800; }
h2 { margin-bottom: 0; font-size: clamp(2.65rem, 5.2vw, 5rem); }
em { font-family: Georgia, serif; font-weight: 400; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 20px; min-height: 52px; padding: 13px 22px; border: 2px solid transparent; border-radius: 999px; font-weight: 800; text-decoration: none; text-align: center; transition: transform .2s ease, background-color .2s ease; }
.button:hover { transform: translateY(-3px); }
.button-primary { color: #fff; background: var(--green-dark); }
.button-primary:hover { background: #263722; }
.button-outline { border-color: var(--green-dark); color: var(--green-dark); }
.button-outline:hover { background: var(--beige); }
.button-yellow { color: var(--ink); background: var(--yellow); }
.button-yellow:hover { background: #ffd04b; }

.site-header { position: fixed; z-index: 20; top: 0; right: 0; left: 0; border-bottom: 1px solid rgba(46,42,37,.12); background: rgba(246,241,232,.97); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 80px; gap: 20px; }
.brand { display: inline-flex; flex: none; align-items: center; }
.brand img { width: 150px; height: auto; }
.site-nav { display: flex; align-items: center; gap: clamp(10px, 1.5vw, 24px); }
.site-nav a { font-size: .9rem; font-weight: 700; text-decoration: none; }
.site-nav a:hover, .site-footer a:hover { text-decoration: underline; text-underline-offset: 5px; }
.site-nav .nav-contact { padding: 10px 17px; border: 1px solid var(--green-dark); border-radius: 999px; }
.menu-toggle { display: none; }

.hero { overflow: hidden; padding-block: clamp(38px, 5vw, 72px) clamp(72px, 8vw, 120px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: clamp(30px, 5vw, 72px); }
.hero-copy { padding-block: 20px; }
.hero .eyebrow { display: flex; align-items: center; gap: 10px; }
.eyebrow-dot { flex: none; width: 9px; height: 9px; border-radius: 50%; background: var(--yellow); }
.hero h1 { max-width: 680px; margin-bottom: 24px; font-size: clamp(3.3rem, 5.7vw, 5.7rem); }
.hero h1 em { color: var(--green); }
.hero-lead { max-width: 480px; margin: 0 0 32px; font-size: clamp(1.1rem, 1.8vw, 1.4rem); line-height: 1.5; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-note { margin: 28px 0 0; color: #555044; font-size: .9rem; }
.hero-media { position: relative; min-width: 0; padding: 0 20px 22px 0; }
.hero-image-wrap { overflow: hidden; aspect-ratio: 1 / 1; border-radius: 40% 40% 25px 25px; background: var(--beige); box-shadow: 20px 22px 0 var(--beige); }
.hero-image-wrap img { width: 100%; height: 100%; object-fit: cover; }
.media-sticker { position: absolute; right: -13px; bottom: -18px; display: grid; place-items: center; width: 116px; height: 116px; border: 5px solid var(--cream); border-radius: 50%; color: var(--ink); background: var(--yellow); font-size: .95rem; font-weight: 800; line-height: 1.12; text-align: center; transform: rotate(12deg); }

.books-section { background: var(--beige); }
#livros-da-semana { background: var(--beige); }
#proximos-livros { background: var(--cream); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 38px; }
.section-heading h2 span { color: var(--green); }
.section-heading > p { max-width: 360px; margin: 0 0 5px; font-size: 1.06rem; }
.feature-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.feature-card { min-width: 0; }
.feature-card > a { display: grid; grid-template-columns: minmax(0, 240px) minmax(0, 1fr); gap: 24px; height: 100%; padding: 20px; border-radius: var(--radius); background: var(--cream); text-decoration: none; transition: transform .2s ease, box-shadow .2s ease; }
.feature-card > a:hover { transform: translateY(-4px); box-shadow: 0 14px 26px rgba(46,42,37,.12); }
#proximos-livros .feature-card > a { background: var(--white); box-shadow: 0 0 0 1px rgba(46,42,37,.1); }
#proximos-livros .feature-card > a:hover { box-shadow: 0 14px 26px rgba(46,42,37,.12); }
.feature-cover img { width: 100%; height: auto; aspect-ratio: 681 / 900; border-radius: 14px; object-fit: cover; }
.feature-copy { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; }
.feature-copy h3 { margin-bottom: 8px; font-size: clamp(1.55rem, 2.2vw, 2.2rem); }
.feature-copy .original-title { margin: 0 0 14px; color: #555044; font-size: .9rem; }
.feature-story { margin: 0 0 14px; }
.release-date { margin: 0 0 16px; padding: 10px 12px; border-radius: 12px; color: var(--green-dark); background: #e3e9d9; font-weight: 800; }
.feature-pages { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; width: 100%; margin: auto 0 20px; }
.feature-pages img { width: 100%; height: auto; border: 1px solid rgba(46,42,37,.14); border-radius: 8px; background: #fff; }
.feature-card .button { width: 100%; }
.books-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px 20px; }
.book-card { min-width: 0; margin: 0; }
.book-card a { display: block; height: 100%; padding: 12px 12px 20px; border-radius: var(--radius); background: var(--cream); text-decoration: none; transition: transform .2s ease, box-shadow .2s ease; }
.book-card a:hover { transform: translateY(-4px); box-shadow: 0 14px 26px rgba(46,42,37,.12); }
.book-card img { width: 100%; height: auto; aspect-ratio: 681 / 900; border-radius: 14px; object-fit: cover; }
.book-card .book-caption { padding: 18px 6px 0; }
.book-card h3 { margin-bottom: 9px; font-size: 1.35rem; }
.book-card .original-title { margin: 0 0 14px; color: #555044; font-size: .88rem; line-height: 1.45; }
.book-card .age { display: inline-block; padding: 5px 10px; border-radius: 999px; color: var(--green-dark); background: #e3e9d9; font-size: .76rem; font-weight: 800; }
.book-card .card-link { display: block; margin-top: 14px; color: var(--green-dark); font-size: .88rem; font-weight: 800; }


.book-detail-hero { padding-top: clamp(48px, 7vw, 96px); }
.detail-hero-grid { display: grid; grid-template-columns: minmax(0, .75fr) minmax(0, 1fr); align-items: center; gap: clamp(32px, 7vw, 100px); }
.detail-cover { max-width: 440px; padding: 16px; border-radius: var(--radius); background: var(--beige); }
.detail-cover img { width: 100%; height: auto; border-radius: 14px; }
.detail-intro h1 { margin-bottom: 12px; font-size: clamp(3.2rem, 6vw, 6rem); }
.detail-intro .original-title { margin: 0 0 28px; color: var(--green-dark); font-size: 1.15rem; font-weight: 700; }
.book-story { margin: 0 0 28px; font-size: clamp(1.12rem, 1.7vw, 1.4rem); line-height: 1.65; }
.back-link { display: inline-block; margin-top: 12px; color: var(--green-dark); font-weight: 800; text-underline-offset: 5px; }
.sample-section { background: var(--beige); }
.sample-section h2 { max-width: 800px; margin-bottom: 36px; }
.sample-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.sample-grid figure { min-width: 0; margin: 0; }
.sample-grid img { width: 100%; height: auto; border: 12px solid var(--cream); border-radius: var(--radius); }
.sample-grid figcaption { margin-top: 10px; color: var(--green-dark); font-weight: 700; text-align: center; }
.how-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1fr); gap: 7%; }
.how-list { margin: 0; padding-left: 1.5em; font-size: 1.12rem; }
.how-list li { padding: 0 0 16px 6px; }
.how-list li::marker { color: var(--green); }
.detail-cta { color: #fff; background: var(--green-dark); text-align: center; }
.detail-cta-inner { display: flex; flex-direction: column; align-items: center; }
.detail-cta .eyebrow { color: #dfead6; }
.detail-cta h2 { margin-bottom: 28px; }
.detail-cta .release-date { max-width: 520px; color: var(--green-dark); }
.detail-cta .back-link { margin-top: 28px; color: #fff; }
.launch-note { max-width: 430px; margin: 16px 0 0; font-size: .88rem; }

.buy-section { color: #fff; background: var(--green); }
.buy-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 7%; }
.buy-section .eyebrow { color: #e6efd9; }
.buy-section h2 em { color: var(--yellow); }
.buy-copy { max-width: 540px; font-size: clamp(1.16rem, 2vw, 1.5rem); line-height: 1.55; }
.buy-copy p { margin: 0 0 18px; }
.buy-copy p:last-child { margin-bottom: 0; }

.contact-section { color: #fff; background: var(--green-dark); text-align: center; }
.contact-inner { display: flex; flex-direction: column; align-items: center; }
.contact-section .eyebrow { color: #dfead6; }
.contact-section h2 em { color: var(--yellow); }
.contact-inner > p:not(.eyebrow) { max-width: 490px; margin: 24px 0 30px; font-size: 1.1rem; }
.contact-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 18px 26px; }
.contact-email { color: #fff; font-weight: 800; text-decoration-thickness: 1px; text-underline-offset: 6px; overflow-wrap: anywhere; }
.contact-email span { margin-left: 8px; }
.site-footer { padding-block: 28px; color: #fff; background: #263722; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.footer-inner img { width: 140px; height: auto; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 12px 20px; }
.site-footer a { font-size: .83rem; text-decoration: none; }
.site-footer small { white-space: nowrap; font-size: .78rem; }

.not-found { min-height: calc(100vh - 80px); display: grid; place-items: center; text-align: center; }
.not-found h1 { margin-bottom: 18px; font-size: clamp(3rem, 8vw, 5rem); }
.not-found p { margin-bottom: 28px; }

@media (max-width: 1100px) {
  .feature-grid { grid-template-columns: 1fr; }
  .feature-pages { max-width: 340px; }
}
@media (max-width: 900px) {
  .books-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-inner { flex-wrap: wrap; }
}
@media (max-width: 1050px) {
  html { scroll-padding-top: 76px; }
  body { padding-top: 68px; }
  .header-inner { min-height: 68px; }
  .brand img { width: 124px; }
  .menu-toggle { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; width: 44px; height: 44px; border: 1px solid var(--green-dark); border-radius: 50%; color: var(--green-dark); background: transparent; cursor: pointer; }
  .menu-toggle span { display: block; width: 18px; height: 2px; border-radius: 2px; background: currentColor; }
  .site-nav { position: absolute; top: 68px; right: 0; left: 0; display: none; flex-direction: column; align-items: stretch; gap: 0; padding: 12px 16px 20px; border-bottom: 1px solid rgba(46,42,37,.12); background: var(--cream); box-shadow: 0 12px 22px rgba(46,42,37,.1); }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 12px 8px; }
  .site-nav .nav-contact { margin-top: 5px; padding: 12px; text-align: center; }
}
@media (max-width: 720px) {
  .container { width: min(100% - 32px, 1180px); }
  .hero { padding-block: 34px 82px; }
  .hero-grid, .buy-grid { grid-template-columns: 1fr; gap: 30px; }
  .hero-copy { padding: 0; }
  .hero h1 { margin-bottom: 18px; font-size: clamp(3rem, 12vw, 5rem); }
  .hero-lead { margin-bottom: 24px; }
  .hero-note { margin-top: 20px; }
  .hero-media { width: min(100% - 12px, 500px); margin-inline: auto; }
  .media-sticker { right: -8px; bottom: -22px; width: 90px; height: 90px; font-size: .73rem; }
  .section-heading { align-items: start; flex-direction: column; gap: 18px; margin-bottom: 28px; }
  .section-heading > p { max-width: 550px; }
  .detail-hero-grid, .how-grid { grid-template-columns: 1fr; gap: 30px; }
  .detail-cover { width: min(100%, 400px); margin-inline: auto; }
}
@media (max-width: 520px) {
  .section { padding-block: 72px; }
  .feature-grid, .sample-grid { grid-template-columns: 1fr; gap: 18px; }
  .feature-card > a { grid-template-columns: 1fr; padding: 16px; }
  .feature-cover { max-width: 320px; margin-inline: auto; width: 100%; }
  .books-grid { grid-template-columns: 1fr; gap: 18px; }
  .hero-actions .button { width: 100%; }
  .contact-actions { flex-direction: column; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .site-footer nav { gap: 12px 16px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
