:root {
    --bg: #07111f;
    --bg2: #0d1a2d;
    --bg3: #132236;
    --border: #1a2e46;
    --border-accent: #1e3a58;
    --text: #e2eaf4;
    --text-2: #7da3c4;
    --text-3: #3d6080;
    --accent: #3b82f6;
    --accent-glow: rgba(59,130,246,.15);
    --el-nino: #ef4444;
    --el-nino-soft: rgba(239,68,68,.12);
    --la-nina: #3b82f6;
    --la-nina-soft: rgba(59,130,246,.12);
    --neutro: #64748b;
    --neutro-soft: rgba(100,116,139,.1);
    --radius: 12px;
    --radius-sm: 8px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    background: var(--bg);
    color: var(--text);
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    font-size: 15px;
    line-height: 1.6;
}

a { color: inherit; }

.container {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ── EDITORIAL HERO ── */
.editorial-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
}

.eh-bg {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 80% 60% at 70% 50%, rgba(30,60,100,.6) 0%, transparent 70%),
                radial-gradient(ellipse 50% 40% at 20% 80%, rgba(10,30,60,.4) 0%, transparent 70%);
    transition: background 1.2s ease;
    z-index: 0;
}

.eh-bg.elnino {
    background: radial-gradient(ellipse 80% 60% at 70% 50%, rgba(120,20,20,.55) 0%, transparent 70%),
                radial-gradient(ellipse 40% 30% at 15% 75%, rgba(80,10,10,.3) 0%, transparent 70%);
}

.eh-bg.lanina {
    background: radial-gradient(ellipse 80% 60% at 70% 50%, rgba(10,40,120,.55) 0%, transparent 70%),
                radial-gradient(ellipse 40% 30% at 15% 75%, rgba(5,20,80,.3) 0%, transparent 70%);
}

.eh-noise {
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
    opacity: .4;
    pointer-events: none;
    z-index: 1;
}

.eh-container {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 48px;
    align-items: center;
    padding-top: 80px;
    padding-bottom: 80px;
}

/* left */
.eh-live-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--text-2);
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 20px;
    padding: 5px 14px;
    margin-bottom: 24px;
}

.eh-live-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 0 0 rgba(34,197,94,.5);
    animation: livePulse 2s infinite;
}

@keyframes livePulse {
    0%   { box-shadow: 0 0 0 0 rgba(34,197,94,.5); }
    70%  { box-shadow: 0 0 0 7px rgba(34,197,94,0); }
    100% { box-shadow: 0 0 0 0 rgba(34,197,94,0); }
}

.eh-headline {
    font-size: clamp(28px, 4vw, 48px);
    font-weight: 800;
    letter-spacing: -1.5px;
    line-height: 1.15;
    color: var(--text);
    margin-bottom: 20px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp .7s .2s forwards;
}

.eh-body {
    font-size: 17px;
    color: var(--text-2);
    line-height: 1.7;
    max-width: 500px;
    margin-bottom: 32px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp .7s .4s forwards;
}

.eh-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--accent);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    transition: background .2s, transform .15s;
    opacity: 0;
    animation: fadeUp .7s .6s forwards;
    margin-bottom: 20px;
}

.eh-cta:hover { background: #2563eb; transform: translateY(-1px); }
.eh-cta.elnino { background: var(--el-nino); }
.eh-cta.elnino:hover { background: #dc2626; }
.eh-cta.lanina { background: var(--la-nina); }
.eh-cta.lanina:hover { background: #2563eb; }

.eh-source {
    font-size: 11px;
    color: var(--text-3);
    opacity: 0;
    animation: fadeUp .7s .7s forwards;
}

/* right */
.eh-right {
    text-align: center;
    opacity: 0;
    animation: fadeUp .7s .5s forwards;
}

.eh-metric-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--text-3);
    margin-bottom: 12px;
}

.eh-big-number {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 4px;
    line-height: 1;
    margin-bottom: 12px;
}

.eh-num {
    font-size: clamp(72px, 10vw, 120px);
    font-weight: 800;
    letter-spacing: -4px;
    color: var(--text);
    transition: color .8s;
}

.eh-num.elnino { color: var(--el-nino); }
.eh-num.lanina { color: var(--la-nina); }

.eh-unit {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-3);
    margin-top: 16px;
}

.eh-trend {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-2);
    margin-bottom: 24px;
    min-height: 20px;
}

.eh-trend .up   { color: var(--el-nino); }
.eh-trend .down { color: var(--la-nina); }
.eh-trend .flat { color: var(--text-3); }

.eh-spark-wrap {
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 10px;
    padding: 16px;
}

#ehSpark {
    width: 100%;
    height: 80px;
    display: block;
}

.eh-spark-label {
    font-size: 10px;
    color: var(--text-3);
    margin-top: 6px;
    text-align: center;
    letter-spacing: .05em;
    text-transform: uppercase;
}

/* scroll hint */
.eh-scroll-hint {
    position: absolute;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--text-3);
    z-index: 2;
    animation: bounce 2s infinite;
    text-decoration: none;
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50%       { transform: translateX(-50%) translateY(6px); }
}

