/*
Theme Name: Portal Nasional (Vox Edition)
Theme URI: https://news-network.local/themes/portal-nasional
Author: News Network
Description: Tema berita bergaya Vox. Tipografi tebal, aksen kuning highlighter, dan desain modern khas jurnalisme penjelas (explainers).
Version: 4.0.0
Requires at least: 6.0
Requires PHP: 8.2
License: GPL-2.0-or-later
Text Domain: portal-nasional
*/

/* ---------- Tokens (Vox Colors & Typography) ---------- */
:root {
    --vox-yellow: #fffb00;   /* Vox Highlighter Yellow */
    --vox-dark:   #111111;   /* Primary text and header */
    --vox-gray:   #f4f4f4;   /* Light gray for sections */
    --ink:        #111111;   /* Main text */
    --paper:      #ffffff;   /* Main background */
    --rule:       #e0e0e0;   /* Light borders */
    --rule-strong:#000000;   /* Heavy borders */
    --muted:      #555555;   /* Captions, meta */
    --maxw:       1200px;
    --font-heading: "Montserrat", -apple-system, sans-serif;
    --font-body:    "Source Serif 4", Georgia, serif;
}

/* ---------- Reset & Base ---------- */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0; background: var(--paper); color: var(--ink);
    font-family: var(--font-body); font-size: 19px; line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--vox-dark); text-decoration: none; transition: 0.2s; }
