/* ============================================
   O CAPITAL LITERÁRIO — P&B Puro & Fluid
   ============================================ */

/* --- VARIÁVEIS FLUIDAS (Light - P&B) --- */
:root {
    --color-bg: #F5F5F5;
    --color-surface: #FFFFFF;
    --color-text: #111111;
    --color-text-muted: #777777;
    --color-border: #D1D1D1;
    --color-border-light: #E8E8E8;
    --color-accent: #111111;
    --color-accent-hover: #444444;
    --color-accent-subtle: rgba(0, 0, 0, 0.04);
    --color-tag-bg: #111111;
    --color-tag-text: #FFFFFF;
    --color-price: #111111;
    --color-invert: #000000;
    --color-bar: #111111;

    /* Fontes 100% locais (Sem Google Fonts) */
    --font-display: Georgia, 'Times New Roman', Times, serif;
    --font-body: Georgia, 'Times New Roman', Times, serif;
    --font-ui: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;

    /* Escala fluida AMPLIADA */
    --fs-xs:    clamp(0.75rem, 0.75vw, 0.9rem);
    --fs-sm:    clamp(0.85rem, 0.8vw, 1rem);
    --fs-base:  clamp(1.05rem, 1vw, 1.25rem);
    --fs-md:    clamp(1.2rem, 1.15vw, 1.5rem);
    --fs-lg:    clamp(1.5rem, 1.5vw, 2.1rem);
    --fs-xl:    clamp(2rem, 2.2vw, 3.2rem);
    --fs-2xl:   clamp(2.5rem, 3vw, 4.2rem);
    --fs-3xl:   clamp(3rem, 3.8vw, 5.5rem);

    /* Espaçamento fluido */
    --sp-xs:  clamp(0.25rem, 0.25vw, 0.4rem);
    --sp-sm:  clamp(0.5rem, 0.5vw, 0.8rem);
    --sp-md:  clamp(0.8rem, 0.75vw, 1.2rem);
    --sp-lg:  clamp(1.2rem, 1.4vw, 2.2rem);
    --sp-xl:  clamp(2rem, 2.4vw, 3.5rem);
    --sp-2xl: clamp(2.5rem, 3.5vw, 5rem);
}

/* --- VARIÁVEIS (Dark - P&B) --- */
[data-theme="dark"] {
    --color-bg: #0A0A0A;
    --color-surface: #141414;
    --color-text: #D9D9D9;
    --color-text-muted: #777777;
    --color-border: #2A2A2A;
    --color-border-light: #1E1E1E;
    --color-accent: #FFFFFF;
    --color-accent-hover: #BBBBBB;
    --color-accent-subtle: rgba(255, 255, 255, 0.05);
    --color-tag-bg: #FFFFFF;
    --color-tag-text: #0A0A0A;
    --color-price: #FFFFFF;
    --color-invert: #FFFFFF;
    --color-bar: #111111;
}

/* --- RESET --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    font-size: var(--fs-base);
    color: var(--color-text);
    background-color: var(--color-bg);
    line-height: 1.75;
    transition: background-color 0.3s ease, color 0.3s ease;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* --- TOP BAR (Informações) --- */
.top-bar {
    width: 100%;
    background: var(--color-bar);
    color: rgba(255,255,255,0.5);
    transition: background-color 0.3s ease;
}

.top-bar__inner {
    width: 94%;
    max-width: 1600px;
    margin: 0 auto;
    padding: 0.4rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-ui);
    font-size: 0.7rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.top-bar__item a {
    color: inherit;
    transition: color 0.2s;
}

.top-bar__item a:hover {
    color: #FFFFFF;
}

.top-bar__item--center {
    text-align: center;
}

.top-bar__item--right {
    text-align: right;
}

/* --- MASTHEAD --- */
.masthead {
    background: var(--color-surface);
    padding: var(--sp-lg) 0 0 0;
    transition: background-color 0.3s ease;
}

.masthead__bottom-rule {
    height: 1px;
    background: var(--color-border);
}

.masthead__inner {
    width: 94%;
    max-width: 1600px;
    margin: 0 auto;
    padding: var(--sp-md) 0 var(--sp-lg);
    text-align: center;
}

.masthead__edition {
    font-family: var(--font-ui);
    font-size: var(--fs-xs);
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    margin-bottom: var(--sp-xs);
}

.masthead__logo-link { display: inline-block; }

