/*
Theme Name: Portal Nasional (The Intercept Edition)
Theme URI: https://news-network.local/themes/portal-nasional
Author: News Network
Description: Tema berita bergaya The Intercept. Desain brutalist, kontras tinggi, tipografi monospace bergaya dokumen investigasi, dan garis batas tebal.
Version: 5.0.0
Requires at least: 6.0
Requires PHP: 8.2
License: GPL-2.0-or-later
Text Domain: portal-nasional
*/

/* ---------- Tokens (The Intercept Style) ---------- */
:root {
    --brand-black: #000000;  /* Stark Black */
    --brand-white: #ffffff;  /* Stark White */
    --brand-accent:#ff3333;  /* Alert Red */
    --ink:         #000000;  /* Main text */
    --paper:       #ffffff;  /* Main background */
    --rule:        #000000;  /* Solid black borders */
    --rule-light:  #dddddd;  /* Soft borders for meta */
    --muted:       #555555;  /* Captions */
    --maxw:        1200px;
    --font-heading:"Work Sans", -apple-system, sans-serif;
    --font-body:   "Source Serif 4", Georgia, serif;
    --font-mono:   "Roboto Mono", "Courier New", Courier, monospace;
}

/* ---------- 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: 18px; line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; filter: contrast(1.05); }
a { color: var(--ink); text-decoration: none; transition: 0.2s; }
a:hover { color: var(--brand-accent); }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

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

/* ---------- Masthead (Header Intercept Style) ---------- */
.masthead {
    background: var(--paper);
    border-bottom: 4px solid var(--brand-black);
}
.masthead__top {
    display: flex; align-items: center; justify-content: space-between;
    padding: 10px 0; border-bottom: 1px solid var(--rule);
}
.masthead__date { font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink); }
.masthead__cta {
    font-family: var(--font-mono); font-size: 11px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.1em;
    background: var(--brand-black); color: var(--brand-white);
    padding: 5px 12px;
}
.masthead__cta:hover { background: var(--brand-accent); color: var(--brand-white); }

.masthead__brand { padding: 30px 0; text-align: center; }
.masthead__brand a { color: var(--brand-black); text-decoration: none; }
.masthead__logo {
    font-family: var(--font-heading); font-weight: 900; font-size: 56px;
    letter-spacing: -0.04em; margin: 0; line-height: 1; text-transform: uppercase;
}
.masthead__logo .dot { color: var(--brand-accent); }
.masthead__tagline { display: none; }

