/* ========================================
   MIRA — blog.css
   Blog list + post chrome. Loaded alongside base.css,
   and blog posts additionally load prose.css for the body.
   The blog intentionally drops page-frame, frame-furniture,
   and ambient-vignette — the posts are the star.
   ======================================== */

.blog-body {
   /* Scoping hook for any future blog-wide body overrides */
}

.blog-main {
   min-height: 100vh;
   padding: 7rem 2rem 4rem;
   position: relative;
   z-index: 4;
}

/* ========================================
   BLOG INDEX HEADER
   ======================================== */

.blog-header {
   max-width: 74ch;
   margin: 0 auto 5rem;
}

.blog-kicker {
   display: inline-block;
   font-family: 'IBM Plex Mono', monospace;
   font-size: 0.72rem;
   text-transform: uppercase;
   letter-spacing: 0.22em;
   color: rgb(var(--accent-rgb) / 0.72);
   padding-bottom: 0.75rem;
   border-bottom: 1px solid rgb(var(--accent-rgb) / 0.3);
}

.blog-title {
   font-family: 'Roboto', sans-serif;
   font-weight: 100;
   font-size: clamp(2.25rem, 5.5vw, 3.25rem);
   line-height: 1.1;
   letter-spacing: -0.025em;
   color: var(--accent);
   margin-top: 1.5rem;
   margin-bottom: 1rem;
}

.blog-subtitle {
   font-size: 1.15rem;
   line-height: 1.65;
   color: rgba(250, 246, 238, 0.75);
   max-width: 52ch;
}

/* ========================================
   POST LIST (index cards)
   ======================================== */

.post-list {
   list-style: none;
   padding: 0;
   max-width: 74ch;
   margin: 0 auto;
}

.post-list li {
   margin: 0;
}

.post-card {
   display: block;
   padding: 2.5rem 0;
   border-bottom: 1px solid rgba(250, 246, 238, 0.1);
   text-decoration: none;
   color: inherit;
   transition: border-bottom-color 0.25s ease, padding-left 0.3s ease;
}

.post-card:hover {
   border-bottom-color: var(--accent);
   padding-left: 0.75rem;
}

.post-card:focus-visible {
   outline: 2px solid var(--accent);
   outline-offset: 4px;
   border-radius: 2px;
}

.post-list li:first-child .post-card {
   padding-top: 0;
}

.post-card-title {
   font-family: 'Roboto', sans-serif;
   font-weight: 200;
   font-size: 1.75rem;
   line-height: 1.2;
   letter-spacing: -0.015em;
   color: #faf6ee;
   margin: 0 0 0.75rem;
   transition: color 0.25s ease;
}

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

.post-card-dek {
   font-size: 1.05rem;
   line-height: 1.65;
   color: rgba(250, 246, 238, 0.78);
   margin: 0 0 1rem;
}

.post-card-meta {
   font-family: 'IBM Plex Mono', monospace;
   font-size: 0.72rem;
   text-transform: uppercase;
   letter-spacing: 0.18em;
   color: rgba(250, 246, 238, 0.5);
   margin: 0;
}

/* ========================================
   INDIVIDUAL POST
   ======================================== */

.post {
   /* No max-width here — post-header and post-prose handle their own widths */
}

.post-header {
   max-width: 74ch;
   margin: 0 auto 4rem;
}

.post-kicker {
   display: inline-block;
   font-family: 'IBM Plex Mono', monospace;
   font-size: 0.72rem;
   text-transform: uppercase;
   letter-spacing: 0.22em;
   color: rgb(var(--accent-rgb) / 0.72);
   padding-bottom: 0.75rem;
   border-bottom: 1px solid rgb(var(--accent-rgb) / 0.3);
}

.post-title {
   font-family: 'Roboto', sans-serif;
   font-weight: 100;
   font-size: clamp(2.25rem, 6vw, 3.5rem);
   line-height: 1.1;
   letter-spacing: -0.025em;
   color: var(--accent);
   margin-top: 1.5rem;
   margin-bottom: 1rem;
}

.post-dek {
   font-size: 1.2rem;
   line-height: 1.55;
   color: rgba(250, 246, 238, 0.8);
   margin-top: 1rem;
   margin-bottom: 1.5rem;
   max-width: 52ch;
}

