:root {
  --bg: #111111;
  --bg-alt: #181818;
  --border: #333333;
  --text: #f5f5f5;
  --muted: #aaaaaa;
  --accent: #00ff7f;  /* cambia a #ffcc66 si prefieres amber */
  --font-mono: "JetBrains Mono", "Fira Code", "SF Mono", Menlo, Monaco, Consolas, "Courier New", monospace;
}

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

body.theme-terminal {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(circle at top left, #202020 0, #050505 55%, #000000 100%);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 16px;
}

.page {
  max-width: 800px;
  margin: 0 auto;
  padding: 24px 16px 40px;
}

/* Scrollbar discreta (opcional) */
body.theme-terminal::-webkit-scrollbar {
  width: 8px;
}
body.theme-terminal::-webkit-scrollbar-track {
  background: #050505;
}
body.theme-terminal::-webkit-scrollbar-thumb {
  background: #333333;
}

/* Header */

.site-header {
  border-bottom: 1px solid var(--border);
  padding-bottom: 12px;
  margin-bottom: 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  justify-content: space-between;
}

.site-title {
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: lowercase;
}

.site-nav a {
  text-decoration: none;
  color: var(--muted);
  margin-left: 12px;
  font-size: 0.9rem;
}

.site-nav a:first-child {
  margin-left: 0;
}

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

/* Main */

.site-main {
  display: block;
}

/* Lista de posts */

.post-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.post-item {
  padding: 12px 14px;
  background: rgba(24, 24, 24, 0.9);
  border: 1px solid var(--border);
  border-radius: 4px;
  box-shadow: 0 0 0 1px #000 inset;
}

.post-item:hover {
  border-color: var(--accent);
}

.post-title {
  margin: 0 0 4px;
  font-size: 1.1rem;
}

.post-title a {
  color: var(--text);
  text-decoration: none;
}

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

.post-meta {
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
}

.post-meta a {
  color: var(--muted);
  text-decoration: none;
}

.post-meta a:hover {
  color: var(--accent);
}

.meta-item::before {
  content: ">";
  margin-right: 4px;
  color: var(--accent);
}

.post-excerpt {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.5;
}

/* Página de post individual */

.post-page {
  padding: 16px 18px;
  background: rgba(24, 24, 24, 0.9);
  border: 1px solid var(--border);
  border-radius: 4px;
  box-shadow: 0 0 0 1px #000 inset;
}

.post-page .post-title {
  font-size: 1.3rem;
  margin-bottom: 8px;
}

.post-page .post-meta {
  margin-bottom: 14px;
}

.post-content {
  font-size: 0.98rem;
  line-height: 1.7;
}

.post-content p {
  margin: 0 0 12px;
}

.post-content a {
  color: var(--accent);
}

.post-content code {
  background: #000000;
  border-radius: 2px;
  padding: 2px 4px;
  font-size: 0.9em;
}

.post-content pre {
  background: #000000;
  border-radius: 4px;
  padding: 10px 12px;
  overflow-x: auto;
  font-size: 0.9em;
}

.post-content img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 16px 0;
}

/* Footer */

.site-footer {
  margin-top: 32px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  font-size: 0.75rem;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  justify-content: space-between;
}

/* Responsive */

@media (max-width: 600px) {
  .page {
    padding: 16px 12px 32px;
  }

  .site-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-nav a {
    margin-left: 0;
    margin-right: 12px;
  }
}
