/* Blog-specific styles. Loaded after styles.css. */

.post-body {
  max-width: 760px;
  margin: 0 auto;
  font-size: 1.15rem;
  line-height: 1.7;
  color: var(--ink-dim);
}

.post-body h1, .post-body h2, .post-body h3 {
  color: var(--c-peach);
  text-shadow: 2px 2px 0 var(--bg-deep);
  margin-top: 2rem;
}
.post-body h1 { font-size: clamp(1.2rem, 4vw, 2rem); }
.post-body h2 { font-size: clamp(0.9rem, 2.4vw, 1.3rem); }
.post-body h3 { font-size: clamp(0.8rem, 1.8vw, 1.1rem); }

.post-body p { margin: 0.9rem 0; }

.post-body blockquote {
  border-left: 4px solid var(--c-pink);
  padding: 0.4rem 1rem;
  background: var(--bg-2);
  margin: 1.25rem 0;
  color: var(--ink);
  font-style: italic;
}
.post-body blockquote p { margin: 0.4rem 0; }

.post-body ul {
  list-style: none;
  padding-left: 1rem;
}
.post-body li::before {
  content: "▸";
  color: var(--c-pink);
  margin-right: 0.6rem;
}

.post-body code {
  background: var(--bg-deep);
  border: 1px solid var(--bg-2);
  padding: 1px 6px;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--c-mint);
}

.post-body pre {
  background: var(--bg-deep);
  border: 3px solid var(--c-purple);
  box-shadow: var(--shadow-pixel);
  padding: 1rem;
  margin: 1rem 0;
  overflow-x: auto;
  color: var(--c-mint);
}
.post-body pre code {
  background: transparent;
  border: none;
  padding: 0;
  color: inherit;
}

.post-body a {
  color: var(--c-blue);
  border-bottom: 2px dotted currentColor;
}
.post-body a:hover { color: var(--c-pink); }

#post-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}
#post-list .menu-tile {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.back-link {
  display: inline-block;
  margin-bottom: 1.5rem;
  font-family: var(--font-display);
  font-size: 0.55rem;
  color: var(--ink-mute);
}
.back-link:hover { color: var(--c-pink); }
