/* Polish on top of water.css — stylish, still minimal.
   Two header modes (rich home / minimal reading) + content-left, sidebar-right. */

/* ---- shell ---- */
body { max-width: 58rem; line-height: 1.65; }

/* ---- masthead: rich (home) ---- */
.masthead--index {
  display: flex; justify-content: space-between; align-items: baseline;
  flex-wrap: wrap; gap: 1rem;
  margin-bottom: 2.8rem;   /* separated by whitespace, no rule */
}
.masthead__title { font-size: 1.65rem; font-weight: 800; color: var(--text-main); text-decoration: none; line-height: 1.1; }
.masthead__bio { color: var(--text-muted); margin: 0.35rem 0 0; font-size: 0.95rem; }
.masthead__nav { display: flex; align-items: center; gap: 0.9rem; white-space: nowrap; }
.masthead__nav a { color: var(--text-muted); text-decoration: none; }
.masthead__nav a:hover { color: var(--links); }
.search { margin: 0; }
.search input {
  margin: 0; width: 10.5rem; max-width: 42vw;
  font-size: 0.85rem; padding: 0.25rem 0.55rem;
}

/* ---- masthead: minimal (posts, archives) ---- */
.masthead--reading {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 2.2rem;   /* separated by whitespace, no rule */
  font-size: 0.9rem;
}
.masthead__home { font-weight: 600; color: var(--text-main); text-decoration: none; }
.masthead__home:hover { color: var(--links); }

/* the "Follow" call-to-action — a subtle pill */
.cta {
  font-weight: 600; text-decoration: none; color: var(--links);  /* accent */
  border: 1px solid var(--border); border-radius: 6px; padding: 0.15rem 0.65rem;
}
.cta:hover { border-color: var(--links); }

/* ---- layout: content left, sidebar right ---- */
.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 13rem;
  gap: 2.75rem;
  align-items: start;
}
@media (max-width: 640px) {
  .layout { display: block; }
  .sidebar { margin-top: 2.75rem; padding-top: 1.5rem; border-top: 1px solid var(--border); }
}

/* ---- sidebar (scrolls with the page, not sticky) ---- */
.sidebar { font-size: 0.88rem; }
.side-block { margin-bottom: 1.7rem; }
.side-block h2 {
  font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.07em;
  color: var(--text-muted); margin: 0 0 0.45rem;
}
.side-block ul { list-style: none; padding: 0; margin: 0; }
.side-block li { padding: 0.18rem 0; line-height: 1.35; }

/* ---- single post page ---- */
h1, h2, h3 { line-height: 1.25; }
.post h1 { margin-bottom: 0.15rem; }
.post__meta { color: var(--text-muted); font-size: 0.9rem; margin: 0 0 1.6rem; }
.post__meta a { color: var(--text-muted); text-decoration: none; }
.post__meta a:hover { color: var(--links); text-decoration: underline; }
.post--quote blockquote { font-size: 1.15rem; }

/* ---- home feed: day-grouped ---- */
.day__label {
  display: inline-block;   /* underline hugs the date, not the whole column */
  font-size: 0.9rem; font-weight: 600; color: var(--text-muted);
  margin: 2.6rem 0 0.2rem; padding-bottom: 0.3rem;
  border-bottom: 1px solid var(--border);
}
.day:first-child .day__label { margin-top: 0; }
.day__label a { color: var(--text-muted); text-decoration: none; }
.day__label a:hover { color: var(--links); }

/* ---- stream (reading feed + compact archive list) ---- */
.stream { list-style: none; padding-left: 0; margin: 0; }
.stream__item { padding: 0.35rem 0; }
.stream__head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.stream__title { margin: 0; font-size: 1rem; font-weight: 600; line-height: 1.3; }
.stream__title a { text-decoration: none; }
.stream__title a:hover { text-decoration: underline; }
.stream__date {
  flex: none; color: var(--text-muted); font-size: 0.85rem;
  white-space: nowrap; text-decoration: none;
}
.stream__date:hover { color: var(--links); }

/* no per-entry rules — whitespace separates entries; only the day label draws a line */
.stream--feed .stream__item { padding: 1.5rem 0 2rem; }
.stream--feed .stream__title { font-size: 1.4rem; line-height: 1.2; }
.stream--feed .stream__title a { color: var(--text-main); }
.stream--feed .stream__title a:hover { color: var(--links); }
.stream__note > :first-child { margin-top: 0.75rem; }
.stream__note > :last-child { margin-bottom: 0; }
.stream__note :is(h1, h2, h3, h4, h5, h6) { font-size: 1.02rem; font-weight: 600; margin: 1.3rem 0 0.3rem; }
.stream__quote { font-size: 1.15rem; margin: 0 0 0.4rem; }
.stream__cite { color: var(--text-muted); font-size: 0.9rem; }

/* per-item permalink at the end of a feed entry */
.stream__foot { margin-top: 0.8rem; font-size: 0.82rem; }
.stream__foot a { color: var(--text-muted); text-decoration: none; }
.stream__foot a:hover { color: var(--links); }

/* home pagination */
.pager {
  display: flex; margin-top: 2.5rem; padding-top: 1.2rem;
  border-top: 1px solid var(--border); font-size: 0.9rem;
}
.pager a { text-decoration: none; }
.pager__earlier { margin-right: auto; }
.pager__later { margin-left: auto; }

/* ---- follow page ---- */
.follow-links { list-style: none; padding: 0; }
.follow-links li { padding: 0.35rem 0; }

/* ---- archive breadcrumbs ---- */
.crumbs { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 1.2rem; }
.crumbs a { color: var(--text-muted); }

/* ---- tags: plain muted links everywhere, no chips/borders/backgrounds ---- */
/* single-post footer — prose "Tagged a · b · c", set off by whitespace + a rule */
.post__tags {
  margin: 2rem 0 0; padding-top: 1rem;
  border-top: 1px solid var(--border);
  color: var(--text-muted); font-size: 0.85rem;
}
.post__tags a { color: var(--text-muted); text-decoration: none; }
.post__tags a:hover { color: var(--links); text-decoration: underline; }

/* feed entry — tags only (no time/permalink), middot-separated, inherits foot color */

/* sidebar Topics */
.side-tags__count { color: var(--text-muted); font-size: 0.78rem; }
.side-tags__all { margin: 0.5rem 0 0; line-height: 1.35; }
.side-tags__all a { color: var(--text-muted); text-decoration: none; }
.side-tags__all a:hover { color: var(--links); }

/* /tags/ index + per-tag pages */
.tag-cloud { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 0.45rem 1.2rem; }
.tag-cloud a { text-decoration: none; }
.tag-count { color: var(--text-muted); font-weight: 400; font-size: 0.82rem; }
.tag-title { display: flex; align-items: baseline; gap: 0.6rem; }

/* ---- footer ---- */
.site-footer {
  margin-top: 3rem; padding-top: 1.25rem; border-top: 1px solid var(--border);
  font-size: 0.9rem; color: var(--text-muted);
}
.site-footer a { color: var(--text-muted); }
.site-footer a:hover { color: var(--links); }