.post-meta {
   display: flex;
   flex-wrap: wrap;
   align-items: center;
   gap: 0.6rem;
   font-family: 'IBM Plex Mono', monospace;
   font-size: 0.72rem;
   text-transform: uppercase;
   letter-spacing: 0.18em;
   color: rgba(250, 246, 238, 0.5);
   margin-top: 1.5rem;
}

.post-sep {
   color: rgba(250, 246, 238, 0.25);
}

.post-date,
.post-author,
.post-read {
   /* Shared meta item styling — inherits from .post-meta */
}

.post-prose {
   /* Extends .prose via both classes on the container */
}

.post-footer {
   max-width: 74ch;
   margin: 5rem auto 0;
   padding-top: 2.5rem;
   border-top: 1px solid rgb(var(--accent-rgb) / 0.15);
   font-family: 'IBM Plex Mono', monospace;
   font-size: 0.75rem;
   text-transform: uppercase;
   letter-spacing: 0.18em;
}

.post-cta {
   display: flex;
   flex-wrap: wrap;
   align-items: center;
   justify-content: space-between;
   gap: 1rem;
   margin-bottom: 2rem;
   padding: 1rem 0;
}

.post-cta-copy {
   color: rgba(250, 246, 238, 0.68);
   font-family: 'Roboto', sans-serif;
   font-size: 0.95rem;
   font-weight: 200;
   letter-spacing: 0;
   line-height: 1.5;
   margin: 0;
   text-transform: none;
}

.post-cta-button {
   display: inline-flex;
   align-items: center;
   justify-content: center;
   min-height: 32px;
   min-width: 32px;
   padding: 0 12px;
   gap: 8px;
   border-radius: 6px;
   background-color: var(--accent);
   border: 0;
   color: #000;
   font-family: 'IBM Plex Mono', monospace;
   font-size: 0.78rem;
   font-weight: 600;
   letter-spacing: 0.08em;
   line-height: 1;
   text-transform: uppercase;
   text-decoration: none;
   white-space: nowrap;
   box-shadow: 0 0 5px rgb(var(--accent-rgb) / 0.46);
   filter: drop-shadow(0 -1px 30px rgb(var(--accent-rgb) / 0.6));
   transition: filter 180ms ease, box-shadow 180ms ease, transform 150ms ease;
   -webkit-tap-highlight-color: transparent;
   touch-action: manipulation;
}

.post-cta-button:hover {
   color: #000;
   transform: translateY(-1px);
   box-shadow: 0 0 10px rgb(var(--accent-rgb) / 0.6);
   filter: drop-shadow(0 -1px 36px rgb(var(--accent-rgb) / 0.8));
}

.post-cta-button:active {
   transform: translateY(0);
}

.post-cta-button:focus-visible {
   outline: 2px solid #fff;
   outline-offset: 3px;
}

.post-cta-light {
   width: 8px;
   height: 8px;
   border-radius: 2px;
   background: #000;
   opacity: 0.72;
   flex-shrink: 0;
}

.post-back-link {
   color: rgba(250, 246, 238, 0.6);
   text-decoration: none;
   transition: color 0.2s ease;
}

.post-back-link:hover {
   color: var(--accent);
}

/* Mobile */
@media (max-width: 768px) {
   .blog-main {
      padding: 5rem 1.25rem 3rem;
   }

   .blog-header {
      margin-bottom: 3.5rem;
   }

   .blog-title {
      font-size: clamp(1.875rem, 7vw, 2.5rem);
   }

   .blog-subtitle {
      font-size: 1.05rem;
   }

   .post-card {
      padding: 2rem 0;
   }

   .post-card:hover {
      padding-left: 0;
   }

   .post-card-title {
      font-size: 1.4rem;
   }

   .post-header {
      margin-bottom: 3rem;
   }

   .post-title {
      font-size: clamp(1.875rem, 7vw, 2.5rem);
   }

   .post-dek {
      font-size: 1.1rem;
   }

   .post-footer {
      margin-top: 4rem;
   }
}

@media (prefers-reduced-motion: reduce) {
   .post-card,
   .post-card-title {
      transition: none !important;
   }

   .post-card:hover {
      padding-left: 0;
   }
}
