
:root{
  --navy:#14213d; --navy2:#0d1830; --ink:#111317; --cream:#f4efe4;
  --paper:#fbf8f1; --orange:#ec7a2a; --gold:#d3a142; --line:rgba(17,19,23,.15);
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:var(--paper);color:var(--ink);font-family:Arial,Helvetica,sans-serif}
img{max-width:100%;display:block}
a{color:inherit}
.shell{width:min(1180px,calc(100% - 48px));margin:auto}
.skip{position:absolute;left:-9999px}.skip:focus{left:20px;top:20px;z-index:99;background:#fff;padding:10px}
.site-header{position:sticky;top:0;z-index:50;background:rgba(251,248,241,.94);backdrop-filter:blur(12px);border-bottom:1px solid rgba(17,19,23,.09)}
.nav-shell{height:78px;display:flex;align-items:center;justify-content:space-between}
.brand{display:flex;align-items:center;gap:12px;text-decoration:none;font-weight:800;letter-spacing:.08em;font-size:13px}
.brand-mark{width:42px;height:42px;border:2px solid var(--ink);border-radius:50%;display:grid;place-items:center;font-family:Georgia,serif;font-size:15px}
.navlinks{display:flex;gap:30px;align-items:center}.navlinks a{text-decoration:none;font-size:13px;font-weight:700}.navlinks a:hover{color:var(--orange)}
.menu-btn{display:none;border:1px solid var(--ink);background:transparent;padding:9px 12px;font-weight:700}

.kicker{font-size:11px;letter-spacing:.18em;font-weight:800;margin:0 0 18px;color:#ffd88b}.kicker.dark{color:#9a6512}
.hero{min-height:760px;position:relative;overflow:hidden;background:
radial-gradient(circle at 80% 18%,rgba(236,122,42,.23),transparent 28%),
linear-gradient(135deg,var(--navy2),var(--navy));color:white}
.hero-grid{min-height:700px;display:grid;grid-template-columns:1.05fr .95fr;align-items:center;gap:60px;position:relative;z-index:2}
.hero-copy h1{font-family:Georgia,'Times New Roman',serif;font-size:clamp(54px,6vw,88px);line-height:.94;letter-spacing:-.045em;margin:0 0 30px;max-width:760px}
.hero-copy h1 em{font-weight:400;color:#f3b44d}
.hero-text{max-width:610px;font-family:Georgia,serif;font-size:20px;line-height:1.6;color:#dce2ed;margin:0 0 34px}
.hero-actions,.world-actions{display:flex;align-items:center;gap:24px;flex-wrap:wrap}
.button{display:inline-flex;align-items:center;justify-content:center;text-decoration:none;border-radius:999px;padding:15px 24px;font-size:13px;font-weight:800;letter-spacing:.03em}
.button-light{background:#fff;color:var(--navy)}
.button-dark{background:#111;color:white}.button-navy{background:var(--navy);color:white}
.text-link{text-decoration:none;font-weight:800;font-size:13px}.text-link:hover{text-decoration:underline}
.hero-books{height:560px;position:relative}
.hero-book{position:absolute;width:245px;border-radius:5px;box-shadow:0 28px 60px rgba(0,0,0,.44);transition:transform .35s ease}
.hb1{left:0;top:145px;transform:rotate(-10deg)}.hb2{left:175px;top:50px;z-index:3;transform:rotate(2deg)}.hb3{right:0;top:155px;transform:rotate(11deg)}
.hero-books:hover .hb1{transform:rotate(-13deg) translateX(-12px)}.hero-books:hover .hb2{transform:rotate(0) translateY(-8px)}.hero-books:hover .hb3{transform:rotate(14deg) translateX(12px)}
.orbit{position:absolute;border:1px solid rgba(255,255,255,.18);border-radius:50%;inset:60px 0 0 40px}.orbit-two{inset:110px 40px 40px 0}
.hero-bottom{height:60px;display:flex;justify-content:center;gap:12px;align-items:center;font-size:11px;letter-spacing:.14em;text-transform:uppercase;color:#bfc8d8}

.explore{padding-top:110px}
.section-intro{display:grid;grid-template-columns:1fr 1fr;gap:40px;align-items:end;margin-bottom:64px}
.section-intro h2,.author h2,.free-copy h2,.contact h2{font-family:Georgia,serif;font-size:clamp(42px,5vw,68px);line-height:1;margin:0;letter-spacing:-.035em}
.section-intro>p:last-child{font-family:Georgia,serif;font-size:18px;line-height:1.6;margin:0;max-width:540px}
.centered{text-align:center;display:block;max-width:780px;margin:0 auto 60px}.centered>p:last-child{margin:20px auto 0}

.world{min-height:630px;display:flex;align-items:center;overflow:hidden}
.world-grid{display:grid;grid-template-columns:.8fr 1.2fr;align-items:center;gap:100px;padding:78px 0}
.world-grid.reverse{grid-template-columns:1.2fr .8fr}.world-grid.reverse .world-cover{order:2}.world-grid.reverse .world-copy{order:1}
.world-cover{display:flex;justify-content:center}.world-cover img{width:min(320px,80%);max-height:500px;object-fit:contain;filter:drop-shadow(0 25px 24px rgba(0,0,0,.25));transition:transform .35s ease}
.world:hover .world-cover img{transform:translateY(-7px) rotate(-1deg)}
.world-number{font-family:Georgia,serif;font-size:76px;opacity:.16;line-height:1}
.world-tag{font-size:11px;font-weight:800;letter-spacing:.17em;margin:5px 0 14px}
.world-copy h3{font-family:Georgia,serif;font-size:clamp(48px,5vw,76px);line-height:.96;letter-spacing:-.04em;margin:0 0 24px;max-width:720px}
.world-lead{font-family:Georgia,serif;font-size:25px;line-height:1.35;margin:0 0 16px;max-width:720px}
.world-copy>p:not(.world-tag):not(.world-lead){font-size:16px;line-height:1.65;max-width:680px;margin-bottom:30px}
.dark-link{color:var(--ink)}
.status{display:inline-block;border:1px solid currentColor;border-radius:999px;padding:10px 14px;font-size:10px;font-weight:800;letter-spacing:.13em}
.light-status{color:#f7e4b7}
.world-circulo{background:#d5aa52;color:#111}
.world-mente{background:#f6eddc;color:#14213d}
.world-neuro{background:#152642;color:#fff}.world-neuro .world-number{color:#fff}.world-neuro .world-tag{color:#f3ae43}
.world-ariadne{background:#d8d0c4;color:#111}
.world-porta{background:#1a1612;color:#f3eadc}.world-porta .world-tag{color:#d7994d}

.before{padding:120px 0;background:#fff}
.before-grid{display:grid;grid-template-columns:repeat(2,1fr);border-top:1px solid var(--line);border-left:1px solid var(--line)}
.before-grid article{padding:42px;border-right:1px solid var(--line);border-bottom:1px solid var(--line);min-height:260px}
.before-grid article:last-child{grid-column:1/-1}
.before-grid span{font-size:11px;font-weight:800;color:#a16d1b;letter-spacing:.15em}
.before-grid h3{font-family:Georgia,serif;font-size:28px;margin:14px 0}
.before-grid p{font-family:Georgia,serif;font-size:17px;line-height:1.65;margin:0;max-width:680px}

.free-read{background:#1d4354;color:white;padding:110px 0}
.free-grid{display:grid;grid-template-columns:.9fr 1.1fr;gap:90px;align-items:center}
.free-art{min-height:500px;background:
linear-gradient(rgba(0,0,0,.1),rgba(0,0,0,.22)),
radial-gradient(circle at 30% 20%,#6e8791,transparent 26%),
linear-gradient(145deg,#29373c,#111b20);
padding:55px;display:flex;flex-direction:column;justify-content:flex-end;position:relative;overflow:hidden;box-shadow:0 30px 60px rgba(0,0,0,.22)}
.free-art:before{content:"";position:absolute;inset:-20%;background:repeating-linear-gradient(85deg,transparent 0 34px,rgba(255,255,255,.03) 35px 36px);transform:rotate(-5deg)}
.free-art p,.free-art h2,.free-art span{position:relative;z-index:2}.free-art p{font-size:10px;letter-spacing:.2em;color:#efb55a;font-weight:800}
.free-art h2{font-family:Georgia,serif;font-size:54px;line-height:.96;margin:12px 0}.free-art span{font-size:13px}
.free-copy h2{font-size:58px;margin-bottom:24px}.free-copy>p:not(.kicker){font-family:Georgia,serif;font-size:19px;line-height:1.7;color:#e3edf1;max-width:650px;margin-bottom:32px}

.projects{padding:110px 0;background:#efe9dc}
.project-row{display:grid;grid-template-columns:repeat(4,1fr);gap:18px}
.project-card{background:#fff;padding:30px;min-height:200px;border-top:5px solid var(--orange)}
.project-card strong{font-size:10px;letter-spacing:.13em;text-transform:uppercase;color:#996414}
.project-card h3{font-family:Georgia,serif;font-size:24px;margin:18px 0 10px}.project-card p{font-size:14px;line-height:1.5}

.author{padding:120px 0;background:#faf7f0}
.author-grid{display:grid;grid-template-columns:.7fr 1.3fr;gap:90px;align-items:center}
.author-mark{height:440px;background:var(--navy);display:grid;place-items:center;position:relative;overflow:hidden}
.author-mark:before,.author-mark:after{content:"";position:absolute;border:1px solid rgba(255,255,255,.2);border-radius:50%;width:430px;height:430px}
.author-mark:after{width:280px;height:280px}.author-mark span{font-family:Georgia,serif;font-size:90px;color:#f3b44d;z-index:2}
.author-copy blockquote{font-family:Georgia,serif;font-size:28px;line-height:1.45;margin:28px 0;border-left:4px solid var(--orange);padding-left:24px}
.author-copy p{font-size:16px;line-height:1.75;max-width:690px}

.contact{background:var(--orange);color:#111;padding:90px 0}
.contact-box{display:grid;grid-template-columns:1.2fr .8fr;gap:60px;align-items:end}
.contact .kicker{color:#3b250c}.contact h2{font-size:56px}.contact p{font-size:17px}
.contact-links{display:flex;justify-content:flex-end;gap:16px;flex-wrap:wrap}.contact-links a{border:2px solid #111;border-radius:999px;padding:14px 20px;text-decoration:none;font-weight:800;font-size:13px}

.footer{background:#0b1020;color:#b8c1d1;padding:34px 0;font-size:12px}
.footer-grid{display:flex;justify-content:space-between;gap:20px}.footer strong{color:white;letter-spacing:.08em}

@media(max-width:900px){
  .shell{width:min(100% - 32px,760px)}
  .menu-btn{display:block}.navlinks{display:none;position:absolute;top:78px;left:0;right:0;background:var(--paper);padding:24px 16px;flex-direction:column;align-items:flex-start;border-bottom:1px solid var(--line)}
  .navlinks.open{display:flex}
  .hero{min-height:auto}.hero-grid{grid-template-columns:1fr;padding:80px 0 30px;gap:20px}.hero-copy h1{font-size:56px}.hero-text{font-size:18px}.hero-books{height:430px}.hero-book{width:190px}.hb1{left:2%;top:120px}.hb2{left:34%;top:35px}.hb3{right:0;top:130px}
  .section-intro{grid-template-columns:1fr;margin-bottom:44px}.world-grid,.world-grid.reverse{grid-template-columns:1fr;gap:42px;padding:65px 0}.world-grid.reverse .world-cover{order:1}.world-grid.reverse .world-copy{order:2}.world-cover img{width:230px}.world{min-height:0}
  .before-grid{grid-template-columns:1fr}.before-grid article:last-child{grid-column:auto}
  .free-grid,.author-grid,.contact-box{grid-template-columns:1fr}.free-grid{gap:45px}.free-art{min-height:390px}.author-mark{height:320px}.project-row{grid-template-columns:repeat(2,1fr)}.contact-links{justify-content:flex-start}.footer-grid{flex-direction:column}
}
@media(max-width:560px){
  .brand-name{display:none}.nav-shell{height:68px}.navlinks{top:68px}
  .hero-grid{padding-top:60px}.hero-copy h1{font-size:43px}.hero-text{font-size:16px}.hero-books{height:330px}.hero-book{width:145px}.hb1{top:100px}.hb2{left:31%;top:34px}.hb3{top:112px}
  .section-intro h2,.author h2{font-size:42px}.world-number{font-size:56px}.world-copy h3{font-size:45px}.world-lead{font-size:21px}.world-cover img{width:200px}
  .before{padding:80px 0}.before-grid article{padding:30px 24px}.free-read{padding:80px 0}.free-art{padding:34px;min-height:330px}.free-art h2{font-size:42px}.free-copy h2{font-size:42px}.project-row{grid-template-columns:1fr}.author{padding:80px 0}.contact h2{font-size:42px}
}


.world-codigo{background:#e6d4b6;color:#21170f}
.world-codigo .world-tag{color:#81521d}
.read-hub{padding:120px 0;background:#f8f4eb}
.hub-title{font-family:Georgia,serif;font-size:32px;margin:20px 0 30px}
.stories-title{margin-top:80px}
.sample-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:20px}
.sample-card{display:grid;grid-template-columns:145px 1fr;gap:22px;background:white;padding:20px;text-decoration:none;border:1px solid rgba(17,19,23,.10);transition:.25s ease;min-height:235px}
.sample-card:hover{transform:translateY(-4px);box-shadow:0 18px 36px rgba(20,33,61,.12)}
.sample-card img{width:145px;height:195px;object-fit:cover;align-self:center;box-shadow:0 10px 22px rgba(0,0,0,.16)}
.sample-card span{font-size:9px;letter-spacing:.14em;font-weight:800;color:#9a6512}
.sample-card h4{font-family:Georgia,serif;font-size:25px;line-height:1.05;margin:12px 0}
.sample-card p{font-size:14px;line-height:1.55;margin:0 0 18px;color:#535353}
.sample-card b{font-size:12px}
.story-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:24px}
.story-card{background:#fff;text-decoration:none;border:1px solid rgba(17,19,23,.1);overflow:hidden;transition:.25s ease}
.story-card:hover{transform:translateY(-5px);box-shadow:0 18px 36px rgba(20,33,61,.12)}
.story-card>img,.story-art{width:100%;height:390px;object-fit:cover}
.story-art{display:flex;flex-direction:column;justify-content:flex-end;padding:42px;background:linear-gradient(145deg,#42545c,#111a20);color:#fff;position:relative}
.story-art:before{content:"";position:absolute;inset:0;background:repeating-linear-gradient(83deg,transparent 0 38px,rgba(255,255,255,.035) 39px 40px)}
.story-art small,.story-art strong{position:relative;z-index:2}.story-art small{font-size:10px;letter-spacing:.18em;color:#f0b35b}.story-art strong{font-family:Georgia,serif;font-size:46px;line-height:.98;margin-top:16px}
.story-info{padding:28px}.story-info h4{font-family:Georgia,serif;font-size:29px;margin:0 0 12px}.story-info p{font-size:15px;line-height:1.6;color:#555}.story-info b{font-size:12px}
@media(max-width:800px){.sample-grid,.story-grid{grid-template-columns:1fr}}
@media(max-width:520px){.sample-card{grid-template-columns:105px 1fr;padding:14px;gap:15px}.sample-card img{width:105px;height:155px}.sample-card h4{font-size:21px}.story-card>img,.story-art{height:330px}.story-art strong{font-size:38px}}


/* ===== Catálogo organizado por categoria ===== */
.catalog-intro{padding:105px 0 70px;background:#fbf8f1}
.catalog-intro h2,.category-heading h2{font-family:Georgia,serif;font-size:clamp(42px,5vw,70px);line-height:1;margin:0;letter-spacing:-.035em}
.catalog-lead{font-family:Georgia,serif;font-size:19px;line-height:1.65;max-width:760px;margin:25px 0 32px}
.category-jump{display:flex;gap:12px;flex-wrap:wrap}
.category-jump a{display:inline-flex;text-decoration:none;border:1px solid #242424;border-radius:999px;padding:11px 17px;font-size:12px;font-weight:800}
.category-jump a:hover{background:#14213d;color:#fff;border-color:#14213d}

.category-section{padding:105px 0}
.category-nonfiction{background:#eee6d8;color:#151515}
.category-fiction{background:#101a30;color:#f7f1e8}
.free-stories{background:#1d4354;color:#fff}
.category-heading{display:grid;grid-template-columns:1.15fr .85fr;gap:50px;align-items:end;margin-bottom:55px}
.category-heading>p{font-family:Georgia,serif;font-size:18px;line-height:1.6;margin:0;max-width:540px}
.category-fiction .category-heading>p,.free-stories .category-heading>p{color:#d9e0eb}
.light-heading h2{color:#fff}

.book-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:22px}
.book-card{background:#fff;color:#171717;border-radius:2px;overflow:hidden;display:flex;flex-direction:column;min-width:0;box-shadow:0 12px 30px rgba(10,15,25,.08)}
.dark-card{background:#192640;color:#fff;box-shadow:0 18px 38px rgba(0,0,0,.24)}
.book-cover-wrap{height:390px;padding:28px;display:flex;align-items:center;justify-content:center;background:rgba(255,255,255,.52)}
.dark-card .book-cover-wrap{background:#0c1528}
.book-cover-wrap img{height:100%;width:auto;max-width:100%;object-fit:contain;filter:drop-shadow(0 18px 18px rgba(0,0,0,.25))}
.book-info{padding:28px;display:flex;flex-direction:column;flex:1}
.book-tag{font-size:9px;letter-spacing:.15em;font-weight:800;color:#996414;margin-bottom:12px}
.dark-card .book-tag{color:#f0b35b}
.book-info h3{font-family:Georgia,serif;font-size:31px;line-height:1.05;margin:0 0 15px}
.book-info p{font-size:14px;line-height:1.6;margin:0 0 25px;color:#555}
.dark-card .book-info p{color:#d3dbe8}
.book-links{display:flex;gap:10px;flex-wrap:wrap;margin-top:auto}
.book-links .button{padding:12px 16px;font-size:11px}
.button-outline{background:transparent;color:#111;border:1px solid #111}
.button-disabled{background:#ddd;color:#777;cursor:default;pointer-events:none}
.dark-disabled{background:#35425a;color:#aeb8c8}
.button-ghost{background:transparent;color:#fff;border:1px solid rgba(255,255,255,.72)}

.free-stories .story-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:24px}
.free-stories .story-card{background:#163744;color:#fff;border:1px solid rgba(255,255,255,.15);overflow:hidden}
.story-main-link{text-decoration:none;color:inherit;display:block}
.free-stories .story-card> .story-main-link > img,
.free-stories .story-art{height:390px;width:100%;object-fit:cover}
.free-stories .story-info{padding:28px 28px 20px}
.free-stories .story-info h3{font-family:Georgia,serif;font-size:31px;margin:0 0 12px}
.free-stories .story-info p{font-size:15px;line-height:1.6;color:#dfe8ea;margin:0}
.story-actions{display:flex;gap:10px;flex-wrap:wrap;padding:0 28px 30px}
.story-actions .button{padding:12px 16px;font-size:11px}

.how-read{background:#f9f6ef;padding:80px 0}
.how-grid{display:grid;grid-template-columns:repeat(3,1fr);border-top:1px solid rgba(17,19,23,.16);border-left:1px solid rgba(17,19,23,.16)}
.how-grid>div{padding:34px;border-right:1px solid rgba(17,19,23,.16);border-bottom:1px solid rgba(17,19,23,.16)}
.how-grid span{font-size:11px;letter-spacing:.15em;font-weight:800;color:#a16b16}
.how-grid h3{font-family:Georgia,serif;font-size:25px;margin:12px 0 8px}
.how-grid p{font-size:14px;line-height:1.55;color:#555;margin:0}

@media(max-width:950px){
  .book-grid{grid-template-columns:repeat(2,1fr)}
  .category-heading{grid-template-columns:1fr}
}
@media(max-width:720px){
  .book-grid,.free-stories .story-grid,.how-grid{grid-template-columns:1fr}
  .book-cover-wrap{height:340px}
}

/* ===== Navegação por abas ===== */
.category-tabs{display:flex;gap:10px;flex-wrap:wrap;margin-top:34px;position:sticky;top:92px;z-index:25;background:rgba(251,248,241,.96);backdrop-filter:blur(10px);padding:12px 0 14px;border-bottom:1px solid rgba(17,19,23,.12)}
.category-tab{appearance:none;border:1px solid #1b2435;background:#fff;color:#14213d;border-radius:999px;padding:13px 18px;font:800 12px/1.2 Arial,Helvetica,sans-serif;cursor:pointer;transition:.2s ease}
.category-tab:hover{transform:translateY(-1px);box-shadow:0 7px 18px rgba(20,33,61,.10)}
.category-tab.active{background:#14213d;color:#fff;border-color:#14213d}
.tab-panel[hidden]{display:none!important}
.tab-panel.active{animation:tabFade .25s ease}
@keyframes tabFade{from{opacity:.25;transform:translateY(8px)}to{opacity:1;transform:none}}
@media(max-width:720px){.category-tabs{top:68px;display:grid;grid-template-columns:1fr;padding:10px 0}.category-tab{width:100%;text-align:left;border-radius:12px;padding:12px 14px}.catalog-intro{padding-bottom:30px}}


/* ===== Correção responsiva forte para celular ===== */
html,body{width:100%;max-width:100%;overflow-x:hidden}
body{min-width:0}
main,.site-header,.hero,.catalog-intro,.category-section,.how-read,.author,.contact,.footer{width:100%;max-width:100%}
.hero-grid,.hero-copy,.hero-books,.category-heading,.book-grid,.book-card,.story-grid,.story-card{min-width:0}

@media(max-width:720px){
  .shell{width:100%;max-width:none;margin:0;padding-left:20px;padding-right:20px}
  .nav-shell{width:100%;padding-left:20px;padding-right:20px}
  .site-header{overflow:visible}
  .brand-mark{width:48px;height:48px;font-size:17px;flex:0 0 48px}
  .menu-btn{font-size:15px;padding:11px 15px}

  .hero{min-height:auto;overflow:hidden}
  .hero-grid{display:block;min-height:0;padding:54px 0 38px;width:100%}
  .hero-copy{width:100%;max-width:100%}
  .hero-copy h1{font-size:clamp(42px,12.5vw,54px);line-height:.98;letter-spacing:-.035em;max-width:100%;margin-bottom:24px;overflow-wrap:normal;word-break:normal}
  .hero-text{width:100%;max-width:100%;font-size:17px;line-height:1.55;margin-bottom:26px}
  .hero-actions{gap:14px;align-items:flex-start}
  .hero-actions .button{width:auto;max-width:100%}
  .hero-actions .text-link{display:inline-block;padding:8px 0}
  .hero-books{position:static;display:flex;height:auto;width:100%;gap:12px;overflow-x:auto;overflow-y:hidden;padding:26px 2px 10px;margin-top:6px;scrollbar-width:none}
  .hero-books::-webkit-scrollbar{display:none}
  .hero-book{position:static!important;flex:0 0 118px;width:118px!important;max-height:178px;object-fit:cover;transform:none!important;border-radius:4px}
  .orbit{display:none}
  .hero-bottom{height:46px;padding:0 16px;text-align:center;font-size:9px}

  .catalog-intro{padding:72px 0 26px}
  .catalog-intro h2{font-size:42px}
  .catalog-lead{font-size:17px;line-height:1.55;margin:20px 0 24px}
  .category-tabs{position:sticky;top:68px;z-index:30;display:flex;flex-wrap:nowrap;gap:8px;width:100%;overflow-x:auto;overflow-y:hidden;padding:10px 0 12px;margin-top:22px;background:rgba(251,248,241,.98);scrollbar-width:none}
  .category-tabs::-webkit-scrollbar{display:none}
  .category-tab{flex:0 0 auto;width:auto;max-width:78vw;white-space:nowrap;text-align:center;border-radius:999px;padding:11px 14px;font-size:11px}

  .category-section{padding:58px 0}
  .category-heading{display:block;margin-bottom:32px}
  .category-heading h2{font-size:39px;line-height:1.03;margin-bottom:18px}
  .category-heading>p{font-size:16px;line-height:1.55}
  .category-heading .kicker{font-size:10px;line-height:1.4;letter-spacing:.13em}

  .book-grid{grid-template-columns:1fr!important;gap:20px}
  .book-card{width:100%;max-width:100%}
  .book-cover-wrap{height:310px;padding:22px}
  .book-info{padding:24px}
  .book-info h3{font-size:29px}
  .book-links{display:grid;grid-template-columns:1fr;gap:10px}
  .book-links .button{width:100%;text-align:center}

  .free-stories .story-grid{grid-template-columns:1fr!important;gap:20px}
  .free-stories .story-card>.story-main-link>img,.free-stories .story-art{height:300px}
  .free-stories .story-info{padding:24px 24px 18px}
  .free-stories .story-info h3{font-size:28px}
  .story-actions{display:grid;grid-template-columns:1fr;gap:10px;padding:0 24px 26px}
  .story-actions .button{width:100%}

  .how-read{padding:58px 0}
  .how-grid{grid-template-columns:1fr!important}
  .how-grid>div{padding:27px}
  .author{padding:70px 0}
  .author-grid{grid-template-columns:1fr;gap:34px}
  .author-mark{height:250px}
  .author-copy h2{font-size:42px}
  .author-copy blockquote{font-size:23px}
  .contact{padding:65px 0}
  .contact-box{grid-template-columns:1fr;gap:30px}
  .contact h2{font-size:40px}
  .contact-links{justify-content:flex-start}
  .footer-grid{flex-direction:column;gap:9px}
}

@media(max-width:390px){
  .shell,.nav-shell{padding-left:16px;padding-right:16px}
  .hero-copy h1{font-size:41px}
  .hero-book{flex-basis:108px;width:108px!important;max-height:162px}
  .category-heading h2{font-size:36px}
}


/* ===== Abas principais visíveis desde o topo ===== */
.category-nav{
  position:sticky;
  top:78px;
  z-index:45;
  width:100%;
  background:rgba(251,248,241,.98);
  backdrop-filter:blur(12px);
  border-bottom:1px solid rgba(17,19,23,.12);
}
.category-nav .category-tabs{
  position:static!important;
  top:auto!important;
  margin:0!important;
  padding:10px 0 11px!important;
  background:transparent!important;
  border-bottom:0!important;
}
.tab-panel{scroll-margin-top:145px}

@media(max-width:720px){
  .category-nav{top:68px}
  .category-nav .shell{padding-left:12px;padding-right:12px}
  .category-nav .category-tabs{
    display:flex!important;
    flex-wrap:nowrap!important;
    gap:8px!important;
    overflow-x:auto!important;
    overflow-y:hidden!important;
    width:100%!important;
    padding:8px 0 9px!important;
    scrollbar-width:none;
  }
  .category-nav .category-tabs::-webkit-scrollbar{display:none}
  .category-nav .category-tab{
    flex:0 0 auto!important;
    width:auto!important;
    max-width:none!important;
    white-space:nowrap!important;
    border-radius:999px!important;
    padding:10px 13px!important;
    font-size:10.5px!important;
    text-align:center!important;
  }
  .tab-panel{scroll-margin-top:125px}
  .catalog-intro{padding-top:54px}
}


/* ===== Navegação direta por abas: conteúdo imediato ===== */
body.category-mode .hero,
body.category-mode .catalog-intro,
body.category-mode .how-read{
  display:none!important;
}
body.category-mode main{
  padding-top:0!important;
}
body.category-mode .tab-panel{
  margin-top:0!important;
  padding-top:48px!important;
}
.category-tab.home-tab{
  background:#fff;
  color:#14213d;
  border:1px solid rgba(20,33,61,.45);
}
.category-tab.home-tab.active{
  background:#14213d;
  color:#fff;
  border-color:#14213d;
}
@media(max-width:720px){
  body.category-mode .tab-panel{
    padding-top:28px!important;
  }
}


/* ===== Perfil e descrição do autor ===== */
.brand-photo{
  width:44px;
  height:44px;
  flex:0 0 44px;
  border-radius:50%;
  overflow:hidden;
  border:2px solid #14213d;
  background:#fff;
}
.brand-photo img{
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center 30%;
}
.author-photo-wrap{
  position:relative;
  background:#14213d;
  min-height:520px;
  overflow:hidden;
}
.author-photo{
  width:100%;
  height:100%;
  min-height:520px;
  object-fit:cover;
  object-position:center 28%;
  display:block;
}
.author-photo-caption{
  position:absolute;
  left:0;
  right:0;
  bottom:0;
  padding:28px 30px;
  color:#fff;
  background:linear-gradient(transparent,rgba(5,10,22,.88));
}
.author-photo-caption strong{
  display:block;
  font-family:Georgia,serif;
  font-size:28px;
}
.author-photo-caption span{
  display:block;
  margin-top:7px;
  font-size:11px;
  letter-spacing:.08em;
  text-transform:uppercase;
}
.author-role{
  font-family:Georgia,serif;
  font-size:20px!important;
  line-height:1.5!important;
  color:#70511f;
  margin-top:20px!important;
}
.author-areas{
  display:flex;
  flex-wrap:wrap;
  gap:9px;
  margin-top:28px;
}
.author-areas span{
  display:inline-flex;
  padding:9px 13px;
  border:1px solid rgba(20,33,61,.24);
  border-radius:999px;
  font-size:11px;
  font-weight:700;
  background:#fff;
}
@media(max-width:900px){
  .author-photo-wrap{min-height:460px}
  .author-photo{min-height:460px}
}
@media(max-width:560px){
  .brand-photo{
    width:42px;
    height:42px;
    flex-basis:42px;
  }
  .author-photo-wrap{
    min-height:420px;
    border-radius:0;
  }
  .author-photo{min-height:420px}
  .author-photo-caption{padding:22px}
  .author-photo-caption strong{font-size:24px}
  .author-role{font-size:18px!important}
}


/* ===== Correção final da foto do autor ===== */
.author-photo-wrap{
  min-height:0!important;
  height:auto!important;
  background:#14213d;
}
.author-photo{
  width:100%!important;
  height:auto!important;
  min-height:0!important;
  max-height:none!important;
  object-fit:contain!important;
  object-position:center top!important;
  display:block!important;
}
@media(max-width:900px){
  .author-photo-wrap,
  .author-photo{
    min-height:0!important;
    height:auto!important;
  }
}
@media(max-width:560px){
  .author-photo-wrap{
    min-height:0!important;
    height:auto!important;
  }
  .author-photo{
    min-height:0!important;
    height:auto!important;
    object-fit:contain!important;
    object-position:center top!important;
  }
}

/* ===== Foto do autor: arquivo original completo, sem recorte ===== */
.author-photo-wrap{
  min-height:0!important;
  height:auto!important;
  overflow:visible!important;
  background:transparent!important;
}
.author-photo{
  display:block!important;
  width:100%!important;
  height:auto!important;
  min-height:0!important;
  max-height:none!important;
  object-fit:contain!important;
  object-position:center center!important;
}
@media(max-width:560px){
  .author-photo-wrap,
  .author-photo{
    height:auto!important;
    min-height:0!important;
    max-height:none!important;
  }
}

/* ajuste fino do avatar do cabeçalho */
.brand-photo img{object-position:center center!important; object-fit:cover!important;}
