/*
Theme Name: Inversion CRO Blog
Theme URI: https://inversioncro.com
Author: Kevin French
Author URI: https://inversioncro.com
Description: Custom blog theme for InversionCRO - Fractional CRO for B2B Companies. Matches the InversionCRO homepage design system.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: Proprietary
License URI: https://inversioncro.com
Text Domain: inversion-blog

Copyright 2026 Inversion Systems LLC. All rights reserved.
*/

/* ═══ RESET & VARIABLES ═══ */
:root {
  --void: #0a0a0a;
  --carbon: #1a1a1a;
  --graphite: #2d2d2d;
  --slate: #4a4a4a;
  --mid: #6a6a6a;
  --signal: #e8e8e8;
  --white: #ffffff;
  --mist: #f5f5f3;
  --cloud: #eaeae7;
  --disruptor: #DC143C;
  --disruptor-dim: rgba(220, 20, 60, 0.15);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Outfit', sans-serif;
  background-color: var(--white);
  color: var(--carbon);
  line-height: 1.7;
  font-weight: 300;
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

img { max-width: 100%; height: auto; }
a { text-decoration: none; }

/* ═══ NAV ═══ */
nav.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  padding: 24px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 100;
  background: var(--void);
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.logo-mark {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.logo-text {
  font-family: 'DM Sans', sans-serif;
  font-size: 20px;
  font-weight: 500;
  color: var(--white);
  letter-spacing: 0.5px;
}

.logo-accent {
  font-family: 'DM Serif Display', serif;
  font-size: 20px;
  font-style: italic;
  font-weight: 400;
  color: var(--disruptor);
  letter-spacing: 0.5px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a.nav-link {
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--signal);
  text-decoration: none;
  opacity: 0.7;
  transition: opacity 0.3s ease, color 0.3s ease;
}

.nav-links a.nav-link:hover { opacity: 1; color: var(--white); }
.nav-links a.nav-link.active { opacity: 1; color: var(--disruptor); }

.nav-cta {
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--white);
  text-decoration: none;
  padding: 12px 24px;
  border: none;
  background: var(--disruptor);
  transition: all 0.4s ease;
}

.nav-cta:hover {
  background: #e8163f;
  box-shadow: 0 0 30px rgba(220, 20, 60, 0.3);
}

/* ═══ DIMENSION LINES ═══ */
.dimension-line {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.dimension-line::before {
  content: '';
  width: 40px;
  height: 1px;
  background: var(--cloud);
}

.blog-hero .dimension-line::before,
.post-hero .dimension-line::before {
  background: var(--graphite);
}

.dimension-label {
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--disruptor);
  opacity: 0.7;
}

/* ═══ BLOG HERO ═══ */
.blog-hero {
  padding: 160px 0 80px;
  background: var(--void);
  color: var(--white);
  position: relative;
  overflow: hidden;
  clip-path: inset(0);
}

.blog-hero::before {
  content: '';
  position: absolute;
  top: -150%;
  right: -80%;
  width: 200%;
  height: 250%;
  border-radius: 50%;
  border: 2px solid rgba(220, 20, 60, 0.45);
  box-shadow:
    0 0 15px rgba(220, 20, 60, 0.25),
    0 0 40px rgba(220, 20, 60, 0.08);
  pointer-events: none;
  z-index: 0;
}

.blog-hero > .container {
  position: relative;
  z-index: 2;
}

.blog-hero h1 {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 400;
  line-height: 1.15;
  margin-bottom: 16px;
}

.blog-hero h1 em {
  font-style: italic;
  color: var(--disruptor);
}

.blog-hero-sub {
  font-size: 18px;
  color: var(--signal);
  opacity: 0.6;
  max-width: 600px;
}

/* Curve animation overlay */
.curve-animation {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
  clip-path: inset(0);
}

.curve-animation svg {
  position: absolute;
  top: -150%;
  right: -80%;
  width: 200%;
  height: 250%;
}

/* ═══ CATEGORY FILTER ═══ */
.blog-filter {
  padding: 32px 0;
  background: var(--mist);
  border-bottom: 1px solid var(--cloud);
  position: sticky;
  top: 76px;
  z-index: 50;
}

.filter-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.filter-tag {
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--mid);
  padding: 8px 16px;
  border: 1px solid var(--cloud);
  background: var(--white);
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}

.filter-tag:hover {
  border-color: var(--disruptor);
  color: var(--disruptor);
}

.filter-tag.active {
  background: var(--void);
  color: var(--white);
  border-color: var(--void);
}