.masthead__logo {
    width: clamp(14rem, 22vw, 28rem);
    height: auto;
    transition: filter 0.3s ease;
}

[data-theme="dark"] .masthead__logo {
    filter: brightness(0) invert(1);
}

.masthead__tagline {
    font-family: var(--font-body);
    font-style: italic;
    font-size: var(--fs-sm);
    color: var(--color-text-muted);
    margin-top: var(--sp-xs);
}

/* --- NAV BAR --- */
.nav-bar {
    background: var(--color-bar);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 8px rgba(0,0,0,0.15);
    border-bottom: 1px solid var(--color-border);
    transition: background-color 0.3s ease;
}

.nav-bar__inner {
    width: 100%;
    margin: 0 auto;
    padding: 0 clamp(0.5rem, 2vw, 3rem);
    overflow-x: auto;
    scrollbar-width: none;
}
.nav-bar__inner::-webkit-scrollbar { display: none; }

.nav-bar__list {
    display: flex;
    justify-content: center;
    align-items: center;
}

.nav-bar__link {
    display: block;
    padding: clamp(0.6rem, 0.9vw, 1rem) clamp(0.8rem, 1.4vw, 1.6rem);
    font-family: var(--font-ui);
    font-size: var(--fs-xs);
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.5);
    transition: color 0.2s, background 0.2s;
    white-space: nowrap;
}

.nav-bar__link:hover {
    color: #FFFFFF;
    background: rgba(255,255,255,0.07);
}

.nav-bar__link--active {
    color: #FFFFFF;
}

/* --- THEME TOGGLE --- */
.theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
    padding: clamp(0.5rem, 0.8vw, 0.8rem) clamp(0.6rem, 1vw, 1rem);
    color: rgba(255,255,255,0.5);
    transition: color 0.2s, background 0.2s;
}

.theme-toggle:hover {
    color: #FFFFFF;
    background: rgba(255,255,255,0.07);
}

.theme-toggle__icon--sun { display: none; }
.theme-toggle__icon--moon { display: block; }
[data-theme="dark"] .theme-toggle__icon--sun { display: block; }
[data-theme="dark"] .theme-toggle__icon--moon { display: none; }

/* --- SEÇÕES --- */
.section {
    width: 94%;
    max-width: 1600px;
    margin: 0 auto;
    padding: var(--sp-2xl) 0;
}

.section--shop {
    width: 94%;
    max-width: 1600px;
    margin: 0 auto;
    padding: var(--sp-2xl) 0;
    transition: background-color 0.3s ease;
}

.section--bottom-grid {
    border-top: 1px solid var(--color-border);
}

.section__header { 
    margin-bottom: var(--sp-xl);
    text-align: center;
}

.section__title {
    font-family: var(--font-display);
    font-size: var(--fs-lg);
    font-weight: 900;
    letter-spacing: -0.02em;
    text-transform: uppercase;
}

.section__subtitle {
    font-family: var(--font-body);
    font-style: italic;
    font-size: var(--fs-sm);
    color: var(--color-text-muted);
    margin-top: var(--sp-xs);
}

.section__rule {
    width: clamp(30px, 3vw, 50px);
    height: 1px;
    background: var(--color-text);
    margin: var(--sp-md) auto 0;
    transition: background-color 0.3s ease;
}

/* --- POST META --- */
.post-meta__category {
    font-family: var(--font-ui);
    font-size: var(--fs-xs);
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-accent);
}

.post-meta__category--large {
    font-size: var(--fs-sm);
}

.post-meta__date {
    font-family: var(--font-ui);
    font-size: var(--fs-xs);
    color: var(--color-text-muted);
}

.post-meta__date--large {
    font-size: var(--fs-sm);
}

/* ============================================
   JORNAL — GRID 3 COLUNAS
   ============================================ */
.newspaper {
    display: grid;
    grid-template-columns: 1fr 1.7fr 1fr;
    width: 94%;
    max-width: 1600px;
    margin: 0 auto;
    border-bottom: 1px solid var(--color-border);
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.newspaper__col {
    padding: var(--sp-lg);
}

.newspaper__col--left {
    border-right: 1px solid var(--color-border);
}

.newspaper__col--right {
    border-left: 1px solid var(--color-border);
}

.newspaper__col-header {
    margin-bottom: var(--sp-lg);
}

.newspaper__col-title {
    font-family: var(--font-ui);
    font-size: var(--fs-xs);
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--color-text-muted);
}