/* ---------- Primary nav ---------- */
.site-nav { border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.site-nav ul {
    list-style: none; margin: 0; padding: 0;
    display: flex; flex-wrap: wrap; justify-content: center;
    max-width: var(--maxw); margin-inline: auto;
}
.site-nav a {
    display: block; color: var(--brand-black); text-decoration: none;
    font-size: 13px; font-weight: 700; padding: 15px 20px;
    text-transform: uppercase; letter-spacing: 0.05em;
}
.site-nav a:hover, .site-nav .current-menu-item > a {
    background: var(--brand-black); color: var(--brand-white);
}

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

/* ---------- Lead / hero story ---------- */
.lead { margin-bottom: 40px; padding-bottom: 40px; border-bottom: 4px solid var(--rule); }
.lead__media { margin-bottom: 20px; border: 1px solid var(--rule); }
.lead__title {
    font-family: var(--font-heading); font-weight: 800; font-size: clamp(32px, 5vw, 64px);
    line-height: 1.05; letter-spacing: -0.02em; margin: 15px 0; text-transform: uppercase;
}
.lead__title a { color: var(--brand-black); }
.lead__title a:hover { color: var(--brand-accent); }
.lead__standfirst { font-size: 22px; color: var(--muted); margin: 0 0 20px; font-family: var(--font-body); }

/* ---------- Kicker (Monospace) ---------- */
.kicker {
    display: inline-block; font-size: 11px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.15em; color: var(--brand-accent);
    border-bottom: 1px solid var(--brand-accent); margin-bottom: 12px; padding-bottom: 2px;
}

/* ---------- Story grid ---------- */
.story-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.card { display: flex; flex-direction: column; padding-top: 15px; border-top: 2px solid var(--rule); }
.card__media { order: -1; margin-bottom: 15px; border: 1px solid var(--rule); }
.card__title {
    font-family: var(--font-heading); font-weight: 800; font-size: 22px; line-height: 1.15;
    letter-spacing: -0.01em; margin: 0 0 10px; text-transform: uppercase;
}
.card__excerpt { font-size: 16px; color: var(--muted); margin-bottom: 15px; }

/* ---------- Photo stand-ins ---------- */
.ph { position: relative; aspect-ratio: 16 / 9; background: #e0e0e0; overflow: hidden; }
.ph--tall { aspect-ratio: 4 / 5; }
.ph__label { display: none; }

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

/* ---------- Section heads ---------- */
.section-head { margin: 0 0 20px; border-bottom: 2px solid var(--rule); padding-bottom: 10px; }
.section-head h2 { font-weight: 800; font-size: 16px; margin: 0; color: var(--ink); text-transform: uppercase; letter-spacing: 0.1em; }

/* ---------- Sidebar ---------- */
.sidebar { border-left: 1px solid var(--rule); padding-left: 30px; }
.widget { margin-bottom: 50px; }
.widget__title {
    font-family: var(--font-mono); font-weight: 700; font-size: 12px; text-transform: uppercase;
    letter-spacing: 0.1em; margin: 0 0 20px; color: var(--brand-white); background: var(--brand-black); display: inline-block; padding: 4px 10px;
}
.most-read { list-style: none; margin: 0; padding: 0; counter-reset: mr; }
.most-read li {
    display: grid; grid-template-columns: 25px 1fr; gap: 10px;
    padding: 15px 0; border-bottom: 1px solid var(--rule-light); align-items: start;
}
.most-read__rank {
    counter-increment: mr; font-family: var(--font-mono); font-weight: 700; font-size: 14px; color: var(--brand-accent);
}
.most-read__rank::before { content: "0" counter(mr); }
.most-read a { font-family: var(--font-heading); font-weight: 700; font-size: 16px; line-height: 1.2; text-transform: uppercase; }

/* ---------- Single article ---------- */
.article { max-width: 100%; margin: 0; padding: 10px 0 60px; }
.article__title {
    font-family: var(--font-heading); font-weight: 900; font-size: clamp(40px, 6vw, 64px); line-height: 1.05;
    letter-spacing: -0.02em; margin: 15px 0 20px; text-transform: uppercase;
}
.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; padding: 15px 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule);
}
.article__meta span { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; }
.article__body p { margin: 0 0 1.5em; font-size: 20px; color: #111; }
.article__body p:first-of-type::first-letter {
    font-family: var(--font-heading); font-weight: 900; float: left; font-size: 60px; line-height: 0.8;
    padding: 8px 10px 0 0; color: var(--brand-black);
}
.article__body h2, .article__body h3 { font-family: var(--font-heading); font-weight: 800; text-transform: uppercase; margin-top: 1.5em; margin-bottom: 0.8em; }
.article__body blockquote {
    margin: 2em 0; padding: 0 0 0 20px; border-left: 4px solid var(--brand-accent);
    font-size: 24px; font-weight: 400; font-style: italic; color: var(--muted);
}

/* ---------- Footer ---------- */
.site-footer { background: var(--brand-black); color: var(--brand-white); padding: 60px 0 40px; }
.footer-cols { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 40px; border-bottom: 1px solid #333; padding-bottom: 40px;}
.footer-brand .masthead__logo { color: #fff; font-size: 32px; }
.footer-cols h4 { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); margin: 0 0 20px; }
.footer-cols ul { list-style: none; margin: 0; padding: 0; }
.footer-cols li { margin-bottom: 10px; }
.footer-cols a { color: #ffffff; font-family: var(--font-heading); font-size: 14px; font-weight: 700; text-transform: uppercase; }
.footer-cols a:hover { color: var(--brand-accent); text-decoration: none; }
.site-footer__legal { margin-top: 20px; font-family: var(--font-mono); font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.1em; }

/* ---------- Pagination ---------- */
.pagination { padding: 40px 0; border-top: 2px solid var(--rule); display: flex; gap: 10px; }
.pagination a, .pagination .current {
    font-family: var(--font-mono); font-weight: 700; font-size: 12px; padding: 10px 15px;
    border: 1px solid var(--rule); color: var(--ink); text-transform: uppercase;
}
.pagination .current { background: var(--brand-black); color: #fff; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
    .layout { grid-template-columns: 1fr; gap: 40px; }
    .sidebar { border-left: none; padding-left: 0; border-top: 4px solid var(--rule); padding-top: 30px;}
    .story-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
    .story-grid { grid-template-columns: 1fr; }
    .footer-cols { grid-template-columns: 1fr; }
    .masthead__logo { font-size: 40px; }
}