:root {
    --ink: #21172a; --muted: #6e6574; --paper: #fffdf9; --surface: #fff;
    --plum: #5d287d; --plum-dark: #3a164f; --coral: #ee6f61;
    --line: #e9e2eb; --shadow: 0 18px 50px rgba(50, 24, 61, .12);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: "DM Sans", sans-serif; line-height: 1.6; }
body.menu-open { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
.shell { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: 12px; left: 12px; z-index: 1000; padding: 10px 16px; color: #fff; background: var(--plum-dark); border-radius: 8px; transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }

.site-header { position: sticky; top: 0; z-index: 100; background: rgba(255, 253, 249, .94); border-bottom: 1px solid rgba(93, 40, 125, .09); backdrop-filter: blur(16px); }
.header-shell { width: min(1240px, calc(100% - 40px)); min-height: 84px; margin-inline: auto; display: flex; align-items: center; gap: 34px; }
.brand { flex: 0 0 auto; }
.brand img { width: 168px; height: auto; }
.main-nav { display: flex; align-items: center; justify-content: center; gap: clamp(16px, 2.4vw, 34px); margin-left: auto; font-size: 14px; font-weight: 700; }
.main-nav a { position: relative; padding: 30px 0; }
.main-nav a::after { content: ""; position: absolute; right: 0; bottom: 23px; left: 0; height: 2px; background: var(--coral); transform: scaleX(0); transition: transform .2s ease; }
.main-nav a:hover::after, .main-nav a:focus-visible::after { transform: scaleX(1); }
.suggest-link { flex: 0 0 auto; padding: 11px 18px; color: #fff; background: var(--plum); border-radius: 999px; font-size: 13px; font-weight: 700; transition: transform .2s, background .2s; }
.suggest-link:hover { background: var(--plum-dark); transform: translateY(-2px); }
.menu-toggle { display: none; width: 44px; height: 44px; margin-left: auto; padding: 10px; background: transparent; border: 0; }
.menu-toggle > span:not(.sr-only) { display: block; height: 2px; margin: 5px 0; background: var(--ink); }
.amazon-banner { padding-block: clamp(20px, 3vw, 34px); }
.amazon-banner a { display: block; overflow: hidden; background: #f2edf3; border-radius: 14px; box-shadow: 0 7px 22px rgba(43, 25, 50, .08); }
.amazon-banner img { width: 100%; height: auto; max-height: 150px; object-fit: contain; margin-inline: auto; transition: transform .25s ease; }
.amazon-banner a:hover img { transform: scale(1.01); }

.hero { position: relative; overflow: hidden; padding: clamp(70px, 9vw, 130px) 0 90px; background: linear-gradient(135deg, #f8ecf3 0%, #f1eafa 54%, #e4f4ed 100%); }
.hero::after { content: ""; position: absolute; right: -6%; bottom: -150px; width: 430px; height: 430px; border: 1px solid rgba(93, 40, 125, .15); border-radius: 50%; box-shadow: 0 0 0 45px rgba(93, 40, 125, .04), 0 0 0 90px rgba(93, 40, 125, .025); }
.hero-orb { position: absolute; border-radius: 50%; }
.hero-orb-one { top: 20%; left: -70px; width: 150px; height: 150px; background: rgba(238, 111, 97, .16); }
.hero-orb-two { top: 8%; right: 34%; width: 42px; height: 42px; background: #f3b866; }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(320px, .75fr); align-items: center; gap: clamp(50px, 8vw, 110px); }
.eyebrow { display: inline-block; margin-bottom: 14px; color: var(--plum); font-size: 12px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.hero h1, .section-heading h2, .news-panel h2, .community h2 { font-family: "Playfair Display", serif; }
.hero h1 { max-width: 690px; margin: 0 0 22px; font-size: clamp(44px, 6vw, 78px); line-height: 1.02; letter-spacing: -.035em; }
.hero h1 em { color: var(--plum); font-style: normal; }
.hero-copy > p { max-width: 620px; margin: 0 0 30px; color: #564c5a; font-size: clamp(17px, 2vw, 20px); }
.hero-search { max-width: 650px; display: flex; padding: 7px; background: #fff; border: 1px solid rgba(93, 40, 125, .1); border-radius: 16px; box-shadow: 0 12px 35px rgba(57, 24, 75, .1); }
.hero-search input { min-width: 0; flex: 1; padding: 13px 16px; color: var(--ink); background: transparent; border: 0; outline: 0; }
.hero-search button { padding: 12px 25px; color: #fff; background: var(--plum); border: 0; border-radius: 11px; font-weight: 700; cursor: pointer; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.hero-stat { display: flex; align-items: baseline; gap: 9px; margin-top: 24px; color: #625668; font-size: 13px; }
.hero-stat strong { color: var(--plum); font-family: "Playfair Display", serif; font-size: 28px; line-height: 1; }
.button { display: inline-flex; min-height: 47px; align-items: center; justify-content: center; padding: 11px 22px; border-radius: 999px; font-size: 14px; font-weight: 800; transition: transform .2s; }
.button:hover { transform: translateY(-2px); }
.button-primary { color: #fff; background: var(--plum); box-shadow: 0 10px 24px rgba(93, 40, 125, .22); }
.button-ghost { color: var(--plum); border: 1px solid rgba(93, 40, 125, .28); }
.button-dark { width: 100%; margin-top: 25px; color: #fff; background: var(--ink); }

.featured-book { position: relative; max-width: 390px; margin-inline: auto; padding: 24px; background: rgba(255, 255, 255, .78); border: 1px solid #fff; border-radius: 30px; box-shadow: var(--shadow); transform: rotate(1.5deg); }
.featured-book::before { content: ""; position: absolute; inset: 15px -15px -15px 15px; z-index: -1; background: var(--plum); border-radius: 30px; opacity: .12; }
.featured-label { position: absolute; top: 16px; left: -14px; z-index: 2; padding: 8px 15px; color: #fff; background: var(--coral); border-radius: 8px; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.featured-cover { display: block; aspect-ratio: 4 / 5; overflow: hidden; background: #eee8ef; border-radius: 18px; }
.featured-cover img { width: 100%; height: 100%; object-fit: contain; }
.featured-content { padding: 18px 4px 2px; }
.featured-content h2 { margin: 0 0 3px; font-size: 21px; line-height: 1.25; }
.author { color: var(--muted); font-size: 14px; }
.format-list { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 12px; }
.format-list span { padding: 4px 9px; color: var(--plum); background: #f1e9f5; border-radius: 999px; font-size: 10px; font-weight: 800; text-transform: uppercase; }

.quick-categories { color: #fff; background: var(--plum-dark); }
.category-row { min-height: 78px; display: flex; align-items: center; gap: 11px; overflow-x: auto; scrollbar-width: none; }
.category-row::-webkit-scrollbar { display: none; }
.category-row > span { flex: 0 0 auto; margin-right: 8px; color: #d8c6e1; font-size: 13px; font-weight: 700; }
.category-row a { flex: 0 0 auto; padding: 8px 14px; color: #21172a; background: #f7c9de; border: 1px solid rgba(255, 255, 255, .34); border-radius: 999px; font-size: 12px; font-weight: 800; transition: filter .2s, transform .2s; }
.category-row a:nth-of-type(6n + 1) { background: #ff9f93; }
.category-row a:nth-of-type(6n + 2) { background: #ffc96f; }
.category-row a:nth-of-type(6n + 3) { background: #a9dfc4; }
.category-row a:nth-of-type(6n + 4) { background: #99c9f1; }
.category-row a:nth-of-type(6n + 5) { background: #c7afe9; }
.category-row a:nth-of-type(6n) { background: #f2acd0; }
.category-row a:hover { filter: brightness(1.08); transform: translateY(-2px); }

.section { padding-block: clamp(70px, 8vw, 110px); }
.section-tint { background: #f4eee7; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 25px; margin-bottom: 38px; }
.section-heading.compact { align-items: center; }
.section-heading .eyebrow { margin-bottom: 7px; }
.section-heading h2, .news-panel h2, .community h2 { margin: 0; font-size: clamp(34px, 4vw, 52px); line-height: 1.1; letter-spacing: -.025em; }
.text-link { flex: 0 0 auto; padding-bottom: 5px; color: var(--plum); border-bottom: 1px solid; font-size: 13px; font-weight: 800; }
.book-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(18px, 2.5vw, 30px); }
.book-card { min-width: 0; }
.book-cover { position: relative; display: block; aspect-ratio: 3 / 4; overflow: hidden; background: #eee8ef; border-radius: 18px; box-shadow: 0 10px 25px rgba(34, 24, 40, .08); }
.book-cover img { width: 100%; height: 100%; object-fit: contain; transition: transform .35s; }
.book-card:hover .book-cover img { transform: scale(1.035); }
.category-tag { position: absolute; right: 10px; bottom: 10px; max-width: calc(100% - 20px); padding: 6px 10px; overflow: hidden; color: #fff; background: rgba(33, 23, 42, .86); border-radius: 999px; font-size: 10px; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.book-info { padding: 15px 4px 0; }
.book-info h3 { margin: 0 0 3px; overflow: hidden; font-size: 16px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }

.editorial-grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(300px, .75fr); gap: clamp(35px, 6vw, 80px); }
.free-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.free-card { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 18px; align-items: center; padding: 14px; background: #fff; border-radius: 18px; }
.free-card > a { aspect-ratio: 3 / 4; overflow: hidden; background: #eee8ef; border-radius: 11px; }
.free-card img { width: 100%; height: 100%; object-fit: contain; }
.free-card h3 { margin: 8px 0 3px; font-size: 16px; line-height: 1.35; }
.free-card p { margin: 0; color: var(--muted); font-size: 13px; }
.free-pill { color: #27725b; font-size: 10px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.news-panel { align-self: start; padding: clamp(26px, 4vw, 42px); color: #fff; background: var(--plum); border-radius: 28px; box-shadow: var(--shadow); }
.news-panel .eyebrow { color: #efcce5; }
.news-panel h2 { font-size: clamp(30px, 3vw, 42px); }
.news-list { margin-top: 25px; border-top: 1px solid rgba(255, 255, 255, .2); }
.news-list a { display: grid; grid-template-columns: 28px 1fr auto; gap: 12px; align-items: center; padding: 18px 0; border-bottom: 1px solid rgba(255, 255, 255, .2); }
.news-list span { color: #d8bedf; font-size: 11px; }
.news-list strong { font-size: 14px; line-height: 1.35; }
.news-list i { font-style: normal; }

.lettera-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 25px; }
.lettera-card { min-width: 0; }
.lettera-card > a:first-child { display: block; aspect-ratio: 3 / 4; overflow: hidden; background: #eee8ef; border-radius: 17px; }
.lettera-card img { width: 100%; height: 100%; object-fit: contain; transition: transform .3s; }
.lettera-card:hover img { transform: scale(1.03); }
.lettera-card h3 { min-height: 44px; margin: 14px 0 10px; font-size: 15px; line-height: 1.4; }
.read-story { color: var(--plum); font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }

.tag-cloud-section { padding-block: clamp(65px, 8vw, 100px); color: #fff; background: linear-gradient(135deg, var(--plum-dark), #65317b); }
.tag-cloud-grid { display: grid; grid-template-columns: minmax(250px, .7fr) minmax(0, 1.3fr); gap: clamp(40px, 8vw, 100px); align-items: center; }
.tag-cloud-heading .eyebrow { color: #e8c4df; }
.tag-cloud-heading h2 { margin: 0; font-family: "Playfair Display", serif; font-size: clamp(36px, 4vw, 52px); line-height: 1.05; }
.tag-cloud-heading p { max-width: 430px; margin: 18px 0 0; color: #d9cadd; }
.tag-cloud { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: center; }
.tag-cloud a { display: inline-flex; align-items: center; padding: 8px 14px; color: #fff; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .2); border-radius: 999px; line-height: 1.1; transition: color .2s, background .2s, transform .2s; }
.tag-cloud a:hover { color: var(--plum-dark); background: #fff; transform: translateY(-2px); }
.tag-cloud .tag-weight-1 { font-size: 12px; opacity: .78; }
.tag-cloud .tag-weight-2 { font-size: 13px; }
.tag-cloud .tag-weight-3 { font-size: 15px; font-weight: 600; }
.tag-cloud .tag-weight-4 { font-size: 17px; font-weight: 700; }
.tag-cloud .tag-weight-5 { padding: 10px 17px; color: var(--plum-dark); background: #f3d8e7; border-color: #f3d8e7; font-size: 20px; font-weight: 800; }
.genre-box-section { padding-block: clamp(55px, 7vw, 90px); }
.genre-box { display: grid; grid-template-columns: minmax(250px, .65fr) minmax(0, 1.35fr); gap: clamp(35px, 7vw, 85px); align-items: start; padding: clamp(28px, 5vw, 60px); background: linear-gradient(135deg, #f8edf4, #f1ecfa); border: 1px solid #eadfec; border-radius: 28px; box-shadow: 0 18px 45px rgba(50, 24, 61, .08); }
.genre-box-heading h2 { margin: 0; font-family: "Playfair Display", serif; font-size: clamp(34px, 4vw, 48px); line-height: 1.08; }
.genre-box-heading p { margin: 17px 0 0; color: var(--muted); }
.genre-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.genre-links a { min-width: 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 16px; color: var(--plum-dark); background: rgba(255, 255, 255, .72); border: 1px solid rgba(93, 40, 125, .12); border-radius: 12px; font-size: 13px; font-weight: 700; transition: color .2s, background .2s, transform .2s; }
.genre-links a:hover { color: #fff; background: var(--plum); transform: translateX(3px); }
.genre-links span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.genre-links i { flex: 0 0 auto; font-style: normal; }

.community { padding-block: clamp(65px, 8vw, 100px); color: #fff; background: var(--plum-dark); }
.community-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(40px, 8vw, 100px); align-items: center; }
.community .eyebrow { color: #eabfda; }
.community p { max-width: 520px; margin: 18px 0 0; color: #d7c9dc; }
.social-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.social-links a { min-height: 130px; display: flex; flex-direction: column; justify-content: space-between; padding: 20px; border: 1px solid rgba(255, 255, 255, .18); border-radius: 16px; transition: background .2s, transform .2s; }
.social-links a:hover { background: rgba(255, 255, 255, .1); transform: translateY(-3px); }
.social-links span { color: #cbbbd1; font-size: 11px; text-transform: uppercase; }
.social-links strong { font-size: 16px; }
.empty-state { padding: 25px; color: var(--muted); background: var(--surface); border: 1px dashed #cfc4d2; border-radius: 16px; }
.ad-zone { min-height: 110px; margin-top: clamp(45px, 6vw, 75px); padding: 16px; overflow: hidden; background: rgba(255, 255, 255, .62); border: 1px solid var(--line); border-radius: 16px; text-align: center; }
.ad-zone > span { display: block; margin-bottom: 8px; color: #9b919e; font-size: 9px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.ad-zone-wide { margin-top: 0; margin-bottom: clamp(65px, 8vw, 100px); }
.ad-zone-footer { margin-top: clamp(45px, 6vw, 70px); margin-bottom: clamp(45px, 6vw, 70px); background: #fff; }

.site-footer { padding: 70px 0 25px; color: #d5ccd9; background: #19121e; }
.footer-grid { display: grid; grid-template-columns: 1.35fr .7fr .7fr 1.35fr; gap: clamp(30px, 5vw, 65px); }
.footer-about img { width: 170px; height: auto; filter: brightness(0) invert(1); }
.footer-about p { max-width: 300px; color: #9e94a4; }
.site-footer h2 { margin: 0 0 18px; color: #fff; font-size: 14px; }
.site-footer div > a { display: block; margin: 9px 0; color: #a99fad; font-size: 13px; }
.site-footer div > a:hover { color: #fff; }
.newsletter p { margin: 0 0 14px; color: #9e94a4; font-size: 13px; }
.newsletter form { display: flex; }
.newsletter input { min-width: 0; flex: 1; padding: 12px; color: #fff; background: #2b2230; border: 1px solid #413546; border-radius: 10px 0 0 10px; outline: 0; }
.newsletter button { padding: 10px 14px; color: #fff; background: var(--plum); border: 0; border-radius: 0 10px 10px 0; font-weight: 700; cursor: pointer; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; margin-top: 55px; padding-top: 22px; color: #817787; border-top: 1px solid #2d2431; font-size: 12px; }
.footer-bottom a { color: #b8aebe; }

/* Página de e-books gratuitos */
.main-nav a[aria-current="page"] { color: var(--plum); }
.page-hero { position: relative; overflow: hidden; padding: clamp(65px, 8vw, 105px) 0; background: linear-gradient(135deg, #f8ecf3, #eee8fa 55%, #e0f3eb); }
.page-hero::before { content: ""; position: absolute; top: -120px; right: 8%; width: 320px; height: 320px; border: 1px solid rgba(93, 40, 125, .13); border-radius: 50%; box-shadow: 0 0 0 55px rgba(93, 40, 125, .035); }
.page-hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.4fr .6fr; gap: 60px; align-items: center; }
.page-hero h1 { margin: 0 0 18px; font-family: "Playfair Display", serif; font-size: clamp(48px, 7vw, 82px); line-height: 1; letter-spacing: -.04em; }
.page-hero p { max-width: 690px; margin: 0; color: #5f5264; font-size: clamp(17px, 2vw, 20px); }
.results-count { display: inline-flex; align-items: center; gap: 8px; margin-top: 28px; padding: 9px 16px; color: var(--plum); background: rgba(255, 255, 255, .7); border: 1px solid rgba(93, 40, 125, .12); border-radius: 999px; font-size: 13px; }
.results-count strong { font-size: 17px; }
.free-hero-mark { width: 230px; height: 230px; display: grid; place-content: center; justify-items: center; margin-left: auto; color: #fff; background: var(--plum); border: 9px solid rgba(255, 255, 255, .6); border-radius: 50%; box-shadow: var(--shadow); transform: rotate(5deg); }
.free-hero-mark span { margin-right: 70px; margin-bottom: -38px; font-size: 20px; font-weight: 800; }
.free-hero-mark strong { font-family: "Playfair Display", serif; font-size: 92px; line-height: 1; }
.free-hero-mark small { color: #e5d5eb; font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.catalog-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 25px; margin-bottom: 32px; }
.catalog-toolbar p { margin: 0; color: var(--muted); font-size: 14px; }
.catalog-toolbar > .text-link { margin-left: auto; }
.free-list { display: grid; gap: 24px; }
.free-list-card { display: grid; grid-template-columns: 190px minmax(0, 1fr) 220px; gap: clamp(24px, 4vw, 50px); align-items: center; padding: 22px; background: #fff; border: 1px solid #eee8ef; border-radius: 24px; box-shadow: 0 12px 35px rgba(43, 25, 50, .06); transition: transform .25s, box-shadow .25s; }
.free-list-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.free-list-cover { position: relative; display: block; aspect-ratio: 3 / 4; overflow: hidden; background: #f0ebf1; border-radius: 15px; }
.free-list-cover img { width: 100%; height: 100%; object-fit: contain; }
.free-meta { display: flex; flex-wrap: wrap; gap: 8px; color: var(--plum); font-size: 11px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.free-meta span { color: #c2b7c6; }
.free-list-content h2 { margin: 9px 0 2px; font-family: "Playfair Display", serif; font-size: clamp(25px, 3vw, 35px); line-height: 1.12; }
.free-author { color: var(--muted); font-size: 14px; font-weight: 600; }
.free-description { margin: 18px 0; color: #655c69; font-size: 14px; }
.book-details { display: flex; flex-wrap: wrap; gap: 14px 25px; }
.book-details span { font-size: 12px; font-weight: 700; }
.book-details small { display: block; margin-bottom: 1px; color: #9d939f; font-size: 9px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.free-list-action { min-height: 190px; display: flex; align-items: center; flex-direction: column; justify-content: center; padding-left: 30px; text-align: center; border-left: 1px solid var(--line); }
.free-list-action .button { width: 100%; padding-inline: 14px; font-size: 12px; }
.synopsis-link { margin-top: 12px; color: var(--muted); border-bottom: 1px solid #bcb2bf; font-size: 12px; font-weight: 700; }
.free-empty { padding: clamp(50px, 8vw, 90px) 25px; text-align: center; background: #fff; border: 1px dashed #cfc4d2; border-radius: 24px; }
.free-empty > span { color: var(--coral); font-size: 50px; }
.free-empty h2 { margin: 5px 0; font-family: "Playfair Display", serif; font-size: 36px; }
.free-empty p { max-width: 570px; margin: 0 auto 25px; color: var(--muted); }
.free-community { background: var(--plum); }
.community-newsletter label { display: block; margin-bottom: 10px; color: #e7d8ec; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.community-newsletter > div { display: flex; padding: 7px; background: #fff; border-radius: 15px; }
.community-newsletter input { min-width: 0; flex: 1; padding: 13px 15px; border: 0; outline: 0; }
.community-newsletter button { padding: 12px 22px; color: #fff; background: var(--ink); border: 0; border-radius: 10px; font-weight: 800; cursor: pointer; }

/* Página de detalhes do livro */
.book-detail-hero { padding-block: clamp(55px, 8vw, 100px); background: linear-gradient(135deg, #f8edf4, #eee9fa 56%, #e2f3ec); }
.book-detail-grid { display: grid; grid-template-columns: minmax(280px, .72fr) minmax(0, 1.28fr); gap: clamp(45px, 8vw, 100px); align-items: start; }
.detail-cover-wrap { position: sticky; top: 110px; max-width: 430px; padding: 22px; background: rgba(255,255,255,.75); border: 1px solid #fff; border-radius: 28px; box-shadow: var(--shadow); }
.detail-cover { width: 100%; max-height: 600px; aspect-ratio: 3 / 4; object-fit: contain; background: #eee8ef; border-radius: 17px; }
.detail-breadcrumb { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 28px; color: var(--muted); font-size: 12px; }
.detail-breadcrumb a:hover { color: var(--plum); }
.detail-copy h1 { max-width: 760px; margin: 0 0 8px; font-family: "Playfair Display", serif; font-size: clamp(43px, 5vw, 68px); line-height: 1.02; letter-spacing: -.035em; }
.detail-author { color: var(--plum); font-size: 18px; font-weight: 700; }
.detail-counts { display: flex; gap: 18px; margin: 21px 0; }
.detail-counts a { color: var(--muted); border-bottom: 1px solid #baafbd; font-size: 12px; font-weight: 700; }
.detail-intro { margin: 24px 0; padding: 18px 20px; background: rgba(255,255,255,.65); border-left: 3px solid var(--coral); border-radius: 0 12px 12px 0; font-size: 15px; }
.detail-meta { display: flex; flex-wrap: wrap; gap: 15px 30px; margin: 25px 0; padding-block: 20px; border-block: 1px solid rgba(93,40,125,.14); }
.detail-meta span { font-size: 13px; font-weight: 700; }
.detail-meta small { display: block; color: var(--muted); font-size: 9px; letter-spacing: .09em; text-transform: uppercase; }
.detail-actions > strong { display: block; margin-bottom: 12px; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.detail-actions > div { display: flex; flex-wrap: wrap; gap: 10px; }
.detail-share { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; color: var(--muted); font-size: 12px; }
.detail-share a { color: var(--plum); font-weight: 800; }
.book-description-section { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(260px, .55fr); gap: clamp(35px, 7vw, 90px); padding-block: clamp(65px, 8vw, 105px); }
.book-synopsis h2, .book-tags h2, .comment-form h2 { margin: 0 0 24px; font-family: "Playfair Display", serif; font-size: clamp(32px, 4vw, 46px); }
.rich-text { color: #514856; font-size: 16px; line-height: 1.85; }
.rich-text p:first-child { margin-top: 0; }
.book-tags { align-self: start; padding: 27px; background: #f3edf5; border: 1px solid #e8deea; border-radius: 22px; }
.book-tags h2 { font-size: 25px; }
.book-tags > div { display: flex; flex-wrap: wrap; gap: 8px; }
.book-tags a { padding: 7px 11px; color: var(--plum); background: #fff; border: 1px solid #ddcfe2; border-radius: 999px; font-size: 11px; font-weight: 700; }
.reader-section { padding-block: clamp(65px, 8vw, 100px); }
.reader-tabs { display: flex; gap: 8px; margin-bottom: 30px; border-bottom: 1px solid var(--line); }
.reader-tabs button { padding: 14px 20px; color: var(--muted); background: none; border: 0; border-bottom: 3px solid transparent; font-weight: 800; cursor: pointer; }
.reader-tabs button.is-active { color: var(--plum); border-bottom-color: var(--plum); }
.reader-tabs span { display: inline-grid; min-width: 22px; height: 22px; place-items: center; margin-left: 5px; background: #eee7f1; border-radius: 50%; font-size: 10px; }
.reader-panel { display: none; }
.reader-panel.is-active { display: block; }
.comments-list { display: grid; gap: 12px; }
.comment-card { padding: 20px; background: #fff; border: 1px solid var(--line); border-radius: 15px; }
.comment-card > div { display: flex; justify-content: space-between; gap: 15px; }
.comment-card time { color: var(--muted); font-size: 11px; }
.comment-card p { margin: 10px 0 0; color: #5f5663; }
.comment-form { max-width: 800px; margin-top: 45px; padding: clamp(25px, 4vw, 42px); background: #f4eee7; border-radius: 24px; }
.comment-form h2 { font-size: 34px; }
.comment-form label { display: grid; gap: 6px; margin-bottom: 16px; font-size: 12px; font-weight: 800; }
.comment-form label small { color: var(--muted); font-weight: 500; }
.comment-form input, .comment-form textarea { width: 100%; padding: 13px 14px; color: var(--ink); background: #fff; border: 1px solid #d8cdd9; border-radius: 10px; outline: 0; }
.comment-form input:focus, .comment-form textarea:focus { border-color: var(--plum); box-shadow: 0 0 0 3px rgba(93,40,125,.1); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.form-message { padding: 12px 15px; color: #255e4d; background: #dff1e9; border-radius: 10px; }
.review-list { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
.review-list a { display: grid; grid-template-columns: 1fr auto; gap: 3px 15px; padding: 20px; background: #fff; border: 1px solid var(--line); border-radius: 14px; }
.review-list span { color: var(--muted); font-size: 10px; text-transform: uppercase; }
.review-list strong { grid-column: 1; }
.review-list i { grid-column: 2; grid-row: 1 / 3; align-self: center; color: var(--plum); font-style: normal; }

@media (max-width: 980px) {
    .header-shell { min-height: 72px; }
    .menu-toggle { display: block; }
    .suggest-link { display: none; }
    .main-nav { position: fixed; top: 72px; right: 0; bottom: 0; left: 0; display: none; align-items: stretch; justify-content: flex-start; flex-direction: column; gap: 0; padding: 30px 28px; background: var(--paper); }
    .main-nav.is-open { display: flex; }
    .main-nav a { padding: 15px 0; border-bottom: 1px solid var(--line); font-size: 18px; }
    .main-nav a::after { display: none; }
    .hero-grid, .editorial-grid, .community-grid, .tag-cloud-grid, .genre-box { grid-template-columns: 1fr; }
    .page-hero-grid { grid-template-columns: 1fr auto; }
    .free-hero-mark { width: 170px; height: 170px; }
    .free-hero-mark strong { font-size: 68px; }
    .free-list-card { grid-template-columns: 150px minmax(0, 1fr); }
    .free-list-action { grid-column: 2; min-height: auto; align-items: flex-start; padding: 20px 0 0; border-top: 1px solid var(--line); border-left: 0; text-align: left; }
    .free-list-action .button { width: auto; }
    .book-detail-grid, .book-description-section { grid-template-columns: 1fr; }
    .detail-cover-wrap { position: static; width: min(400px, 85%); margin-inline: auto; }
    .hero-copy { text-align: center; }
    .hero-copy > p, .hero-search { margin-inline: auto; }
    .hero-actions { justify-content: center; }
    .hero-stat { justify-content: center; }
    .featured-book { width: min(380px, 90%); }
    .book-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .lettera-row { grid-template-columns: repeat(4, minmax(180px, 1fr)); overflow-x: auto; padding-bottom: 12px; }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 700px) {
    .shell, .header-shell { width: min(100% - 28px, 1180px); }
    .brand img { width: 145px; }
    .amazon-banner { padding-block: 14px; }
    .amazon-banner a { border-radius: 9px; }
    .hero { padding: 60px 0 70px; }
    .hero-grid { gap: 45px; }
    .hero h1 { font-size: clamp(42px, 13vw, 60px); }
    .hero-search { display: grid; }
    .hero-search button { margin-top: 5px; }
    .category-row { min-height: 68px; }
    .section-heading { align-items: flex-start; flex-direction: column; margin-bottom: 28px; }
    .book-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 14px; }
    .free-grid { grid-template-columns: 1fr; }
    .social-links { grid-template-columns: 1fr; }
    .social-links a { min-height: 90px; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom { align-items: flex-start; flex-direction: column; }
    .page-hero-grid { grid-template-columns: 1fr; text-align: center; }
    .page-hero p { margin-inline: auto; }
    .free-hero-mark { display: none; }
    .catalog-toolbar { align-items: flex-start; flex-direction: column; }
    .free-list-card { grid-template-columns: 115px minmax(0, 1fr); gap: 18px; padding: 15px; }
    .free-list-content h2 { font-size: 24px; }
    .free-description { display: none; }
    .book-details { display: none; }
    .free-list-action { grid-column: 1 / -1; align-items: stretch; text-align: center; }
    .free-list-action .button { width: 100%; }
    .community-newsletter > div { display: grid; }
    .community-newsletter button { margin-top: 5px; }
    .genre-links { grid-template-columns: 1fr; }
    .detail-copy { text-align: center; }
    .detail-breadcrumb, .detail-counts, .detail-meta, .detail-actions > div, .detail-share { justify-content: center; }
    .form-row, .review-list { grid-template-columns: 1fr; }
}
@media (max-width: 390px) {
    .book-grid { grid-template-columns: 1fr; }
    .book-card { width: min(270px, 100%); margin-inline: auto; }
    .free-card { grid-template-columns: 90px 1fr; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; } }
