/* Eternego Blog — minimal, restrained */

:root {
  --fg: #1a1a1a;
  --fg-muted: #666;
  --bg: #fafafa;
  --accent: #1a1a1a;
  --rule: #ddd;
  --max-width: 720px;
}

* { box-sizing: border-box; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--fg);
  background: var(--bg);
  margin: 0;
  padding: 0;
}

main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem 1.25rem 4rem;
}

a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
a:hover { text-decoration: none; }

.site-header {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem 1.25rem 1rem;
  border-bottom: 1px solid var(--rule);
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 1.5rem;
}

.site-title {
  font-weight: 600;
  font-size: 1.25rem;
  text-decoration: none;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.95rem;
}

.site-nav a { text-decoration: none; color: var(--fg-muted); }
.site-nav a:hover { color: var(--fg); }

.site-footer {
  max-width: var(--max-width);
  margin: 4rem auto 2rem;
  padding: 1.5rem 1.25rem;
  border-top: 1px solid var(--rule);
  font-size: 0.9rem;
  color: var(--fg-muted);
}

h1 { font-size: 1.85rem; line-height: 1.25; margin: 0 0 0.5rem; }
h2 { font-size: 1.4rem; margin: 2rem 0 0.5rem; }
h3 { font-size: 1.15rem; margin: 1.5rem 0 0.5rem; }

.post-header { margin-bottom: 2rem; }
.post-meta {
  font-size: 0.9rem;
  color: var(--fg-muted);
  display: flex;
  flex-wrap: wrap;
  gap: 0 1rem;
  margin: 0.25rem 0;
}
.post-meta span:not(:last-child)::after { content: " · "; color: var(--rule); padding-left: 1rem; }

.post-tags { margin-top: 0.5rem; }
.post-tags .tag {
  display: inline-block;
  font-size: 0.8rem;
  padding: 0.15rem 0.6rem;
  margin-right: 0.3rem;
  border: 1px solid var(--rule);
  border-radius: 99px;
  text-decoration: none;
  color: var(--fg-muted);
}

.post-content p { margin: 1rem 0; }
.post-content code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.9em;
  background: #eee;
  padding: 0.1em 0.35em;
  border-radius: 3px;
}
.post-content pre {
  background: #f0f0f0;
  padding: 1rem;
  border-radius: 4px;
  overflow-x: auto;
  font-size: 0.9em;
}
.post-content pre code { background: none; padding: 0; }
.post-content blockquote {
  margin: 1rem 0;
  padding-left: 1rem;
  border-left: 3px solid var(--rule);
  color: var(--fg-muted);
}

.post-footer {
  margin-top: 3rem;
  padding-top: 1rem;
  border-top: 1px solid var(--rule);
  font-size: 0.85rem;
  color: var(--fg-muted);
}
.git-info code { font-size: 0.85em; }

.post-list { list-style: none; padding: 0; }
.post-list-item { padding: 1.25rem 0; border-bottom: 1px solid var(--rule); }
.post-list-item h2,
.post-list-item h3 { margin: 0 0 0.4rem; }
.post-list-item a { text-decoration: none; }
.post-list-item a:hover h2,
.post-list-item a:hover h3 { text-decoration: underline; }

.section-description { color: var(--fg-muted); margin: 0.5rem 0 1.5rem; }
