/*
Theme Name: The Truth About Eddie O'Brien
Theme URI: https://thetruthabouteddieobrien.com
Author: Eddie O'Brien Support Team
Author URI: https://thetruthabouteddieobrien.com
Description: A custom dark editorial WordPress theme for The Truth About Eddie O'Brien wrongful conviction advocacy site.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: eddie-theme
Tags: dark, editorial, one-page, advocacy
*/

/* ════════════════════════════════════════
   CSS DESIGN TOKENS
   ════════════════════════════════════════ */
:root {
  --ink:          #0d0d0d;
  --surface:      #141414;
  --surface-2:    #1e1e1e;
  --surface-3:    #2a2a2a;
  --rule:         #2e2e2e;
  --paper:        #f4efe6;
  --paper-dim:    #c8c0b4;
  --paper-mute:   #7a746c;
  --red:          #c0392b;
  --red-light:    #e74c3c;
  --gold:         #c9922a;
  --gold-light:   #e8b84b;
  --green:        #27ae60;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'Lora', Georgia, serif;
  --font-mono:    'IBM Plex Mono', 'Courier New', monospace;
  --transition:   200ms ease;
}

/* ════════════════════════════════════════
   RESET & BASE
   ════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
/* Sharp corners everywhere except elements that explicitly need rounding */
*:not(.tl-spine::before):not(.legend-dot) { border-radius: 0 !important; }
.tl-spine::before { border-radius: 50% !important; }
.legend-dot { border-radius: 50% !important; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  background: var(--ink);
  color: var(--paper-dim);
  font-family: var(--font-body);
  line-height: 1.7;
}
img { max-width: 100%; display: block; height: auto; }
a { color: var(--red); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--red-light); }
.container { max-width: 1200px; margin: 0 auto; padding: 0 48px; }
@media (max-width: 768px) { .container { padding: 0 24px; } }

/* ════════════════════════════════════════
   TYPOGRAPHY
   ════════════════════════════════════════ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--paper);
  line-height: 1.1;
  font-weight: 700;
}
h1 { font-size: clamp(36px, 5vw, 64px); font-weight: 900; }
h2 { font-size: clamp(28px, 3.5vw, 44px); margin-bottom: 16px; }
h3 { font-size: clamp(20px, 2.5vw, 28px); }
h4 { font-size: 20px; }
/* Scoped to main content — avoids bleeding into nav, admin bar, widgets */
.site-main p,
.hero p,
.about-body p,
.tl-body p,
.ev-card p,
.t-card p,
.cta-inner p,
.entry-content p {
  font-family: var(--font-body);
  color: var(--paper-dim);
  font-size: 16px;
  line-height: 1.75;
  margin-bottom: 16px;
}
.site-main p:last-child,
.about-body p:last-child,
.entry-content p:last-child { margin-bottom: 0; }
ul, ol { color: var(--paper-dim); font-family: var(--font-body); padding-left: 20px; }
ul li::marker { color: var(--red); }
strong { color: var(--paper); font-weight: 500; }
hr { border: none; border-top: 1px solid var(--rule); margin: 40px 0; }

blockquote,
.wp-block-quote {
  border-left: 3px solid var(--red) !important;
  border-top: none !important;
  border-right: none !important;
  border-bottom: none !important;
  padding: 16px 24px !important;
  background: var(--surface-2) !important;
  margin: 32px 0 !important;
}
blockquote p,
.wp-block-quote p {
  font-family: var(--font-display) !important;
  font-style: italic !important;
  font-size: 18px !important;
  color: var(--paper-dim) !important;
  line-height: 1.6 !important;
  margin-bottom: 0 !important;
}
blockquote cite,
.wp-block-quote cite {
  font-family: var(--font-mono) !important;
  font-size: 11px !important;
  letter-spacing: 0.1em !important;
  color: var(--paper-mute) !important;
  margin-top: 10px !important;
  display: block !important;
}

/* ════════════════════════════════════════
   NAVIGATION
   ════════════════════════════════════════ */
