/*
Theme Name: Regional Morning Brief
Theme URI: https://example.com/regional-morning-brief
Author: ChatGPT
Description: Tema WordPress editorial em estilo newsletter, inspirado visualmente em publicações minimalistas, adaptado para portal regional de notícias.
Version: 1.0.7
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GPLv2 or later
Text Domain: regional-morning-brief
*/

:root{
  --bg:#f6f1e8;
  --paper:#fffaf0;
  --ink:#181512;
  --muted:#746c61;
  --line:#ded2c0;
  --accent:#ff6a3d;
  --accent-dark:#dc4f28;
  --chip:#efe4d3;
  --white:#ffffff;
  --shadow:0 18px 45px rgba(25,20,15,.08);
  --radius:28px;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  background:var(--bg);
  color:var(--ink);
  font-family:Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height:1.55;
}
a{color:inherit;text-decoration:none}
img{max-width:100%;height:auto;display:block}
.container{width:min(1120px, calc(100% - 36px));margin-inline:auto}
.site-header{
  padding:22px 0 14px;
  position:sticky;
  top:0;
  z-index:20;
  background:rgba(246,241,232,.88);
  backdrop-filter: blur(12px);
  border-bottom:1px solid rgba(222,210,192,.7);
}
.header-inner{display:flex;align-items:center;justify-content:space-between;gap:18px}
.brand{display:flex;align-items:center;gap:12px;font-weight:900;letter-spacing:-.05em;font-size:31px;text-transform:lowercase}
.brand-mark{width:38px;height:38px;border-radius:50%;background:var(--ink);color:var(--paper);display:grid;place-items:center;font-size:18px;letter-spacing:-.08em}
.header-nav{display:flex;align-items:center;gap:20px;color:var(--muted);font-size:14px;font-weight:700;text-transform:lowercase}
.header-nav a:hover{color:var(--ink)}
.subscribe-btn{background:var(--ink);color:var(--paper)!important;padding:11px 18px;border-radius:999px;font-weight:900;box-shadow:0 10px 20px rgba(0,0,0,.12)}
.hero{padding:58px 0 30px;text-align:center}
.kicker{display:inline-flex;align-items:center;gap:8px;background:var(--chip);border:1px solid var(--line);border-radius:999px;padding:8px 14px;font-size:13px;color:var(--muted);font-weight:800;text-transform:uppercase;letter-spacing:.08em}
.hero h1{font-size:clamp(48px, 10vw, 132px);line-height:.88;margin:22px auto 16px;letter-spacing:-.09em;max-width:940px;font-weight:950;text-transform:lowercase}
.hero p{font-size:clamp(18px, 2.2vw, 25px);color:#3c352e;max-width:720px;margin:0 auto 28px;font-weight:650;letter-spacing:-.02em}
.hero-card{background:var(--paper);border:1px solid var(--line);border-radius:calc(var(--radius) + 8px);padding:12px;box-shadow:var(--shadow);max-width:760px;margin:0 auto}
.signup{display:flex;gap:10px;background:#fff;border:1px solid var(--line);border-radius:24px;padding:8px;align-items:center}
.signup input{flex:1;border:0;outline:0;padding:18px 18px;font-size:16px;background:transparent;color:var(--ink);min-width:0}
.signup button{border:0;background:var(--accent);color:white;border-radius:18px;padding:16px 22px;font-weight:900;font-size:15px;cursor:pointer}
.signup button:hover{background:var(--accent-dark)}
.social-proof{font-size:13px;color:var(--muted);margin:12px 0 4px;font-weight:700}
.tabs-wrap{padding:14px 0 24px}
.tabs{display:flex;gap:10px;overflow:auto;scrollbar-width:none;justify-content:center;flex-wrap:wrap}
.tabs a{background:transparent;border:1px solid var(--line);border-radius:999px;padding:10px 14px;color:var(--muted);font-size:13px;font-weight:900;text-transform:uppercase;letter-spacing:.04em}
.tabs a:first-child,.tabs a:hover{background:var(--ink);color:var(--paper);border-color:var(--ink)}
.section-head{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;margin:28px 0 18px}
.section-head h2{font-size:34px;letter-spacing:-.06em;line-height:1;margin:0;text-transform:lowercase}
.section-head span{color:var(--muted);font-weight:750;font-size:14px}
.featured-grid{display:grid;grid-template-columns:1.2fr .8fr;gap:18px;align-items:stretch}
.edition-card{background:var(--paper);border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;box-shadow:var(--shadow);transition:.2s transform,.2s box-shadow;min-height:100%}
.edition-card:hover{transform:translateY(-3px);box-shadow:0 22px 55px rgba(25,20,15,.11)}
.thumb{aspect-ratio:16/9;background:linear-gradient(135deg,#1b1713,#43382f);position:relative;overflow:hidden}
.thumb-link{display:block;width:100%;height:100%}
.thumb img{width:100%;height:100%;object-fit:cover}
.thumb .date-badge{position:absolute;left:20px;bottom:18px;background:rgba(255,250,240,.94);border:1px solid rgba(255,255,255,.35);border-radius:18px;padding:10px 13px;font-weight:950;letter-spacing:-.04em}
.card-body{padding:22px}
.meta{display:flex;gap:8px;align-items:center;color:var(--muted);font-size:13px;font-weight:850;text-transform:uppercase;letter-spacing:.04em;margin-bottom:10px;flex-wrap:wrap}
.dot{width:5px;height:5px;border-radius:50%;background:var(--accent)}
.card-body h3{font-size:clamp(25px, 4vw, 48px);line-height:.98;letter-spacing:-.07em;margin:0 0 12px;text-transform:lowercase}
.small-card h3{font-size:26px;line-height:1.04}
.card-body p{margin:0;color:#4b443c;font-size:16px;font-weight:570}
.small-stack{display:grid;gap:18px}.small-card{display:grid;grid-template-columns:150px 1fr;min-height:180px}.small-card .thumb{aspect-ratio:auto;min-height:100%}.small-card .card-body{padding:18px}.small-card .date-badge{font-size:12px;left:12px;bottom:12px}
.posts-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;margin-bottom:44px}.post-card .card-body h3{font-size:25px;line-height:1.03}.post-card .thumb{aspect-ratio:4/3}
.region-strip{margin:34px auto;background:var(--ink);color:var(--paper);border-radius:34px;padding:26px 42px;display:flex;justify-content:center;gap:clamp(28px,8vw,120px);align-items:center;box-shadow:var(--shadow);max-width:1040px}
.region-strip strong{font-size:26px;letter-spacing:-.05em}.region-strip p{margin:4px 0 0;color:#d6cab8}.region-strip a{background:var(--paper);color:var(--ink);border-radius:999px;padding:13px 18px;font-weight:950;white-space:nowrap}
.site-footer{border-top:1px solid var(--line);padding:42px 0;color:var(--muted);margin-top:30px}.footer-inner{display:flex;justify-content:space-between;gap:20px;align-items:center}.footer-brand{font-weight:950;color:var(--ink);font-size:26px;letter-spacing:-.06em}.footer-links{display:flex;gap:16px;font-weight:750;font-size:14px}
/* Página interna da notícia: estilo newsletter clean, mais próxima de uma edição beehiiv */
.article-wrap{padding:34px 0 70px;background:#fff}
.article{width:min(740px, calc(100% - 36px));max-width:740px;margin:0 auto;background:#fff;border:0;border-radius:0;padding:0;box-shadow:none;overflow:hidden}
.article-topline{width:min(520px,100%);height:7px;background:#ffcf2f;margin:0 0 28px}
.article-breadcrumb{font-size:13px;color:#8a8175;font-weight:760;margin:0 0 24px;display:flex;gap:7px;align-items:center;flex-wrap:wrap}
.article-breadcrumb a{text-decoration:none;color:#8a8175}.article-breadcrumb a:hover{color:var(--ink)}
.article .meta{justify-content:flex-start;margin-bottom:12px;font-size:11px;letter-spacing:.10em;color:#6f675e;text-transform:uppercase;font-weight:900}
.article h1{font-size:clamp(27px,3vw,35px);line-height:1.12;letter-spacing:-.035em;margin:0 0 12px;font-weight:720;text-transform:none;color:#050505}
.article-submeta{font-size:14px;color:#6f675e;margin:0 0 24px;font-weight:400}
.article-excerpt{font-size:18px;line-height:1.75;color:#4b453f;margin:0 0 28px;font-weight:400;letter-spacing:-.006em}
.article-featured{margin:22px 0 10px}
.article-featured img{width:100%;border-radius:18px;margin:0;object-fit:cover}
.article-caption{text-align:center;font-size:13px;color:#4c453d;margin:9px 0 28px}
.article-content{font-size:19px;line-height:1.82;color:#201c18;letter-spacing:-.004em;font-weight:400;overflow-wrap:break-word;word-break:normal;text-align:left}
.article-content p{margin:0 0 28px;font-weight:400}
.article-content h2{font-size:12px;line-height:1.25;letter-spacing:.12em;text-transform:uppercase;color:#6a6258;margin:40px 0 12px;font-weight:700}
.article-content h3{font-size:25px;line-height:1.18;letter-spacing:-.035em;margin:8px 0 18px;color:#050505;font-weight:700}
.article-content h4,.article-content h5,.article-content h6{font-size:12px;line-height:1.25;letter-spacing:.12em;text-transform:uppercase;color:#6a6258;margin:34px 0 12px;font-weight:700}
.article-content hr{border:0;text-align:center;margin:30px 0 28px;height:auto}.article-content hr:after{content:'....';letter-spacing:.16em;color:#6a6258;font-weight:900}
.article-content img{border-radius:16px;margin:24px auto 8px}
.article-content ul,.article-content ol{padding-left:22px;margin:0 0 22px}.article-content li{margin:0 0 11px;padding-left:2px}
.article-content li::marker{color:#111;font-weight:900}
.article-content blockquote{border-left:5px solid #ffcf2f;margin:32px 0;padding:2px 0 2px 18px;color:#302a24;font-weight:400;background:transparent}
.article-content a{text-decoration:underline;text-decoration-thickness:1.5px;text-underline-offset:3px}
.article-content strong,.article-content b{font-weight:600}
.article-content p strong,.article-content p b{font-weight:600}
.article-content *{max-width:100%}

.article-share{display:inline-flex;align-items:center;justify-content:center;margin:16px 0 0;color:#106f3b;text-decoration:underline;text-underline-offset:4px;font-size:16px;font-weight:600}
.article-footerline{margin-top:36px;border-top:1px solid #e6ded2;padding-top:18px;color:#7a7167;font-size:14px}
.wp-caption,.gallery-caption{max-width:100%}.aligncenter{margin-left:auto;margin-right:auto}.alignleft{float:left;margin-right:18px}.alignright{float:right;margin-left:18px}
@media (max-width:700px){.article-wrap{padding:24px 0 44px}.article{width:calc(100% - 32px);overflow:hidden}.article-topline{height:6px;margin-bottom:22px}.article h1{font-size:clamp(25px,7.2vw,31px);line-height:1.12}.article-submeta{font-size:13px;margin-bottom:20px}.article-content{font-size:17px;line-height:1.72;letter-spacing:0;text-align:left}.article-content p{margin-bottom:22px}.article-excerpt{font-size:16px;line-height:1.6}.article-featured img{border-radius:15px}.article-caption{font-size:12px;margin-bottom:22px}}
@media (max-width:860px){.header-nav{display:none}.hero{padding-top:38px}.featured-grid,.posts-grid{grid-template-columns:1fr}.small-card{grid-template-columns:1fr}.small-card .thumb{aspect-ratio:16/9}.signup{flex-direction:column;align-items:stretch}.signup button{width:100%}.region-strip,.footer-inner{flex-direction:column;text-align:center}.section-head{align-items:flex-start;flex-direction:column}.tabs{justify-content:flex-start}}

.anuncie-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:14px;margin:24px 0}.anuncie-box{border:1px solid var(--line);border-radius:22px;padding:20px;background:#fff}.anuncie-box strong{display:block;font-size:20px;letter-spacing:-.04em;margin-bottom:6px}.article .anuncie-cta{display:inline-flex;background:var(--ink);color:var(--paper);border-radius:999px;padding:14px 20px;font-weight:950;text-decoration:none;margin-top:6px}@media (max-width:700px){.anuncie-grid{grid-template-columns:1fr}.region-strip{padding:24px}}

.notice-card{text-align:center}.notice-card .kicker{margin-bottom:14px}.notice-card h1{margin-top:10px}.notice-actions{display:flex;justify-content:center;gap:12px;flex-wrap:wrap;margin-top:24px}.notice-actions a{display:inline-flex;border-radius:999px;padding:13px 18px;font-weight:950;text-decoration:none}.notice-actions a:first-child{background:var(--ink);color:var(--paper)}.notice-actions a:last-child{background:#fff;border:1px solid var(--line);color:var(--ink)}

/* Correção mobile: impede texto colado nas bordas e cortes laterais */
@media (max-width:480px){.article{width:calc(100% - 28px)}.article-content{font-size:16.5px;line-height:1.72}.article-content p,.article-content li{max-width:100%;overflow-wrap:break-word}.article-content iframe,.article-content table{max-width:100%;overflow-x:auto}.article-share{font-size:15px;display:flex;text-align:center}}
