/* =========================================================
   Nuna — Tema Meridiano  |  blog da Nuna
   Alinhado ao design system da landing (usenuna.com.br)
   Fontes: Fraunces (display) · Geist (texto) · Geist Mono · Instrument Serif (wordmark)
   ========================================================= */

:root {
    /* Paleta Meridiano */
    --teal-900:  #0E2B2A;
    --teal-700:  #1A504C;
    --teal-600:  #235E59;
    --teal-500:  #2A5E5A;
    --teal-200:  #A7C1BE;
    --teal-100:  #D4E0DE;
    --teal-50:   #EAF0EE;
    --bone-50:   #FBF8F3;
    --bone-100:  #F6F1E9;
    --bone-200:  #ECE4D7;
    --amber-700: #8A5A10;
    --amber-600: #B0741A;
    --amber-500: #C78B2A;
    --amber-400: #D9A24A;
    --amber-100: #F8E8CF;

    /* Semânticos */
    --bg:          var(--bone-50);
    --bone-soft:   var(--bone-100);
    --card:        #FFFFFF;
    --ink:         #1B2326;
    --ink-soft:    #39454A;
    --muted:       #4C5A5E;
    --faint:       #6B787C;
    --brand:       var(--teal-500);
    --brand-deep:  var(--teal-700);
    --brand-dark:  var(--teal-900);
    --brand-soft:  var(--teal-50);
    --accent:      var(--amber-500);
    --line:        #DDE2E4;
    --line-strong: #BEC6C9;

    --radius:      20px;
    --radius-sm:   12px;
    --wrap:        1160px;
    --read:        720px;

    --shadow-sm: 0 1px 2px -1px #1B23260D, 0 1px 1px #1B23260A;
    --shadow-md: 0 4px 12px -6px #1B232614, 0 1px 2px #1B23260A;
    --shadow-lg: 0 12px 28px -12px #0E2B2A1F, 0 2px 4px #1B23260D;

    --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
    --font-body:    'Geist', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --font-mono:    'Geist Mono', ui-monospace, 'SF Mono', monospace;
    --ease: cubic-bezier(.2,.6,.2,1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
    margin: 0;
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 18px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    /* glows meridiano no topo (teal + âmbar) */
    background:
        radial-gradient(58% 42% at 92% -2%, rgba(42,94,90,.09), transparent 60%),
        radial-gradient(48% 34% at 4% 4%, rgba(199,139,42,.08), transparent 60%),
        var(--bg);
    background-repeat: no-repeat;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-decoration: none; transition: color .15s var(--ease); }
a:hover { color: var(--brand-deep); }
::selection { background: var(--teal-200); color: var(--teal-900); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 28px; }

.eyebrow {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 11px; font-weight: 600;
    letter-spacing: .14em; text-transform: uppercase;
    color: var(--faint);
}

.avatar {
    display: inline-grid; place-items: center;
    width: 30px; height: 30px; border-radius: 50%;
    background: var(--brand); color: #fff;
    font-family: var(--font-display); font-weight: 600; font-size: 15px;
    flex: none;
}
.avatar.big { width: 48px; height: 48px; font-size: 22px; }

/* ---------- Botões (pill, como a landing) ---------- */
.btn {
    display: inline-flex; align-items: center; gap: .5em;
    font-family: var(--font-body); font-weight: 600; font-size: 14px;
    padding: 12px 22px; border-radius: 999px; border: 1px solid transparent;
    transition: all .2s var(--ease); white-space: nowrap;
}
.btn-primary { background: var(--brand); color: var(--bone-50); box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--brand-deep); color: var(--bone-50); }
/* usado dentro da faixa escura → âmbar (btn-accent da landing) */
.btn-light { background: var(--amber-500); color: var(--teal-900); }
.btn-light:hover { background: var(--amber-400); color: var(--teal-900); }
.nav-cta { padding: 10px 18px; }

