/*
Theme Name: Pongale La Lupa
Theme URI: https://example.com/pongale-la-lupa
Author: Laura Valeria Ramirez Ayala
Description: A journalistic fact-checking theme for countering electoral disinformation. Includes Home, Directory, About Us and a long-form Article template, all editable from the Customizer.
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: pongale-la-lupa
Tags: blog, news, one-column, custom-colors, custom-logo, full-width-template
*/

:root {
  --brand: #8c0509;
  --brand-dark: #6d0407;
  --brand-fg: #ffffff;
  --bg: #fbfbfc;
  --card: #ffffff;
  --muted: #f2f3f5;
  --fg: #14161a;
  --muted-fg: #5c6470;
  --border: #e4e6ea;
  --radius: 10px;
  --max: 1200px;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

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

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--brand); color: var(--brand-fg);
  padding: 12px 22px; border-radius: var(--radius);
  font-weight: 600; font-size: 15px; border: 1px solid var(--brand);
  transition: background .15s ease;
}
.btn:hover { background: var(--brand-dark); text-decoration: none; color: #fff; }
.btn-outline { background: transparent; color: var(--fg); border: 1px solid var(--border); }
.btn-outline:hover { background: var(--muted); color: var(--fg); }
.btn-block { width: 100%; justify-content: center; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.site-logo img { max-height: 44px; width: auto; }
.logo-placeholder {
  display: flex; align-items: center; justify-content: center;
  height: 40px; width: 132px; border: 2px dashed rgba(92,100,112,.35);
  background: var(--muted); border-radius: 6px;
  font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted-fg);
}
.main-nav ul { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; }
.main-nav a { color: var(--fg); font-weight: 500; font-size: 15px; }
.main-nav a:hover, .main-nav .current-menu-item > a { color: var(--brand); text-decoration: none; }
.socials { display: flex; gap: 10px; align-items: center; }
.socials a {
  display: inline-flex; align-items: center; justify-content: center;
  height: 40px; width: 40px; border-radius: 999px;
  background: var(--brand); color: #fff;
}
.socials a:hover { background: var(--brand-dark); transform: scale(1.05); }
.socials svg { width: 20px; height: 20px; }
.nav-toggle { display: none; background: none; border: 0; font-size: 26px; cursor: pointer; color: var(--fg); }
.mobile-nav { display: none; border-bottom: 1px solid var(--border); background: #fff; padding: 16px 20px; }
.mobile-nav ul { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 14px; }
.mobile-nav a { color: var(--fg); font-weight: 600; }
.mobile-nav.open { display: block; }

/* Hero */
.hero { padding: 96px 0; }
.badge {
  display: inline-block; border: 1px solid rgba(140,5,9,.3); color: var(--brand);
  border-radius: 999px; padding: 5px 12px; font-size: 11px; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; margin-bottom: 22px;
}
.hero h1 { font-size: clamp(34px, 5vw, 58px); line-height: 1.08; margin: 0; letter-spacing: -.02em; }
.hero p { font-size: 19px; color: var(--muted-fg); max-width: 640px; margin: 22px 0 0; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }

/* Sections */
.section { padding: 78px 0; }
.section-muted { background: var(--muted); }
.section h2 { font-size: 30px; margin: 0; letter-spacing: -.01em; }
.section-lead { color: var(--muted-fg); max-width: 620px; margin-top: 12px; }

/* Grid + cards */
.grid { display: grid; gap: 24px; grid-template-columns: repeat(3, 1fr); margin-top: 44px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: var(--card); border: 1px solid var(--border); border-radius: 14px;
  padding: 24px; display: flex; flex-direction: column;
}
.card.featured { box-shadow: 0 0 0 1px rgba(140,5,9,.25); }
.card h3 { font-size: 20px; margin: 14px 0 0; line-height: 1.3; }
.card p { color: var(--muted-fg); font-size: 15px; flex: 1; }
.card .btn { margin-top: 22px; }
.tag {
  align-self: flex-start; font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .1em; padding: 5px 10px; border-radius: 999px;
  background: var(--muted); color: var(--muted-fg);
}
.tag.brand { background: var(--brand); color: #fff; }
.logo-slot {
  height: 64px; width: 64px; border-radius: 12px; border: 2px dashed rgba(92,100,112,.35);
  background: var(--muted); display: flex; align-items: center; justify-content: center;
  font-size: 10px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted-fg);
}
.pillar-icon {
  height: 46px; width: 46px; border-radius: 10px; background: rgba(140,5,9,.1); color: var(--brand);
  display: flex; align-items: center; justify-content: center; font-size: 20px; margin-bottom: 14px;
}

/* About */
.about-grid { display: grid; grid-template-columns: 320px 1fr; gap: 48px; align-items: start; }
.portrait-slot {
  aspect-ratio: 3 / 4; border: 2px dashed rgba(92,100,112,.35); background: var(--muted);
  border-radius: 14px; display: flex; align-items: center; justify-content: center;
  color: var(--muted-fg); font-size: 12px; text-transform: uppercase; letter-spacing: .1em;
}
.about-grid p { font-size: 18px; line-height: 1.8; }

/* Article */
.article-header { background: var(--muted); border-bottom: 1px solid var(--border); padding: 72px 0; }
.article-header h1 { font-size: clamp(30px, 4.5vw, 46px); line-height: 1.12; margin: 0; letter-spacing: -.02em; }
.article-meta { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 26px; color: var(--muted-fg); font-size: 14px; }
.article-body { padding: 56px 0 88px; font-size: 17px; }
.article-body .lead { font-size: 21px; line-height: 1.65; }
.article-body h2 { font-size: 26px; margin: 46px 0 14px; letter-spacing: -.01em; }
.video-frame {
  position: relative; aspect-ratio: 16 / 9; background: #000; border-radius: 12px;
  overflow: hidden; margin: 40px 0; border: 1px solid var(--border);
}
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-placeholder {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; color: #fff; gap: 12px;
}
.video-placeholder .play {
  height: 62px; width: 62px; border-radius: 999px; background: rgba(255,255,255,.2);
  display: flex; align-items: center; justify-content: center; font-size: 24px;
}
blockquote.pull {
  margin: 40px 0; border-left: 4px solid var(--brand); background: var(--muted);
  padding: 24px; font-style: italic; border-radius: 0 10px 10px 0;
}
blockquote.pull p { font-size: 19px; line-height: 1.65; margin: 0; }
blockquote.pull footer { margin-top: 12px; font-size: 14px; font-style: normal; color: var(--muted-fg); }
.sources { background: var(--muted); border-radius: 12px; padding: 24px; margin-top: 48px; }
.sources ul { color: var(--muted-fg); font-size: 15px; }

/* Footer */
.site-footer { background: var(--muted); border-top: 1px solid var(--border); padding: 56px 0 28px; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.footer-grid h3 { font-size: 13px; text-transform: uppercase; letter-spacing: .12em; margin: 0 0 16px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-grid a { color: var(--muted-fg); }
.footer-grid a:hover { color: var(--brand); }
.footer-about { color: var(--muted-fg); font-size: 14px; max-width: 300px; }
.footer-bottom {
  margin-top: 44px; border-top: 1px solid var(--border); padding-top: 24px;
  text-align: center; color: var(--muted-fg); font-size: 14px;
}

@media (max-width: 900px) {
  .grid, .grid-2, .footer-grid { grid-template-columns: 1fr 1fr; }
  .about-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .main-nav, .header-inner .socials { display: none; }
  .nav-toggle { display: block; }
  .grid, .grid-2, .footer-grid { grid-template-columns: 1fr; }
  .hero { padding: 64px 0; }
}
