/* Blog styles - Daring Fireball inspired */
.blog-post {
  margin-bottom: 48px;
}

.blog-post:last-of-type {
  margin-bottom: 24px;
}

.post-title {
  font-size: 16px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0 0 4px;
  line-height: 1.4;
}

.post-title a {
  color: var(--juno-text);
}

.post-title a::before,
.post-title a::after {
  content: none;
}

.post-title a:hover {
  color: var(--juno-accent);
}

.post-star {
  color: var(--juno-accent);
  margin-left: 8px;
}

.post-date {
  font-size: 13px;
  color: var(--juno-text-secondary);
  margin: 0 0 12px;
}

.post-content {
  font-size: 15px;
}

.post-content.fade {
  position: relative;
  overflow: hidden;
  max-height: 180px;
  -webkit-mask-image: linear-gradient(to bottom, #000 60%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 60%, transparent 100%);
}

.post-content p {
  margin: 0 0 12px;
}

.post-content blockquote {
  margin: 12px 0;
  padding-left: 16px;
  border-left: 3px solid var(--juno-border);
}

.post-content blockquote p {
  margin: 0 0 8px;
}

.post-content blockquote p:last-child {
  margin-bottom: 0;
}

/* Images */
figure {
  margin: 24px 0;
}

figure img,
img {
  border-radius: 6px;
}

figcaption {
  font-size: 13px;
  color: var(--juno-text-secondary);
  margin-top: 8px;
}

/* Tables */
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  margin: 12px 0 16px;
}

th {
  font-weight: 600;
  text-align: left;
  padding: 8px 12px 8px 0;
  border-bottom: 2px solid var(--juno-border);
}

td {
  padding: 8px 12px 8px 0;
  border-bottom: 1px solid var(--juno-border);
  vertical-align: top;
}

/* Pre/code blocks */
pre {
  margin: 12px 0 16px;
  padding: 16px;
  background: rgba(127, 127, 127, 0.08);
  border-radius: 4px;
  overflow-x: auto;
}

pre code {
  background: none;
  padding: 0;
  font-size: 14px;
  line-height: 1.5;
}

pre code::before,
pre code::after {
  content: none;
}

/* Sidenotes */
.sidenote {
  position: absolute;
  font-size: 13px;
  line-height: 1.5;
  color: var(--juno-text-secondary);
}

.sidenote-right {
  text-align: left;
}

.sidenote-left {
  text-align: right;
}

/* Hide sidenotes on narrow screens */
@media (max-width: 1100px) {
  .sidenote {
    display: none;
  }
}

/* Hide original sidenote elements (fallback if JS hasn't run) */
sidenote {
  display: none;
}

/* Sidenote marker in main text */
.sidenote-marker {
  color: var(--juno-muted);
  font-size: 0.7em;
  display: inline-block;
  vertical-align: top;
  width: 0;
  overflow: visible;
  white-space: nowrap;
  line-height: 1;
  height: 0;
  margin-left: -0.1em;
}

body.font-sans .sidenote-marker {
  font-size: 0.6em;
  margin-top: 0.6em;
}

/* Sidenote flash animation */
.sidenote.flash {
  animation: sidenote-flash 1s ease-out;
}

@keyframes sidenote-flash {
  0% {
    opacity: 1;
  }
  25% {
    opacity: 0.4;
  }
  50% {
    opacity: 1;
  }
  75% {
    opacity: 0.4;
  }
  100% {
    opacity: 1;
  }
}