/* Primmortal.org – Development blog styles
   Loaded only on /blog/ pages, after styles.css. Reuses the variables,
   header, footer and typography defined in styles.css; the homepage does
   not load this file, so it cannot change the landing page's look. */

.blog-main {
  max-width: 760px;
  margin: 0 auto;
  padding: 3.5rem 1.5rem 4rem;
}

.nav a[aria-current="page"] {
  color: var(--purple);
}

/* ---------- Blog index ---------- */

.blog-index-header,
.post-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.blog-index-header h1,
.post-header h1 {
  font-family: var(--font-serif);
  font-size: clamp(1.9rem, 4.5vw, 2.6rem);
  font-weight: 700;
  color: var(--purple);
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 0.85rem;
}

.blog-intro {
  color: var(--text-muted);
  font-size: 1.05rem;
}

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

.post-list-item {
  padding: 1.6rem 0;
  border-top: 1px solid var(--border);
}

.post-list-item:last-child {
  border-bottom: 1px solid var(--border);
}

.post-list-date {
  font-size: 0.85rem;
  color: var(--text-muted);
  letter-spacing: 0.02em;
  margin-bottom: 0.3rem;
}

.post-list-item h2 {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  line-height: 1.3;
  margin-bottom: 0.4rem;
}

.post-list-item h2 a:hover {
  color: var(--purple-light);
}

.post-list-summary {
  color: var(--text-muted);
}

.post-list-draft {
  display: inline-block;
  margin-left: 0.4rem;
  padding: 0 0.45rem;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--purple-dark);
  background: var(--gold-soft);
  border: 1px solid var(--gold);
  border-radius: 4px;
}

.blog-empty {
  text-align: center;
  color: var(--text-muted);
  padding: 2.5rem 1.5rem;
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  background: var(--off-white);
}

.post-feeds {
  margin-top: 2rem;
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ---------- Single post ---------- */

.post-back {
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem 0.5rem;
  font-size: 0.92rem;
  color: var(--text-muted);
}

.post-tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem;
  margin-top: 0.9rem;
}

.post-tags li {
  font-size: 0.8rem;
  padding: 0.1rem 0.6rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--purple);
  background: var(--purple-pale);
}

.post-body {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--text);
}

.post-body > * + * {
  margin-top: 1.1rem;
}

.post-body h2,
.post-body h3 {
  font-family: var(--font-serif);
  color: var(--purple);
  line-height: 1.3;
  margin-top: 2rem;
}

.post-body h2 { font-size: 1.5rem; }
.post-body h3 { font-size: 1.2rem; }

.post-body a {
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-underline-offset: 2px;
}

.post-body ul,
.post-body ol {
  padding-left: 1.4rem;
}

.post-body li + li {
  margin-top: 0.35rem;
}

.post-body blockquote {
  border-left: 3px solid var(--gold);
  padding: 0.2rem 0 0.2rem 1.1rem;
  color: var(--text-muted);
  font-style: italic;
}

.post-body img {
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.post-body code {
  font-size: 0.9em;
  background: var(--off-white);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.05rem 0.3rem;
}

.post-body pre {
  overflow-x: auto;
  background: var(--off-white);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1rem;
}

.post-body pre code {
  background: none;
  border: 0;
  padding: 0;
}

.post-footer {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  text-align: center;
}

.post-history {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-style: italic;
}

.post-footer .post-feeds {
  margin-top: 0.5rem;
}

.post-draft-banner {
  margin-bottom: 1.5rem;
  padding: 0.7rem 1rem;
  font-size: 0.9rem;
  text-align: center;
  color: var(--purple-dark);
  background: var(--gold-soft);
  border: 1px solid var(--gold);
  border-radius: 6px;
}

@media (max-width: 560px) {
  .blog-main {
    padding-top: 2.25rem;
  }

  .post-list-item h2 {
    font-size: 1.25rem;
  }
}

/* ---------- Figures ---------- */

.post-body figure {
  margin: 2rem 0;
}

.post-body figure img {
  display: block;
  width: 100%;
  height: auto;
}

.post-body figcaption {
  margin-top: 0.5rem;
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--text-muted);
  text-align: center;
  font-style: italic;
}

/* Wide screenshots: on large screens, let the figure extend past the
   text column so interface text stays legible. The image also links to
   the full-size file. */
@media (min-width: 1100px) {
  .post-body figure.post-figure--wide {
    width: 1000px;
    margin-left: calc(50% - 500px);
  }
}

/* Images whose edges already fade into the white page: no frame */
.post-body figure.post-figure--fade img {
  border: 0;
  border-radius: 0;
}

/* ---------- Series: opening rhyme and fiction note ---------- */

/* The series' opening rhyme: centered italic lines between gold rules */
.post-body .memory-hole-rhyme {
  margin: 0.5rem auto 2rem;
  padding: 1.6rem 1.5rem 1.5rem;
  max-width: 34rem;
  text-align: center;
  background: var(--purple-pale);
  border-top: 2px solid var(--gold);
  border-bottom: 2px solid var(--gold);
  border-radius: 4px;
}

.post-body .memory-hole-rhyme p {
  margin: 0;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.12rem;
  line-height: 1.85;
  color: var(--purple);
}

/* The recurring "this is fiction" note that follows the rhyme */
.post-body .memory-hole-disclaimer {
  padding: 0.9rem 1.1rem;
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--text-muted);
  background: var(--off-white);
  border-left: 3px solid var(--purple);
  border-radius: 0 6px 6px 0;
}

.post-body .memory-hole-disclaimer strong {
  color: var(--purple);
}

@media (max-width: 560px) {
  .post-body .memory-hole-rhyme {
    padding: 1.3rem 1rem 1.2rem;
  }

  .post-body .memory-hole-rhyme p {
    font-size: 1.02rem;
  }
}
