/* ---- BLOG INDEX ---- */
.blog-header {
  padding: 10rem 2rem 3rem;
  max-width: 1100px;
  margin: 0 auto;
}

.blog-header h1 {
  font-family: 'Instrument Serif', serif;
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.blog-header p {
  margin-top: 1rem;
  font-size: 1rem;
  color: var(--muted);
  max-width: 580px;
  line-height: 1.7;
  font-weight: 300;
}

.blog-list {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 2rem 5rem;
}

.blog-year {
  font-family: 'Instrument Serif', serif;
  font-size: 1.4rem;
  color: var(--accent);
  margin-top: 3rem;
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--rule);
  font-weight: 400;
}

.blog-year:first-child {
  margin-top: 0;
}

.blog-entry {
  display: block;
  text-decoration: none;
  color: var(--ink);
  padding: 1.8rem 2rem;
  border: 1px solid var(--rule);
  border-radius: 3px;
  margin-bottom: 1rem;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.blog-entry:hover {
  border-color: var(--accent-light);
  box-shadow: 0 4px 20px rgba(0,0,0,0.04);
  transform: translateY(-1px);
}

.blog-entry-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.5rem;
}

.blog-entry-date {
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 300;
  letter-spacing: 0.02em;
}

.blog-entry-pillar {
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
  padding: 0.2rem 0.6rem;
  background: var(--highlight);
  border-radius: 2px;
}

.blog-entry h2 {
  font-family: 'Instrument Serif', serif;
  font-size: 1.35rem;
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: -0.01em;
  margin-bottom: 0.4rem;
}

.blog-entry-excerpt {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.6;
  font-weight: 300;
  max-width: 640px;
}

.blog-entry-tags {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.8rem;
  flex-wrap: wrap;
}

.blog-entry-tag {
  font-size: 0.72rem;
  padding: 0.2rem 0.6rem;
  background: var(--highlight);
  border-radius: 2px;
  color: var(--muted);
  font-weight: 400;
}

/* ---- BLOG POST ---- */
.post {
  max-width: 740px;
  margin: 0 auto;
  padding: 0 2rem;
}

.post-header {
  padding-top: 9rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 3rem;
}

.post-pillar {
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 1rem;
  padding: 0.3rem 0.8rem;
  background: var(--highlight);
  border-radius: 2px;
  display: inline-block;
}

.post-meta-top {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.2rem;
  flex-wrap: wrap;
}

.post-meta-top time {
  font-size: 0.82rem;
  color: var(--muted);
  font-weight: 300;
  letter-spacing: 0.02em;
}

.post-tags {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.post-tag {
  font-size: 0.68rem;
  padding: 0.15rem 0.55rem;
  background: var(--highlight);
  border-radius: 2px;
  color: var(--muted);
  font-weight: 400;
}

.post h1 {
  font-family: 'Instrument Serif', serif;
  font-size: clamp(2rem, 4.5vw, 2.8rem);
  font-weight: 400;
  line-height: 1.18;
  letter-spacing: -0.02em;
}

.post-subtitle {
  margin-top: 1rem;
  font-size: 1.05rem;
  color: var(--muted);
  line-height: 1.65;
  font-weight: 300;
}

/* ---- POST BODY ---- */
.post-body {
  font-size: 1rem;
  line-height: 1.75;
  font-weight: 300;
}

.post-body p {
  margin-bottom: 1.4rem;
  max-width: none;
}

.post-body h2 {
  font-family: 'Instrument Serif', serif;
  font-size: 1.6rem;
  font-weight: 400;
  margin-top: 3rem;
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
  line-height: 1.25;
}

.post-body h3 {
  font-family: 'Instrument Serif', serif;
  font-size: 1.25rem;
  font-weight: 400;
  margin-top: 2.5rem;
  margin-bottom: 0.8rem;
  line-height: 1.3;
}

.post-body blockquote {
  margin: 2rem 0;
  padding: 1.2rem 1.8rem;
  border-left: 3px solid var(--accent);
  background: var(--highlight);
  border-radius: 0 3px 3px 0;
  font-style: italic;
  color: var(--ink);
}

.post-body blockquote p {
  margin-bottom: 0;
}

.post-body a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid var(--rule);
  transition: border-color 0.2s;
}

.post-body a:hover {
  border-bottom-color: var(--accent);
}

.post-body ul,
.post-body ol {
  margin: 1.2rem 0;
  padding-left: 1.5rem;
}

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

.post-body code {
  font-size: 0.88em;
  background: var(--highlight);
  padding: 0.15rem 0.4rem;
  border-radius: 2px;
  font-family: 'DM Mono', monospace;
}

.post-body pre {
  margin: 1.5rem 0;
  padding: 1.5rem;
  background: var(--ink);
  color: var(--paper);
  border-radius: 3px;
  overflow-x: auto;
  font-size: 0.85rem;
  line-height: 1.6;
}

.post-body pre code {
  background: none;
  padding: 0;
  color: inherit;
}

.post-body hr {
  border: none;
  border-top: 1px solid var(--rule);
  margin: 3rem 0;
}

.post-body img {
  max-width: 100%;
  height: auto;
  border-radius: 3px;
  margin: 1.5rem 0;
}

.post-body figure {
  margin: 2rem 0;
}

.post-body figcaption {
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 0.5rem;
  font-style: italic;
}

/* ---- POST FOOTER ---- */
.post-footer {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid var(--rule);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 4rem;
}

.post-author-name {
  display: block;
  font-family: 'Instrument Serif', serif;
  font-size: 1rem;
}

.post-author-role {
  display: block;
  font-size: 0.8rem;
  color: var(--muted);
  font-weight: 300;
}

.post-back {
  font-size: 0.82rem;
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
  letter-spacing: 0.03em;
  transition: color 0.2s;
}

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

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
  .blog-header {
    padding: 7rem 1.5rem 2rem;
  }

  .blog-list {
    padding: 1.5rem 1.5rem 3.5rem;
  }

  .blog-entry {
    padding: 1.4rem 1.5rem;
  }

  .post {
    padding: 0 1.5rem;
  }

  .post-header {
    padding-top: 7rem;
    padding-bottom: 2rem;
    margin-bottom: 2rem;
  }

  .post-footer {
    flex-direction: column;
    gap: 1.5rem;
    align-items: flex-start;
  }
}