/* ═══ BLOG LISTING ═══ */
.blog-listing {
  padding: 80px 0 120px;
  background: var(--white);
}

/* Featured post */
.featured-post {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  padding-bottom: 80px;
  margin-bottom: 80px;
  border-bottom: 1px solid var(--cloud);
}

.featured-image {
  aspect-ratio: 16/10;
  background: var(--void);
  position: relative;
  overflow: hidden;
}

.featured-image::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid rgba(220, 20, 60, 0.15);
  pointer-events: none;
}

.featured-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 0% center !important;
}

.featured-image-placeholder {
  width: 100%;
  height: 100%;
  background: radial-gradient(ellipse 400px 300px at 30% 50%, rgba(220, 20, 60, 0.15) 0%, transparent 70%) var(--void);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--slate);
}

.featured-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.post-category {
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--disruptor);
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.post-category:hover { opacity: 0.7; }

.post-date {
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  letter-spacing: 1px;
  color: var(--mid);
}

.post-date::before {
  content: '';
  display: inline-block;
  width: 20px;
  height: 1px;
  background: var(--cloud);
  vertical-align: middle;
  margin-right: 16px;
}

.featured-content h2 {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 400;
  line-height: 1.2;
  color: var(--void);
  margin-bottom: 20px;
}

.featured-content h2 a {
  color: var(--void);
  text-decoration: none;
  transition: color 0.3s ease;
}

.featured-content h2 a:hover { color: var(--disruptor); }

.featured-excerpt {
  font-size: 16px;
  color: var(--mid);
  line-height: 1.8;
  margin-bottom: 32px;
}

.read-link {
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--void);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  transition: color 0.3s ease;
}

.read-link::after {
  content: '\2192';
  color: var(--disruptor);
  transition: transform 0.3s ease;
}

.read-link:hover { color: var(--disruptor); }
.read-link:hover::after { transform: translateX(4px); }

/* Post grid */
.post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.post-card {
  transition: transform 0.4s ease;
}

.post-card:hover { transform: translateY(-4px); }

.post-card-image {
  aspect-ratio: 16/10;
  background: var(--mist);
  border: 1px solid var(--cloud);
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.4s ease;
}

.post-card:hover .post-card-image { border-color: var(--disruptor); }

.post-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 0% center !important;
}

.post-card-image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--slate);
}

.post-card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.post-card h3 {
  font-family: 'DM Serif Display', serif;
  font-size: 22px;
  font-weight: 400;
  line-height: 1.3;
  color: var(--void);
  margin-bottom: 12px;
  transition: color 0.3s ease;
}

.post-card h3 a {
  color: var(--void);
  text-decoration: none;
  transition: color 0.3s ease;
}

.post-card:hover h3 a { color: var(--disruptor); }

.post-card-excerpt {
  font-size: 15px;
  color: var(--mid);
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-read-time {
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  letter-spacing: 1px;
  color: var(--slate);
  margin-top: 12px;
  display: block;
}

.post-hero-meta .post-read-time {
  display: inline;
  margin-top: 0;
}

/* ═══ PAGINATION ═══ */
.blog-pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 80px;
  padding-top: 48px;
  border-top: 1px solid var(--cloud);
}

.blog-pagination a,
.blog-pagination span {
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  letter-spacing: 1px;
  padding: 10px 16px;
  border: 1px solid var(--cloud);
  color: var(--mid);
  text-decoration: none;
  transition: all 0.3s ease;
}

.blog-pagination a:hover {
  border-color: var(--disruptor);
  color: var(--disruptor);
}

.blog-pagination span.current {
  background: var(--void);
  color: var(--white);
  border-color: var(--void);
}

.blog-pagination a.prev,
.blog-pagination a.next {
  letter-spacing: 2px;
  text-transform: uppercase;
}

/* ═══ SINGLE POST HERO ═══ */
.post-hero {
  padding: 160px 0 60px;
  background: var(--void);
  color: var(--white);
  position: relative;
  overflow: hidden;
  clip-path: inset(0);
}

.post-hero::before {
  content: '';
  position: absolute;
  top: -150%;
  right: -80%;
  width: 200%;
  height: 250%;
  border-radius: 50%;
  border: 2px solid rgba(220, 20, 60, 0.45);
  box-shadow:
    0 0 15px rgba(220, 20, 60, 0.25),
    0 0 40px rgba(220, 20, 60, 0.08);
  pointer-events: none;
  z-index: 0;
}

.post-hero > .container {
  position: relative;
  z-index: 2;
}

