/*
Theme Name:  VeraFora
Theme URI:   https://verafora.org
Author:      VeraFora LLC
Description: Minimalist theme for VeraFora — independent, data-driven journalism.
Version:     2.1.0
License:     GNU General Public License v2 or later
Text Domain: verafora
Tags:        news, minimal, clean, custom-menu, featured-images
*/

/* ── VARIABLES ─────────────────────────────── */
:root {
  --bg:     #f8f6f3;
  --white:  #ffffff;
  --ink:    #1e1c1a;
  --soft:   #5a5550;
  --muted:  #a09a94;
  --rule:   #e6e2dc;
  --green:  #4a6741;
}

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

body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 18px;
  font-weight: 300;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
p { margin-bottom: 1.5em; }
p:last-child { margin-bottom: 0; }

/* ── LAYOUT ────────────────────────────────── */
.wrap {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 40px;
}

/* ── HEADER ────────────────────────────────── */
.site-header {
  max-width: 860px;
  margin: 0 auto;
  padding: 40px 40px 0;
}

.site-branding {
  text-align: center;
  padding: 20px 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.site-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(48px, 8vw, 96px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--ink);
}

.site-title a { color: var(--ink); }
.site-title a:hover { color: var(--ink); }
.site-title .vf-accent { color: var(--green); }

.site-description {
  font-family: 'Source Serif 4', serif;
  font-style: italic;
  font-weight: 400;
  font-size: 20px;
  color: var(--soft);
  margin-top: 10px;
  letter-spacing: 0.01em;
}

/* ── NAV ───────────────────────────────────── */
.site-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
  border-bottom: 2px solid var(--rule);
  font-family: 'Barlow', sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--soft);
}

.site-nav ul {
  display: flex;
  gap: 28px;
  list-style: none;
}

.site-nav a {
  color: var(--soft);
  transition: color 0.15s;
  padding-bottom: 2px;
}

.site-nav a:hover { color: var(--ink); }

.site-nav .current-menu-item a,
.site-nav a.on {
  color: var(--ink);
  border-bottom: 2px solid var(--green);
  padding-bottom: 2px;
  font-weight: 500;
}

.nav-date {
  color: var(--soft);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: none;
}

/* ── HOMEPAGE ──────────────────────────────── */

/* Lead */
.lead {
  padding: 44px 0 40px;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 48px;
}

.post-kicker {
  font-family: 'Barlow', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 14px;
  display: block;
}

.lead-image {
  width: 100%;
  aspect-ratio: 16 / 6;
  overflow: hidden;
  margin-bottom: 28px;
  background: var(--rule);
}

.lead-image img { width: 100%; height: 100%; object-fit: cover; }

.lead-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(24px, 3.2vw, 40px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 16px;
}

.lead-title a { color: var(--ink); transition: color 0.15s; }
.lead-title a:hover { color: var(--green); }

.lead-deck {
  font-size: 17px;
  line-height: 1.75;
  color: var(--soft);
  font-weight: 300;
  max-width: 640px;
  margin-bottom: 20px;
}

.post-byline {
  font-family: 'Barlow', sans-serif;
  font-size: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--soft);
}

.post-byline .sep { margin: 0 8px; color: var(--muted); }

.more-link {
  display: inline-block;
  margin-top: 18px;
  font-family: 'Barlow', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green);
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s;
}
.more-link:hover { color: var(--green); border-color: var(--green); }

/* Story list */
.story-list { margin-bottom: 48px; }

.story-item {
  display: grid;
  grid-template-columns: 1fr 160px;
  gap: 32px;
  padding: 28px 0;
  border-bottom: 1px solid var(--rule);
  align-items: start;
}

.story-item:first-child { border-top: 1px solid var(--rule); }
.story-item:hover .story-title { color: var(--green); }

.story-title {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--ink);
  margin-bottom: 8px;
  transition: color 0.15s;
}

.story-title a { color: inherit; }

.story-excerpt {
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--soft);
  font-weight: 300;
  margin-bottom: 8px;
}

.story-meta {
  font-family: 'Barlow', sans-serif;
  font-size: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--soft);
}

.story-thumb {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--rule);
}