/* Only the outer header is sticky — #site-navigation lives inside it */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: var(--surface);
  border-bottom: 1px solid var(--rule);
}
#site-navigation {
  background: transparent;
  border: none;
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 64px;
}
.nav-logo {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 900;
  color: var(--paper);
  text-decoration: none;
  line-height: 1.2;
  flex-shrink: 0;
}
.nav-logo em { color: var(--red); font-style: normal; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links li { margin: 0; }
.nav-links a {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--paper-mute);
  text-decoration: none;
  padding: 8px 12px;
  transition: var(--transition);
  display: block;
}
.nav-links a:hover { color: var(--paper); }
.nav-links .nav-cta,
.nav-links li a.nav-cta,
.nav-links .menu-item a.nav-cta,
#primary-menu .nav-cta,
#primary-menu li a.nav-cta { background: var(--red); color: #ffffff !important; padding: 10px 18px; margin-left: 8px; text-decoration: none !important; }
.nav-links .nav-cta:hover,
.nav-links li a.nav-cta:hover,
#primary-menu .nav-cta:hover,
#primary-menu li a.nav-cta:hover { background: var(--red-light); color: #ffffff !important; }
.menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--rule);
  color: var(--paper-mute);
  padding: 8px 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
}
@media (max-width: 768px) {
  .nav-inner { padding: 0 24px; }
  .menu-toggle { display: block; }
  .nav-links {
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    position: absolute;
    top: 64px;
    left: 0; right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--rule);
    padding: 12px 0;
    z-index: 300;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 24px; width: 100%; }
  .nav-links .nav-cta { margin-left: 0; }
}

/* ════════════════════════════════════════
   HERO
   ════════════════════════════════════════ */
.hero {
  background: var(--ink);
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--rule);
}
.hero-ghost {
  position: absolute; bottom: -40px; right: -30px;
  font-family: var(--font-display); font-size: clamp(120px, 20vw, 260px);
  font-weight: 900; color: rgba(255,255,255,0.025); line-height: 1;
  pointer-events: none; user-select: none; white-space: nowrap;
}
.hero-inner {
  display: grid; grid-template-columns: 1fr 1fr; position: relative; z-index: 1;
}
@media (max-width: 900px) { .hero-inner { grid-template-columns: 1fr; } }
.hero-left {
  padding: 100px 64px 100px 48px;
  border-right: 1px solid var(--rule);
  display: flex; flex-direction: column; justify-content: center;
}
@media (max-width: 900px) { .hero-left { padding: 64px 24px; border-right: none; } }
.hero-eyebrow {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.3em;
  text-transform: uppercase; color: var(--red); margin-bottom: 20px;
  display: flex; align-items: center; gap: 12px;
}
.hero-eyebrow::before { content: ''; display: block; width: 24px; height: 1px; background: var(--red); }
.hero-h1 {
  font-family: var(--font-display); font-size: clamp(40px, 5vw, 68px);
  font-weight: 900; color: var(--paper); line-height: 1.05; margin-bottom: 24px;
}
.hero-h1 em { color: var(--red); font-style: normal; display: block; }
.hero-lede {
  font-family: var(--font-body); font-size: 17px; color: var(--paper-mute);
  line-height: 1.75; max-width: 460px; margin-bottom: 36px;
}
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; }
.btn {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.1em;
  text-transform: uppercase; padding: 14px 28px; cursor: pointer;
  border: none; display: inline-block; transition: var(--transition); text-decoration: none;
}
.btn-primary { background: var(--red); color: white !important; }
.btn-primary:hover { background: var(--red-light); color: white !important; }
.btn-outline { background: transparent; color: var(--paper) !important; border: 1px solid var(--paper-mute); }
.btn-outline:hover { border-color: var(--paper); color: var(--paper) !important; }
.hero-right {
  background: var(--surface);
  display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 0;
}
@media (max-width: 900px) { .hero-right { border-top: 1px solid var(--rule); } }
.stat-cell {
  padding: 48px 36px; border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule);
  display: flex; flex-direction: column; justify-content: flex-end;
}
.stat-cell:nth-child(2), .stat-cell:nth-child(4) { border-right: none; }
.stat-cell:nth-child(3), .stat-cell:nth-child(4) { border-bottom: none; }
.stat-num {
  font-family: var(--font-display); font-size: clamp(42px, 4vw, 60px);
  font-weight: 900; color: var(--gold); line-height: 1;
}
.stat-sup { font-size: 0.5em; vertical-align: super; color: var(--gold); }
.stat-desc {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--paper-mute); margin-top: 10px; line-height: 1.5;
}