.post-breadcrumb {
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 40px;
}

.post-breadcrumb a {
  color: var(--signal);
  text-decoration: none;
  opacity: 0.5;
  transition: opacity 0.3s ease;
}

.post-breadcrumb a:hover { opacity: 1; }
.post-breadcrumb span.sep { color: var(--slate); margin: 0 8px; }
.post-breadcrumb .current { color: var(--disruptor); opacity: 0.7; }

.post-hero-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.post-hero h1 {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 400;
  line-height: 1.15;
  max-width: 900px;
  margin-bottom: 24px;
}

.post-hero h1 em {
  font-style: italic;
  color: var(--disruptor);
}

.post-hero-excerpt {
  font-size: 20px;
  color: var(--signal);
  opacity: 0.7;
  max-width: 700px;
  line-height: 1.7;
}

/* Author bar */
.post-author-bar {
  padding: 24px 0;
  border-bottom: 1px solid var(--cloud);
  background: var(--mist);
}

.author-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.author-info {
  display: flex;
  align-items: center;
  gap: 16px;
}

.author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  overflow: hidden;
}

.author-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.author-avatar-fallback {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--void);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'DM Serif Display', serif;
  font-size: 16px;
  color: var(--disruptor);
}

.author-name {
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: var(--void);
}

.author-title {
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  letter-spacing: 1px;
  color: var(--mid);
}

.post-share {
  display: flex;
  align-items: center;
  gap: 16px;
}

.share-label {
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--mid);
}

.share-link {
  width: 36px;
  height: 36px;
  border: 1px solid var(--cloud);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  color: var(--mid);
  text-decoration: none;
  transition: all 0.3s ease;
}

.share-link:hover {
  border-color: var(--disruptor);
  color: var(--disruptor);
}

/* ═══ POST BODY ═══ */
.post-featured-image {
  background: var(--void);
  padding: 32px 0 0;
}
.post-featured-image .container {
  max-width: 800px;
}
.post-featured-image img {
  width: 100%;
  height: auto;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.post-body {
  padding: 80px 0 120px;
  background: var(--white);
}

.post-body > .container {
  display: grid;
  grid-template-columns: 1fr 740px 1fr;
}

.post-content {
  grid-column: 2;
}

.post-content h2 {
  font-family: 'DM Serif Display', serif;
  font-size: 32px;
  font-weight: 400;
  line-height: 1.3;
  color: var(--void);
  margin: 56px 0 24px;
}

.post-content h2:first-child { margin-top: 0; }

.post-content h3 {
  font-family: 'DM Serif Display', serif;
  font-size: 24px;
  font-weight: 400;
  line-height: 1.3;
  color: var(--void);
  margin: 40px 0 16px;
}

.post-content p {
  font-size: 17px;
  color: var(--slate);
  line-height: 1.9;
  margin-bottom: 24px;
}

.post-content p strong {
  color: var(--void);
  font-weight: 500;
}

.post-content a {
  color: var(--disruptor);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: opacity 0.3s ease;
}

.post-content a:hover { opacity: 0.7; }

.post-content ul,
.post-content ol {
  margin: 0 0 24px 24px;
  font-size: 17px;
  color: var(--slate);
  line-height: 1.9;
}

.post-content li { margin-bottom: 8px; }

.post-content blockquote {
  border-left: 3px solid var(--disruptor);
  padding: 24px 32px;
  margin: 40px 0;
  background: var(--mist);
}

.post-content blockquote p {
  font-family: 'DM Serif Display', serif;
  font-size: 22px;
  font-style: italic;
  color: var(--void);
  line-height: 1.6;
  margin-bottom: 0;
}

.post-content img {
  width: 100%;
  height: auto;
  margin: 40px 0;
  border: 1px solid var(--cloud);
}

.post-content figure {
  margin: 40px 0;
}

.post-content figcaption {
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  letter-spacing: 1px;
  color: var(--mid);
  margin-top: 12px;
}

.post-content code {
  font-family: 'Space Mono', monospace;
  font-size: 14px;
  background: var(--mist);
  border: 1px solid var(--cloud);
  padding: 2px 8px;
  color: var(--disruptor);
}

.post-content pre {
  background: var(--void);
  color: var(--signal);
  padding: 32px;
  margin: 40px 0;
  overflow-x: auto;
  font-family: 'Space Mono', monospace;
  font-size: 14px;
  line-height: 1.8;
}

.post-content pre code {
  background: none;
  border: none;
  padding: 0;
  color: inherit;
}

/* Sign-off accent */
.post-content .sign-off,
.page-content .sign-off {
  margin-top: 48px;
  padding: 32px;
  background: #F5F5F0;
  border: 1px solid transparent;
  font-style: normal;
  line-height: 1.7;
  transition: border-color 0.3s ease;
  position: relative;
}

.post-content .sign-off:hover,
.page-content .sign-off:hover {
  border-color: #C41E1A;
}

.post-content .sign-off a,
.page-content .sign-off a {
  color: #1A1A1A;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: #C41E1A;
  text-underline-offset: 3px;
  transition: opacity 0.3s ease;
}

.post-content .sign-off a:hover,
.page-content .sign-off a:hover {
  opacity: 0.7;
}

.post-content .sign-off::before,
.page-content .sign-off::before,
.post-content .sign-off::after,
.page-content .sign-off::after {
  content: "•  •  •";
  display: block;
  text-align: center;
  font-size: 14px;
  letter-spacing: 4px;
  color: var(--disruptor);
  position: absolute;
  left: 0;
  right: 0;
}

.post-content .sign-off::before,
.page-content .sign-off::before {
  top: -28px;
}

.post-content .sign-off::after,
.page-content .sign-off::after {
  bottom: -28px;
}

/* Post tags */
.post-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding-top: 48px;
  margin-top: 48px;
  border-top: 1px solid var(--cloud);
}

