/*
Theme Name: MKL Blog Theme
Theme URI: https://tempromocao.com
Author: MKL
Author URI: https://tempromocao.com
Description: Tema de revista editorial da MKL — títulos em serifa (Fraunces), grade hero+grid, alto contraste, dark mode. Sem emojis. Para blogs de conteúdo/afiliado (temPromoção e projetos MKL).
Version: 2.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: mkl-blog-theme
Tags: blog, editorial, magazine, custom-colors, custom-menu, featured-images, translation-ready, threaded-comments
*/

:root{
  --bg:#f7f5f1;--surface:#fff;--surface-2:#f0ede7;--border:#e4e0d7;--border-strong:#d4cfc3;--rule:#181b24;
  --ink:#14171f;--ink-soft:#4f5563;--muted:#8a8f9b;--accent:#e8552f;--accent-ink:#c33d1a;
  --shadow:0 1px 2px rgba(20,24,40,.05),0 12px 34px rgba(20,24,40,.09);
  --shadow-lg:0 2px 8px rgba(20,24,40,.07),0 28px 64px rgba(20,24,40,.14);
  --radius:14px;--wrap:1200px;--read:720px;
  --font-body:-apple-system,BlinkMacSystemFont,"Segoe UI",system-ui,Roboto,Helvetica,Arial,sans-serif;
  --font-display:"Fraunces",Georgia,"Times New Roman",serif;
  --font-brand:"Bricolage Grotesque","Segoe UI",system-ui,sans-serif;
}
@media (prefers-color-scheme:dark){:root{
  --bg:#0d0f14;--surface:#151820;--surface-2:#1c2029;--border:#2a2f3a;--border-strong:#3a4150;--rule:#e7e9ee;
  --ink:#edeff3;--ink-soft:#a9afbc;--muted:#6d7482;--accent:#ff6a44;--accent-ink:#ff8464;
  --shadow:0 1px 2px rgba(0,0,0,.34),0 14px 40px rgba(0,0,0,.5);
  --shadow-lg:0 2px 10px rgba(0,0,0,.42),0 30px 74px rgba(0,0,0,.6);
}}
:root[data-theme="light"]{--bg:#f7f5f1;--surface:#fff;--surface-2:#f0ede7;--border:#e4e0d7;--border-strong:#d4cfc3;--rule:#181b24;--ink:#14171f;--ink-soft:#4f5563;--muted:#8a8f9b;--accent:#e8552f;--accent-ink:#c33d1a;--shadow:0 1px 2px rgba(20,24,40,.05),0 12px 34px rgba(20,24,40,.09);--shadow-lg:0 2px 8px rgba(20,24,40,.07),0 28px 64px rgba(20,24,40,.14);}
:root[data-theme="dark"]{--bg:#0d0f14;--surface:#151820;--surface-2:#1c2029;--border:#2a2f3a;--border-strong:#3a4150;--rule:#e7e9ee;--ink:#edeff3;--ink-soft:#a9afbc;--muted:#6d7482;--accent:#ff6a44;--accent-ink:#ff8464;--shadow:0 1px 2px rgba(0,0,0,.34),0 14px 40px rgba(0,0,0,.5);--shadow-lg:0 2px 10px rgba(0,0,0,.42),0 30px 74px rgba(0,0,0,.6);}

*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0;background:var(--bg);color:var(--ink);font-family:var(--font-body);line-height:1.65;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}
a{color:var(--accent-ink);text-decoration:none}
a:hover{text-decoration:underline}
img{max-width:100%;height:auto;display:block}
h1,h2,h3,h4{font-family:var(--font-display);font-weight:600;letter-spacing:-.01em;line-height:1.12;color:var(--ink)}
.container{max-width:var(--wrap);margin:0 auto;padding:0 24px}
.site-main{min-height:60vh}
.page-body{max-width:var(--wrap);margin:0 auto;padding:36px 24px 72px}

/* kicker (categoria acima do título) */
.kicker{font-family:var(--font-body);font-size:.72rem;font-weight:800;letter-spacing:.13em;text-transform:uppercase;color:var(--accent-ink)}
a.kicker:hover{text-decoration:none;color:var(--accent)}

/* ---- Header ---- */
.site-header{position:sticky;top:0;z-index:50;background:color-mix(in srgb,var(--surface) 88%,transparent);-webkit-backdrop-filter:saturate(1.4) blur(14px);backdrop-filter:saturate(1.4) blur(14px);border-bottom:1px solid var(--border)}
.site-header.is-scrolled{box-shadow:0 6px 26px rgba(20,24,40,.07)}
.sh-inner{max-width:var(--wrap);margin:0 auto;padding:14px 24px;display:flex;align-items:center;gap:18px}
.sh-logo{display:flex;flex-direction:column;gap:2px;flex:none;color:var(--ink)}
.sh-logo:hover{text-decoration:none}
.sh-mark{font-family:var(--font-brand);font-weight:800;font-size:1.35rem;letter-spacing:-.035em;line-height:1}
.sh-mark .tag{color:var(--accent)}
.sh-logo small{font-family:var(--font-body);font-weight:600;font-size:.58rem;letter-spacing:.14em;text-transform:uppercase;color:var(--muted)}
.sh-nav{margin-left:auto}
.sh-menu-list{display:flex;align-items:center;gap:2px;list-style:none;margin:0;padding:0;flex-wrap:wrap}
.sh-menu-list li{position:relative}
.sh-menu-list a{display:inline-flex;align-items:center;font-family:var(--font-body);font-weight:600;font-size:.95rem;color:var(--ink);padding:8px 13px;border-radius:8px;white-space:nowrap}
.sh-menu-list a:hover{color:var(--accent-ink);background:var(--surface-2);text-decoration:none}
.sh-menu-list .current-menu-item>a,.sh-menu-list .current-cat>a{color:var(--accent-ink)}
.sh-menu-list ul{position:absolute;top:100%;left:0;min-width:190px;background:var(--surface);border:1px solid var(--border);border-radius:12px;box-shadow:var(--shadow-lg);padding:6px;list-style:none;margin:8px 0 0;display:none;z-index:60}
.sh-menu-list li:hover>ul{display:block}
.sh-actions{display:flex;align-items:center;gap:8px;flex:none}
.sh-icon-btn{width:40px;height:40px;border-radius:10px;border:1px solid var(--border);background:var(--surface);cursor:pointer;display:grid;place-items:center;color:var(--ink);padding:0}
.sh-icon-btn:hover{border-color:var(--border-strong)}
.sh-icon-btn svg{width:19px;height:19px;stroke:currentColor;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
/* toggle sol/lua conforme tema */
.i-sun{display:none}.i-moon{display:block}
@media (prefers-color-scheme:dark){.i-sun{display:block}.i-moon{display:none}}
:root[data-theme="light"] .i-sun{display:none}:root[data-theme="light"] .i-moon{display:block}
:root[data-theme="dark"] .i-sun{display:block}:root[data-theme="dark"] .i-moon{display:none}
.sh-search{max-height:0;overflow:hidden;transition:max-height .22s ease;background:var(--surface)}
.sh-search.open{max-height:100px;border-top:1px solid var(--border)}
.sh-search .sh-inner{padding-top:14px}

/* search form */
.search-form{display:flex;gap:8px;width:100%}
.search-field{flex:1;min-width:0;font:inherit;font-size:.98rem;color:var(--ink);background:var(--surface-2);border:1px solid var(--border-strong);border-radius:10px;padding:13px 16px}
.search-field:focus{outline:2px solid var(--accent);outline-offset:1px}
.search-submit,.btn{font:inherit;font-weight:700;cursor:pointer;border:none;border-radius:10px;padding:13px 22px;background:var(--accent);color:#fff}
.search-submit:hover,.btn:hover{filter:brightness(1.05)}

/* ---- Home hero (masthead) ---- */
.home-hero{border-bottom:1px solid var(--border);padding:56px 0 40px;text-align:center}
.hh-eyebrow{display:inline-block;font-size:.72rem;font-weight:800;letter-spacing:.14em;text-transform:uppercase;color:var(--accent-ink)}
.home-hero h1{font-size:clamp(2.6rem,7vw,4.6rem);font-weight:600;letter-spacing:-.025em;line-height:1;margin:14px 0 14px}
.home-hero h1 .sh-mark{font-family:var(--font-brand);font-weight:800}
.home-hero h1 .tag{color:var(--accent)}
.hh-sub{color:var(--ink-soft);font-size:1.14rem;max-width:600px;margin:0 auto;line-height:1.55;text-wrap:balance}

/* section head (revista) */
.sec-head{display:flex;align-items:baseline;justify-content:space-between;gap:16px;border-bottom:2px solid var(--rule);padding-bottom:10px;margin:0 0 26px}
.sec-head h2{font-size:1.5rem;font-weight:600;letter-spacing:-.01em;margin:0}
.sec-head .see-all{font-family:var(--font-body);font-weight:700;font-size:.85rem;color:var(--accent-ink)}
.page-hero{max-width:760px;margin:8px auto 34px;text-align:center}
.page-hero h1{font-size:clamp(2rem,5.5vw,3.2rem);font-weight:600;margin:8px 0 10px}
.arch-desc{color:var(--ink-soft)}

/* ---- Lead / featured story ---- */
.lead{display:grid;grid-template-columns:1.15fr 1fr;gap:38px;align-items:center;padding-bottom:40px;margin-bottom:40px;border-bottom:1px solid var(--border)}
.lead.no-img{grid-template-columns:1fr;max-width:900px}
.lead-media{order:2;border-radius:var(--radius);overflow:hidden;aspect-ratio:4/3;background:var(--surface-2);box-shadow:var(--shadow)}
.lead-media img{width:100%;height:100%;object-fit:cover}
.lead-body .kicker{margin-bottom:12px;display:inline-block}
.lead-title{font-size:clamp(2rem,4.6vw,3.3rem);font-weight:600;line-height:1.04;letter-spacing:-.02em;margin:0 0 14px}
.lead-title a{color:var(--ink)}
.lead-title a:hover{color:var(--accent-ink);text-decoration:none}
.lead-excerpt{color:var(--ink-soft);font-size:1.12rem;line-height:1.55;margin:0 0 16px;max-width:52ch}
.lead-meta,.pc-meta,.entry-meta{font-family:var(--font-body);font-size:.8rem;color:var(--muted);letter-spacing:.01em}
.lead-meta .dot,.pc-meta .dot{opacity:.5;margin:0 7px}

/* ---- Magazine grid / cards ---- */
.mag-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:34px 30px}
.post-card{display:flex;flex-direction:column;min-width:0}
.pc-media{border-radius:12px;overflow:hidden;aspect-ratio:16/10;background:var(--surface-2);margin-bottom:16px}
.pc-media img{width:100%;height:100%;object-fit:cover;transition:transform .5s cubic-bezier(.2,.7,.2,1)}
.post-card:hover .pc-media img{transform:scale(1.04)}
.post-card.no-img .pc-body{border-top:2px solid var(--rule);padding-top:14px}
.pc-body{display:flex;flex-direction:column;gap:9px}
.pc-body .kicker{margin-bottom:2px}
.pc-title{font-size:1.34rem;font-weight:600;line-height:1.16;letter-spacing:-.01em;margin:0}
.pc-title a{color:var(--ink)}
.pc-title a:hover{color:var(--accent-ink);text-decoration:none}
.pc-excerpt{color:var(--ink-soft);font-size:.96rem;line-height:1.5;margin:0}
.pc-meta{margin-top:2px}
.no-img .pc-title{font-size:1.5rem}

/* ---- Single / page (leitura) ---- */
.single,.page-article{max-width:var(--read);margin:0 auto}
.single-head{text-align:center;margin-bottom:26px}
.single-head .kicker{margin-bottom:14px;display:inline-block}
.s-title{font-size:clamp(2.1rem,5.4vw,3.4rem);font-weight:600;line-height:1.05;letter-spacing:-.02em;margin:0 0 16px;text-wrap:balance}
.s-meta{color:var(--muted);font-size:.9rem;font-family:var(--font-body)}
.s-meta .dot{opacity:.5;margin:0 8px}
.s-hero-img{margin:0 auto 30px;border-radius:var(--radius);overflow:hidden;box-shadow:var(--shadow)}
.s-body,.artigo-body{font-size:1.16rem;line-height:1.75;color:var(--ink)}
.s-body>p:first-of-type::first-letter{font-family:var(--font-display);font-weight:600;font-size:3.4em;line-height:.78;float:left;margin:6px 12px 0 0;color:var(--accent)}
.s-body h2,.artigo-body h2{font-size:1.8rem;font-weight:600;margin:40px 0 12px;letter-spacing:-.01em}
.s-body h3,.artigo-body h3{font-size:1.35rem;font-weight:600;margin:28px 0 8px}
.s-body p,.artigo-body p{margin:0 0 22px}
.s-body ul,.s-body ol,.artigo-body ul{margin:0 0 22px;padding-left:24px}
.s-body li{margin-bottom:10px}
.s-body img{border-radius:12px;box-shadow:var(--shadow);margin:8px 0}
.s-body a{color:var(--accent-ink);text-decoration:underline;text-underline-offset:2px}
.s-body blockquote{border-left:3px solid var(--accent);margin:26px 0;padding:4px 0 4px 22px;font-family:var(--font-display);font-style:italic;font-size:1.3rem;color:var(--ink-soft)}
.s-tags{margin-top:30px;display:flex;flex-wrap:wrap;gap:8px}
.s-tags a{font-family:var(--font-body);font-size:.8rem;background:var(--surface-2);border:1px solid var(--border);color:var(--ink-soft);padding:6px 12px;border-radius:999px}
.artigo-disc{margin-top:32px;padding-top:16px;border-top:1px solid var(--border);font-size:.82rem;color:var(--muted)}

/* ---- Pagination ---- */
.pagination,.navigation{margin:44px 0 0}
.nav-links{display:flex;gap:8px;flex-wrap:wrap;justify-content:center}
.page-numbers{display:inline-flex;align-items:center;justify-content:center;min-width:42px;height:42px;padding:0 13px;border-radius:10px;border:1px solid var(--border);background:var(--surface);color:var(--ink);font-family:var(--font-body);font-weight:700}
.page-numbers:hover{border-color:var(--border-strong);text-decoration:none}
.page-numbers.current{background:var(--rule);color:var(--bg);border-color:var(--rule)}

/* ---- Comments ---- */
.comments{max-width:var(--read);margin:48px auto 0;padding-top:12px;border-top:1px solid var(--border)}
.comments h3{font-size:1.4rem;margin:16px 0 14px}
.comment-list{list-style:none;margin:0;padding:0}
.comment-list ol{list-style:none}
.comment-body{padding:16px 0;border-bottom:1px solid var(--border)}
.comment-author{font-weight:700;font-size:.95rem;font-family:var(--font-body)}
.comment-meta{font-size:.78rem;color:var(--muted)}
.comment-form{display:grid;gap:12px;margin-top:18px}
.comment-form input[type=text],.comment-form input[type=email],.comment-form input[type=url],.comment-form textarea{width:100%;font:inherit;background:var(--surface-2);border:1px solid var(--border-strong);border-radius:10px;padding:13px 15px;color:var(--ink)}
.comment-form textarea{min-height:120px;resize:vertical}

/* ---- Footer ---- */
.site-footer{background:var(--surface);border-top:2px solid var(--rule);margin-top:64px}
.sf-inner{max-width:var(--wrap);margin:0 auto;padding:52px 24px 34px;display:grid;grid-template-columns:1.6fr 2fr;gap:44px}
.sf-logo{font-family:var(--font-brand);font-weight:800;font-size:1.45rem;letter-spacing:-.035em}
.sf-logo .tag{color:var(--accent)}
.sf-blurb{color:var(--ink-soft);font-size:.95rem;line-height:1.6;margin:14px 0 0;max-width:46ch}
.sf-cols{display:grid;grid-template-columns:repeat(2,1fr);gap:24px}
.sf-col h4{font-family:var(--font-body);font-size:.74rem;text-transform:uppercase;letter-spacing:.12em;color:var(--muted);margin:0 0 12px}
.sf-col ul{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:9px}
.sf-col a{font-size:.95rem;color:var(--ink-soft)}
.sf-col a:hover{color:var(--accent-ink)}
.sf-bottom{max-width:var(--wrap);margin:0 auto;padding:20px 24px 36px;border-top:1px solid var(--border)}
.sf-copy{font-family:var(--font-body);font-size:.82rem;color:var(--muted);margin:0}

/* ---- misc / responsive ---- */
.empty{color:var(--muted);padding:48px 0;text-align:center;font-size:1.05rem}
.aligncenter{margin-left:auto;margin-right:auto}
.screen-reader-text{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}
@media (max-width:960px){
  .lead{grid-template-columns:1fr;gap:22px}
  .lead-media{order:0;aspect-ratio:16/9}
  .mag-grid{grid-template-columns:repeat(2,1fr);gap:30px 26px}
  .sf-inner{grid-template-columns:1fr;gap:30px}
}
@media (max-width:620px){
  .mag-grid{grid-template-columns:1fr;gap:26px}
  .sh-logo small{display:none}
  .home-hero{padding:40px 0 30px}
}
@media (prefers-reduced-motion:reduce){*{transition:none!important;animation:none!important}}
