/* blog.css: blog-specific styles only; all values use existing tokens */

/* =====================================================
   POST LAYOUT
   ===================================================== */

.post {
  max-width: 720px;
  margin: 0 auto;
  padding: 120px 24px 80px;
  font-family: var(--font-sans);
  color: var(--ink-1);
}

/* =====================================================
   POST TYPOGRAPHY
   ===================================================== */

.post h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(32px, 5vw, 54px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: var(--ink-1);
  margin: 0 0 20px;
}

.post h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(22px, 3vw, 32px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ink-1);
  margin: 52px 0 12px;
}

.post h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(18px, 2.4vw, 24px);
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--ink-1);
  margin: 36px 0 8px;
}

.post p {
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink-2, var(--ink-1));
  margin: 0 0 20px;
}

.post a {
  color: var(--stride-flare, #FC593A);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.post a:hover {
  opacity: 0.8;
}

.post ul,
.post ol {
  padding-left: 1.5em;
  margin: 0 0 20px;
}

.post li {
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-2, var(--ink-1));
  margin-bottom: 6px;
}

.post blockquote {
  border-left: 3px solid var(--stride-flare, #FC593A);
  margin: 28px 0;
  padding: 12px 20px;
  background: var(--paper-2, #f8f7f7);
  border-radius: 0 4px 4px 0;
}

.post blockquote p {
  font-size: 18px;
  font-style: italic;
  color: var(--ink-1);
  margin: 0;
}

.post pre {
  background: var(--paper-3, #f2f0f0);
  border: 1px solid var(--paper-4, #e8e5e5);
  border-radius: 6px;
  padding: 18px 20px;
  overflow-x: auto;
  margin: 0 0 24px;
}

.post code {
  font-family: var(--font-mono);
  font-size: 0.9em;
}

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

.post :not(pre) > code {
  background: var(--paper-3, #f2f0f0);
  border: 1px solid var(--paper-4, #e8e5e5);
  border-radius: 3px;
  padding: 1px 5px;
}

.post img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
  margin: 28px 0;
}

.post table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 24px;
  font-size: 15px;
  overflow-x: auto;
  display: block;
}

.post th,
.post td {
  border: 1px solid var(--paper-4, #e8e5e5);
  padding: 10px 14px;
  text-align: left;
}

.post th {
  background: var(--paper-2, #f8f7f7);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-3, #666);
}

.post hr {
  border: none;
  border-top: 1px solid var(--paper-4, #e8e5e5);
  margin: 40px 0;
}

/* =====================================================
   BYLINE / POST META
   ===================================================== */

.post-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--ink-4, #999);
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.post-meta .meta-author {
  color: var(--ink-2, #555);
  font-weight: 600;
}

.post-meta .meta-sep {
  color: var(--paper-5, #ccc);
}

.post-meta time {
  color: var(--ink-4, #999);
}

.post-meta .meta-updated {
  font-style: italic;
}

/* =====================================================
   POST CTA
   ===================================================== */

.post-cta {
  margin-top: 64px;
  padding: 40px;
  background: var(--paper-2, #f8f7f7);
  border-radius: 10px;
  text-align: center;
  border: 1px solid var(--paper-4, #e8e5e5);
}

.post-cta-lead {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(20px, 2.5vw, 28px);
  letter-spacing: -0.02em;
  color: var(--ink-1);
  margin: 0 0 20px;
}

.post-cta .btn {
  display: inline-block;
}

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

.blog-index-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(36px, 6vw, 64px);
  line-height: 1.03;
  letter-spacing: -0.03em;
  color: var(--ink-1);
  margin: 0 0 16px;
}

.blog-lede {
  font-size: 18px;
  line-height: 1.6;
  color: var(--ink-2, var(--ink-1));
  max-width: 60ch;
  margin: 0 0 48px;
}

.section.wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 120px 40px 100px;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

/* =====================================================
   BLOG CARD
   ===================================================== */

.blog-card {
  display: flex;
  flex-direction: column;
  background: var(--paper-1, #fff);
  border: 1px solid var(--paper-4, #e8e5e5);
  border-radius: 10px;
  overflow: hidden;
  transition: box-shadow 0.18s ease, transform 0.18s ease;
}

.blog-card:hover {
  box-shadow: 0 8px 28px rgba(0,0,0,0.08);
  transform: translateY(-2px);
}

.blog-card-thumb {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--paper-3, #f2f0f0);
}

.blog-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  margin: 0;
  border-radius: 0;
}

.blog-card-body {
  padding: 22px 22px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.blog-card-body h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  line-height: 1.25;
  letter-spacing: -0.01em;
  margin: 0 0 8px;
}

.blog-card-body h2 a {
  color: var(--ink-1);
  text-decoration: none;
}

.blog-card-body h2 a:hover {
  color: var(--stride-flare, #FC593A);
}

.blog-card-desc {
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-3, #666);
  margin: 0 0 16px;
  flex: 1;
}

.blog-card-time {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--ink-4, #999);
  display: block;
}

/* =====================================================
   RESPONSIVE
   ===================================================== */

@media (max-width: 900px) {
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
}

@media (max-width: 640px) {
  .post {
    padding: 100px 20px 60px;
  }

  .section.wrap {
    padding: 100px 20px 60px;
  }

  .blog-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .post-cta {
    padding: 28px 20px;
  }
}