.newspaper__col-rule {
    width: clamp(20px, 2vw, 35px);
    height: 1px;
    background: var(--color-text);
    margin-top: var(--sp-sm);
    transition: background-color 0.3s ease;
}

/* --- CARD SIDEBAR com IMAGEM --- */
.card-sidebar {
    display: flex;
    gap: var(--sp-md);
    padding: var(--sp-md) 0;
    border-bottom: 1px solid var(--color-border-light);
    transition: border-color 0.3s ease;
}

.card-sidebar:last-child {
    border-bottom: none;
}

.card-sidebar__thumb {
    flex-shrink: 0;
    width: clamp(80px, 7vw, 120px);
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: var(--color-border-light);
    transition: background-color 0.3s ease;
}

.card-sidebar__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.card-sidebar:hover .card-sidebar__thumb img {
    transform: scale(1.08);
}

.card-sidebar__content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.card-sidebar__title {
    font-family: var(--font-display);
    font-size: clamp(0.95rem, 0.85vw, 1.2rem);
    font-weight: 700;
    line-height: 1.3;
    margin: var(--sp-xs) 0;
}

.card-sidebar__title a:hover {
    opacity: 0.7;
}

/* --- CARD FEATURED (Coluna 2) --- */
.card-featured__image-wrap {
    overflow: hidden;
    background: var(--color-border-light);
    transition: background-color 0.3s ease;
}

.card-featured__image {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.card-featured:hover .card-featured__image {
    transform: scale(1.02);
}

.card-featured__body {
    padding: var(--sp-lg) 0 0;
}

.card-featured__title {
    font-family: var(--font-display);
    font-size: var(--fs-xl);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin: var(--sp-sm) 0 var(--sp-md);
}

.card-featured__title a:hover {
    opacity: 0.7;
}

.card-featured__subtitle {
    font-family: var(--font-body);
    font-style: italic;
    font-size: var(--fs-md);
    color: var(--color-text-muted);
    margin-bottom: var(--sp-md);
}

.card-featured__excerpt {
    font-size: var(--fs-sm);
    color: var(--color-text-muted);
    line-height: 1.7;
}

/* ============================================
   GRID 5x2
   ============================================ */
.grid-5x2 {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: var(--sp-lg);
}

.card-grid {
    background: var(--color-surface);
    border: 1px solid var(--color-border-light);
    overflow: hidden;
    transition: box-shadow 0.3s, transform 0.3s, background-color 0.3s ease, border-color 0.3s ease;
}

.card-grid:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
    transform: translateY(-2px);
}

[data-theme="dark"] .card-grid:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.4);
}

.card-grid__image-wrap {
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--color-border-light);
    transition: background-color 0.3s ease;
}

.card-grid__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.card-grid:hover .card-grid__image {
    transform: scale(1.05);
}

.card-grid__body {
    padding: var(--sp-md);
}

.card-grid__title {
    font-family: var(--font-display);
    font-size: clamp(0.9rem, 0.8vw, 1.15rem);
    font-weight: 700;
    line-height: 1.3;
    margin: var(--sp-xs) 0;
}

.card-grid__title a:hover {
    opacity: 0.7;
}

/* ============================================
   POSTS GRID (Listagem geral - 4 por linha)
   ============================================ */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--sp-lg);
}

.post-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border-light);
    overflow: hidden;
    transition: box-shadow 0.3s, transform 0.3s, background-color 0.3s ease, border-color 0.3s ease;
}

.post-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
    transform: translateY(-2px);
}

[data-theme="dark"] .post-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.4);
}

.post-card__image-link {
    display: block;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    background: var(--color-border-light);
    transition: background-color 0.3s ease;
}

.post-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.post-card:hover .post-card__image {
    transform: scale(1.05);
}

.post-card__body { padding: var(--sp-lg); }

.post-card__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--sp-sm);
}

.post-card__title {
    font-family: var(--font-display);
    font-size: var(--fs-md);
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: var(--sp-sm);
}

.post-card__title a:hover { opacity: 0.7; }

.post-card__excerpt {
    font-size: var(--fs-sm);
    color: var(--color-text-muted);
    line-height: 1.65;
}

/* ============================================
   LOJA / AFILIADOS
   ============================================ */
.shop-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--sp-lg);
}