/* ════════════════════════════════════════
   SECTION SHARED
   ════════════════════════════════════════ */
section { border-bottom: 1px solid var(--rule); }
.eyebrow {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.3em;
  text-transform: uppercase; color: var(--red); margin-bottom: 12px;
  display: flex; align-items: center; gap: 12px;
}
.eyebrow::before { content: ''; display: block; width: 20px; height: 1px; background: var(--red); }
.section-lede { font-size: 16px; color: var(--paper-mute); max-width: 560px; line-height: 1.75; margin-bottom: 0; }

/* ════════════════════════════════════════
   ABOUT SECTION
   ════════════════════════════════════════ */
.about-strip { background: var(--surface); padding: 64px 0; }
.about-inner { display: grid; grid-template-columns: 1fr 2fr; gap: 64px; align-items: start; }
@media (max-width: 768px) { .about-inner { grid-template-columns: 1fr; gap: 32px; } }
.about-label { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.25em; text-transform: uppercase; color: var(--gold); margin-bottom: 8px; }
.about-name { font-family: var(--font-display); font-size: 32px; font-weight: 900; color: var(--paper); line-height: 1.1; }
.about-divider { width: 40px; height: 2px; background: var(--red); margin: 20px 0; }
.about-body p { font-size: 16px; color: var(--paper-mute); margin-bottom: 16px; line-height: 1.8; }
.about-body p strong { color: var(--paper); font-weight: 500; }

/* ════════════════════════════════════════
   TIMELINE SECTION
   ════════════════════════════════════════ */
.timeline-section { padding: 72px 0; }
.tl-list { margin-top: 48px; }
.tl-item { display: grid; grid-template-columns: 88px 1px 1fr; gap: 0 28px; }
.tl-time { font-family: var(--font-mono); font-size: 13px; color: var(--gold); text-align: right; padding-top: 18px; font-weight: 600; }
.tl-spine { width: 1px; background: var(--rule); position: relative; }
.tl-spine::before {
  content: ''; position: absolute; top: 18px; left: 50%; transform: translateX(-50%);
  width: 10px; height: 10px; border-radius: 50% !important; background: var(--red);
  box-shadow: 0 0 0 3px var(--ink);
}
.tl-body { padding: 12px 0 40px; }
.tl-body h3 { font-family: var(--font-display); font-size: 19px; font-weight: 700; color: var(--paper); margin-bottom: 8px; }
.tl-body p  { font-size: 14px; color: var(--paper-mute); margin-bottom: 10px; line-height: 1.7; }
.tl-body a  { font-family: var(--font-mono); font-size: 11px; color: var(--red); letter-spacing: 0.05em; }
.tl-body a:hover { color: var(--red-light); }
.tl-tag { display: inline-block; font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.15em; text-transform: uppercase; padding: 2px 8px; margin-bottom: 8px; }
.tl-tag-alibi   { border: 1px solid var(--green); color: var(--green); }
.tl-tag-witness { border: 1px solid var(--gold); color: var(--gold); }

/* ════════════════════════════════════════
   EVIDENCE SECTION
   ════════════════════════════════════════ */
.evidence-section { padding: 72px 0; }
.evidence-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 20px; margin-top: 48px; }
.ev-card {
  background: var(--surface-2); border: 1px solid var(--rule);
  padding: 28px; position: relative; transition: var(--transition);
}
.ev-card:hover { border-color: var(--red); }
.ev-card-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 16px; }
.ev-badge { font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.15em; text-transform: uppercase; padding: 3px 10px; }
.ev-badge-critical { background: var(--red); color: white; }
.ev-badge-key      { border: 1px solid var(--gold); color: var(--gold); }
.ev-badge-misc     { background: var(--surface-3); color: var(--paper-mute); }
.ev-date { font-family: var(--font-mono); font-size: 10px; color: var(--paper-mute); }
.ev-card-label { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); margin-bottom: 6px; }
.ev-card h3 { font-family: var(--font-display); font-size: 18px; font-weight: 700; color: var(--paper); margin-bottom: 10px; line-height: 1.3; }
.ev-card p  { font-size: 13px; color: var(--paper-mute); margin-bottom: 16px; line-height: 1.7; }
.ev-link { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.05em; color: var(--red); display: inline-flex; align-items: center; gap: 6px; }
.ev-link::after { content: '→'; transition: var(--transition); }
.ev-card:hover .ev-link::after { transform: translateX(4px); }