a:hover { color: #555; text-decoration: underline; text-decoration-color: var(--vox-yellow); text-decoration-thickness: 3px; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

/* ---------- Utility / Faces ---------- */
.kicker, .site-nav, .meta, .section-head, .tag { font-family: var(--font-heading); }

/* ---------- Masthead (Header Vox Style) ---------- */
.masthead {
    background: var(--vox-dark);
    position: sticky; top: 0; z-index: 100;
}
.masthead__top { display: none; } /* Hide top bar for cleaner look */
.masthead__brand {
    padding: 20px 0;
    display: flex; align-items: center; justify-content: space-between;
    max-width: var(--maxw); margin: 0 auto; padding-inline: 20px;
}
.masthead__brand a { color: #ffffff; text-decoration: none; display: flex; align-items: center; }
.masthead__logo {
    font-weight: 900; font-size: 42px; font-style: italic; 
    letter-spacing: -0.05em; margin: 0; line-height: 1; text-transform: lowercase;
}
.masthead__logo .dot { color: var(--vox-yellow); }
.masthead__tagline { display: none; }

/* ---------- Primary nav ---------- */
.site-nav { background: var(--vox-dark); border-top: 1px solid #333; }
.site-nav ul {
    list-style: none; margin: 0; padding: 0;
    display: flex; flex-wrap: wrap; max-width: var(--maxw);
    margin-inline: auto; padding-inline: 10px;
}
.site-nav a {
    display: block; color: #ffffff; text-decoration: none;
    font-size: 14px; font-weight: 800; padding: 16px 15px;
    text-transform: uppercase; letter-spacing: 0.05em;
}
.site-nav a:hover, .site-nav .current-menu-item > a { color: var(--vox-yellow); text-decoration: none; }

/* ---------- Layout grid ---------- */
.layout {
    display: grid; grid-template-columns: 1fr 340px; gap: 0 50px;
    padding: 40px 0 60px;
}

/* ---------- Lead / hero story ---------- */
.lead { margin-bottom: 50px; }
.lead__media { margin-bottom: 20px; }
.lead__title {
    font-family: var(--font-heading);
    font-weight: 900; font-size: clamp(36px, 5vw, 56px);
    line-height: 1.1; letter-spacing: -0.02em; margin: 15px 0;
}
.lead__title a { color: var(--ink); }
.lead__title a:hover { color: var(--ink); text-decoration: underline; text-decoration-color: var(--vox-yellow); text-decoration-thickness: 6px; }
.lead__standfirst { font-size: 22px; color: var(--muted); margin: 0 0 16px; font-family: var(--font-body); }

/* ---------- Kicker (Vox Yellow Highlight) ---------- */
.kicker {
    display: inline-block; font-size: 13px; font-weight: 900;
    text-transform: uppercase; letter-spacing: 0.08em; color: var(--vox-dark);
    background-color: var(--vox-yellow); padding: 4px 8px; margin-bottom: 10px;
}

/* ---------- Story grid ---------- */
.story-grid { display: flex; flex-direction: column; gap: 30px; }
.card { display: grid; grid-template-columns: 1fr 180px; gap: 24px; align-items: start; padding-bottom: 30px; border-bottom: 1px solid var(--rule); }
.card:last-child { border-bottom: none; }
.card__media { order: 2; margin: 0; }
.card__title {
    font-family: var(--font-heading);
    font-weight: 800; font-size: 24px; line-height: 1.2;
    letter-spacing: -0.01em; margin: 6px 0 10px;
}
.card__title a { color: var(--ink); }
.card__title a:hover { text-decoration: underline; text-decoration-color: var(--vox-yellow); text-decoration-thickness: 4px; }
.card__excerpt { font-size: 17px; color: var(--muted); margin: 0; }

/* ---------- Photo stand-ins ---------- */
.ph { position: relative; aspect-ratio: 16 / 9; background: var(--vox-gray); overflow: hidden; }
.ph--tall { aspect-ratio: 4 / 5; }
.ph__label { display: none; }

/* ---------- Meta line ---------- */
.meta { font-family: var(--font-heading); font-size: 13px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; }

/* ---------- Section heads ---------- */
.section-head { margin: 0 0 25px; border-top: 4px solid var(--vox-dark); padding-top: 10px; }
.section-head h2 { font-family: var(--font-heading); font-weight: 900; font-size: 28px; margin: 0; color: var(--ink); text-transform: uppercase; }

/* ---------- Sidebar ---------- */
.sidebar { padding-top: 0; }
.widget { margin-bottom: 50px; }
.widget__title {
    font-family: var(--font-heading); font-weight: 900; font-size: 20px; text-transform: uppercase;
    letter-spacing: 0.05em; margin: 0 0 20px; color: var(--ink); border-bottom: 3px solid var(--vox-yellow); display: inline-block; padding-bottom: 5px;
}
.most-read { list-style: none; margin: 0; padding: 0; counter-reset: mr; }
.most-read li {
    display: grid; grid-template-columns: 40px 1fr; gap: 15px;
    padding: 20px 0; border-bottom: 1px solid var(--rule); align-items: center;
}
.most-read__rank {
    counter-increment: mr; font-family: var(--font-heading); font-weight: 900; font-size: 22px;
    color: var(--vox-dark); line-height: 40px; background: var(--vox-yellow); text-align: center; height: 40px; width: 40px;
}
.most-read__rank::before { content: counter(mr); }
.most-read a { font-family: var(--font-heading); font-weight: 800; font-size: 17px; line-height: 1.3; color: var(--ink); }

/* ---------- Single article (Vox Style) ---------- */
.article { max-width: 100%; margin: 0; padding: 10px 0 60px; }
.article__title {
    font-family: var(--font-heading);
    font-weight: 900; font-size: clamp(38px, 5vw, 52px); line-height: 1.1;
    letter-spacing: -0.02em; margin: 15px 0 20px;
}
.article__standfirst { font-size: 24px; color: var(--muted); margin: 0 0 30px; line-height: 1.4; }
.article__meta { display: flex; gap: 15px; align-items: center; flex-wrap: wrap; margin-bottom: 40px; border-top: 1px solid var(--rule); padding-top: 20px; }
.article__body p { margin: 0 0 1.5em; font-size: 20px; color: #111; }
.article__body h2, .article__body h3 { font-family: var(--font-heading); font-weight: 900; letter-spacing: -0.02em; margin-top: 1.5em; margin-bottom: 0.8em; }
.article__body blockquote {
    margin: 2em 0; padding: 20px; background: var(--vox-yellow);
    font-family: var(--font-heading); font-size: 24px; font-weight: 800; color: var(--vox-dark);
}

/* ---------- Footer ---------- */
.site-footer { background: var(--vox-dark); color: #ffffff; padding: 60px 0 40px; }
.footer-cols { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 40px; }
.footer-brand .masthead__logo { color: #fff; font-size: 40px; }
.footer-cols h4 { font-family: var(--font-heading); font-size: 16px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--vox-yellow); margin: 0 0 20px; font-weight: 900; }
.footer-cols ul { list-style: none; margin: 0; padding: 0; }
.footer-cols li { margin-bottom: 12px; }
.footer-cols a { color: #cccccc; font-family: var(--font-heading); font-size: 14px; font-weight: 600; text-transform: uppercase; }
.footer-cols a:hover { color: #fff; text-decoration: none; }
.site-footer__legal { border-top: 1px solid #333; margin-top: 50px; padding-top: 20px; font-family: var(--font-heading); font-size: 12px; color: #777; text-transform: uppercase; }

/* ---------- Pagination ---------- */
.pagination { padding: 40px 0; border-top: 4px solid var(--vox-dark); display: flex; gap: 10px; }
.pagination a, .pagination .current {
    font-family: var(--font-heading); font-weight: 800; font-size: 14px; padding: 12px 20px;
    background: var(--vox-gray); color: var(--ink); text-transform: uppercase;
}
.pagination .current { background: var(--vox-dark); color: #fff; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
    .layout { grid-template-columns: 1fr; gap: 40px; }
    .card { grid-template-columns: 1fr; gap: 15px; }
    .card__media { order: -1; }
    .footer-cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
    .footer-cols { grid-template-columns: 1fr; }
    .masthead__logo { font-size: 32px; }
}