.aff-card {
    background: var(--color-bg);
    border: 1px solid var(--color-border-light);
    overflow: hidden;
    transition: box-shadow 0.3s, transform 0.3s, background-color 0.3s ease, border-color 0.3s ease;
    display: flex;
    flex-direction: column;
}

.aff-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
    transform: translateY(-2px);
}

[data-theme="dark"] .aff-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.4);
}

.aff-card__image-wrap {
    position: relative;
    aspect-ratio: 3 / 4;
    background: var(--color-border-light);
    overflow: hidden;
    transition: background-color 0.3s ease;
}

.aff-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.aff-card:hover .aff-card__image { transform: scale(1.04); }

.aff-card__tag {
    position: absolute;
    top: var(--sp-sm);
    left: var(--sp-sm);
    background: var(--color-tag-bg);
    color: var(--color-tag-text);
    font-family: var(--font-ui);
    font-size: var(--fs-xs);
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.2rem 0.55rem;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.aff-card__body {
    padding: var(--sp-md);
    flex: 1;
    display: flex;
    flex-direction: column;
}

.aff-card__title {
    font-family: var(--font-display);
    font-size: var(--fs-md);
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: var(--sp-xs);
}

.aff-card__author {
    font-family: var(--font-ui);
    font-size: var(--fs-xs);
    color: var(--color-text-muted);
    margin-bottom: var(--sp-sm);
}

.aff-card__excerpt {
    font-size: var(--fs-sm);
    color: var(--color-text-muted);
    line-height: 1.6;
    flex: 1;
    margin-bottom: var(--sp-md);
}

.aff-card__price {
    font-family: var(--font-ui);
    font-size: var(--fs-md);
    font-weight: 700;
    color: var(--color-price);
    margin-bottom: var(--sp-sm);
    transition: color 0.3s ease;
}

.aff-card__btn {
    display: inline-block;
    text-align: center;
    background: var(--color-text);
    color: var(--color-bg);
    font-family: var(--font-ui);
    font-size: var(--fs-xs);
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: clamp(0.6rem, 0.7vw, 0.8rem) 1.2rem;
    transition: opacity 0.2s, transform 0.15s, background-color 0.3s ease, color 0.3s ease;
}

.aff-card__btn:hover {
    opacity: 0.85;
    transform: scale(1.02);
}

/* --- AFILIADO INLINE (shortcode) --- */
.aff-inline {
    display: grid;
    grid-template-columns: clamp(100px, 11vw, 160px) 1fr;
    gap: var(--sp-lg);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    padding: var(--sp-lg);
    margin: var(--sp-xl) 0;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.aff-inline__image-wrap { position: relative; }

.aff-inline__image {
    width: 100%;
    height: auto;
    box-shadow: 2px 2px 0 var(--color-border);
}

.aff-inline__tag {
    position: absolute;
    top: -0.4rem;
    right: -0.4rem;
    background: var(--color-tag-bg);
    color: var(--color-tag-text);
    font-family: var(--font-ui);
    font-size: var(--fs-xs);
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.15rem 0.45rem;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.aff-inline__title {
    font-family: var(--font-display);
    font-size: var(--fs-lg);
    font-weight: 700;
    margin-bottom: var(--sp-xs);
}

.aff-inline__author {
    font-family: var(--font-ui);
    font-size: var(--fs-sm);
    color: var(--color-text-muted);
    margin-bottom: var(--sp-sm);
}

.aff-inline__text {
    font-size: var(--fs-sm);
    color: var(--color-text-muted);
    line-height: 1.65;
    margin-bottom: var(--sp-md);
}

.aff-inline__price {
    font-family: var(--font-ui);
    font-size: var(--fs-md);
    font-weight: 700;
    color: var(--color-price);
    margin-bottom: var(--sp-sm);
    transition: color 0.3s ease;
}

.aff-inline__btn {
    display: inline-block;
    background: var(--color-text);
    color: var(--color-bg);
    font-family: var(--font-ui);
    font-size: var(--fs-xs);
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 0.7rem 1.5rem;
    transition: opacity 0.2s, background-color 0.3s ease, color 0.3s ease;
}

.aff-inline__btn:hover { opacity: 0.85; }

/* --- PULL QUOTE --- */
.pull-quote {
    border-left: 1px solid var(--color-text);
    margin: var(--sp-xl) 0;
    padding: var(--sp-lg) var(--sp-xl);
    background: var(--color-surface);
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.pull-quote p {
    font-family: var(--font-display);
    font-size: var(--fs-lg);
    font-style: italic;
    font-weight: 400;
    line-height: 1.5;
}

/* ============================================
   ARTIGO SINGLE
   ============================================ */
.article {
    width: 94%;
    max-width: 860px;
    margin: 0 auto;
    padding: var(--sp-2xl) 0;
}

.article__header { margin-bottom: var(--sp-xl); }

.article__meta-top {
    display: flex;
    align-items: center;
    gap: var(--sp-md);
    margin-bottom: var(--sp-md);
}

.article__title {
    font-family: var(--font-display);
    font-size: var(--fs-2xl);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -0.03em;
}

.article__subtitle {
    font-family: var(--font-body);
    font-style: italic;
    font-size: var(--fs-md);
    color: var(--color-text-muted);
    margin-top: var(--sp-md);
}

.article__rule {
    width: 100%;
    height: 1px;
    background: var(--color-border);
    margin-top: var(--sp-xl);
    transition: background-color 0.3s ease;
}

.article__body {
    font-size: var(--fs-base);
    line-height: 1.85;
}

.article__body p { margin-bottom: var(--sp-lg); }

.article__body h2 {
    font-family: var(--font-display);
    font-size: var(--fs-xl);
    font-weight: 900;
    margin: var(--sp-2xl) 0 var(--sp-md);
    letter-spacing: -0.01em;
}

.article__body h3 {
    font-family: var(--font-display);
    font-size: var(--fs-lg);
    font-weight: 700;
    margin: var(--sp-xl) 0 var(--sp-sm);
}

.article__body blockquote {
    border-left: 1px solid var(--color-text);
    padding-left: var(--sp-lg);
    margin: var(--sp-xl) 0;
    font-style: italic;
    color: var(--color-text-muted);
    transition: border-color 0.3s ease;
}

.article__body a {
    text-decoration: underline;
    text-underline-offset: 2px;
}

.article__body a:hover { opacity: 0.7; }

.article__body ul,
.article__body ol {
    margin: var(--sp-md) 0 var(--sp-lg) var(--sp-lg);
}

.article__body li { margin-bottom: var(--sp-sm); }

.article__body img {
    margin: var(--sp-xl) 0;
    border: 1px solid var(--color-border-light);
    transition: border-color 0.3s ease;
}

.article__footer { margin-top: var(--sp-2xl); }

.article__share {
    display: flex;
    align-items: center;
    gap: var(--sp-md);
    padding-top: var(--sp-lg);
}

.article__share-label {
    font-family: var(--font-ui);
    font-size: var(--fs-xs);
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-text-muted);
}

.share-btn {
    font-family: var(--font-ui);
    font-size: var(--fs-xs);
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--color-text);
    border: 1px solid var(--color-border);
    padding: 0.5rem 1rem;
    transition: background 0.2s, color 0.2s, border-color 0.3s ease;
}

.share-btn:hover {
    background: var(--color-text);
    color: var(--color-bg);
    border-color: var(--color-text);
}

/* --- PAGINAÇÃO --- */
.pagination {
    width: 94%;
    max-width: 1600px;
    margin: 0 auto;
    padding: var(--sp-2xl) 0 0;
    display: flex;
    justify-content: center;
    gap: var(--sp-md);
}

.pagination__btn {
    font-family: var(--font-ui);
    font-size: var(--fs-xs);
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--color-text);
    border: 1px solid var(--color-border);
    padding: 0.7rem 1.6rem;
    transition: background 0.2s, color 0.2s, border-color 0.3s ease;
}

.pagination__btn:hover {
    background: var(--color-text);
    color: var(--color-bg);
    border-color: var(--color-text);
}

/* --- FOOTER --- */
.footer {
    background: #111111;
    color: rgba(255,255,255,0.4);
    padding: var(--sp-xl) 0;
}

.footer__rule {
    width: 94%;
    max-width: 1600px;
    margin: 0 auto var(--sp-xl);
    height: 1px;
    background: rgba(255,255,255,0.08);
}

.footer__inner {
    width: 94%;
    max-width: 1600px;
    margin: 0 auto;
    text-align: center;
}

.footer__brand { margin-bottom: var(--sp-lg); }

.footer__logo {
    width: clamp(2rem, 2vw, 3rem);
    margin: 0 auto var(--sp-sm);
    opacity: 0.5;
    transition: filter 0.3s ease;
}

.footer__name {
    font-family: var(--font-display);
    font-size: var(--fs-sm);
    font-weight: 700;
    color: rgba(255,255,255,0.6);
}

.footer__disclaimer {
    font-family: var(--font-ui);
    font-size: var(--fs-xs);
    line-height: 1.6;
    max-width: 520px;
    margin: 0 auto var(--sp-md);
    color: rgba(255,255,255,0.25);
}

.footer__copy {
    font-family: var(--font-ui);
    font-size: var(--fs-xs);
    color: rgba(255,255,255,0.18);
}

/* ============================================
   GRAPH / TAXONOMIAS
   ============================================ */
.section--graph {
    text-align: center;
}

.graph-cloud {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--sp-md);
    padding: var(--sp-xl) 0;
    border-bottom: 1px solid var(--color-border);
    margin-bottom: var(--sp-xl);
}

