/* Barebones - a minimal Hugo theme
   No JS. No frameworks. Works everywhere. */

body {
  font-family: "Courier New", Courier, monospace;
  max-width: 660px;
  margin: 40px auto;
  padding: 0 16px;
  color: #222;
  background: #fff;
  line-height: 1.7;
  font-size: 16px;
}

/* Links */
a { color: #005a9c; }
a:hover { color: #c00; }

/* Headings */
h1 { font-size: 1.5em; }
h2 { font-size: 1.3em; }
h3 { font-size: 1.1em; }
h1, h2, h3 { line-height: 1.3; margin-top: 1.5em; }

/* Site header */
#site-header {
  border-bottom: 1px solid #ccc;
  padding-bottom: 12px;
  margin-bottom: 24px;
}

#site-header h1 {
  margin: 0 0 4px 0;
  font-size: 1.4em;
}

#site-header .tagline {
  color: #555;
  font-size: 0.9em;
  margin: 0 0 8px 0;
}

/* Navigation */
.nav-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links li {
  display: inline;
  margin-right: 12px;
}

/* Post list */
.post-list {
  list-style: none;
  padding: 0;
}

.post-list li {
  margin-bottom: 8px;
}

.post-date {
  color: #555;
  font-size: 0.85em;
}

/* Tag list */
.tag-list {
  list-style: none;
  padding: 0;
}

.tag-list li {
  display: inline;
  margin-right: 10px;
  line-height: 2;
}

/* Single post meta */
.post-meta {
  color: #555;
  font-size: 0.85em;
  margin-bottom: 24px;
}

/* Code */
pre {
  background: #f5f5f5;
  border: 1px solid #ddd;
  padding: 12px;
  overflow: auto;
  line-height: 1.4;
  font-size: 0.9em;
}

code {
  background: #f5f5f5;
  padding: 2px 4px;
  font-size: 0.9em;
}

pre code {
  background: none;
  padding: 0;
}

/* Blockquote */
blockquote {
  border-left: 3px solid #ccc;
  margin: 1em 0;
  padding: 0.5em 1em;
  color: #444;
}

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

/* Mastodon CTA */
.mastodon-cta {
  border: 1px dashed #ccc;
  padding: 12px;
  margin: 24px 0;
  text-align: center;
}

/* Post navigation */
.post-nav {
  margin-top: 32px;
  padding-top: 12px;
  border-top: 1px solid #ccc;
  font-size: 0.9em;
}

/* Footer */
#site-footer {
  border-top: 1px solid #ccc;
  padding-top: 12px;
  margin-top: 40px;
  font-size: 0.85em;
  color: #555;
  text-align: center;
}

.footer-badges {
  margin-top: 8px;
  margin-bottom: 8px;
}

.footer-badges img {
  vertical-align: middle;
  margin: 2px;
}

/* Horizontal rule */
hr {
  border: none;
  border-top: 1px solid #ccc;
  margin: 2em 0;
}

/* Dark mode (progressive enhancement - old browsers ignore this) */
@media (prefers-color-scheme: dark) {
  body { background: #1a1a1a; color: #d4d4d4; }
  a { color: #6db3f2; }
  a:hover { color: #ff6b6b; }
  #site-header { border-color: #444; }
  .tagline, .post-date, .post-meta, #site-footer { color: #999; }
  pre { background: #252525; border-color: #444; }
  code { background: #252525; }
  blockquote { border-color: #444; color: #aaa; }
  .mastodon-cta { border-color: #444; }
  .post-nav { border-color: #444; }
  #site-footer { border-color: #444; }
  hr { border-color: #444; }
}
