/*
Theme Name: Before the Verdict
Theme URI: https://beforetheverdict.com/
Author: Before the Verdict
Description: A clean, editorial WordPress theme for legal explainers, courtroom reporting, and case analysis.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: before-the-verdict
*/
:root {
  --btv-navy: #101d32;
  --btv-navy-soft: #1c2d47;
  --btv-gold: #d8b77c;
  --btv-cream: #fbfaf7;
  --btv-ink: #202633;
  --btv-muted: #697386;
  --btv-line: #e6e3dc;
  --btv-white: #fff;
  --btv-width: 1160px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--btv-cream); color: var(--btv-ink);
  font-family: Georgia, "Times New Roman", serif; font-size: 18px; line-height: 1.7;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: #8a642e; }
button, input, textarea { font: inherit; }
.wrap { width: min(calc(100% - 40px), var(--btv-width)); margin-inline: auto; }
.site-header { background: var(--btv-navy); color: var(--btv-white); border-bottom: 3px solid var(--btv-gold); }
.header-inner { min-height: 86px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.site-branding { display: flex; flex-direction: column; text-decoration: none; line-height: 1.2; }
.site-title { font-family: Arial, sans-serif; font-size: 1.05rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.site-description { color: #d7dce5; font-family: Arial, sans-serif; font-size: .72rem; margin-top: 6px; letter-spacing: .02em; }
.custom-logo { max-height: 56px; width: auto; }
.primary-navigation ul { display: flex; align-items: center; gap: 22px; list-style: none; margin: 0; padding: 0; }
.primary-navigation a { font-family: Arial, sans-serif; font-size: .85rem; color: #f7f7f5; text-decoration: none; }
.primary-navigation a:hover { color: var(--btv-gold); }
.menu-toggle { display: none; color: white; background: transparent; border: 1px solid #637087; padding: 8px 12px; border-radius: 4px; }
.hero { background: var(--btv-navy); color: white; padding: clamp(60px, 9vw, 112px) 0 82px; }
.hero-inner { max-width: 820px; }
.eyebrow { color: var(--btv-gold); font: 700 .75rem/1.4 Arial, sans-serif; letter-spacing: .16em; text-transform: uppercase; }
.hero h1 { max-width: 800px; margin: 18px 0; font-size: clamp(2.6rem, 6vw, 5.1rem); line-height: 1.02; letter-spacing: -.04em; font-weight: 500; }
.hero p { max-width: 660px; margin: 0; color: #e0e5ed; font-size: clamp(1.05rem, 2vw, 1.25rem); }
.button { display: inline-flex; align-items: center; justify-content: center; margin-top: 28px; padding: 13px 20px; border-radius: 3px; background: var(--btv-gold); color: var(--btv-navy); font: 700 .88rem Arial, sans-serif; text-decoration: none; border: 1px solid var(--btv-gold); }
.button:hover { background: #ebd1a5; color: var(--btv-navy); }
.section { padding: 64px 0; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 26px; }
.section-heading h2 { margin: 0; color: var(--btv-navy); font-size: clamp(1.8rem, 3vw, 2.5rem); font-weight: 500; line-height: 1.15; }
.section-heading a { font: 700 .85rem Arial, sans-serif; color: var(--btv-navy); }
.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; }
.post-card { background: var(--btv-white); border: 1px solid var(--btv-line); min-width: 0; }
.post-card-image { aspect-ratio: 16 / 9; background: #e8e6e0; overflow: hidden; }
.post-card-image img { width: 100%; height: 100%; object-fit: cover; }
.post-card-content { padding: 22px; }
.post-meta { color: var(--btv-muted); font: 700 .72rem/1.5 Arial, sans-serif; letter-spacing: .05em; text-transform: uppercase; }
.post-card h3 { margin: 10px 0; font-size: 1.45rem; line-height: 1.2; font-weight: 500; }
.post-card h3 a { text-decoration: none; }
.post-card p { margin: 0; color: #555f6e; font-size: .95rem; }
.empty-image { height: 100%; display: grid; place-items: center; color: #7b8491; font: 700 .75rem Arial, sans-serif; letter-spacing: .12em; text-transform: uppercase; }
.mission { background: #f0eee8; border-top: 1px solid var(--btv-line); border-bottom: 1px solid var(--btv-line); }
.mission-inner { max-width: 780px; margin: auto; text-align: center; }
.mission h2 { margin: 0 0 14px; color: var(--btv-navy); font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 500; line-height: 1.15; }
.mission p { color: #515b69; margin: 0; }
.content-area { padding: 54px 0 76px; }
.content-layout { max-width: 820px; margin: 0 auto; }
.page-title, .entry-title { color: var(--btv-navy); font-size: clamp(2.2rem, 5vw, 3.7rem); line-height: 1.08; font-weight: 500; letter-spacing: -.025em; }
.entry-title a { text-decoration: none; }
.entry-header { margin-bottom: 25px; }
.entry-content { overflow-wrap: anywhere; }
.entry-content h2, .entry-content h3 { color: var(--btv-navy); line-height: 1.2; }
.entry-content a { color: #775525; }
.entry-content blockquote { margin: 28px 0; padding: 5px 0 5px 22px; border-left: 3px solid var(--btv-gold); color: #4f5968; }
.featured-image { margin: 25px 0; }
.featured-image img { width: 100%; max-height: 560px; object-fit: cover; }
.post-list { display: grid; gap: 24px; }
.post-list-item { padding-bottom: 24px; border-bottom: 1px solid var(--btv-line); }
.post-list-item h2 { margin: 7px 0; color: var(--btv-navy); font-size: 1.8rem; line-height: 1.2; font-weight: 500; }
.post-list-item h2 a { text-decoration: none; }
.pagination { margin-top: 35px; }
.pagination .nav-links { display: flex; gap: 12px; flex-wrap: wrap; }
.pagination a, .pagination span { padding: 8px 12px; border: 1px solid var(--btv-line); text-decoration: none; }
.site-footer { background: var(--btv-navy); color: #e0e5ed; padding: 36px 0; font-family: Arial, sans-serif; font-size: .85rem; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.site-footer a { color: white; }
.site-footer p { margin: 0; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.alignwide { max-width: 1100px; margin-inline: auto; }
.alignfull { width: 100%; }
.wp-block-image img { height: auto; }
.wp-block-button__link { background: var(--btv-navy); color: white; border-radius: 3px; }
@media (max-width: 800px) {
  .header-inner { min-height: 74px; }
  .menu-toggle { display: block; }
  .primary-navigation { display: none; width: 100%; padding: 0 0 18px; }
  .primary-navigation.is-open { display: block; }
  .header-inner { flex-wrap: wrap; }
  .primary-navigation ul { flex-direction: column; align-items: flex-start; gap: 12px; }
  .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  body { font-size: 17px; }
  .wrap { width: min(calc(100% - 28px), var(--btv-width)); }
  .hero { padding: 55px 0 62px; }
  .section { padding: 44px 0; }
  .post-grid { grid-template-columns: 1fr; }
  .section-heading { align-items: flex-start; flex-direction: column; }
  .post-card-content { padding: 18px; }
}