.graph-tag {
    display: inline-flex;
    align-items: center;
    gap: var(--sp-xs);
    padding: var(--sp-sm) var(--sp-md);
    border: 1px solid var(--color-border);
    text-decoration: none;
    color: var(--color-text);
    transition: background 0.2s, color 0.2s, border-color 0.3s ease;
    /* Escala fluida baseada na quantidade de posts (1 a 4) */
    font-size: clamp(0.8rem, calc(var(--tag-size, 1) * 0.4vw + 0.6rem), 2.5rem);
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1;
}

.graph-tag:hover {
    background: var(--color-text);
    color: var(--color-bg);
    border-color: var(--color-text);
}

.graph-tag__count {
    font-family: var(--font-ui);
    font-size: 0.6em; /* Relativo ao tamanho fluido da tag */
    font-weight: 400;
    opacity: 0.5;
}

.graph-categories {
    padding-top: var(--sp-lg);
}

.graph-cat-title {
    font-family: var(--font-ui);
    font-size: var(--fs-xs);
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    margin-bottom: var(--sp-md);
}

.graph-cat-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--sp-sm) var(--sp-lg);
}

.graph-cat-link {
    font-family: var(--font-display);
    font-size: var(--fs-md);
    font-weight: 700;
    color: var(--color-text);
    text-decoration: none;
    transition: opacity 0.2s;
}

