/* ============================================================
   GRAINY MEMORIES — Blog styles
   ============================================================ */

/* Blog Hero */
.blog-hero {
  min-height: 50vh;
  display: flex;
  align-items: flex-end;
  padding: calc(var(--header-h) + 4rem) var(--gutter) 4rem;
  background: var(--ink);
  color: var(--paper);
}
.blog-hero-content {
  max-width: 700px;
}
.blog-title {
  font-family: var(--font-display);
  font-variation-settings: "wdth" 125;
  font-weight: 900;
  font-size: clamp(2.5rem, 8vw, 5rem);
  line-height: 0.9;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}
.blog-intro {
  font-style: italic;
  font-weight: 200;
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  color: rgba(245, 243, 237, 0.8);
  max-width: 50ch;
  line-height: 1.5;
}

/* Blog Posts */
.blog-posts {
  padding: clamp(4rem, 10vh, 7rem) var(--gutter);
  max-width: 1000px;
  margin: 0 auto;
}

.post {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  padding-bottom: clamp(4rem, 8vh, 6rem);
  margin-bottom: clamp(4rem, 8vh, 6rem);
  border-bottom: 1px solid var(--line);
}
.post:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.post-image {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 4px;
  background: var(--frame-bg);
}
.post-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.post:hover .post-image img {
  transform: scale(1.03);
}

.post-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.post-date {
  color: var(--brand);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
}

.post-title {
  font-family: var(--font-display);
  font-variation-settings: "wdth" 115;
  font-weight: 700;
  font-size: clamp(1.5rem, 3.5vw, 2.2rem);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.1;
  margin: 0;
}

.post-excerpt {
  font-size: clamp(1.05rem, 1.8vw, 1.2rem);
  font-weight: 300;
  line-height: 1.6;
  color: var(--ink);
}

.post-body {
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.7;
  color: var(--silver);
}
.post-body:first-of-type {
  margin-top: 0.5rem;
}

/* Current nav link */
.site-nav a.is-current {
  color: var(--brand);
}
.site-nav a.is-current::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* Responsive */
@media (min-width: 768px) {
  .post {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
  }
  .post:nth-child(even) .post-image {
    order: 2;
  }
  .post:nth-child(even) .post-content {
    order: 1;
  }
  .post-image {
    position: sticky;
    top: calc(var(--header-h) + 2rem);
    aspect-ratio: 4 / 5;
  }
}

@media (max-width: 640px) {
  .blog-hero {
    min-height: 40vh;
    padding-bottom: 3rem;
  }
  .post-image {
    aspect-ratio: 16 / 9;
  }
}