/* ---------- Header (sticky + blur, nav mono) ---------- */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: color-mix(in srgb, var(--bone-50) 86%, transparent);
    backdrop-filter: saturate(1.2) blur(14px);
    border-bottom: 1px solid var(--line);
}
.nav-row { display: flex; align-items: center; gap: 28px; height: 74px; }
.wordmark {
    font-family: 'Instrument Serif', 'Fraunces', Georgia, serif;
    font-weight: 400; font-size: 31px; line-height: 1;
    letter-spacing: -.01em; color: var(--teal-900); display: inline-block; flex: none;
}
.wordmark i { font-style: italic; color: var(--teal-600); }
.wordmark .wm-dot {
    color: var(--amber-500); font-style: normal;
    margin-left: -.11em; vertical-align: .14em; display: inline-block;
}
.wordmark.small { font-size: 24px; }
.site-nav { margin-right: auto; margin-left: 10px; }
.site-nav ul { list-style: none; display: flex; gap: 26px; margin: 0; padding: 0; }
.site-nav a {
    font-family: var(--font-mono); font-size: 11px; font-weight: 600;
    letter-spacing: .08em; text-transform: uppercase; color: var(--muted);
}
.site-nav a:hover { color: var(--brand); }

/* ---------- Intro da home ---------- */
.page-intro { padding: 66px 0 22px; max-width: 780px; }
.page-intro .eyebrow { margin-bottom: 16px; }
.intro-title {
    font-family: var(--font-display); font-weight: 600;
    font-size: clamp(38px, 6vw, 66px); line-height: 1.0;
    letter-spacing: -.025em; margin: 0 0 18px; color: var(--teal-900); text-wrap: balance;
}
.intro-title .hl {
    font-style: italic; color: var(--brand);
    background: linear-gradient(transparent 66%, rgba(217,162,74,.42) 66%);
}
/* lede em serif (Fraunces), como a landing */
.intro-sub {
    font-family: var(--font-display); font-weight: 400;
    font-size: 22px; line-height: 1.45; color: var(--ink-soft); margin: 0; max-width: 54ch;
}