.graph-cat-link:hover {
    opacity: 0.6;
}

.graph-cat-count {
    font-family: var(--font-ui);
    font-size: var(--fs-xs);
    color: var(--color-text-muted);
    font-weight: 400;
}

/* --- IMAGENS COMO LINKS (BLOCO) --- */
.card-sidebar__thumb,
.card-featured__image-wrap,
.card-grid__image-wrap,
.aff-card__image-wrap {
    display: block;
}

/* ============================================
   RESPONSIVO
   ============================================ */

@media (max-width: 1200px) {
    .grid-5x2 {
        grid-template-columns: repeat(3, 1fr);
    }

    .posts-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 1000px) {
    .shop-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 900px) {
    .top-bar__item--center { display: none; }
    .newspaper {
        grid-template-columns: 1fr;
    }

    .newspaper__col--left,
    .newspaper__col--right {
        border: none;
        border-bottom: 1px solid var(--color-border);
    }

    .newspaper__col--left  { order: 2; }
    .newspaper__col--center { order: 1; border-bottom: 1px solid var(--color-border); }
    .newspaper__col--right  { order: 3; border-bottom: none; }

    .card-sidebar__thumb {
        width: clamp(60px, 15vw, 90px);
    }

    .posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .grid-5x2 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .masthead__logo {
        width: clamp(11rem, 60vw, 16rem);
    }

    .nav-bar__link {
        padding: 0.6rem 0.6rem;
        font-size: 0.65rem;
    }

    .section,
    .section--shop {
        padding: var(--sp-xl) clamp(0.8rem, 4vw, 1.5rem);
    }

    .posts-grid {
        grid-template-columns: 1fr;
    }

    .grid-5x2 {
        grid-template-columns: 1fr;
    }

    .shop-grid {
        grid-template-columns: 1fr;
        gap: var(--sp-md);
    }

    .article {
        width: 90%;
    }

    .article__title {
        font-size: var(--fs-xl);
    }

    .pull-quote p {
        font-size: var(--fs-md);
    }

    .aff-inline {
        grid-template-columns: 1fr;
        padding: var(--sp-md);
    }

    .aff-inline__image {
        max-width: 110px;
    }
}