/* blog.css — Styles for blog posts (both inline on main site and standalone pages) */

/* Inline post container */
.blog-post-inline {
  animation: fadeUp 0.4s ease both;
}

/* Back button */
.post-back {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.8rem;
  padding: 0;
  cursor: pointer;
  margin-bottom: 32px;
  display: inline-block;
  position: relative;
  transition: color 0.2s ease;
}

.post-back::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 1px;
  bottom: -2px;
  left: 0;
  background-color: var(--text-secondary);
  transform: scaleX(0);
  transform-origin: bottom right;
  transition: transform 0.3s cubic-bezier(0.65, 0, 0.35, 1);
}

.post-back:hover {
  color: var(--text-primary);
}

.post-back:hover::after {
  transform: scaleX(1);
  transform-origin: bottom left;
}

/* Post meta (date above title) */
.post-meta {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-top: 40px;
  margin-bottom: 12px;
}

/* Post title — same treatment as h2 section headings */
.post-title {
  font-family: "Instrument Serif", serif;
  font-style: italic;
  font-size: 2.6rem;
  font-weight: 400;
  color: var(--text-primary);
  line-height: 1.2;
  margin-bottom: 16px;
}

/* Deck / description */
.post-description {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 32px;
}

.post-divider {
  border: none;
  height: 1px;
  background-color: var(--border-color);
  margin-bottom: 40px;
}

/* Body prose */
.post-body {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.8;
}

.post-body p {
  margin-bottom: 20px;
}

.post-body h2 {
  font-family: "Instrument Serif", serif;
  font-style: italic;
  font-size: 1.6rem;
  font-weight: 400;
  color: var(--text-primary);
  margin-top: 48px;
  margin-bottom: 16px;
}

.post-body h3 {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 36px;
  margin-bottom: 12px;
}

.post-body ul,
.post-body ol {
  padding-left: 20px;
  margin-bottom: 20px;
  list-style: disc;
}

.post-body li {
  margin-bottom: 6px;
  line-height: 1.7;
}

.post-body a {
  color: var(--text-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--border-color);
  transition: text-decoration-color 0.2s ease;
}

.post-body a:hover {
  text-decoration-color: var(--text-primary);
}

.post-body strong {
  color: var(--text-primary);
  font-weight: 500;
}

.post-body em {
  font-style: italic;
}

.post-body code {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.85em;
  background: var(--palette-bg);
  border: 1px solid var(--border-color);
  border-radius: 3px;
  padding: 2px 6px;
  color: var(--text-primary);
}

.post-body pre {
  background: var(--palette-bg);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 20px;
  overflow-x: auto;
  margin-bottom: 24px;
}

.post-body pre code {
  background: none;
  border: none;
  padding: 0;
  font-size: 0.85rem;
  line-height: 1.6;
}

.post-body blockquote {
  border-left: 2px solid var(--border-color);
  margin-left: 0;
  padding-left: 20px;
  color: var(--text-secondary);
  font-style: italic;
  margin-bottom: 20px;
}

/* Back link */
.post-footer {
  margin-top: 64px;
  padding-top: 32px;
  border-top: 1px solid var(--border-color);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.85rem;
}

@media (max-width: 600px) {
  .post-meta {
    margin-top: 16px;
  }

  .post-title {
    font-size: 1.8rem;
  }

  .post-body h2 {
    font-size: 1.3rem;
    margin-top: 32px;
  }

  .post-body pre {
    padding: 14px;
    font-size: 0.78rem;
  }

  .post-body code {
    font-size: 0.8em;
    word-break: break-all;
  }
}

/* Win95 Resets for blog bleeding */
html.win95 .post-title {
  font-size: 28px;
  margin-bottom: 8px;
}
html.win95 .post-description {
  font-size: 18px;
  margin-bottom: 16px;
}
html.win95 .post-body h2 {
  font-size: 22px;
  margin-top: 24px;
  margin-bottom: 8px;
}
html.win95 .post-body h3 {
  font-size: 18px;
  margin-top: 16px;
  margin-bottom: 8px;
}
html.win95 .post-body {
  font-size: 16px;
}
html.win95 .post-meta {
  font-size: 14px;
  margin-top: 16px;
}