@keyframes fadeUp {
    to { opacity: 1; transform: translateY(0); }
}

/* HEADER ── */
.site-header {
    background: rgba(7,17,31,.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    padding: 14px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: 18px;
    font-weight: 800;
    letter-spacing: -.5px;
    color: var(--text);
    text-decoration: none;
}

.logo span, .logo-sm span { color: var(--accent); }

.logo-sm {
    font-size: 14px;
    font-weight: 800;
    letter-spacing: -.3px;
}

nav { display: flex; gap: 6px; }

nav a {
    color: var(--text-2);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    padding: 6px 12px;
    border-radius: 20px;
    transition: color .2s, background .2s;
}

nav a:hover {
    color: var(--text);
    background: var(--bg3);
}

/* ── HERO ── */
.hero {
    padding: 48px 0 40px;
    border-bottom: 1px solid var(--border);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 20px;
    align-items: start;
}

.phase-card {
    background: var(--bg2);
    border: 1px solid var(--border-accent);
    border-radius: var(--radius);
    padding: 28px 32px;
}

.phase-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--text-3);
    margin-bottom: 14px;
}

.phase-badge {
    display: inline-block;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -.5px;
    padding: 6px 18px;
    border-radius: 30px;
    margin-bottom: 20px;
}

.phase-badge.neutro  { background: var(--neutro-soft);  color: #94a3b8; border: 1px solid rgba(100,116,139,.3); }
.phase-badge.elnino  { background: var(--el-nino-soft); color: var(--el-nino); border: 1px solid rgba(239,68,68,.3); }
.phase-badge.lanina  { background: var(--la-nina-soft); color: var(--la-nina); border: 1px solid rgba(59,130,246,.3); }

.oni-value-row {
    display: flex;
    gap: 32px;
    margin-bottom: 16px;
}

.oni-block { display: flex; flex-direction: column; gap: 3px; }

.oni-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .07em;
    color: var(--text-3);
}

.oni-value {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -1px;
    color: var(--text);
}

.oni-value.elnino { color: var(--el-nino); }
.oni-value.lanina { color: var(--la-nina); }

.phase-note {
    font-size: 13px;
    color: var(--text-2);
    line-height: 1.5;
}

/* side cards */
.side-cards {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.stat-card {
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 18px 20px;
    transition: border-color .2s;
}

.stat-card.elnino { border-color: rgba(239,68,68,.35); }
.stat-card.lanina { border-color: rgba(59,130,246,.35); }

.stat-card-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .07em;
    color: var(--text-3);
    margin-bottom: 8px;
}

.stat-card-value {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -.5px;
    color: var(--text);
    margin-bottom: 4px;
}

.stat-card-value.elnino { color: var(--el-nino); }
.stat-card-value.lanina { color: var(--la-nina); }

.stat-card-sub {
    font-size: 12px;
    color: var(--text-2);
}

/* ── SECTIONS ── */
.section {
    padding: 48px 0;
    border-bottom: 1px solid var(--border);
}

.section-header { margin-bottom: 28px; }

.section-title {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -.4px;
    margin-bottom: 6px;
}

.section-sub {
    font-size: 13px;
    color: var(--text-2);
}

/* ── ONI CHART ── */
.chart-wrap {
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    overflow: hidden;
}

#oniChart {
    width: 100%;
    height: 240px;
    display: block;
}

.chart-legend {
    display: flex;
    gap: 24px;
    margin-top: 14px;
    justify-content: center;
}

.legend-item {
    font-size: 12px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
}

.legend-item::before {
    content: '';
    width: 12px;
    height: 12px;
    border-radius: 3px;
    display: inline-block;
}

.legend-item.elnino { color: var(--el-nino); }
.legend-item.elnino::before { background: var(--el-nino-soft); border: 1px solid var(--el-nino); }
.legend-item.neutro { color: var(--text-2); }
.legend-item.neutro::before { background: var(--neutro-soft); border: 1px solid var(--neutro); }
.legend-item.lanina { color: var(--la-nina); }
.legend-item.lanina::before { background: var(--la-nina-soft); border: 1px solid var(--la-nina); }

/* ── WEEKLY ── */
.weekly-grid {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 20px;
    align-items: start;
}

.weekly-chart-wrap {
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
}

#weeklyChart {
    width: 100%;
    height: 180px;
    display: block;
}