/* ════════════════════════════════════════
   TESTIMONY SECTION
   ════════════════════════════════════════ */
.testimony-section { padding: 72px 0; background: var(--surface); }
.testimony-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 48px; }
.testimony-grid-secondary { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 20px; }
@media (max-width: 768px) { .testimony-grid { grid-template-columns: 1fr; } .testimony-grid-secondary { grid-template-columns: 1fr; } }
.t-card { background: var(--surface-2); border: 1px solid var(--rule); padding: 28px; border-top: 2px solid var(--gold); }
.t-card h3 { font-family: var(--font-display); font-size: 18px; font-weight: 700; color: var(--paper); margin-bottom: 8px; }
.t-card p  { font-size: 13px; color: var(--paper-mute); margin-bottom: 16px; line-height: 1.7; }
.t-card-links { display: flex; flex-direction: column; gap: 8px; }
.t-card-links a { font-family: var(--font-mono); font-size: 11px; color: var(--red); }

/* ════════════════════════════════════════
   CTA / HELP SECTION
   ════════════════════════════════════════ */
.cta-section {
  background: var(--ink); padding: 100px 0; position: relative; overflow: hidden;
}
.cta-section::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--red); }
.cta-inner { text-align: center; max-width: 680px; margin: 0 auto; position: relative; z-index: 1; }
.cta-inner .eyebrow { justify-content: center; }
.cta-inner .eyebrow::before { display: none; }
.cta-inner h2 { font-size: clamp(32px, 4vw, 52px); margin-bottom: 20px; }
.cta-inner p  { font-size: 16px; color: var(--paper-mute); margin-bottom: 40px; line-height: 1.8; }
.action-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 40px; }
@media (max-width: 600px) { .action-grid { grid-template-columns: 1fr 1fr; } }
.action-tile {
  background: var(--surface-2); border: 1px solid var(--rule);
  padding: 24px 16px; text-align: center; transition: var(--transition); cursor: pointer;
}
.action-tile:hover { border-color: var(--red); background: var(--surface-3); }
.action-icon { font-size: 24px; margin-bottom: 10px; }
.action-label { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--paper-mute); display: block; }
.cta-email { display: flex; gap: 0; max-width: 420px; margin: 0 auto; }
.cta-input {
  flex: 1; background: var(--surface-2); border: 1px solid var(--rule); border-right: none;
  color: var(--paper); font-family: var(--font-mono); font-size: 13px; padding: 14px 16px; outline: none;
}
.cta-input:focus { border-color: var(--gold); }
.cta-input::placeholder { color: var(--paper-mute); }
.cta-submit {
  background: var(--red); color: white; border: none; cursor: pointer;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em;
  text-transform: uppercase; padding: 14px 20px; transition: var(--transition);
}
.cta-submit:hover { background: var(--red-light); }

/* ════════════════════════════════════════
   FOOTER
   ════════════════════════════════════════ */
.site-footer { background: var(--surface); border-top: 1px solid var(--rule); padding: 48px 0; }
.footer-inner { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 32px; }
.footer-brand .footer-logo { font-family: var(--font-display); font-size: 18px; font-weight: 900; color: var(--paper); margin-bottom: 8px; }
.footer-brand .footer-logo em { color: var(--red); font-style: normal; }
.footer-brand p { font-family: var(--font-mono); font-size: 11px; color: var(--paper-mute); line-height: 1.8; margin-bottom: 0; }
.footer-links { display: flex; flex-direction: column; gap: 8px; }
.footer-col-label { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--paper-mute); margin-bottom: 16px; }
.footer-links a { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; color: var(--paper-mute); }
.footer-links a:hover { color: var(--paper); }
.footer-social { display: flex; gap: 12px; margin-top: 16px; flex-wrap: wrap; }
.footer-social a { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--paper-mute); border: 1px solid var(--rule); padding: 6px 12px; }
.footer-social a:hover { border-color: var(--paper-mute); color: var(--paper); }
.footer-bottom { border-top: 1px solid var(--rule); margin-top: 40px; padding-top: 24px; font-family: var(--font-mono); font-size: 11px; color: var(--paper-mute); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }

