:root {
  color-scheme: light;
  --bg: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  --fg: #1e293b;
  --accent: #6366f1;
  --muted: #64748b;
  --card: rgba(30, 41, 59, 0.08);
  --border: rgba(30, 41, 59, 0.12);
  --card-hover: rgba(30, 41, 59, 0.16);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', system-ui, sans-serif;
  color: var(--fg);
  min-height: 100vh;
  line-height: 1.6;
  position: relative;
}


body::after {
  content: '';
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.1) 0%, transparent 70%);
  z-index: -1;
  animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {

  0%,
  100% {
    opacity: 0.3;
    transform: translate(-50%, -50%) scale(1);
  }

  50% {
    opacity: 0.6;
    transform: translate(-50%, -50%) scale(1.1);
  }
}

/* Header styles are now in shared.css */

.site-main .container {
  padding: 3rem 1.5rem 4rem;
  max-width: 1000px;
}

.page-title {
  font-size: 2.25rem;
  margin-bottom: 0.5rem;
  background: linear-gradient(135deg, #1e293b 0%, #64748b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 600;
  line-height: 1.2;
  padding-bottom: 0.1rem;
}

.post-header .page-title {
  text-align: center;
  font-weight: 400;
  background: none;
  -webkit-background-clip: unset;
  -webkit-text-fill-color: unset;
  background-clip: unset;
  color: #1e293b;
}

.post-header .post-meta {
  text-align: center;
}

.page-lead {
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.post-header .page-lead {
  text-align: center;
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--muted);
}

.post-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0;
}

.post-card {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border);
  transition: all 0.2s ease;
}

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

.post-card:hover {
  background: transparent;
}

.post-card:hover .post-card-title {
  color: #1e293b;
}

.post-card a {
  color: inherit;
  text-decoration: none;
  display: block;
  padding: 1.25rem 1.5rem;
  cursor: pointer;
}

.post-card a:hover {
  cursor: pointer;
}

.post-card-title {
  font-size: 1.25rem;
  font-weight: 500;
  margin: 0 0 0.25rem;
  line-height: 1.3;
  color: #64748b;
  transition: color 0.2s ease;
}

.post-meta {
  color: #1e293b;
  font-size: 1rem;
  margin: 0;
  font-weight: 400;
}

.post-excerpt {
  margin: 0;
}

.post-content h1,
.post-content h2,
.post-content h3 {
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

.post-content pre {
  padding: 1rem;
  background: #f1f5f9;
  color: #1e293b;
  border-radius: 0.75rem;
  overflow-x: auto;
  border: 1px solid var(--border);
}

.post-content code {
  font-family: 'JetBrains Mono', 'SFMono-Regular', Menlo, monospace;
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 2rem 0;
  background: var(--card);
  color: var(--muted);
  font-size: 0.9rem;
}

@media (max-width: 640px) {
  .page-title {
    font-size: 1.8rem;
  }
}

pre,
code {
  white-space: pre-wrap;
  /* Wrap long lines */
  word-wrap: break-word;
  /* Break words if necessary */
  overflow-x: auto;
  /* Keep horizontal scroll if needed */
}

.log-section summary {
  cursor: pointer;
  padding: .5rem;
}

.log-output {
  background: #0f1724;
  color: #e6eef8;
  padding: .75rem;
  border-radius: 6px;
  overflow: auto;
  max-height: 360px;
}

.log-interpretation {
  margin: .5rem 0 1rem;
  color: #334155;
  font-size: 0.95rem;
}