/* Blog do Ferri — tema editorial: papel quente, tinta escura, terracota. */
:root {
  --bg: #FBF8F3; --surface: #FFFFFF; --surface-2: #F3EDE4; --ink: #1C1815; --body: #2F2924; --muted: #6E655C; --line: #E6DDD0; --line-strong: #1C1815;
  --accent: #B4532A; --accent-deep: #8F3E1C; --accent-soft: #F5E5D8; --on-accent: #FFFFFF; --ok: #2F7A57; --danger: #B3261E; --mark: #FBE7B5;
  --radius: 14px; --radius-sm: 8px; --shadow: 0 1px 2px rgba(28,24,21,.06), 0 8px 28px rgba(28,24,21,.07);
  --serif: "EB Garamond", Georgia, "Times New Roman", serif; --sans: "Work Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --text: "Nunito Sans", "Avenir Next", Avenir, system-ui, sans-serif; --didone: "Bodoni Moda", "Playfair Display", Georgia, serif;
  --read: 1.14rem; color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #14110F; --surface: #1C1815; --surface-2: #231E1A; --ink: #F3ECE2; --body: #DDD4C8; --muted: #A1968A; --line: #2F2924; --line-strong: #F3ECE2;
  --accent: #E58A5B; --accent-deep: #F2A27A; --accent-soft: #2B1D15; --on-accent: #1C1008; --mark: #4B3B14; --shadow: 0 1px 2px rgba(0,0,0,.4), 0 10px 30px rgba(0,0,0,.35);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--body); font: 400 1rem/1.6 var(--text); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, video, iframe { max-width: 100%; }
img { display: block; height: auto; }
a { color: inherit; text-decoration-color: color-mix(in srgb, var(--accent) 50%, transparent); text-underline-offset: .2em; }
a:hover { color: var(--accent); }
h1, h2, h3, h4 { font-family: var(--serif); color: var(--ink); line-height: 1.1; margin: 0; letter-spacing: -.01em; font-weight: 600; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--bg); padding: 8px 14px; border-radius: 8px; z-index: 200; }
.skip:focus { left: 8px; }
.wrap { width: min(1180px, 100% - 40px); margin-inline: auto; }
.narrow { width: min(760px, 100% - 40px); margin-inline: auto; }
.ico { width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; vertical-align: -.2em; }
.kicker { font: 700 .74rem/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.muted { color: var(--muted); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; padding: .72em 1.25em; border-radius: 999px; border: 1.5px solid var(--ink); background: transparent; color: var(--ink); font: 700 .92rem/1 var(--sans); cursor: pointer; text-decoration: none; transition: transform .15s, background .15s, color .15s, border-color .15s; }
.btn:hover { background: var(--ink); color: var(--bg); transform: translateY(-1px); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn.primary:hover { background: var(--accent-deep); border-color: var(--accent-deep); color: var(--on-accent); }
.btn.sm { padding: .55em 1em; font-size: .84rem; }
.btn.ghost { border-color: var(--line); }
.chip { display: inline-flex; align-items: center; padding: .38em .8em; border-radius: 999px; background: var(--surface-2); color: var(--body); font: 600 .8rem/1 var(--sans); text-decoration: none; border: 1px solid transparent; }
a.chip:hover { border-color: var(--accent); color: var(--accent); }

/* progresso de leitura */
.progress { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 120; background: transparent; pointer-events: none; }
.progress i { display: block; height: 100%; width: 0; background: var(--accent); }

/* cabeçalho */
.top { position: sticky; top: 0; z-index: 100; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid var(--line); }
.top-in { display: flex; align-items: center; gap: 18px; min-height: 66px; }
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; color: var(--ink); flex: none; }
.brand:hover { color: var(--ink); }
.brand svg { width: 36px; height: 36px; flex: none; }
.brand b { font: 800 1.28rem/1 var(--serif); letter-spacing: -.03em; display: block; }
.brand small { display: block; font: 600 .66rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }
.nav { display: flex; gap: 2px; margin-left: auto; align-items: center; }
.nav a { padding: .55em .8em; border-radius: 999px; font: 600 .9rem/1 var(--sans); color: var(--body); text-decoration: none; white-space: nowrap; }
.nav a:hover, .nav a.on { background: var(--surface-2); color: var(--ink); }
.nav a.on { box-shadow: inset 0 -2px 0 var(--accent); border-radius: 0; background: transparent; }
.tools { display: flex; gap: 6px; align-items: center; }
.icon-btn { width: 40px; height: 40px; border-radius: 50%; border: 0; background: transparent; color: var(--ink); display: grid; place-items: center; cursor: pointer; font-size: 1.1rem; }
.icon-btn:hover { background: var(--surface-2); }
.theme-btn .moon { display: none; }
:root[data-theme="dark"] .theme-btn .sun { display: none; }
:root[data-theme="dark"] .theme-btn .moon { display: block; }
.menu-btn { display: none; }
.searchbar { display: none; border-top: 1px solid var(--line); background: var(--bg); }
.searchbar.open { display: block; }
.searchbar form { display: flex; gap: 10px; padding: 14px 0; }
.searchbar input { flex: 1; font: 500 1.1rem var(--serif); padding: .7em 1em; border-radius: 999px; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); }
.drawer { position: fixed; inset: 0; z-index: 150; display: none; }
.drawer.open { display: block; }
.drawer-veil { position: absolute; inset: 0; background: rgba(20,17,15,.55); }
.drawer-panel { position: absolute; right: 0; top: 0; bottom: 0; width: min(340px, 88vw); background: var(--bg); padding: 22px; display: flex; flex-direction: column; gap: 4px; overflow: auto; box-shadow: -10px 0 40px rgba(0,0,0,.25); }
.drawer-panel a { padding: .85em .4em; font: 700 1.15rem var(--serif); color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line); }

