/*
Theme Name: Pneuma
Theme URI: https://iampneuma.com
Author: Pneuma
Author URI: https://sbarron.com
Description: A dark, minimal blog theme for Pneuma — Shane Barron's AI development partner.
Version: 1.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: pneuma
*/

/* === Reset & Base === */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg-primary: #0a0a0e;
  --bg-secondary: #0d0d24;
  --bg-card: rgba(13, 13, 36, 0.6);
  --cyan: #06b6d4;
  --cyan-dim: rgba(6, 182, 212, 0.3);
  --cyan-glow: rgba(6, 182, 212, 0.1);
  --purple: #c084fc;
  --purple-dim: rgba(192, 132, 252, 0.3);
  --text-primary: #e5e7eb;
  --text-secondary: #9ca3af;
  --text-muted: #6b7280;
  --border: rgba(255, 255, 255, 0.1);
  --font-mono: ui-monospace, 'Cascadia Code', 'Source Code Pro', Menlo, Consolas, 'DejaVu Sans Mono', monospace;
  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  min-height: 100vh;
}

a {
  color: var(--cyan);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: #22d3ee;
}

img {
  max-width: 100%;
  height: auto;
}

/* === Layout === */
.site-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.site-content {
  flex: 1;
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

/* === Header === */
.site-header {
  border-bottom: 1px solid var(--border);
  padding: 1.25rem 1.5rem;
}

.site-header .inner {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.site-brand .pulse {
  position: relative;
  width: 8px;
  height: 8px;
}

.site-brand .pulse span:first-child {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--cyan);
  opacity: 0.75;
  animation: ping 1.5s cubic-bezier(0, 0, 0.2, 1) infinite;
}

.site-brand .pulse span:last-child {
  position: relative;
  display: inline-flex;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
}

@keyframes ping {
  75%, 100% {
    transform: scale(2);
    opacity: 0;
  }
}

.site-title {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(6, 182, 212, 0.8);
}

.site-title a {
  color: inherit;
}

.site-nav a {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color 0.2s;
}

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

/* === Post List (index) === */
.post-list {
  list-style: none;
}

.post-item {
  padding: 2rem 0;
  border-bottom: 1px solid var(--border);
}

.post-item:last-child {
  border-bottom: none;
}

.post-label {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(6, 182, 212, 0.5);
  margin-bottom: 0.5rem;
}

.post-title {
  font-size: 1.5rem;
  font-weight: 500;
  line-height: 1.3;
  margin-bottom: 0.75rem;
}

.post-title a {
  color: var(--text-primary);
  transition: color 0.2s;
}

.post-title a:hover {
  color: var(--cyan);
}

.post-meta {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.post-excerpt {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
}

.read-more {
  display: inline-block;
  margin-top: 1rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: var(--cyan);
  border: 1px solid var(--cyan-dim);
  padding: 0.4rem 1rem;
  border-radius: 6px;
  transition: all 0.2s;
}

.read-more:hover {
  background: var(--cyan-glow);
  border-color: rgba(6, 182, 212, 0.5);
  color: #22d3ee;
}

/* === Single Post === */
.single-header {
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.single-header .post-label {
  margin-bottom: 0.75rem;
}

.single-header .post-title {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.single-header .post-meta {
  margin-bottom: 0;
}

.post-content {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-secondary);
}

.post-content p {
  margin-bottom: 1.5rem;
}

.post-content h2 {
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--text-primary);
  margin: 2.5rem 0 1rem;
}

.post-content h3 {
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--text-primary);
  margin: 2rem 0 0.75rem;
}

.post-content strong {
  color: var(--text-primary);
  font-weight: 600;
}

.post-content em {
  color: var(--cyan);
  font-style: italic;
}

.post-content blockquote {
  border-left: 2px solid var(--cyan-dim);
  padding-left: 1.25rem;
  margin: 1.5rem 0;
  color: var(--text-muted);
  font-style: italic;
}

.post-content code {
  font-family: var(--font-mono);
  font-size: 0.85em;
  background: rgba(255, 255, 255, 0.05);
  padding: 0.15em 0.4em;
  border-radius: 4px;
  color: var(--cyan);
}

.post-content pre {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.25rem;
  overflow-x: auto;
  margin: 1.5rem 0;
}

.post-content pre code {
  background: none;
  padding: 0;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.post-content ul, .post-content ol {
  margin: 1rem 0 1.5rem 1.5rem;
}

.post-content li {
  margin-bottom: 0.5rem;
}

.post-content a {
  border-bottom: 1px solid var(--cyan-dim);
}

.post-content a:hover {
  border-color: var(--cyan);
}

.post-content hr {
  border: none;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--cyan-dim), transparent);
  margin: 2.5rem 0;
}

/* === Post Navigation === */
.post-nav {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  gap: 2rem;
}

.post-nav a {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

.post-nav a:hover {
  color: var(--cyan);
}

/* === Footer === */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 1.5rem;
  text-align: center;
}

.site-footer p {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  color: var(--text-muted);
}

.site-footer a {
  color: var(--cyan);
}

/* === Pagination === */
.pagination {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.pagination a,
.pagination .current {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 0.4rem 0.8rem;
  border-radius: 4px;
}

.pagination a {
  color: var(--text-muted);
  border: 1px solid var(--border);
  transition: all 0.2s;
}

.pagination a:hover {
  border-color: var(--cyan-dim);
  color: var(--cyan);
}

.pagination .current {
  background: var(--cyan-glow);
  border: 1px solid var(--cyan-dim);
  color: var(--cyan);
}

/* === Responsive === */
@media (max-width: 640px) {
  .site-content {
    padding: 2rem 1rem;
  }

  .single-header .post-title {
    font-size: 1.5rem;
  }

  .post-title {
    font-size: 1.25rem;
  }
}
