/* Blog Jean Sousa — camada sobre o tema Source (Ghost Foundation, MIT; ver SOURCE-THEME-LICENSE.txt).
   Mesma estrutura do layout de referência; mudam só as cores (MD JEAN) e o arredondamento das imagens. */

@font-face{font-family:"Inter";font-style:normal;font-weight:100 900;font-display:swap;src:url(fonts/inter-latin-wght-normal.woff2) format("woff2-variations");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"Inter";font-style:normal;font-weight:100 900;font-display:swap;src:url(fonts/inter-latin-ext-wght-normal.woff2) format("woff2-variations");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:"Big Shoulders";font-style:normal;font-weight:700;font-display:swap;src:url(fonts/big-shoulders-display-latin-700-normal.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+20AC,U+2122,U+2212,U+FEFF,U+FFFD}
@font-face{font-family:"Big Shoulders";font-style:normal;font-weight:700;font-display:swap;src:url(fonts/big-shoulders-display-latin-ext-700-normal.woff2) format("woff2");unicode-range:U+0100-02BA,U+1E00-1EFF,U+2020,U+20A0-20AB}
@font-face{font-family:"STIX Two";font-style:normal;font-weight:400;font-display:swap;src:url(fonts/stix-two-text-latin-400-normal.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+20AC,U+2122,U+2212,U+FEFF,U+FFFD}
@font-face{font-family:"STIX Two";font-style:normal;font-weight:400;font-display:swap;src:url(fonts/stix-two-text-latin-ext-400-normal.woff2) format("woff2");unicode-range:U+0100-02BA,U+1E00-1EFF}
@font-face{font-family:"STIX Two";font-style:italic;font-weight:400;font-display:swap;src:url(fonts/stix-two-text-latin-400-italic.woff2) format("woff2")}
@font-face{font-family:"STIX Two";font-style:normal;font-weight:700;font-display:swap;src:url(fonts/stix-two-text-latin-700-normal.woff2) format("woff2")}

/* Cores MD JEAN no lugar da paleta da referência */
:root{
  --background-color:#0A0A0A;
  --ghost-accent-color:#a6adf7;
  --color-primary-text:#F4F4F0;
  --color-darker-gray:#F4F4F0;
  --color-secondary-text:#A5A7A5;
  --color-border:#2b2e5c;
  --color-dark-border:#4a4f8f;
  --color-lighter-gray:#14152a;
  --color-light-gray:#1a1c3a;
  --font-sans:"Inter",-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  --font-serif:"STIX Two",Georgia,serif;
  --font-display:"Big Shoulders","Inter",sans-serif;
  --r-img:28px; --r-img-sm:18px;
}
:root.has-light-text{--color-darker-gray:#F4F4F0;--color-secondary-text:#A5A7A5;--color-border:#2b2e5c;--color-lighter-gray:#14152a}
html{background:var(--background-color)}
body{background:var(--background-color);color:var(--color-primary-text)}
::selection{background:var(--ghost-accent-color);color:#0A0A0A}

/* Títulos condensados (hero, artigo, arquivo, capitular) */
.gh-header-title,.gh-article-title,.post-template .gh-content.drop-cap>p:first-of-type:first-letter{font-family:var(--font-display)!important;font-weight:700}
.gh-header.is-classic .gh-header-title{font-size:clamp(4rem,1.2rem + 5.5vw,8.4rem);line-height:1.1;letter-spacing:-.028em;max-width:1040px;margin-inline:auto}
.gh-article-title{letter-spacing:-.028em;line-height:1.1}
.post-template .gh-content.drop-cap>p:first-of-type:first-letter{color:var(--ghost-accent-color);font-size:3.6em;line-height:.92;margin:.04em .14em 0 0}
.gh-card-title,.gh-content :is(h2,h3),.gh-footer-signup-header,.gh-more{font-family:var(--font-sans)!important;font-weight:700}

/* Botões e formulário: retos, como a referência; acento lilás com texto preto */
.gh-button{border-radius:0;background:var(--ghost-accent-color);color:#0A0A0A;font-weight:600}
.gh-button:hover{opacity:.92}
.gh-form{border-radius:0;background:var(--color-lighter-gray)}
.gh-header.is-classic.has-image .gh-form{background:#0A0A0A}
.gh-form-input{color:var(--color-primary-text)}
.gh-form .gh-button{border-radius:0}
.gh-form-msg{margin-top:12px;font-size:1.4rem;color:var(--color-secondary-text);text-align:center;min-height:1.4em}

/* ajustes finos para ficar igual à referência */
.gh-card-author + .gh-card-date::before{margin:0 .35em}
.gh-header.is-classic.has-image .gh-form-input,.gh-form-input{color:var(--color-primary-text)!important}
.gh-header.is-classic.has-image .gh-form-input::placeholder,.gh-form-input::placeholder{color:var(--color-secondary-text)!important;opacity:1}
.word sup{font-size:.5em;vertical-align:super;margin-left:2px;font-weight:600}

/* Navegação */
.gh-navigation{background:var(--background-color)}
.gh-navigation-logo{display:flex;align-items:center;gap:10px;font-family:var(--font-sans)!important;font-weight:700;font-size:2rem;letter-spacing:-.02em;color:var(--color-primary-text)}
.gh-navigation-logo .mark,.gh-footer-logo .mark{width:40px;height:40px;border-radius:50%;overflow:hidden;position:relative;display:block;flex:none;background:#14152a;box-shadow:0 0 0 2px var(--color-darker-gray,#0A0A0A),0 0 0 3.5px var(--ghost-accent-color);transition:transform .4s cubic-bezier(.2,.7,.2,1)}
.mark img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:0;animation:av 9s infinite}
.mark img:nth-child(1){opacity:1;animation-name:av1}
.mark img:nth-child(2){animation-delay:3s}
.mark img:nth-child(3){animation-delay:6s}
a:hover>.mark{transform:scale(1.08)}
@keyframes av{0%{opacity:0}6%,33%{opacity:1}40%,100%{opacity:0}}
@keyframes av1{0%,33%{opacity:1}40%,94%{opacity:0}100%{opacity:1}}
@media (prefers-reduced-motion:reduce){.mark img{animation:none}}
.gh-navigation-logo sup{font-size:.55em;font-weight:600;margin-left:1px}

/* Cabeçalho com degradê (no lugar da imagem de fundo da referência) */
.gh-header.is-classic.has-image{background:linear-gradient(180deg,#0A0A0A 0%,#0d0e1d 24%,#1a1c3a 50%,#3b3f78 78%,#7f88ee 100%)}
.gh-header.is-classic.has-image::before{display:none}
.gh-header.is-classic.has-image .gh-header-title{color:#F4F4F0}

/* Rodapé com o mesmo degradê */
.gh-footer{background:linear-gradient(180deg,#0A0A0A 0%,#0d0e1d 30%,#1a1c3a 60%,#4a4f8f 88%,#7f88ee 100%);color:var(--color-primary-text)}
.gh-footer-bar{flex-direction:column;gap:18px;border-top:1px solid var(--color-border);border-bottom:1px solid var(--color-border);padding:28px 0;margin-bottom:0}
.gh-footer-logo{display:flex;align-items:center;gap:10px;font-family:var(--font-sans)!important;font-weight:700;font-size:2rem}

.gh-footer .gh-social-links{margin:0}
.gh-footer-copyright{padding:24px 0 40px;text-align:center;font-size:1.3rem;color:var(--color-secondary-text)}

/* Imagens com cantos arredondados (token MD JEAN) */
.gh-card-image,.gh-card-image img{border-radius:var(--r-img-sm);overflow:hidden}
.gh-article-image,.gh-article-image img{border-radius:var(--r-img);overflow:hidden}
.gh-content .kg-image-card img,.gh-content figure img{border-radius:var(--r-img)}
.gh-article-author-image img,.gh-article-author-image .avatar{border-radius:50%}

/* Cartões, meta e tags */
.gh-card-meta{color:var(--color-secondary-text)}
.gh-article-tag,.gh-card-tag{color:var(--ghost-accent-color)}
.gh-container-title{color:var(--color-primary-text)}
.gh-content a{color:var(--color-primary-text);text-decoration-color:var(--ghost-accent-color)}
.gh-content a:hover{color:var(--ghost-accent-color)}
.gh-content blockquote{border-left-color:var(--ghost-accent-color)}
.gh-content figcaption{color:var(--color-secondary-text)}
.gh-content .refs+ul,.gh-content .refs~ul{font-size:.86em}

/* Avatar do autor */
.gh-article-author-image .avatar{width:48px;height:48px;background:var(--ghost-accent-color);color:#0A0A0A;display:grid;place-items:center;font-weight:800;font-family:var(--font-sans);font-size:1.5rem}

/* Busca simples (no lugar da busca do Ghost) */
.js-search{position:fixed;inset:0;z-index:1000;background:rgba(10,10,10,.86);backdrop-filter:blur(8px);display:none;align-items:flex-start;justify-content:center;padding:12vh 20px 20px}
.js-search.open{display:flex}
.js-search-box{width:100%;max-width:640px;background:#14152a;border:1px solid var(--color-border)}
.js-search-box input{width:100%;padding:20px 22px;background:transparent;border:0;border-bottom:1px solid var(--color-border);color:var(--color-primary-text);font:500 1.8rem var(--font-sans);outline:none}
.js-search-box ul{list-style:none;margin:0;padding:8px 0;max-height:50vh;overflow:auto}
.js-search-box li a{display:block;padding:12px 22px;color:var(--color-primary-text);text-decoration:none;font:600 1.6rem var(--font-sans)}
.js-search-box li a span{display:block;font:400 1.3rem var(--font-sans);color:var(--color-secondary-text);margin-top:2px}
.js-search-box li a:hover,.js-search-box li a:focus{background:#1a1c3a;outline:none}
.js-search-empty{padding:14px 22px;color:var(--color-secondary-text);font-size:1.4rem}

/* Com poucos posts, manter as 3 colunas do Source em vez de esticar os cards */
@media (min-width: 768px) {
  .home-template .gh-container.is-grid .gh-feed,
  .tag-template .gh-container.is-grid .gh-feed { grid-template-columns: repeat(auto-fill, minmax(248px, 1fr)); }
}