.story-thumb img { width: 100%; height: 100%; object-fit: cover; }

/* Numbers */
.numbers {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 28px 0;
  margin-bottom: 48px;
}

.num {
  padding: 0 24px 0 0;
  border-right: 1px solid var(--rule);
}
.num:last-child { border-right: none; padding: 0 0 0 24px; }
.num:nth-child(2), .num:nth-child(3) { padding: 0 24px; }

.num-label {
  font-family: 'Barlow', sans-serif;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--soft);
  margin-bottom: 6px;
}

.num-value {
  font-family: 'Playfair Display', serif;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--ink);
  margin-bottom: 4px;
}

.num-note {
  font-family: 'Barlow', sans-serif;
  font-size: 12px;
  color: var(--soft);
  font-weight: 400;
}

/* Newsletter */
.newsletter {
  background: var(--white);
  border: 1px solid var(--rule);
  padding: 36px 40px;
  margin-bottom: 48px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.nl-label {
  font-family: 'Barlow', sans-serif;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}

.nl-title {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
}

.nl-body {
  font-size: 14px;
  color: var(--soft);
  line-height: 1.6;
}

.nl-form { display: flex; flex-direction: column; gap: 8px; }

.nl-input {
  border: 1px solid var(--rule);
  background: var(--bg);
  padding: 10px 14px;
  font-family: 'Barlow', sans-serif;
  font-size: 12px;
  color: var(--ink);
  outline: none;
  transition: border-color 0.15s;
}
.nl-input:focus { border-color: var(--green); }

.nl-btn {
  background: var(--green);
  color: white;
  border: none;
  padding: 10px 14px;
  font-family: 'Barlow', sans-serif;
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: opacity 0.15s;
}
.nl-btn:hover { opacity: 0.85; }

.nl-note {
  font-family: 'Barlow', sans-serif;
  font-size: 10px;
  color: var(--muted);
  line-height: 1.5;
}

/* ── SINGLE POST ───────────────────────────── */
.single-wrap {
  max-width: 680px;
  margin: 0 auto;
  padding: 48px 40px;
}

.single-kicker { margin-bottom: 14px; }

.single-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(26px, 3.5vw, 42px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 18px;
}

.single-deck {
  font-size: 19px;
  font-style: italic;
  font-weight: 300;
  color: var(--soft);
  line-height: 1.65;
  margin-bottom: 22px;
  padding-left: 20px;
  border-left: 2px solid var(--green);
}

.single-meta {
  font-family: 'Barlow', sans-serif;
  font-size: 10.5px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted);
  padding-bottom: 28px;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 36px;
}

.single-meta .sep { margin: 0 8px; color: var(--rule); }

.single-image {
  margin-bottom: 36px;
}

.single-image img { width: 100%; }

.single-image figcaption {
  font-family: 'Barlow', sans-serif;
  font-size: 11px;
  color: var(--muted);
  margin-top: 8px;
  font-style: italic;
}

.entry-content {
  font-size: 18px;
  line-height: 1.8;
  color: var(--ink);
}

.entry-content h2 {
  font-family: 'Playfair Display', serif;
  font-size: 24px;
  font-weight: 700;
  margin: 2em 0 0.6em;
}

.entry-content h3 {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  font-weight: 700;
  margin: 1.8em 0 0.5em;
}

.entry-content blockquote {
  border-left: 2px solid var(--green);
  padding: 2px 0 2px 24px;
  margin: 2em 0;
  font-style: italic;
  color: var(--soft);
  font-size: 19px;
}

.entry-content a { color: var(--green); }
.entry-content a:hover { border-bottom: 1px solid var(--green); }

.entry-content ul, .entry-content ol { padding-left: 1.5em; margin-bottom: 1.5em; }
.entry-content li { margin-bottom: 0.4em; }

.source-note {
  font-family: 'Barlow', sans-serif;
  font-size: 11px;
  color: var(--muted);
  border-top: 1px solid var(--rule);
  padding-top: 20px;
  margin-top: 48px;
  line-height: 1.65;
}

/* ── ARCHIVE ───────────────────────────────── */
.archive-head {
  padding: 36px 0 28px;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 0;
}