/* ════════════════════════════════════════
   WORDPRESS BLOCK EDITOR COMPAT
   ════════════════════════════════════════ */
.wp-block-button__link,
.wp-element-button {
  font-family: var(--font-mono) !important;
  font-size: 12px !important;
  letter-spacing: 0.12em !important;
  text-transform: uppercase !important;
  background-color: var(--red) !important;
  color: white !important;
  border: none !important;
  padding: 14px 28px !important;
  transition: var(--transition) !important;
}
.wp-block-button__link:hover { background-color: var(--red-light) !important; }
.wp-block-button.is-style-outline .wp-block-button__link {
  background-color: transparent !important;
  color: var(--paper) !important;
  border: 1px solid var(--paper-mute) !important;
}
.wp-block-separator { border-top: 1px solid var(--rule) !important; margin: 40px 0 !important; }
.wp-block-image img { max-width: 100%; }
.wp-block-group { padding: 0; }
.entry-content { max-width: 760px; margin: 0 auto; padding: 48px 0; }
.entry-content p, .entry-content li { font-size: 16px; color: var(--paper-dim); line-height: 1.8; }

/* ════════════════════════════════════════
   PAGES & SINGLE POSTS
   ════════════════════════════════════════ */
.page-hero-inner { padding: 80px 0 64px; }
.page-hero-inner h1 { margin-bottom: 16px; }
.wp-post-image { width: 100%; height: 300px; object-fit: cover; }
.entry-title { font-family: var(--font-display); font-size: clamp(28px, 4vw, 48px); font-weight: 900; color: var(--paper); margin-bottom: 24px; }
.entry-meta { font-family: var(--font-mono); font-size: 11px; color: var(--paper-mute); letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 32px; }

/* ════════════════════════════════════════
   FORMS
   ════════════════════════════════════════ */
input[type="text"],
input[type="email"],
input[type="search"],
textarea, select {
  background: var(--surface-2) !important;
  border: 1px solid var(--rule) !important;
  color: var(--paper) !important;
  font-family: var(--font-mono) !important;
  font-size: 13px !important;
  padding: 12px 16px !important;
  outline: none !important;
  box-shadow: none !important;
  transition: var(--transition) !important;
  width: 100%;
}
input:focus, textarea:focus { border-color: var(--gold) !important; }
input::placeholder, textarea::placeholder { color: var(--paper-mute) !important; }
label { font-family: var(--font-mono) !important; font-size: 11px !important; letter-spacing: 0.15em !important; text-transform: uppercase !important; color: var(--paper-mute) !important; margin-bottom: 6px !important; display: block !important; }

/* ════════════════════════════════════════
   SEARCH & 404
   ════════════════════════════════════════ */
.search-form { display: flex; gap: 0; max-width: 480px; margin: 0 auto; }
.search-field { flex: 1; }
.search-submit {
  background: var(--red); color: white; border: none; padding: 12px 20px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em;
  text-transform: uppercase; cursor: pointer;
}
.not-found, .search-results { padding: 80px 0; text-align: center; }
.not-found h1 { font-size: 80px; color: var(--rule); margin-bottom: 16px; }

/* ════════════════════════════════════════
   RESPONSIVE
   ════════════════════════════════════════ */
@media (max-width: 768px) {
  h1 { font-size: 36px !important; }
  h2 { font-size: 28px !important; }
  .evidence-grid { grid-template-columns: 1fr !important; }
  .testimony-grid { grid-template-columns: 1fr !important; }
  .tl-item { grid-template-columns: 70px 1px 1fr; gap: 0 16px; }
  .hero-left { padding: 48px 24px; }
}