/* ---------- Categorias — cards editoriais ---------- */
.cats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin: 34px 0 56px; }
.cat {
    position: relative; overflow: hidden;
    display: flex; flex-direction: column; gap: 9px;
    background: var(--card); border: 1px solid var(--line); border-radius: 20px;
    padding: 26px 24px 22px; text-decoration: none; color: var(--ink);
    box-shadow: var(--shadow-sm);
    transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease);
}
/* brilho de cor sutil no canto = identidade do tema (sem a barra genérica no topo) */
.cat::before {
    content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: .7;
    background: radial-gradient(88% 62% at 0% 0%, var(--cat-tint, transparent), transparent 72%);
}
.cat > * { position: relative; z-index: 1; }
.cat-alim    { --cat-tint: rgba(42,94,90,.10); }
.cat-treino  { --cat-tint: rgba(217,162,74,.16); }
.cat-sono    { --cat-tint: rgba(20,64,61,.10); }
.cat-habitos { --cat-tint: rgba(76,90,94,.11); }
.cat:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.cat-alim:hover    { border-color: var(--teal-200); }
.cat-treino:hover  { border-color: #E5BC7A; }
.cat-sono:hover    { border-color: var(--teal-200); }
.cat-habitos:hover { border-color: #BEC6C9; }
.cat-ic {
    width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center;
    margin-bottom: 8px; transition: transform .2s var(--ease);
}
.cat-alim .cat-ic    { background: var(--teal-50);   color: var(--teal-600); }
.cat-treino .cat-ic  { background: var(--amber-100); color: var(--amber-700); }
.cat-sono .cat-ic    { background: #E4EDEA;          color: #14403D; }
.cat-habitos .cat-ic { background: #ECEFF0;          color: #4C5A5E; }
.cat:hover .cat-ic   { transform: scale(1.06); }
.cat-ic svg { width: 24px; height: 24px; }
.cat-name {
    font-family: var(--font-display); font-weight: 600; font-size: 25px; line-height: 1.08;
    letter-spacing: -.015em; color: var(--teal-900);
}
.cat-desc { font-size: 14.5px; color: var(--muted); line-height: 1.5; flex: 1; }
.cat-go {
    display: inline-flex; align-items: center; gap: 6px; margin-top: 8px;
    font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase;
    color: var(--brand); font-weight: 600;
}
.cat-go .arw { transition: transform .2s var(--ease); }
.cat:hover .cat-go { color: var(--brand-deep); }
.cat:hover .cat-go .arw { transform: translateX(4px); }

/* ---------- Cabeçalho da categoria (editorial, claro) ---------- */
.tag-head { padding: 58px 0 6px; max-width: 820px; }
.tag-head .eyebrow { color: var(--brand); margin-bottom: 14px; }
.tag-head-title {
    font-family: var(--font-display); font-weight: 600; color: var(--teal-900);
    font-size: clamp(40px, 6vw, 66px); line-height: 1.0; letter-spacing: -.025em;
    margin: 0; padding-bottom: 18px; position: relative;
}
.tag-head-title::after {
    content: ''; position: absolute; left: 0; bottom: 0; width: 64px; height: 4px; border-radius: 2px;
    background: var(--amber-500);
}
.tag-head--alimentacao .tag-head-title::after { background: var(--teal-500); }
.tag-head--treino .tag-head-title::after      { background: var(--amber-500); }
.tag-head--sono .tag-head-title::after        { background: #14403D; }
.tag-head--habitos .tag-head-title::after     { background: #4C5A5E; }
.tag-head-sub {
    font-family: var(--font-display); font-weight: 400; font-size: 22px; line-height: 1.45;
    color: var(--ink-soft); margin: 22px 0 0; max-width: 54ch;
}

/* ---------- Filtro de categorias (nav rápida) ---------- */
.cat-filter { display: flex; flex-wrap: wrap; gap: 8px; margin: 30px 0 34px; }
.cf {
    font-family: var(--font-mono); font-size: 11px; letter-spacing: .06em;
    text-transform: uppercase; font-weight: 600;
    padding: 9px 16px; border-radius: 999px;
    border: 1px solid var(--line-strong); color: var(--muted);
    transition: border-color .15s var(--ease), color .15s var(--ease), background .15s var(--ease);
}
.cf:hover { border-color: var(--brand); color: var(--brand); }
.cf.is-active { background: var(--teal-900); border-color: var(--teal-900); color: var(--bone-50); }

/* ---------- Hero post (destaque) ---------- */
.hero-post {
    display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px;
    align-items: center;
    background: var(--card); border: 1px solid var(--line);
    border-radius: var(--radius); box-shadow: var(--shadow-md);
    padding: 16px; margin: 26px 0 52px;
}
.hero-thumb {
    display: block; min-height: 340px; border-radius: 14px;
    background: var(--brand-soft) center/cover no-repeat; order: 2;
}
.hero-copy { padding: 22px 26px; order: 1; }
.hero-copy .eyebrow { margin-bottom: 10px; }
.hero-title {
    font-family: var(--font-display); font-weight: 600;
    font-size: clamp(27px, 3.4vw, 40px); line-height: 1.06;
    letter-spacing: -.02em; margin: 8px 0 14px; text-wrap: balance;
}
.hero-title a { color: var(--teal-900); }
.hero-title a:hover { color: var(--brand); }
.hero-excerpt { color: var(--muted); font-size: 17px; line-height: 1.6; margin: 0 0 20px; }
.byline {
    display: flex; align-items: center; gap: 10px; color: var(--faint);
    font-family: var(--font-mono); font-size: 12px; letter-spacing: .02em;
}

/* ---------- Grid de posts ---------- */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.post-card {
    background: var(--card); border: 1px solid var(--line);
    border-radius: var(--radius-sm); box-shadow: var(--shadow-sm);
    overflow: hidden; display: flex; flex-direction: column;
    transition: transform .16s var(--ease), box-shadow .16s var(--ease), border-color .16s var(--ease);
}
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--teal-100); }
.card-thumb { display: block; aspect-ratio: 16/10; background: var(--brand-soft) center/cover no-repeat; }
.card-body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-body .eyebrow { color: var(--brand); }
.card-title {
    font-family: var(--font-display); font-weight: 600; font-size: 20px;
    line-height: 1.15; letter-spacing: -.01em; margin: 4px 0 0; text-wrap: balance;
}
.card-title a { color: var(--teal-900); }
.card-title a:hover { color: var(--brand); }
.card-excerpt { color: var(--muted); font-size: 15px; margin: 0; flex: 1; }
.card-foot {
    font-family: var(--font-mono); font-size: 11px; letter-spacing: .06em;
    text-transform: uppercase; color: var(--faint); margin-top: 6px;
}

/* ---------- Estado sem imagem (texto-first) ---------- */
.hero-post.no-img { grid-template-columns: 1fr; }
.hero-post.no-img .hero-copy { padding: 30px 34px; }
.hero-post.no-img .hero-title { font-size: clamp(28px, 4vw, 44px); }
.post-card.no-img { border-top: 3px solid var(--amber-400); }
.post-card.no-img .card-body { padding-top: 20px; }

/* ---------- Paginação ---------- */
.pagination {
    display: flex; align-items: center; justify-content: center; gap: 18px;
    margin: 56px 0 8px; font-family: var(--font-mono); font-size: 12px;
    text-transform: uppercase; letter-spacing: .06em;
}
.pagination a {
    padding: 10px 20px; border: 1px solid var(--line-strong); border-radius: 999px;
    color: var(--ink-soft); font-weight: 600;
}
.pagination a:hover { border-color: var(--brand); color: var(--brand); }
.pagination .page-number { color: var(--muted); }

/* ---------- Faixa CTA (teal-900, como as seções escuras da landing) ---------- */
.cta-band { background: var(--teal-900); color: var(--bone-50); margin-top: 80px; }
.cta-inner {
    display: flex; align-items: center; justify-content: space-between; gap: 32px;
    padding: 56px 28px;
}
.cta-band h2 {
    font-family: var(--font-display); font-weight: 600; color: var(--bone-50);
    font-size: clamp(26px, 3vw, 36px); line-height: 1.08; letter-spacing: -.02em; margin: 0 0 8px;
}
.cta-band p { margin: 0; color: var(--teal-200); max-width: 46ch; }

/* ---------- Artigo ---------- */
.article { max-width: var(--read); margin: 0 auto; padding: 60px 24px 8px; }
.article-head { margin-bottom: 28px; }
.crumb {
    font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em;
    text-transform: uppercase; color: var(--brand); font-weight: 600;
}
.article-title {
    font-family: var(--font-display); font-weight: 600;
    font-size: clamp(34px, 5vw, 52px); line-height: 1.04;
    letter-spacing: -.025em; margin: 16px 0 0; color: var(--teal-900); text-wrap: balance;
}
.article-standfirst {
    font-family: var(--font-display); font-weight: 400;
    font-size: 21px; color: var(--ink-soft); line-height: 1.5; margin: 18px 0 0;
}
.article-meta {
    display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
    margin-top: 24px; color: var(--faint);
    font-family: var(--font-mono); font-size: 12px; letter-spacing: .02em;
}
.article-meta .dot-sep { color: var(--line-strong); }
.article-lead { margin: 36px 0; }
.article-lead img { border-radius: 16px; width: 100%; box-shadow: var(--shadow-md); }
.article-lead figcaption {
    font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .02em;
    color: var(--faint); text-align: center; margin-top: 12px;
}

/* ---------- Conteúdo (prose) ---------- */
.prose { font-size: 19px; line-height: 1.75; color: var(--ink-soft); }
.prose > * { margin: 0 0 1.2em; }
.prose h2 {
    font-family: var(--font-display); font-weight: 600; color: var(--teal-900);
    font-size: 29px; line-height: 1.16; letter-spacing: -.015em;
    margin: 1.8em 0 .5em; padding-top: .2em;
}
.prose h3 {
    font-family: var(--font-display); font-weight: 600; color: var(--teal-800, var(--teal-900));
    font-size: 22px; line-height: 1.22; margin: 1.6em 0 .4em;
}
.prose h4 { font-family: var(--font-body); font-weight: 700; color: var(--ink); font-size: 17px; margin: 1.4em 0 .3em; }
.prose a {
    color: var(--brand-deep); text-decoration: underline;
    text-underline-offset: 3px; text-decoration-thickness: 1px; text-decoration-color: var(--amber-400);
}
.prose a:hover { text-decoration-color: var(--brand); }
.prose strong { color: var(--teal-900); font-weight: 600; }
.prose ul, .prose ol { padding-left: 1.35em; }
.prose li { margin: .45em 0; }
.prose li::marker { color: var(--amber-500); }
.prose blockquote {
    border-left: 3px solid var(--amber-400); background: var(--bone-100);
    margin: 1.6em 0; padding: 16px 24px; border-radius: 0 12px 12px 0;
    font-family: var(--font-display); font-size: 21px; font-style: italic; color: var(--teal-800, var(--teal-900));
}
.prose blockquote p { margin: .3em 0; }
.prose img, .prose .kg-image { border-radius: 14px; }
.prose figure { margin: 1.8em 0; }
.prose figcaption {
    font-family: var(--font-mono); font-size: 12px; color: var(--faint); text-align: center; margin-top: 12px;
}
.prose hr { border: none; border-top: 1px solid var(--line-strong); margin: 2.4em 0; }
.prose code {
    font-family: var(--font-mono); font-size: .85em;
    background: var(--bone-200); border: 1px solid var(--line);
    padding: .12em .4em; border-radius: 6px;
}
.prose pre {
    background: var(--teal-900); color: #EAF0EE; border-radius: 14px;
    padding: 18px 20px; overflow-x: auto; font-family: var(--font-mono); font-size: 15px;
}
.prose pre code { background: none; border: none; padding: 0; color: inherit; }
.prose table { width: 100%; border-collapse: collapse; font-size: 16px; }
.prose th, .prose td { border-bottom: 1px solid var(--line); padding: 11px 12px; text-align: left; }
.prose th { font-family: var(--font-mono); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; font-weight: 600; color: var(--ink); }

/* ---------- Koenig (cards do editor Ghost) ---------- */
.gh-content .kg-card { margin: 1.8em 0; }
.gh-content .kg-image { border-radius: 14px; }
.gh-content .kg-width-wide { position: relative; width: min(1080px, 92vw); left: 50%; transform: translateX(-50%); }
.gh-content .kg-width-full { position: relative; width: 100vw; left: 50%; transform: translateX(-50%); }
.gh-content .kg-width-wide img, .gh-content .kg-width-full img { width: 100%; }
.gh-content .kg-width-full img { border-radius: 0; }
.gh-content .kg-embed-card { display: flex; justify-content: center; }
.gh-content .kg-bookmark-card { margin: 1.8em 0; }

/* ---------- Blocos de apoio ---------- */
.disclaimer {
    max-width: var(--read); margin: 40px auto 0; padding: 18px 22px;
    background: var(--amber-100); border: 1px solid var(--amber-300, #E5BC7A);
    border-radius: var(--radius-sm); font-size: 15px; color: var(--amber-700); line-height: 1.55;
}
.disclaimer strong { color: var(--amber-700); }
.authorbox {
    max-width: var(--read); margin: 28px auto 0; padding: 22px;
    display: flex; gap: 16px; align-items: flex-start;
    background: var(--bone-100); border: 1px solid var(--line); border-radius: 18px;
}
.authorbox strong { font-family: var(--font-display); font-size: 18px; color: var(--teal-900); }
.authorbox p { margin: 6px 0 0; font-size: 14.5px; color: var(--muted); }
.authorbox a { text-decoration: underline; text-decoration-color: var(--amber-400); text-underline-offset: 2px; }
.article-tags { max-width: var(--read); margin: 26px auto 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tag-pill {
    font-family: var(--font-mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase;
    font-weight: 600; padding: 6px 13px; border-radius: 999px;
    background: var(--teal-50); color: var(--brand-deep); border: 1px solid var(--teal-100);
}
.tag-pill:hover { background: var(--teal-100); color: var(--brand-deep); }

/* ---------- Relacionados ---------- */
.related { margin-top: 72px; }
.related-title {
    font-family: var(--font-display); font-weight: 600; font-size: 26px;
    letter-spacing: -.01em; margin: 0 0 24px; color: var(--teal-900);
}

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); margin-top: 0; background: var(--bone-100); }
.footer-row { padding: 48px 28px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 28px; align-items: flex-start; }
.footer-brand { display: flex; flex-direction: column; gap: 10px; max-width: 300px; }
.footer-brand p { margin: 0; color: var(--muted); font-size: 15px; }
.footer-disc { margin: 0; color: var(--muted); font-size: 13.5px; max-width: 46ch; line-height: 1.55; }
.footer-disc a { text-decoration: underline; text-decoration-color: var(--amber-400); text-underline-offset: 2px; }
.footer-copy {
    margin: 0; width: 100%; padding-top: 8px; border-top: 1px solid var(--line);
    font-family: var(--font-mono); font-size: 12px; letter-spacing: .02em; color: var(--faint);
}
.footer-copy a { text-decoration: underline; }

/* ---------- Responsivo ---------- */
@media (max-width: 900px) {
    .post-grid { grid-template-columns: repeat(2, 1fr); }
    .hero-post { grid-template-columns: 1fr; }
    .hero-thumb { order: 1; min-height: 220px; }
    .hero-copy { order: 2; padding: 8px 16px 20px; }
    .cta-inner { flex-direction: column; align-items: flex-start; text-align: left; }
    .intro-title { font-size: clamp(34px, 9vw, 52px); }
    .cats { grid-template-columns: repeat(2, 1fr); gap: 14px; }
    .cat { padding: 20px 18px; }
}
@media (max-width: 620px) {
    body { font-size: 17px; }
    .post-grid { grid-template-columns: 1fr; }
    .cats { grid-template-columns: 1fr; }
    .tag-head { padding: 40px 0 4px; }
    .wrap { padding: 0 20px; }
    .nav-row { gap: 14px; }
    .site-nav { display: none; }
    .prose { font-size: 18px; }
    .article { padding-top: 40px; }
}