.archive-label {
  font-family: 'Barlow', sans-serif;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--soft);
  margin-bottom: 6px;
}

.archive-title {
  font-family: 'Playfair Display', serif;
  font-size: 30px;
  font-weight: 700;
  color: var(--ink);
}

/* Pagination */
.pagination {
  display: flex;
  gap: 6px;
  padding: 36px 0;
  font-family: 'Barlow', sans-serif;
  font-size: 11px;
  letter-spacing: 0.08em;
}

.pagination a, .pagination span {
  padding: 6px 12px;
  border: 1px solid var(--rule);
  color: var(--muted);
  transition: all 0.15s;
}

.pagination a:hover { border-color: var(--ink); color: var(--ink); }
.pagination .current { background: var(--green); color: white; border-color: var(--green); }

/* ── FOOTER ────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--rule);
  padding: 40px 40px 32px;
  max-width: 860px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 40px;
}

.footer-brand .footer-name {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
  color: var(--ink);
}

.footer-brand .footer-name .vf-accent { color: var(--green); }

.footer-tagline {
  font-family: 'Source Serif 4', serif;
  font-style: italic;
  font-weight: 300;
  font-size: 13px;
  color: var(--soft);
  margin-bottom: 14px;
}

.footer-about {
  font-size: 13px;
  color: var(--soft);
  line-height: 1.65;
  margin-bottom: 12px;
}

.footer-contact {
  font-family: 'Barlow', sans-serif;
  font-size: 12px;
  color: var(--soft);
  line-height: 1.8;
}

.footer-contact a { color: var(--green); }

.footer-col-head {
  font-family: 'Barlow', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--rule);
}

.footer-links { list-style: none; }
.footer-links li { padding: 5px 0; }
.footer-links a {
  font-family: 'Barlow', sans-serif;
  font-size: 13px;
  color: var(--soft);
  transition: color 0.15s;
}
.footer-links a:hover { color: var(--ink); }

.footer-bar {
  max-width: 860px;
  margin: 0 auto;
  padding: 16px 40px 28px;
  display: flex;
  justify-content: space-between;
  font-family: 'Barlow', sans-serif;
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--soft);
  border-top: 1px solid var(--rule);
}

.footer-bar a { color: var(--soft); transition: color 0.15s; }
.footer-bar a:hover { color: var(--ink); }

.footer-motto {
  font-family: 'Source Serif 4', serif;
  font-style: italic;
  font-size: 12px;
  text-transform: none;
  letter-spacing: 0;
}

/* ── SEARCH ────────────────────────────────── */
.search-form { display: flex; border: 1px solid var(--rule); }
.search-form input[type="search"] {
  flex: 1; border: none; background: var(--white);
  padding: 9px 14px; font-family: 'Barlow', sans-serif;
  font-size: 12px; outline: none; color: var(--ink);
}
.search-form button {
  background: var(--ink); color: var(--bg); border: none;
  padding: 9px 16px; font-family: 'Barlow', sans-serif;
  font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase;
  cursor: pointer; transition: background 0.15s;
}
.search-form button:hover { background: var(--green); }

/* ── ANIMATIONS ────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.site-branding { animation: fadeUp 0.45s ease both; }
.lead          { animation: fadeUp 0.45s 0.05s ease both; }
.story-list    { animation: fadeUp 0.45s 0.1s ease both; }

/* ── RESPONSIVE ────────────────────────────── */
@media (max-width: 700px) {
  .wrap, .site-header, .single-wrap { padding-left: 20px; padding-right: 20px; }
  .story-item { grid-template-columns: 1fr; }
  .story-thumb { display: none; }
  .numbers { grid-template-columns: repeat(2, 1fr); gap: 20px; padding: 20px 0; }
  .num { border: none; padding: 0; }
  .newsletter { grid-template-columns: 1fr; gap: 24px; padding: 28px 24px; }
  .site-footer { grid-template-columns: 1fr; padding: 32px 20px; }
  .footer-bar { padding: 14px 20px 24px; flex-direction: column; gap: 6px; }
  .site-nav ul { gap: 14px; flex-wrap: wrap; }
}
