:root{
  --navy: #0e1a28;
  --navy-2: #16283d;
  --navy-3: #1e3350;
  --gold: #ead16c;
  --gold-dim: #b79c4c;
  --cream: #f7f3ea;
  --ink: #14202c;
  --muted: #8a97a6;
  --muted-2: #5a6675;
  --sage: #8fb89a;
  --line: rgba(234,209,108,0.18);
  /* Suporte a fontes personalizadas definidas em Configurações > Marca no Ghost */
  --gh-font-heading: 'Fraunces', serif;
  --gh-font-body: 'Inter', sans-serif;
  --font-heading: var(--gh-font-heading);
  --font-body: var(--gh-font-body);
}
*{margin:0;padding:0;box-sizing:border-box;}
html{scroll-behavior:smooth;}
body{
  background:var(--cream);
  color:var(--ink);
  font-family:var(--font-body);
  line-height:1.5;
  -webkit-font-smoothing:antialiased;
}
.serif{font-family:'Fraunces',serif;}
.mono{font-family:'IBM Plex Mono',monospace; letter-spacing:0.02em;}
a{color:inherit;}

/* ticker */
.ticker-wrap{
  background:var(--navy);
  color:var(--gold-dim);
  overflow:hidden;
  white-space:nowrap;
  border-bottom:1px solid var(--line);
}
.ticker{
  display:inline-block;
  padding:8px 0;
  font-size:11px;
  letter-spacing:0.12em;
  text-transform:uppercase;
  animation: scroll-left 32s linear infinite;
}
.ticker span{margin-right:48px;}
.ticker .up{color:var(--sage);}
@keyframes scroll-left{
  from{transform:translateX(0);}
  to{transform:translateX(-50%);}
}
@media (prefers-reduced-motion: reduce){
  .ticker{animation:none;}
}

