/* Blog — list + single post. Reuses base.css tokens/components. */

.blog-intro {
  padding: 6rem 6vw 1.5rem;
  text-align: center;
}

.blog-intro .eyebrow {
  font-family: 'Jost', sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--ink-dim);
  margin: 0;
}

.blog-empty {
  text-align: center;
  color: var(--ink-dim);
  font-family: 'Jost', sans-serif;
  padding: 2rem 6vw 6rem;
}

.blog-index {
  min-height: 60vh;
}

.post-list {
  max-width: 1500px;
  margin: 0 auto;
  padding: 1.5rem 6vw 6rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 3.5rem 2.5rem;
}

.post-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}

.post-card-image {
  border-radius: 3px;
  overflow: hidden;
  aspect-ratio: 3 / 2;
  margin-bottom: 1.2rem;
}

.post-card-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.post-card:hover .post-card-image img {
  transform: scale(1.05);
}

.post-date {
  font-family: 'Jost', sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-dim);
  margin: 0 0 0.5rem;
}

.post-card-body h2 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 500;
  font-size: clamp(1.35rem, 1.8vw, 1.65rem);
  line-height: 1.25;
  margin: 0 0 0.7rem;
  transition: opacity 0.2s ease;
}

.post-card:hover .post-card-body h2 {
  opacity: 0.8;
}

.post-excerpt {
  font-weight: 300;
  font-size: 0.92rem;
  line-height: 1.6;
  color: #d8d4cb;
  margin: 0;
}

.post-read-more {
  /* No margin-left here on purpose: margin on an inline-block box still
     applies at its own edge even when that edge lands at the very start
     of a wrapped line, which is what caused the indent. A plain space
     character (see the JSX) does the same job when this sits on the same
     line as the excerpt, and -- unlike margin -- collapses away on its
     own when it falls right at the line break instead. */
  display: inline;
  font-family: 'Jost', sans-serif;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-dim);
  opacity: 0.7;
  white-space: nowrap;
  transition: opacity 0.2s ease, letter-spacing 0.2s ease;
}

.post-card:hover .post-read-more {
  opacity: 1;
  letter-spacing: 0.12em;
}

/* First post in the list reads as a featured/lead story — spans two
   columns on wide screens where there's room for it to matter. */
@media (min-width: 900px) {
  .post-card:first-child {
    grid-column: span 2;
  }
  .post-card:first-child .post-card-image {
    aspect-ratio: 21 / 9;
  }
  .post-card:first-child h2 {
    font-size: clamp(1.8rem, 2.6vw, 2.4rem);
  }
  .post-card:first-child .post-excerpt {
    font-size: 1rem;
    max-width: 640px;
  }
}

/* Single post — wide hero image, narrower readable text column. Full-width
   photo lets the page use the screen on a wide viewport; the text column
   stays a deliberately readable ~80-character line length rather than
   stretching edge to edge, which would hurt readability more than the
   empty margins around a narrow page ever did. */

.blog-post {
  padding: 6rem 0 4rem;
}

.blog-post-header,
.blog-post-content,
.blog-post-footer {
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 6vw;
  padding-right: 6vw;
}

.blog-back {
  display: inline-block;
  font-family: 'Jost', sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-dim);
  text-decoration: none;
  margin-bottom: 1.5rem;
}

.blog-back:hover {
  color: var(--ink);
}

.blog-post-header h1 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 500;
  font-size: clamp(2rem, 4.5vw, 3rem);
  margin: 0.3rem 0 0;
  line-height: 1.15;
}

.blog-post-cover {
  max-width: 1400px;
  margin: 2.5rem auto;
  padding: 0 6vw;
  border-radius: 3px;
  overflow: hidden;
}

.blog-post-cover img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 70vh;
  object-fit: cover;
}

.blog-post-content {
  font-weight: 300;
  font-size: 1.05rem;
  line-height: 1.85;
  color: #e4e0d6;
}

.blog-post-content h2 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 500;
  font-size: 1.6rem;
  margin: 2.4rem 0 1rem;
  color: var(--ink);
}

.blog-post-content h3 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 600;
  font-size: 1.25rem;
  margin: 2rem 0 0.8rem;
  color: var(--ink);
}

.blog-post-content p {
  margin: 0 0 1.4rem;
}

.blog-post-content a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: rgba(245, 243, 238, 0.4);
}

.blog-post-content a:hover {
  text-decoration-color: rgba(245, 243, 238, 0.9);
}

.blog-post-content ul,
.blog-post-content ol {
  margin: 0 0 1.4rem;
  padding-left: 1.4rem;
}

.blog-post-content li {
  margin-bottom: 0.5rem;
}

.blog-post-content img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 3px;
  margin: 2rem 0;
}

.blog-post-content blockquote {
  margin: 1.8rem 0;
  padding-left: 1.2rem;
  border-left: 2px solid rgba(245, 243, 238, 0.3);
  font-style: italic;
  color: var(--ink-dim);
}

.blog-post-footer {
  margin-top: 3.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(245, 243, 238, 0.12);
}
