/* Small overrides layered on top of Pico CSS (pico.min.css).
   Pico handles all base typography, colors, and dark/light theming —
   this file only tweaks a few things for a comfortable reading layout. */

/* Optimal reading measure is ~60-75 characters per line; 65ch lands right
   in the middle. Using `ch` (not a fixed px value) means the line length
   stays consistent in characters even if someone bumps their browser's
   base font size. */
.container {
  max-width: 65ch;
}

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.site-header nav ul {
  display: flex;
  gap: 1.25rem;
  align-items: center;
}

.site-title {
  font-weight: 700;
  text-decoration: none;
}

/* Theme toggle button: keep it icon-sized, not a full Pico button */
#theme-toggle {
  width: auto;
  padding: 0.4rem 0.6rem;
  margin: 0;
  line-height: 1;
  font-size: 1.1rem;
  border: none;
  background: transparent;
  cursor: pointer;
}

#theme-toggle:hover {
  opacity: 0.7;
}

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

.post-list-item {
  padding-block: 1.5rem;
  border-bottom: 1px solid var(--pico-muted-border-color);
}

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

.post-list-item a {
  text-decoration: none;
}

.post-meta {
  color: var(--pico-muted-color);
  font-size: 0.9rem;
}

.featured-image {
  width: 100%;
  border-radius: var(--pico-border-radius);
  margin-block: 1rem 1.5rem;
}

.post-content img,
.page-content img {
  max-width: 100%;
  border-radius: var(--pico-border-radius);
}

.tag {
  display: inline-block;
  font-size: 0.8rem;
  color: var(--pico-muted-color);
  margin-right: 0.4rem;
}