.weekly-regions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.region-card {
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 14px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.region-name { font-size: 13px; font-weight: 600; color: var(--text-2); }
.region-val  { font-size: 18px; font-weight: 700; letter-spacing: -.5px; }
.region-val.pos { color: var(--el-nino); }
.region-val.neg { color: var(--la-nina); }

/* ── PREDICTION ── */
.prediction-block {
    background: var(--bg2);
    border: 1px solid var(--border-accent);
    border-left: 3px solid var(--accent);
    border-radius: var(--radius);
    padding: 28px 32px;
    font-size: 15px;
    color: var(--text-2);
    line-height: 1.8;
}

.prediction-block p { color: var(--text); }

/* ── BLOG ── */
.blog-banner {
    position: relative;
    width: 100%;
    height: 220px;
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 24px;
}

.blog-banner svg { width: 100%; height: 100%; display: block; }

.blog-banner-label {
    position: absolute;
    bottom: 16px;
    left: 20px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: rgba(255,255,255,.9);
    text-shadow: 0 1px 6px rgba(0,0,0,.5);
}

.blog-card-banner {
    width: 100%;
    height: 96px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    margin-bottom: 14px;
}

.blog-card-banner svg { width: 100%; height: 100%; display: block; }

.blog-featured {
    background: var(--bg2);
    border: 1px solid var(--border-accent);
    border-radius: var(--radius);
    padding: 36px 40px;
    margin-bottom: 32px;
}

.blog-featured-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    font-size: 12px;
    color: var(--text-3);
    text-transform: uppercase;
    letter-spacing: .06em;
}

.blog-featured-phase {
    background: var(--accent-glow);
    color: var(--accent);
    padding: 3px 10px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 11px;
}

.blog-featured h2 {
    font-size: 24px;
    font-weight: 700;
    line-height: 1.35;
    color: var(--text);
    margin-bottom: 16px;
}

.blog-featured-body {
    color: var(--text-2);
    font-size: 15px;
    line-height: 1.8;
}

.blog-featured-body p { margin-bottom: 14px; }
.blog-featured-body p:last-child { margin-bottom: 0; }
.blog-featured-body strong { color: var(--text); font-weight: 600; }

.blog-featured-sources {
    margin-top: 24px;
    padding-top: 18px;
    border-top: 1px solid var(--border);
    font-size: 12px;
    color: var(--text-3);
}

.blog-featured-sources a {
    color: var(--text-3);
    text-decoration: none;
}

.blog-featured-sources a:hover { color: var(--accent); }

.blog-back {
    display: inline-block;
    color: var(--text-2);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    margin-bottom: 20px;
}

.blog-back:hover { color: var(--accent); }

.blog-card {
    display: block;
    text-decoration: none;
}

.blog-card-featured {
    display: block;
    margin-bottom: 32px;
}

.blog-card-featured .blog-card-banner {
    height: 220px;
    margin-bottom: 18px;
}

.blog-card-featured h3 {
    font-size: 22px;
}

.blog-card-featured .blog-card-resumo {
    font-size: 15px;
    -webkit-line-clamp: 3;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

.blog-card {
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px 24px;
    transition: border-color .2s, background .2s;
    cursor: pointer;
}

.blog-card:hover {
    border-color: var(--border-accent);
    background: var(--bg3);
}

.blog-card-date {
    font-size: 11px;
    color: var(--text-3);
    text-transform: uppercase;
    letter-spacing: .05em;
    margin-bottom: 8px;
}

.blog-card h3 {
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 8px;
    line-height: 1.4;
}

.blog-card-resumo {
    font-size: 13px;
    color: var(--text-2);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-teaser {
    background: var(--bg2);
    border: 1px solid var(--border-accent);
    border-radius: var(--radius);
    padding: 28px 32px;
    margin-bottom: 16px;
}

.blog-teaser-date {
    font-size: 11px;
    color: var(--text-3);
    text-transform: uppercase;
    letter-spacing: .05em;
    margin-bottom: 8px;
}

.blog-teaser h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 10px;
    line-height: 1.35;
}

.blog-teaser-resumo {
    font-size: 14px;
    color: var(--text-2);
    line-height: 1.7;
    margin-bottom: 16px;
}

.blog-teaser-cta {
    color: var(--accent);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}

.blog-teaser-cta:hover { text-decoration: underline; }

.blog-teaser-footer {
    text-align: center;
}

.blog-teaser-allposts {
    color: var(--text-2);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}

.blog-teaser-allposts:hover { color: var(--accent); }

/* ── FOOTER ── */
.site-footer {
    background: var(--bg2);
    border-top: 1px solid var(--border);
    padding: 24px 0;
}

.footer-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.footer-meta {
    font-size: 12px;
    color: var(--text-3);
}

.footer-meta a {
    color: var(--text-3);
    text-decoration: none;
}

.footer-meta a:hover { color: var(--text-2); }

/* ── SKELETON ── */
.skeleton {
    background: linear-gradient(90deg, var(--bg3) 25%, var(--border) 50%, var(--bg3) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.4s infinite;
    border-radius: 4px;
    height: 14px;
    margin-bottom: 10px;
}

.skeleton-text { width: 100%; }

@keyframes shimmer {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
    .hero-grid        { grid-template-columns: 1fr; }
    .weekly-grid      { grid-template-columns: 1fr; }
    .footer-row       { flex-direction: column; text-align: center; }
    .oni-value-row    { gap: 20px; }
    .eh-container     { grid-template-columns: 1fr; gap: 32px; }
    .eh-right         { order: -1; }
    .eh-num           { font-size: 80px; }
    .eh-headline      { font-size: 28px; }
    .eh-body          { font-size: 15px; }
    .blog-featured    { padding: 24px 20px; }
    .blog-featured h2 { font-size: 20px; }
    .blog-grid        { grid-template-columns: 1fr; }
}