.post-tag {
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--mid);
  padding: 6px 14px;
  border: 1px solid var(--cloud);
  text-decoration: none;
  transition: all 0.3s ease;
}

.post-tag:hover {
  border-color: var(--disruptor);
  color: var(--disruptor);
}

/* ═══ RELATED POSTS ═══ */
.related-posts {
  padding: 80px 0;
  background: var(--mist);
  border-top: 1px solid var(--cloud);
}

.related-posts h2 {
  font-family: 'DM Serif Display', serif;
  font-size: 32px;
  font-weight: 400;
  color: var(--void);
  margin-bottom: 48px;
}

/* ═══ FOOTER ═══ */
footer.site-footer {
  padding: 40px;
  text-align: center;
  background: var(--void);
  border-top: 1px solid var(--graphite);
}

footer.site-footer p {
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--signal);
}

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

.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ═══════════════════════════════════════════════════
   PATCH: Add these rules to your style.css
   ═══════════════════════════════════════════════════ */


/* ─── Fix 2: Blog link bordered style (matches home page) ─── */

.nav-link-bordered {
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--disruptor);
  text-decoration: none;
  padding: 12px 24px;
  border: 1px solid var(--disruptor);
  background: transparent;
  opacity: 1;
  transition: all 0.4s ease;
}

.nav-link-bordered:hover {
  background: rgba(220, 20, 60, 0.1);
  color: var(--disruptor);
}

.nav-link-bordered.active {
  background: rgba(220, 20, 60, 0.15);
  color: var(--disruptor);
}


/* ─── Fix 3: Share link SVG icon sizing ─── */

.share-link {
  width: 36px;
  height: 36px;
  border: 1px solid var(--cloud);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--mid);
  text-decoration: none;
  transition: all 0.3s ease;
}

.share-link svg {
  flex-shrink: 0;
}

.share-link:hover {
  border-color: var(--disruptor);
  color: var(--disruptor);
}

/* ═══ RESPONSIVE ═══ */
@media (max-width: 968px) {
  .container { padding: 0 24px; }
  nav.site-nav { padding: 20px 24px; }

  .featured-post {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .post-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .post-body > .container {
    grid-template-columns: 1fr;
  }

  .post-content { grid-column: 1; }

  .author-bar-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .nav-links a.nav-link { display: none; }

  .blog-hero h1,
  .post-hero h1 {
    font-size: clamp(32px, 6vw, 48px);
  }

  .post-content h2 { font-size: 26px; }
  .post-content p { font-size: 16px; }
}

@media (max-width: 600px) {
  .filter-tags { gap: 6px; }
  .filter-tag { padding: 6px 12px; font-size: 9px; }
  .blog-filter { top: 68px; }
}
/* ═══ THREE-DOT SEPARATOR ═══ */
.post-content .wp-block-separator,
.post-content hr {
  border: none;
  text-align: center;
  margin: 40px 0;
  background: none;
  height: auto;
  overflow: visible;
}

.post-content .wp-block-separator::after,
.post-content hr::after {
  content: "•  •  •";
  font-size: 14px;
  letter-spacing: 4px;
  color: var(--disruptor);
}