/* Blog-specific styles — extends kurs.css design language */

.blog-hero {
  padding: var(--s-7) 0 var(--s-8);
  border-bottom: 1px solid var(--rule);
}
.blog-hero .lead {
  display: inline-flex;
  align-items: center;
  gap: var(--s-3);
  font-size: var(--t-0);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--ink-soft);
  margin-bottom: var(--s-5);
}
.blog-hero .lead .num {
  background: var(--ink); color: var(--signal);
  padding: 3px 8px; border-radius: 4px; letter-spacing: 0.05em;
}
.blog-hero h1 {
  font-family: 'Inter Tight', sans-serif;
  font-weight: 700;
  font-size: clamp(40px, 5.6vw, 76px);
  letter-spacing: -0.034em;
  line-height: 1.0;
  margin: 0 0 var(--s-5);
  max-width: 18ch;
}
.blog-hero h1 em { font-style: normal; color: var(--ink-soft); font-weight: 500; }
.blog-hero p {
  margin: 0;
  font-size: var(--t-3);
  color: var(--ink-soft);
  max-width: 56ch;
  line-height: 1.5;
}

/* Post grid (index) */
.posts {
  padding: var(--s-9) 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-7);
}
@media (min-width: 760px) {
  .posts { grid-template-columns: repeat(2, 1fr); gap: var(--s-7); }
}
@media (min-width: 1100px) {
  .posts.featured-layout {
    grid-template-columns: 2fr 1fr;
    grid-template-rows: auto auto;
  }
  .posts.featured-layout > article:first-child { grid-row: span 2; }
}

.post-card {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .35s var(--easing-out), border-color .35s, box-shadow .35s;
  text-decoration: none;
  color: inherit;
}
.post-card:hover {
  transform: translateY(-4px);
  border-color: var(--rule-2);
  box-shadow: 0 24px 48px -24px rgba(31,31,31,0.12);
}
.post-card .img {
  aspect-ratio: 16/10;
  background: var(--paper-2);
  position: relative;
  overflow: hidden;
}
.post-card .img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1s var(--easing-out);
}
.post-card:hover .img img { transform: scale(1.04); }
.post-card .body {
  padding: var(--s-6);
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: var(--s-3);
}
.post-card .meta {
  display: flex;
  gap: var(--s-3);
  align-items: center;
  font-size: var(--t-0);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mute);
  font-weight: 600;
}
.post-card .meta .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--ink-mute); }
.post-card h2 {
  font-family: 'Inter Tight', sans-serif;
  font-weight: 600;
  font-size: var(--t-4);
  letter-spacing: -0.025em;
  line-height: 1.15;
  margin: 0;
}
.post-card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: var(--t-1);
  line-height: 1.55;
  flex: 1;
}
.post-card .read {
  font-size: var(--t-1);
  color: var(--link-blue);
  font-weight: 500;
  margin-top: var(--s-2);
}
.post-card .read::after { content: " →"; transition: padding .25s var(--easing-out); }
.post-card:hover .read::after { padding-left: 4px; }

.post-card.featured {
  background: var(--ink); color: var(--paper); border-color: var(--ink);
}
.post-card.featured h2 { color: var(--paper); font-size: clamp(26px, 2.8vw, 40px); }
.post-card.featured p { color: color-mix(in srgb, var(--paper) 75%, transparent); }
.post-card.featured .meta { color: var(--signal); }
.post-card.featured .meta .dot { background: var(--signal); }
.post-card.featured .read { color: var(--signal); }
.post-card.featured .body { padding: var(--s-7) var(--s-6); }
@media (min-width: 1100px) { .post-card.featured .img { aspect-ratio: 16/9; } }

/* Single post */
.article-shell {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 var(--s-5) var(--s-9);
}
@media (min-width: 720px) { .article-shell { padding: 0 var(--s-7) var(--s-9); } }

.article-cover {
  aspect-ratio: 16/8;
  border-radius: 18px;
  overflow: hidden;
  background: var(--paper-2);
  margin: var(--s-7) 0 var(--s-7);
  border: 1px solid var(--rule);
}
.article-cover img { width: 100%; height: 100%; object-fit: cover; }

.article-meta {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  font-size: var(--t-0);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 600;
  margin-bottom: var(--s-4);
}
.article-meta .num {
  background: var(--ink); color: var(--signal);
  padding: 3px 8px; border-radius: 4px; letter-spacing: 0.05em;
}
.article-meta .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--ink-mute); }

.article-shell h1 {
  font-family: 'Inter Tight', sans-serif;
  font-weight: 700;
  font-size: clamp(34px, 4.6vw, 56px);
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin: var(--s-6) 0 var(--s-4);
}
.article-shell .summary {
  font-size: var(--t-3);
  color: var(--ink-soft);
  line-height: 1.5;
  margin: 0 0 var(--s-6);
}

.prose { color: var(--ink-2); font-size: 17.5px; line-height: 1.7; }
.prose p { margin: 0 0 var(--s-5); }
.prose h2 {
  font-family: 'Inter Tight', sans-serif;
  font-weight: 700;
  font-size: clamp(22px, 2.4vw, 32px);
  letter-spacing: -0.022em;
  line-height: 1.2;
  margin: var(--s-7) 0 var(--s-3);
}
.prose h3 {
  font-family: 'Inter Tight', sans-serif;
  font-weight: 600;
  font-size: var(--t-3);
  letter-spacing: -0.018em;
  margin: var(--s-6) 0 var(--s-3);
}
.prose ul, .prose ol {
  padding-left: 0;
  list-style: none;
  margin: 0 0 var(--s-5);
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
}
.prose li {
  position: relative;
  padding-left: 28px;
  line-height: 1.55;
}
.prose ul li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.55em;
  width: 16px; height: 2px;
  background: var(--signal);
}
.prose ol { counter-reset: olc; }
.prose ol li { counter-increment: olc; }
.prose ol li::before {
  content: counter(olc) ".";
  position: absolute;
  left: 0; top: 0;
  font-family: 'Inter Tight', sans-serif;
  font-weight: 700;
  color: var(--signal-2);
}
.prose blockquote {
  margin: var(--s-7) 0;
  padding: var(--s-5) var(--s-6);
  background: var(--signal-soft);
  border: 1px solid color-mix(in srgb, var(--signal) 40%, var(--rule));
  border-radius: 12px;
  font-family: 'Inter Tight', sans-serif;
  font-size: var(--t-3);
  font-weight: 500;
  color: var(--ink);
  line-height: 1.4;
}
.prose blockquote p:last-child { margin-bottom: 0; }
.prose strong { font-weight: 600; color: var(--ink); }
.prose a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--signal);
  text-decoration-thickness: 2px;
}
.prose a:hover { text-decoration-thickness: 3px; }

.share-block {
  margin: var(--s-9) 0 var(--s-7);
  padding: var(--s-6) 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
}
.share-block strong { font-family: 'Inter Tight'; font-weight: 600; font-size: var(--t-2); }
.share-block .links { display: flex; gap: var(--s-2); }
.share-block a {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid var(--rule);
  display: grid;
  place-items: center;
  color: var(--ink-soft);
  transition: background .25s, color .25s, border-color .25s;
}
.share-block a:hover {
  background: var(--ink); color: var(--paper); border-color: var(--ink);
}

.related-posts {
  margin-top: var(--s-7);
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-4);
}
@media (min-width: 720px) { .related-posts { grid-template-columns: repeat(2, 1fr); } }
.related-posts h3 { grid-column: 1/-1; font-family: 'Inter'; font-size: var(--t-0); letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-soft); margin: 0 0 var(--s-3); font-weight: 700; }