/* rodapé */
.foot { margin-top: 80px; background: var(--ink); color: #D8CFC3; padding: 56px 0 28px; }
:root[data-theme="dark"] .foot { background: #0E0C0B; }
.foot a { color: #D8CFC3; text-decoration: none; }
.foot a:hover { color: #fff; text-decoration: underline; }
.foot-grid { display: grid; gap: 36px; grid-template-columns: 1.4fr 1fr 1fr; }
.foot h4 { font: 700 .74rem/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: #A89B8C; margin-bottom: 14px; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.foot .brand b, .foot .brand { color: #fff; }
.foot-bottom { margin-top: 38px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.12); display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; font-size: .85rem; color: #A89B8C; }
.social { display: flex; gap: 8px; margin-top: 16px; }
.social a { width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(255,255,255,.2); display: grid; place-items: center; }
.social a:hover { background: var(--accent); border-color: var(--accent); color: #fff; }

/* seções */
.sec { padding-top: 64px; }
.sec-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 26px; flex-wrap: wrap; }
.sec-head h2 { font-size: clamp(1.7rem, 3.2vw, 2.3rem); }
.sec-head a.more { font: 700 .9rem var(--sans); text-decoration: none; color: var(--accent); }
.sec-head a.more:hover { text-decoration: underline; }

/* cartões */
.card { display: flex; flex-direction: column; text-decoration: none; color: inherit; border-radius: var(--radius); overflow: hidden; background: var(--surface); border: 1px solid var(--line); transition: transform .2s, box-shadow .2s, border-color .2s; height: 100%; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: transparent; color: inherit; }
.card .pic { aspect-ratio: 16/10; background: var(--surface-2); overflow: hidden; position: relative; }
.card .pic img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.card:hover .pic img { transform: scale(1.04); }
.card .pic.empty { display: grid; place-items: center; background: linear-gradient(135deg, var(--accent-soft), var(--surface-2)); }
.card .pic.empty span { font: 900 4rem/1 var(--serif); color: color-mix(in srgb, var(--accent) 35%, transparent); }
.card .in { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 9px; flex: 1; }
.card h3 { font-size: 1.28rem; line-height: 1.2; }
.card p { margin: 0; color: var(--muted); font-size: .95rem; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.meta { font: 500 .8rem/1.3 var(--sans); color: var(--muted); display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: center; margin-top: auto; }
.meta i { width: 3px; height: 3px; border-radius: 50%; background: currentColor; opacity: .5; }
.grid { display: grid; gap: 22px; grid-template-columns: repeat(3, 1fr); }
.grid.two { grid-template-columns: repeat(2, 1fr); }

/* home: manchete */
.intro { padding: 54px 0 8px; }
.intro p.lead { font: 400 clamp(1.25rem, 2.6vw, 1.7rem)/1.4 var(--serif); color: var(--ink); max-width: 38ch; margin: 14px 0 0; }
.intro h1 { font-size: clamp(2.2rem, 5.4vw, 3.6rem); max-width: 18ch; margin-top: 12px; letter-spacing: -.03em; }
.intro h1 em { font-style: italic; color: var(--accent); font-weight: 600; }
.cover-grid { display: grid; gap: 22px; grid-template-columns: 1.55fr 1fr; margin-top: 34px; }
.hero { position: relative; display: block; border-radius: 22px; overflow: hidden; min-height: 520px; background: #231E1A; color: #fff; text-decoration: none; isolation: isolate; }
.hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1s; }
.hero:hover img { transform: scale(1.04); }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(20,17,15,.05) 18%, rgba(20,17,15,.88) 100%); }
.hero .in { position: absolute; inset: auto 0 0 0; padding: clamp(22px, 4vw, 40px); }
.hero .tag { display: inline-block; background: var(--accent); color: var(--on-accent); font: 700 .72rem/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; padding: .5em .85em; border-radius: 999px; margin-bottom: 16px; }
.hero h2 { color: #fff; font-size: clamp(1.9rem, 3.8vw, 3rem); max-width: 20ch; letter-spacing: -.025em; }
.hero p { color: rgba(255,255,255,.86); margin: 14px 0 0; max-width: 56ch; font-size: 1.05rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.hero .meta { color: rgba(255,255,255,.75); margin-top: 16px; }
.hero.no-img { background: linear-gradient(135deg, #3B241A, #1C1815); }
.side { display: grid; gap: 22px; grid-template-rows: 1fr 1fr; }
.side .card { flex-direction: row; }
.side .card .pic { aspect-ratio: auto; width: 42%; flex: none; }
.side .card h3 { font-size: 1.15rem; }
.strip { display: grid; gap: 22px; grid-template-columns: 1fr 1fr; margin-top: 22px; }
.strip .card { flex-direction: row; }
.strip .card .pic { aspect-ratio: auto; width: 34%; flex: none; }
.strip .card h3 { font-size: 1.12rem; }

/* vitrine de livros */
.shelf { margin-top: 64px; background: #17120F; color: #EBDFD0; border-radius: 28px; padding: clamp(28px, 5vw, 56px); position: relative; overflow: hidden; }
.shelf::before { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at 15% 0%, rgba(229,138,91,.22), transparent 55%), radial-gradient(ellipse at 90% 100%, rgba(120,150,200,.15), transparent 50%); pointer-events: none; }
.shelf h2 { color: #fff; font-size: clamp(1.8rem, 3.6vw, 2.7rem); }
.shelf .kicker { color: #E9A47E; }
.shelf p.sub { color: #BFB2A2; max-width: 52ch; margin: 12px 0 0; }
.books { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(14px, 2.4vw, 28px); margin-top: 38px; position: relative; }
.book { text-decoration: none; color: inherit; display: block; perspective: 900px; }
.book .cv { aspect-ratio: 2/3; border-radius: 6px 10px 10px 6px; overflow: hidden; background: #2A231E; box-shadow: -2px 2px 0 rgba(255,255,255,.08), 14px 18px 36px rgba(0,0,0,.55); transform: rotateY(0deg); transition: transform .45s cubic-bezier(.2,.8,.2,1), box-shadow .45s; transform-origin: left center; position: relative; }
.book .cv::after { content: ""; position: absolute; inset: 0 auto 0 0; width: 9px; background: linear-gradient(90deg, rgba(0,0,0,.35), rgba(255,255,255,.12) 40%, transparent); }
.book:hover .cv { transform: rotateY(-14deg) translateY(-6px); box-shadow: -2px 2px 0 rgba(255,255,255,.1), 22px 26px 44px rgba(0,0,0,.6); }
.book .cv img { width: 100%; height: 100%; object-fit: cover; }
.book b { display: block; margin-top: 14px; font: 700 1.1rem/1.2 var(--serif); color: #fff; }
.book small { display: block; color: #A99B8B; margin-top: 4px; font-size: .82rem; }
.book .go { display: inline-block; margin-top: 8px; font: 700 .78rem var(--sans); letter-spacing: .08em; text-transform: uppercase; color: #E9A47E; }

/* categorias na home */
.cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; }
.col h3 { font-size: 1.5rem; padding-bottom: 12px; border-bottom: 2px solid var(--ink); margin-bottom: 4px; display: flex; justify-content: space-between; align-items: baseline; }
.col h3 a { font: 700 .8rem var(--sans); color: var(--accent); text-decoration: none; }
.mini { display: grid; grid-template-columns: 1fr 88px; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: inherit; }
.mini:hover h4 { color: var(--accent); }
.mini h4 { font-size: 1.05rem; line-height: 1.25; }
.mini .im { width: 88px; height: 66px; border-radius: 8px; overflow: hidden; background: var(--surface-2); }
.mini .im img { width: 100%; height: 100%; object-fit: cover; }
.mini .meta { margin-top: 6px; }
.rank { list-style: none; margin: 0; padding: 0; counter-reset: r; display: grid; gap: 0; }
.rank li { counter-increment: r; border-bottom: 1px solid var(--line); }
.rank a { display: grid; grid-template-columns: 52px 1fr; gap: 12px; padding: 16px 0; text-decoration: none; align-items: baseline; }
.rank a::before { content: counter(r, decimal-leading-zero); font: 900 1.9rem/1 var(--serif); color: color-mix(in srgb, var(--accent) 60%, transparent); }
.rank a:hover { color: var(--accent); }
.rank b { font: 700 1.1rem/1.25 var(--serif); color: var(--ink); display: block; }
.rank a:hover b { color: var(--accent); }
.two-col { display: grid; grid-template-columns: 1.7fr 1fr; gap: 54px; }

/* newsletter */
.nl { margin-top: 72px; background: var(--accent-soft); border-radius: 26px; padding: clamp(28px, 5vw, 56px); display: grid; grid-template-columns: 1.1fr 1fr; gap: 32px; align-items: center; position: relative; overflow: hidden; }
.nl h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); }
.nl p { color: var(--body); margin: 10px 0 0; }
.nl form { display: grid; gap: 10px; }
.nl .row { display: flex; gap: 10px; }
.nl input[type=email], .nl input[type=text] { flex: 1; min-width: 0; font: 500 1rem var(--sans); padding: .85em 1.1em; border-radius: 999px; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); }
.nl small { color: var(--muted); }
.flash { padding: 12px 16px; border-radius: 12px; background: color-mix(in srgb, var(--ok) 14%, var(--surface)); color: var(--ok); font-weight: 600; font-size: .92rem; border: 1px solid color-mix(in srgb, var(--ok) 30%, transparent); }
.errs { color: var(--danger); font-size: .88rem; margin: 4px 0 0; }
.hp { position: absolute; left: -5000px; }

/* listas */
.page-head { padding: 56px 0 26px; border-bottom: 1px solid var(--line); margin-bottom: 34px; }
.page-head h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); margin-top: 10px; }
.page-head p { color: var(--muted); max-width: 60ch; font-size: 1.1rem; margin: 12px 0 0; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 26px; align-items: center; }
.filters .sp { margin-left: auto; font: 600 .85rem var(--sans); color: var(--muted); }
.filters .chip.on { background: var(--ink); color: var(--bg); }
.pager { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; margin: 46px 0 0; }
.pager a, .pager span { min-width: 42px; height: 42px; padding: 0 12px; display: grid; place-items: center; border-radius: 999px; border: 1px solid var(--line); text-decoration: none; font: 700 .9rem var(--sans); }
.pager .cur { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.pager a:hover { border-color: var(--accent); color: var(--accent); }
.pager .dis { opacity: .4; }
.year { margin-top: 38px; }
.year h2 { font-size: 2.2rem; color: var(--accent); margin-bottom: 8px; }
.year a { display: grid; grid-template-columns: 96px 1fr auto; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); text-decoration: none; align-items: baseline; }
.year a:hover b { color: var(--accent); }
.year time { font: 600 .85rem var(--sans); color: var(--muted); }
.year b { font: 700 1.1rem var(--serif); color: var(--ink); }
.empty-state { padding: 60px 0; text-align: center; color: var(--muted); }

/* post */
.post-head { padding: 56px 0 8px; text-align: center; }
.post-head h1 { font-size: clamp(2.1rem, 5.4vw, 3.7rem); margin: 16px auto 0; max-width: 20ch; letter-spacing: -.028em; text-wrap: balance; }
.post-head .lead { font: 400 clamp(1.1rem, 2.2vw, 1.35rem)/1.5 var(--serif); color: var(--muted); max-width: 46ch; margin: 18px auto 0; font-style: italic; }
.byline { display: flex; gap: 14px; align-items: center; justify-content: center; margin-top: 24px; flex-wrap: wrap; font: 500 .88rem var(--sans); color: var(--muted); }
.byline img, .avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; background: var(--surface-2); }
.byline b { color: var(--ink); font-weight: 700; }
.cover-fig { margin: 34px auto 0; width: min(1040px, 100% - 40px); }
.cover-fig img { width: 100%; border-radius: 20px; max-height: 620px; object-fit: cover; box-shadow: var(--shadow); }
.cover-fig figcaption { font-size: .8rem; color: var(--muted); margin-top: 8px; text-align: center; }
.post-layout { display: grid; grid-template-columns: 76px minmax(0, 700px) 1fr; gap: 0 36px; width: min(1040px, 100% - 40px); margin: 44px auto 0; }
.rail { position: sticky; top: 96px; align-self: start; display: grid; gap: 12px; justify-items: center; width: 46px; }
.rail button, .rail a { width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--ink); display: grid; place-items: center; cursor: pointer; text-decoration: none; position: relative; font: 700 .7rem var(--sans); }
.rail button:hover, .rail a:hover { border-color: var(--accent); color: var(--accent); }
.rail .liked { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.rail small { position: absolute; top: -5px; right: -5px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; display: grid; place-items: center; font: 700 .68rem/1 var(--sans); background: var(--ink); color: var(--bg); border: 2px solid var(--bg); }
.rail small[hidden] { display: none; }
.rail .ico { width: 20px; height: 20px; }
.prose { font: 400 var(--read)/1.82 var(--text); color: var(--body); overflow-wrap: break-word; hyphens: auto; }
.prose.dropcap > p:first-of-type::first-letter { float: left; font: 700 4.4em/.8 var(--didone); padding: .05em .12em 0 0; color: var(--accent); }
.prose p { margin: 0 0 1.25em; }
.prose h2 { font-size: 1.75rem; margin: 2em 0 .6em; }
.prose h3 { font-size: 1.4rem; margin: 1.8em 0 .5em; }
.prose h4 { font-size: 1.15rem; margin: 1.6em 0 .4em; }
.prose a { color: var(--accent-deep); text-decoration: underline; text-decoration-thickness: 1.5px; }
.prose blockquote { margin: 1.8em 0; padding: .2em 0 .2em 1.4em; border-left: 4px solid var(--accent); font: italic 400 1.35em/1.5 var(--serif); color: var(--ink); }
.prose blockquote p { margin: 0 0 .7em; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.25em; }
.prose li { margin-bottom: .4em; }
.prose figure { margin: 2em -4% 2em; }
.prose figure img { width: 100%; border-radius: 14px; }
.prose figcaption { font: 500 .82rem var(--sans); color: var(--muted); margin-top: 8px; text-align: center; }
.prose hr { border: 0; text-align: center; margin: 2.4em 0; }
.prose hr::after { content: "◆ ◆ ◆"; letter-spacing: .6em; color: var(--accent); font-size: .7rem; }
.prose strong { color: var(--ink); }
.prose p.credit { font: 500 .82rem/1.4 var(--sans); color: var(--muted); text-align: center; margin-top: -1.2em; }
.prose.plain > p:first-of-type::first-letter { all: unset; }
.reader-tools { display: flex; gap: 6px; flex-wrap: wrap; margin: 0 0 26px; align-items: center; font: 600 .82rem var(--sans); color: var(--muted); }
.reader-tools button { padding: .5em .9em; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: 700 .8rem var(--sans); cursor: pointer; }
.reader-tools button:hover { border-color: var(--accent); color: var(--accent); }
.tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 34px; }
.end { margin-top: 36px; padding-top: 28px; border-top: 1px solid var(--line); }
.author-box { display: grid; grid-template-columns: 84px 1fr; gap: 20px; padding: 26px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); margin-top: 34px; align-items: center; }
.author-box img { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; }
.author-box h4 { font-size: 1.2rem; }
.author-box p { margin: 6px 0 12px; color: var(--muted); font-size: .96rem; }
.book-note { display: grid; grid-template-columns: 96px 1fr; gap: 20px; padding: 22px; border-radius: 20px; margin-top: 30px; align-items: center; text-decoration: none; color: inherit; background: #17120F; color: #EBDFD0; }
.book-note:hover { color: #fff; }
.book-note img { width: 96px; border-radius: 4px 8px 8px 4px; box-shadow: 8px 10px 22px rgba(0,0,0,.5); }
.book-note b { font: 800 1.25rem var(--serif); color: #fff; display: block; margin: 4px 0 6px; }
.book-note span.k { font: 700 .72rem var(--sans); letter-spacing: .12em; text-transform: uppercase; color: #E9A47E; }
.book-note small { color: #BFB2A2; }
.pn { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 34px; }
.pn a { display: block; padding: 18px 20px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); text-decoration: none; }
.pn a:hover { border-color: var(--accent); }
.pn small { display: block; font: 700 .72rem var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.pn b { font: 700 1.05rem/1.25 var(--serif); color: var(--ink); display: block; margin-top: 6px; }
.pn a:last-child { text-align: right; }

/* comentários */
.cm { margin-top: 56px; }
.cm h2 { font-size: 1.9rem; margin-bottom: 20px; }
.cm-item { display: grid; grid-template-columns: 44px 1fr; gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.cm-av { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; color: #fff; font: 800 1rem var(--serif); }
.cm-who { font: 700 .95rem var(--sans); color: var(--ink); display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.cm-who small { font-weight: 500; color: var(--muted); }
.cm-who em { font: 700 .66rem var(--sans); letter-spacing: .08em; text-transform: uppercase; background: var(--accent); color: var(--on-accent); padding: .3em .6em; border-radius: 999px; font-style: normal; }
.cm-body { margin-top: 6px; white-space: pre-line; overflow-wrap: anywhere; }
.cm-reply { margin: 8px 0 0 58px; }
.cm-form { margin-top: 26px; padding: 24px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); display: grid; gap: 12px; }
.cm-form .two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field label { display: block; font: 700 .8rem var(--sans); margin-bottom: 6px; color: var(--ink); }
.field input, .field textarea, .field select { width: 100%; font: 500 1rem var(--sans); padding: .8em 1em; border-radius: 12px; border: 1.5px solid var(--line); background: var(--bg); color: var(--ink); }
.field textarea { min-height: 120px; resize: vertical; line-height: 1.5; }
.field input:focus, .field textarea:focus { border-color: var(--accent); outline: none; }

/* páginas internas */
.about { display: grid; grid-template-columns: 380px 1fr; gap: 56px; padding-top: 56px; align-items: start; }
.about .photo { position: sticky; top: 100px; }
.about .photo img { width: 100%; border-radius: 26px; box-shadow: var(--shadow); aspect-ratio: 1; object-fit: cover; }
.about .photo .social { margin-top: 18px; }
.about .photo .social a { border-color: var(--line); color: var(--ink); }
.about .prose > p:first-of-type::first-letter { all: unset; }
.about h1 { font-size: clamp(2.2rem, 4.6vw, 3.2rem); margin: 10px 0 22px; }
.works-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 28px; }
.work { text-decoration: none; color: inherit; display: flex; flex-direction: column; gap: 14px; }
.work .cv { aspect-ratio: 2/3; border-radius: 6px 12px 12px 6px; overflow: hidden; box-shadow: -2px 2px 0 rgba(0,0,0,.05), 12px 16px 34px rgba(28,24,21,.25); transition: transform .35s, box-shadow .35s; background: var(--surface-2); }
.work:hover .cv { transform: translateY(-6px) rotate(-.6deg); box-shadow: 18px 22px 44px rgba(28,24,21,.32); }
.work .cv img { width: 100%; height: 100%; object-fit: cover; }
.work h3 { font-size: 1.3rem; }
.work p { margin: 0; color: var(--muted); font-size: .94rem; }
.work .k { font: 700 .72rem var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.vgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 24px; }
.vid { border-radius: 18px; overflow: hidden; background: var(--surface); border: 1px solid var(--line); }
.vid .frame { aspect-ratio: 16/9; background: #000; position: relative; }
.vid .frame iframe, .vid .frame img { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: cover; }
.vid .frame.sp { aspect-ratio: auto; height: 352px; }
.vid .frame button { position: absolute; inset: 0; width: 100%; border: 0; background: transparent; cursor: pointer; display: grid; place-items: center; }
.vid .frame button::after { content: ""; width: 68px; height: 68px; border-radius: 50%; background: rgba(0,0,0,.65) center/26px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M8 5v14l11-7z'/%3E%3C/svg%3E"); border: 2px solid #fff; transition: transform .2s, background .2s; }
.vid .frame button:hover::after { transform: scale(1.1); background: var(--accent); }
.vid .in { padding: 16px 18px 20px; }
.vid h3 { font-size: 1.15rem; }
.vid p { margin: 6px 0 0; color: var(--muted); font-size: .92rem; }
.contact { display: grid; grid-template-columns: 1fr 1.2fr; gap: 56px; padding-top: 56px; }
.contact form { display: grid; gap: 14px; }

/* cookie/aviso e utilidades */
.toast { position: fixed; bottom: 18px; left: 50%; transform: translateX(-50%); background: var(--ink); color: var(--bg); padding: .7em 1.2em; border-radius: 999px; font: 600 .9rem var(--sans); z-index: 300; opacity: 0; transition: opacity .25s; pointer-events: none; }
.toast.on { opacity: 1; }
.ad { margin: 34px auto; text-align: center; }
.ad small { display: block; font: 600 .62rem var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.ad img { margin: 0 auto; border-radius: 10px; }
.adpop { position: fixed; inset: 0; z-index: 250; display: none; place-items: center; background: rgba(20,17,15,.6); padding: 18px; }
.adpop.open { display: grid; }
.adpop .box { position: relative; max-width: 640px; width: 100%; background: var(--surface); border-radius: 18px; padding: 14px; box-shadow: var(--shadow); }
.adpop .x { position: absolute; top: -14px; right: -14px; width: 38px; height: 38px; border-radius: 50%; border: 0; background: var(--ink); color: var(--bg); cursor: pointer; font-size: 1.2rem; }
.adpop small { display: block; text-align: center; font: 600 .62rem var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.err-page { text-align: center; padding: 110px 0 40px; }
.err-page h1 { font-size: clamp(4rem, 14vw, 8rem); color: var(--accent); }

@media (max-width: 1020px) {
  .cover-grid { grid-template-columns: 1fr; }
  .hero { min-height: 440px; }
  .side { grid-template-rows: none; grid-template-columns: 1fr 1fr; }
  .side .card { flex-direction: column; } .side .card .pic { width: 100%; aspect-ratio: 16/10; }
  .books { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .cols, .two-col { grid-template-columns: 1fr; gap: 40px; }
  .nl { grid-template-columns: 1fr; }
  .about, .contact { grid-template-columns: 1fr; gap: 32px; }
  .about .photo { position: static; max-width: 380px; }
  .post-layout { grid-template-columns: minmax(0, 1fr); }
  .rail { position: fixed; z-index: 90; bottom: 12px; left: 50%; transform: translateX(-50%); display: flex; background: var(--surface); padding: 6px; border-radius: 999px; border: 1px solid var(--line); box-shadow: var(--shadow); top: auto; }
  .rail small { display: none; }
  .rail button, .rail a { width: 42px; height: 42px; border: 0; }
  .prose figure { margin-inline: 0; }
}
@media (max-width: 860px) {
  .nav { display: none; } .menu-btn { display: grid; } .tools { margin-left: auto; }
  .foot-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  :root { --read: 1.1rem; }
  .grid, .grid.two, .side, .strip { grid-template-columns: 1fr; }
  .side .card, .strip .card { flex-direction: column; } .side .card .pic, .strip .card .pic { width: 100%; aspect-ratio: 16/10; }
  .books { gap: 14px; }
  .hero { min-height: 400px; border-radius: 18px; }
  .nl .row { flex-direction: column; }
  .pn, .cm-form .two { grid-template-columns: 1fr; }
  .pn a:last-child { text-align: left; }
  .author-box, .book-note { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .year a { grid-template-columns: 1fr; gap: 2px; }
  .brand small { display: none; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
@media print { .top, .foot, .rail, .nl, .cm, .progress, .searchbar, .reader-tools, .ad, .adpop { display: none !important; } body { background: #fff; color: #000; } .prose { font-size: 12pt; } }

/* imagem para redes (diálogo) */
.artdlg { border: 0; padding: 0; background: transparent; width: min(94vw, 520px); max-height: 94dvh; color: var(--ink); }
.artdlg::backdrop { background: rgba(20,17,15,.72); backdrop-filter: blur(2px); }
.art-in { background: var(--bg); border: 2px solid var(--ink); border-radius: 18px; padding: 16px; display: grid; gap: 12px; box-shadow: 8px 8px 0 var(--accent); }
.art-head { display: flex; justify-content: space-between; align-items: center; font: 800 1.1rem var(--serif); }
.art-x { width: 38px; height: 38px; border-radius: 50%; border: 0; display: grid; place-items: center; cursor: pointer; background: var(--surface-2); color: var(--ink); }
.art-x:hover { background: var(--accent); color: var(--on-accent); }
.art-tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.art-tabs button { border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 6px 12px; font: 700 .82rem var(--sans); cursor: pointer; color: var(--ink); }
.art-tabs button[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.art-stage { display: grid; place-items: center; background: var(--surface-2); border-radius: 12px; padding: 10px; }
.art-stage canvas { max-width: 100%; max-height: 52dvh; width: auto; height: auto; border-radius: 6px; display: block; }
.art-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.art-note { margin: 0; font-size: .8rem; color: var(--muted); }
.prose img { border-radius: 14px; margin-inline: auto; }

/* tipografia do blog antigo: EB Garamond nos títulos, Nunito Sans (no lugar da Avenir) no texto, Work Sans no menu, Bodoni Moda nos detalhes */
h1, h2, h3, h4, .brand b, .rank b, .mini h4, .pn b, .book b, .work h3, .hero h2, .post-head .lead, .intro p.lead, .bk-prose, .bk-tagline, .bk-facts dd, .bk-quotes blockquote, .bk-post b, .bk-store b, .cm-form strong, .author-box h4 { font-size-adjust: .47 !important; }
.kicker, .tag, .meta { font-family: var(--sans); }
.post-head .lead, .intro p.lead { font-style: italic; }
.brand b { font-weight: 700; letter-spacing: -.01em; }
.prose h2, .prose h3, .prose h4 { font-family: var(--serif); }
.prose h4, .hero .tag { font-family: var(--didone); }

/* blocos do post: foto, galeria (carrossel), vídeo, citação, livro, botão, separador, embed */
.prose figure.ph { margin: 2em 0; }
.prose figure.ph .ph-btn { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: 14px; overflow: hidden; }
.prose figure.ph img { width: 100%; border-radius: 14px; margin: 0; }
.prose figure.ph figcaption, .prose .vblock figcaption { font: 500 .84rem/1.4 var(--sans); color: var(--muted); text-align: center; margin-top: 8px; }
.prose figure.ph.meia { float: right; width: min(46%, 320px); margin: 6px 0 16px 26px; }
.prose figure.ph.lado { float: left; margin: 6px 28px 14px 0; }
.prose figure.ph:not(.lado):not(.meia) { clear: both; }
@media (max-width: 560px) { .prose figure.ph.meia, .prose figure.ph.lado { float: none; width: 100% !important; margin: 1.4em 0; } }
.prose .video { position: relative; aspect-ratio: 16/9; background: #14110F; border-radius: 14px; overflow: hidden; }
.prose .video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.prose .vblock { margin: 2em 0; clear: both; }
.prose figure.pull { margin: 2.2em -3% 2.2em; padding: 1.2em 0 .4em; border-top: 3px solid var(--accent); clear: both; }
.prose figure.pull blockquote { margin: 0; padding: 0; border: 0; font: italic 500 1.6em/1.3 var(--serif); color: var(--ink); }
.prose figure.pull figcaption { margin-top: .8em; font: 700 .78rem var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--accent); text-align: left; }
.prose .btn-row { margin: 1.6em 0; clear: both; }
.prose .btn-row a.btn { color: var(--on-accent); text-decoration: none; }
.prose .btn-row a.btn:not(.primary) { color: var(--ink); }
.prose hr.sep { border: 0; margin: 2.4em 0; clear: both; text-align: center; height: auto; }
.prose hr.sep.ornamento::after { content: "◆ ◆ ◆"; letter-spacing: .6em; color: var(--accent); font-size: .7rem; }
.prose hr.sep.linha { border-top: 1px solid var(--line); }
.prose hr.sep.espaco { margin: 3.4em 0; visibility: hidden; }
.prose .embed { margin: 2em 0; clear: both; }
.prose .embed iframe { max-width: 100%; border: 0; border-radius: 12px; }
.prose a.book-note.inline { text-decoration: none; clear: both; margin: 2em 0; color: #EBDFD0; }
.prose a.book-note.inline b { font-size: 1.3rem; }

.carousel { margin: 2em 0; clear: both; font-family: var(--sans); }
.car-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.car-head h3 { margin: 0; font-size: 1.5rem; }
.car-count { font-size: .85rem; color: var(--muted); font-variant-numeric: tabular-nums; margin-left: auto; }
.car-count b { color: var(--ink); }
.car-stage { position: relative; display: grid; background: #14110F; border-radius: 16px; overflow: hidden; aspect-ratio: 3/2; }
.car-slide { grid-area: 1/1; border: 0; padding: 0; margin: 0; background: none; cursor: zoom-in; opacity: 0; visibility: hidden; transition: opacity .5s ease, visibility 0s .5s; min-width: 0; min-height: 0; }
.car-slide.on { opacity: 1; visibility: visible; transition: opacity .5s ease; }
.prose .car-slide img, .car-slide img { width: 100%; height: 100%; object-fit: contain; border-radius: 0; display: block; }
.car-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 42px; height: 42px; border-radius: 50%; border: 0; display: grid; place-items: center; cursor: pointer; color: #fff; background: rgba(0,0,0,.5); backdrop-filter: blur(6px); transition: background .15s; }
.car-nav:hover { background: rgba(0,0,0,.8); }
.car-nav.prev { left: 12px; } .car-nav.next { right: 12px; }
.carousel figcaption { min-height: 1.4em; margin-top: 8px; font-size: .88rem; color: var(--muted); line-height: 1.4; }
.car-thumbs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: thin; padding: 4px 2px 8px; margin-top: 6px; scroll-snap-type: x proximity; }
.car-thumbs button { flex: none; width: 76px; height: 56px; padding: 0; border: 0; border-radius: 8px; overflow: hidden; cursor: pointer; background: #14110F; opacity: .55; outline: 2px solid transparent; outline-offset: 2px; transition: opacity .15s, outline-color .15s; scroll-snap-align: center; }
.car-thumbs button:hover { opacity: .85; }
.car-thumbs button[aria-pressed=true] { opacity: 1; outline-color: var(--accent); }
.prose .car-thumbs img, .car-thumbs img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; display: block; }
@media (max-width: 560px) { .car-stage { aspect-ratio: 4/3; border-radius: 12px; } .car-nav { width: 36px; height: 36px; } .car-thumbs button { width: 62px; height: 46px; } }
@media (prefers-reduced-motion: reduce) { .car-slide { transition: none; } }

dialog.lightbox { border: 0; padding: 0; margin: 0; background: transparent; color: #fff; width: 100vw; height: 100dvh; max-width: none; max-height: none; overflow: hidden; }
dialog.lightbox::backdrop { background: rgba(0,0,0,.92); }
dialog.lightbox[open] { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 8px; padding: 12px max(12px, env(safe-area-inset-right, 0px)) 12px max(12px, env(safe-area-inset-left, 0px)); }
dialog.lightbox figure { margin: 0; display: grid; grid-template-rows: minmax(0, 1fr) auto; justify-items: center; gap: 10px; height: 100%; min-height: 0; padding-block: 44px 6px; }
dialog.lightbox img { max-width: 100%; max-height: 100%; min-height: 0; object-fit: contain; border-radius: 8px; cursor: default; }
dialog.lightbox figcaption { display: flex; gap: 12px; align-items: baseline; justify-content: center; font-size: .9rem; line-height: 1.4; max-width: 80ch; text-align: center; min-height: 1.4em; }
.lb-count { font-variant-numeric: tabular-nums; opacity: .65; white-space: nowrap; }
.lb-btn { width: 48px; height: 48px; border-radius: 50%; border: 0; display: grid; place-items: center; cursor: pointer; color: #fff; background: rgba(255,255,255,.12); transition: background .15s; }
.lb-btn:hover { background: rgba(255,255,255,.28); }
.lb-close { position: absolute; top: 12px; right: max(12px, env(safe-area-inset-right, 0px)); z-index: 2; }
dialog.lightbox.single .lb-prev, dialog.lightbox.single .lb-next { visibility: hidden; }
@media (max-width: 640px) {
  dialog.lightbox[open] { grid-template-columns: minmax(0, 1fr); padding-inline: 0; }
  .lb-prev, .lb-next { position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; background: rgba(0,0,0,.45); z-index: 2; }
  .lb-prev { left: 6px; } .lb-next { right: 6px; }
  dialog.lightbox figcaption { flex-direction: column; gap: 2px; align-items: center; padding-inline: 14px; }
}

@media (max-width: 640px) { .books { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
