/* ============================================
   sobolev-org theme — minimal, monospace DNA
   ============================================ */

:root {
  --color-bg: #ffffff;
  --color-text: #1a1a1a;
  --color-accent: #666666;
  --color-muted: #888888;
  --color-code-bg: #f5f5f5;
  --color-border: #e0e0e0;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'Fira Code', 'SF Mono', 'Monaco', 'Courier New', monospace;
  --max-width: 700px;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-text);
  background-color: var(--color-bg);
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3rem 1.5rem 4rem;
}

/* ============================================
   HERO
   ============================================ */

.hero {
  position: relative;
  text-align: center;
  margin: 3.5rem 0 2.5rem;
}

.hero::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background-color: var(--color-border);
  z-index: 1;
}

.hero-image {
  position: relative;
  z-index: 2;
  max-width: 160px;
  width: 100%;
  height: auto;
  image-rendering: pixelated;
  border-radius: 4px;
  background-color: var(--color-bg);
  padding: 0 1.5rem;
}

@media (max-width: 480px) {
  .hero-image {
    max-width: 130px;
    padding: 0 1rem;
  }
}

/* ============================================
   TERMINAL / NOW BLOCK
   ============================================ */

.now {
  margin-bottom: 3.5rem;
}

.terminal {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  background-color: var(--color-code-bg);
  border: 1px solid var(--color-border);
  border-radius: 4px;
  padding: 1rem 1.25rem;
}

.terminal-header {
  margin-bottom: 0.75rem;
  color: var(--color-accent);
}

.terminal-prompt {
  color: var(--color-muted);
  margin-right: 0.5rem;
}

.terminal-command {
  color: var(--color-text);
  font-weight: 500;
}

.terminal-line {
  padding-left: 1.25rem;
  position: relative;
  line-height: 1.6;
  color: var(--color-text);
}

.terminal-line::before {
  content: '>';
  position: absolute;
  left: 0;
  color: var(--color-muted);
}

/* ============================================
   POST LIST
   ============================================ */

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

.post-item {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
}

.post-date {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  color: var(--color-accent);
  flex-shrink: 0;
  min-width: 6.5rem;
}

.post-link {
  color: var(--color-text);
  text-decoration: underline;
  text-decoration-color: #cccccc;
  text-underline-offset: 3px;
  transition: text-decoration-color 0.15s ease;
}

.post-link:hover {
  text-decoration-color: var(--color-text);
}

/* ============================================
   SINGLE POST
   ============================================ */

.post {
  margin-top: 1rem;
}

.post-header {
  margin-bottom: 2.5rem;
}

.post-title {
  font-size: 1.75rem;
  font-weight: 600;
  line-height: 1.3;
  margin: 0 0 0.5rem;
}

.post-header .post-date {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  color: var(--color-accent);
}

.post-content {
  margin-bottom: 3rem;
}

.post-content h2,
.post-content h3,
.post-content h4 {
  font-weight: 600;
  line-height: 1.3;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

.post-content h2 {
  font-size: 1.35rem;
}

.post-content h3 {
  font-size: 1.15rem;
}

.post-content p {
  margin: 0 0 1.25rem;
}

.post-content a {
  color: var(--color-text);
  text-decoration: underline;
  text-decoration-color: #cccccc;
  text-underline-offset: 3px;
}

.post-content a:hover {
  text-decoration-color: var(--color-text);
}

.post-content ul,
.post-content ol {
  margin: 0 0 1.25rem;
  padding-left: 1.5rem;
}

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

.post-content img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
}

.post-content blockquote {
  margin: 1.5rem 0;
  padding-left: 1.25rem;
  border-left: 3px solid var(--color-border);
  color: var(--color-accent);
  font-style: italic;
}

/* ============================================
   CODE & SYNTAX HIGHLIGHTING
   ============================================ */

.post-content code {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  background-color: var(--color-code-bg);
  padding: 0.15rem 0.35rem;
  border-radius: 4px;
}

.post-content pre {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  background-color: var(--color-code-bg);
  border: 1px solid var(--color-border);
  border-radius: 4px;
  padding: 1rem 1.25rem;
  overflow-x: auto;
  line-height: 1.5;
  margin: 0 0 1.25rem;
}

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

/* Chroma overrides (Hugo native highlighting) */
.highlight {
  background-color: var(--color-code-bg);
  border: 1px solid var(--color-border);
  border-radius: 4px;
  margin: 0 0 1.25rem;
  overflow-x: auto;
}

.highlight pre {
  border: none;
  margin: 0;
  padding: 1rem 1.25rem;
}

/* ============================================
   INTRO
   ============================================ */

.intro {
  margin-bottom: 2.5rem;
}

.intro p {
  color: var(--color-accent);
  line-height: 1.7;
}

.intro a {
  color: var(--color-text);
  text-decoration: underline;
  text-decoration-color: #cccccc;
  text-underline-offset: 3px;
}

.intro a:hover {
  text-decoration-color: var(--color-text);
}

/* ============================================
   FOOTER / BACK LINK
   ============================================ */

.post-footer {
  border-top: 1px solid var(--color-border);
  padding-top: 1.5rem;
}

.back-link {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  color: var(--color-accent);
  text-decoration: none;
  transition: color 0.15s ease;
}

.back-link:hover {
  color: var(--color-text);
}

.site-footer {
  max-width: var(--max-width);
  margin: 4rem auto 0;
  padding: 2rem 1.5rem 4rem;
  border-top: 1px solid var(--color-border);
  text-align: center;
}

.site-footer p {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  color: var(--color-accent);
}

.site-footer a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color 0.15s ease;
}

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