/* header */
header{
  background:var(--navy);
  padding:22px 6vw 26px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  flex-wrap:wrap;
  gap:16px;
}
.wordmark{
  color:var(--cream);
  font-family:'Fraunces',serif;
  font-size:22px;
  font-weight:600;
  letter-spacing:0.01em;
  text-decoration:none;
}
.wordmark em{
  font-style:normal;
  color:var(--gold);
}
nav{display:flex;gap:28px; align-items:center; flex-wrap:wrap;}
nav a{
  color:var(--muted);
  text-decoration:none;
  font-size:14px;
  font-weight:500;
  transition:color .2s;
}
nav a:hover, nav a:focus-visible{color:var(--cream);}
nav a.cta{
  color:var(--navy);
  background:var(--gold);
  padding:9px 18px;
  border-radius:2px;
  font-weight:600;
}
nav a.cta:hover{background:#f1de8c;}

/* hero */
.hero{
  background:var(--navy);
  padding:64px 6vw 90px;
  display:grid;
  grid-template-columns:1.3fr 1fr;
  gap:60px;
  align-items:end;
}
.hero-eyebrow{
  color:var(--gold);
  font-size:12px;
  letter-spacing:0.16em;
  text-transform:uppercase;
  margin-bottom:18px;
  display:flex;
  align-items:center;
  gap:10px;
}
.hero-eyebrow::before{
  content:'';
  width:22px;height:1px;background:var(--gold);
}
.hero h1{
  color:var(--cream);
  font-family:'Fraunces',serif;
  font-size:clamp(38px, 5vw, 62px);
  font-weight:500;
  line-height:1.06;
  letter-spacing:-0.01em;
}
.hero p{
  color:var(--muted);
  font-size:17px;
  max-width:46ch;
  margin-top:22px;
}
.hero-actions{
  margin-top:34px;
  display:flex;
  gap:14px;
  flex-wrap:wrap;
}
.btn-primary{
  background:var(--gold);
  color:var(--navy);
  border:none;
  padding:14px 26px;
  font-weight:600;
  font-size:14px;
  border-radius:2px;
  cursor:pointer;
  text-decoration:none;
  display:inline-block;
}
.btn-primary:hover{background:#f1de8c;}
.btn-ghost{
  background:transparent;
  color:var(--cream);
  border:1px solid rgba(247,243,234,0.25);
  padding:14px 26px;
  font-weight:600;
  font-size:14px;
  border-radius:2px;
  cursor:pointer;
  text-decoration:none;
  display:inline-block;
}
.btn-ghost:hover{border-color:var(--cream);}

/* ledger card */
.ledger{
  background:var(--navy-2);
  border:1px solid var(--line);
  border-radius:4px;
  padding:26px 28px;
}
.ledger-title{
  color:var(--muted);
  font-size:11px;
  letter-spacing:0.12em;
  text-transform:uppercase;
  margin-bottom:18px;
}
.ledger-row{
  display:flex;
  justify-content:space-between;
  padding:12px 0;
  border-top:1px solid var(--line);
}
.ledger-row:first-of-type{border-top:none;}
.ledger-label{color:var(--cream); font-size:14px;}
.ledger-value{font-size:14px; font-weight:500;}
.ledger-value.pos{color:var(--sage);}
.ledger-value.gold{color:var(--gold);}

/* growth line divider */
.growth-divider{
  background:var(--cream);
  padding:0 6vw;
}
.growth-divider svg{display:block; width:100%; height:70px;}
.growth-path{
  stroke-dasharray:1000;
  stroke-dashoffset:1000;
  animation:draw 1.8s ease-out forwards .3s;
}
@media (prefers-reduced-motion: reduce){
  .growth-path{animation:none; stroke-dashoffset:0;}
}
@keyframes draw{ to{stroke-dashoffset:0;} }

/* section shell */
section.content{
  padding:10px 6vw 80px;
  max-width:1280px;
  margin:0 auto;
}
.section-head{
  display:flex;
  justify-content:space-between;
  align-items:baseline;
  margin-bottom:34px;
  border-bottom:1px solid rgba(20,32,44,0.1);
  padding-bottom:18px;
  flex-wrap:wrap;
  gap:10px;
}
.section-head h2{
  font-family:'Fraunces',serif;
  font-size:26px;
  font-weight:500;
}
.section-head a{
  color:var(--muted-2);
  font-size:13px;
  text-decoration:none;
  font-weight:500;
}
.section-head a:hover{color:var(--ink);}

/* featured */
.featured{
  display:grid;
  grid-template-columns:0.9fr 1.4fr;
  gap:0;
  border:1px solid rgba(20,32,44,0.12);
  margin-bottom:70px;
}
.featured-side{
  background:var(--navy);
  padding:40px 34px;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
}
.featured-tag{
  color:var(--gold);
  font-size:11px;
  letter-spacing:0.12em;
  text-transform:uppercase;
}
.featured-side .big-stat-label{
  color:var(--muted);
  font-size:13px;
}
.featured-main{
  padding:44px 44px 44px 40px;
  display:flex;
  flex-direction:column;
  justify-content:center;
}
.featured-main .meta{
  color:var(--muted-2);
  font-size:12px;
  margin-bottom:14px;
}
.featured-main h3{
  font-family:'Fraunces',serif;
  font-size:32px;
  font-weight:500;
  line-height:1.18;
  margin-bottom:16px;
}
.featured-main p{
  color:var(--muted-2);
  font-size:15.5px;
  max-width:58ch;
  margin-bottom:22px;
}
.read-link{
  color:var(--ink);
  font-weight:600;
  font-size:14px;
  text-decoration:none;
  border-bottom:1.5px solid var(--gold);
  padding-bottom:2px;
  align-self:flex-start;
  display:inline-block;
}

/* categories */
.cat-rail{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  margin-bottom:44px;
}
.cat-pill{
  border:1px solid rgba(20,32,44,0.18);
  padding:8px 18px;
  border-radius:999px;
  font-size:13px;
  font-weight:500;
  color:var(--muted-2);
  background:transparent;
  cursor:pointer;
  text-decoration:none;
  display:inline-block;
}
.cat-pill.active{
  background:var(--navy);
  color:var(--cream);
  border-color:var(--navy);
}

/* grid */
.grid{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:2px;
  background:rgba(20,32,44,0.12);
  border:1px solid rgba(20,32,44,0.12);
}
.card{
  background:var(--cream);
  padding:30px 28px;
  display:flex;
  flex-direction:column;
  min-height:230px;
}
.card .meta{
  display:flex;
  justify-content:space-between;
  color:var(--muted-2);
  font-size:11px;
  margin-bottom:16px;
}
.card .meta .tag{color:var(--gold-dim); font-weight:600;}
.card h4{
  font-size:19px;
  font-weight:500;
  line-height:1.28;
  margin-bottom:10px;
}
.card h4 a{text-decoration:none;}
.card h4 a:hover{color:var(--gold-dim);}
.card p{
  color:var(--muted-2);
  font-size:13.5px;
  flex:1;
}
.card .read-link{
  margin-top:16px;
  font-size:13px;
}

/* pagination (Ghost default markup) */
.pagination{
  display:flex;
  justify-content:center;
  gap:16px;
  margin-top:50px;
  font-size:13px;
  font-weight:600;
}
.pagination a{text-decoration:none; color:var(--ink); border-bottom:1.5px solid var(--gold);}
.pagination span.page-number{color:var(--muted-2);}

/* single post */
.post-full{
  max-width:760px;
  margin:0 auto;
  padding:70px 6vw 40px;
}
.post-full-header{
  text-align:center;
  margin-bottom:40px;
}
.post-full-header h1{
  font-family:'Fraunces',serif;
  font-size:clamp(32px,4.4vw,48px);
  font-weight:500;
  line-height:1.14;
  margin:14px 0;
}
.post-full-excerpt{
  color:var(--muted-2);
  font-size:17px;
  max-width:60ch;
  margin:0 auto;
}
.post-full-image{
  margin:0 -6vw 40px;
}
.post-full-image img{
  width:100%;
  display:block;
}
.post-content{
  font-size:18px;
  line-height:1.75;
  color:var(--ink);
}
/* Larguras de imagem do editor Koenig */
.post-content .kg-width-wide{
  margin-left:calc(50% - 50vw + 6vw);
  margin-right:calc(50% - 50vw + 6vw);
  max-width:none;
  width:auto;
}
.post-content .kg-width-full{
  margin-left:calc(50% - 50vw);
  margin-right:calc(50% - 50vw);
  max-width:none;
  width:100vw;
}
.post-content .kg-width-full img{width:100%; display:block;}
.post-content p{margin-bottom:22px;}
.post-content h2{
  font-family:'Fraunces',serif;
  font-size:28px;
  font-weight:500;
  margin:44px 0 18px;
}
.post-content h3{
  font-family:'Fraunces',serif;
  font-size:22px;
  font-weight:500;
  margin:36px 0 14px;
}
.post-content ul, .post-content ol{
  margin:0 0 22px 22px;
}
.post-content li{margin-bottom:8px;}
.post-content a{
  color:var(--ink);
  border-bottom:1.5px solid var(--gold);
  text-decoration:none;
}
.post-content blockquote{
  border-left:3px solid var(--gold);
  padding:4px 0 4px 22px;
  margin:30px 0;
  font-family:'Fraunces',serif;
  font-style:italic;
  font-size:21px;
  color:var(--navy-2);
}
.post-content figure{margin:30px 0;}
.post-content figure img{width:100%; border-radius:2px;}
.post-content figcaption{
  font-size:13px;
  color:var(--muted-2);
  margin-top:8px;
  text-align:center;
}
.post-content code{
  font-family:'IBM Plex Mono',monospace;
  background:rgba(20,32,44,0.06);
  padding:2px 6px;
  border-radius:3px;
  font-size:0.9em;
}
.post-content hr{
  border:none;
  border-top:1px solid rgba(20,32,44,0.12);
  margin:40px 0;
}
/* Cartões do editor Koenig (bookmark/button/callout) — usados sobretudo
   na página de links, onde cada item é um bloco independente e editável
   diretamente no Ghost, sem precisar de tocar no tema. */
.post-content .kg-bookmark-card{
  margin:22px 0;
}
.post-content .kg-bookmark-container{
  display:flex;
  border:1px solid rgba(20,32,44,0.14);
  border-radius:4px;
  overflow:hidden;
  text-decoration:none;
  color:var(--ink);
  background:#fff;
  transition:border-color .2s;
}
.post-content .kg-bookmark-container:hover{
  border-color:var(--gold-dim);
}
.post-content .kg-bookmark-content{
  padding:20px 24px;
  flex:1;
}
.post-content .kg-bookmark-title{
  font-weight:600;
  font-size:15px;
  margin-bottom:6px;
}
.post-content .kg-bookmark-description{
  color:var(--muted-2);
  font-size:13.5px;
  margin-bottom:14px;
}
.post-content .kg-bookmark-metadata{
  display:flex;
  align-items:center;
  gap:8px;
  font-size:12px;
  color:var(--muted-2);
}
.post-content .kg-bookmark-icon{
  width:18px;height:18px;
}
.post-content .kg-bookmark-thumbnail{
  flex:0 0 200px;
}
.post-content .kg-bookmark-thumbnail img{
  width:100%; height:100%; object-fit:cover;
}
.post-content .kg-callout-card{
  display:flex;
  gap:14px;
  align-items:flex-start;
  background:var(--navy-2);
  color:var(--cream);
  border-radius:4px;
  padding:20px 24px;
  margin:26px 0;
  font-size:15.5px;
}
.post-content .kg-callout-emoji{font-size:20px; line-height:1;}
.post-content .kg-callout-text{color:var(--cream);}
.post-content .kg-callout-text a{color:var(--gold); border-color:var(--gold);}
.post-content .kg-button-card{
  text-align:center;
  margin:26px 0;
}
.post-content .kg-btn{
  display:inline-block;
  background:var(--gold);
  color:var(--navy);
  padding:12px 26px;
  border-radius:2px;
  font-weight:600;
  font-size:14px;
  text-decoration:none;
}
.post-content .kg-btn:hover{background:#f1de8c;}
.post-content .kg-header-card{
  text-align:center;
  padding:50px 6vw;
  margin:0 -6vw 40px;
  background:var(--navy);
  color:var(--cream);
}
.post-content .kg-header-card h2{color:var(--cream);}
.post-content .kg-header-card p{color:var(--muted);}
@media (max-width:600px){
  .post-content .kg-bookmark-container{flex-direction:column-reverse;}
  .post-content .kg-bookmark-thumbnail{flex-basis:auto; height:140px;}
}

.post-full-footer{
  margin-top:50px;
  padding-top:30px;
  border-top:1px solid rgba(20,32,44,0.12);
}
.post-tags{display:flex; gap:10px; flex-wrap:wrap; margin-bottom:20px;}
.author-note{
  color:var(--muted-2);
  font-size:13px;
  max-width:60ch;
}

/* newsletter */
.newsletter{
  background:var(--navy);
  padding:70px 6vw;
  text-align:center;
  position:relative;
  overflow:hidden;
}
.newsletter h2{
  color:var(--cream);
  font-family:'Fraunces',serif;
  font-size:clamp(26px,3.4vw,38px);
  font-weight:500;
  max-width:22ch;
  margin:0 auto 14px;
}
.newsletter p{
  color:var(--muted);
  max-width:48ch;
  margin:0 auto 30px;
  font-size:15px;
}
.nl-form{
  display:flex;
  max-width:420px;
  margin:0 auto;
  gap:10px;
  flex-wrap:wrap;
}
.nl-form input{
  flex:1;
  min-width:200px;
  padding:14px 16px;
  border:1px solid rgba(247,243,234,0.2);
  background:var(--navy-2);
  color:var(--cream);
  border-radius:2px;
  font-family:'Inter',sans-serif;
  font-size:14px;
}
.nl-form input::placeholder{color:var(--muted-2);}
.nl-form input:focus-visible, a:focus-visible, button:focus-visible{
  outline:2px solid var(--gold);
  outline-offset:2px;
}
.nl-note{
  color:var(--muted-2);
  font-size:12px;
  margin-top:14px;
}
[data-members-success], [data-members-error]{display:none;}
.nl-form.success ~ [data-members-success]{display:block;}

/* footer */
footer{
  background:var(--navy);
  border-top:1px solid var(--line);
  padding:36px 6vw;
  display:flex;
  justify-content:space-between;
  align-items:center;
  flex-wrap:wrap;
  gap:16px;
}
footer .wordmark{font-size:16px;}
footer .foot-links{display:flex; gap:26px; flex-wrap:wrap;}
footer a{color:var(--muted); font-size:13px; text-decoration:none;}
footer a:hover{color:var(--cream);}
footer .copy{color:var(--muted-2); font-size:12px;}

@media (max-width: 860px){
  header{flex-direction:column; gap:18px; align-items:flex-start;}
  nav{width:100%; justify-content:space-between;}
  .hero{grid-template-columns:1fr; padding-bottom:56px;}
  .featured{grid-template-columns:1fr;}
  .grid{grid-template-columns:1fr;}
  footer{flex-direction:column; align-items:flex-start;}
  .post-full{padding:50px 6vw 30px;}
}
