/* Blog styles — extends the site theme in ../styles.css */

.blog-page { padding-top: 0; }

.blog-shell {
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
}

/* ---------- Blog index ---------- */
.blog-intro { padding: 165px 0 60px; }
.blog-intro h1 {
  max-width: 780px;
  margin: 24px 0 22px;
  font: 650 clamp(46px, 6vw, 76px)/1 Manrope, sans-serif;
  letter-spacing: -.06em;
}
.blog-intro p {
  max-width: 560px;
  margin: 0;
  color: #9298a1;
  font-size: 15px;
  line-height: 1.75;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
  gap: 24px;
  padding-bottom: 140px;
}
.post-card {
  display: flex;
  flex-direction: column;
  padding: 30px 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-soft);
  transition: transform .22s ease, border-color .22s ease, background .22s ease;
}
.post-card:hover {
  transform: translateY(-4px);
  border-color: rgba(183, 255, 90, .32);
  background: #14181d;
}
.post-card .post-card-tag {
  display: block;
  color: #9aa1a9;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
}
.post-card h2 {
  margin: 15px 0 12px;
  font: 600 clamp(21px, 2.4vw, 25px)/1.28 Manrope, sans-serif;
  letter-spacing: -.035em;
  color: #fff;
}
.post-card p {
  flex: 1;
  margin: 0;
  color: #8b9199;
  font-size: 13px;
  line-height: 1.66;
}
.post-card .post-card-meta {
  display: block;
  margin-top: 22px;
  color: #6f767f;
  font-size: 11px;
}
.post-card .post-card-read {
  display: inline-block;
  margin-top: 8px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  transition: transform .2s ease;
}
.post-card:hover .post-card-read { transform: translateX(3px); }

/* ---------- Article ---------- */
.post {
  width: min(760px, calc(100% - 48px));
  margin: 0 auto;
  padding: 150px 0 120px;
}
.post-breadcrumb {
  display: flex;
  gap: 8px;
  margin-bottom: 26px;
  color: #9aa1a9;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.post-breadcrumb a { transition: color .2s ease; }
.post-breadcrumb a:hover { color: #fff; }

.post-header { padding-bottom: 34px; border-bottom: 1px solid var(--line); }
.post-title {
  margin: 0 0 22px;
  font: 700 clamp(33px, 5vw, 54px)/1.06 Manrope, sans-serif;
  letter-spacing: -.045em;
}
.post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  color: #9299a2;
  font-size: 12px;
}
.post-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: #4a4f57; }

.post-lede {
  margin: 40px 0 8px;
  color: #c9cdd2;
  font-size: 19px;
  line-height: 1.62;
}

.post-body { margin-top: 34px; color: #adb2ba; font-size: 16px; line-height: 1.82; }
.post-body > p { margin: 0 0 22px; }
.post-body h2 {
  margin: 58px 0 18px;
  font: 650 clamp(25px, 3vw, 33px)/1.22 Manrope, sans-serif;
  letter-spacing: -.03em;
  color: #fff;
}
.post-body h3 {
  margin: 40px 0 14px;
  font: 600 19px/1.4 Manrope, sans-serif;
  letter-spacing: -.02em;
  color: #eef0f2;
}
.post-body strong { color: #e6e9ec; }
.post-body em { color: #c9cdd2; }
.post-body ul,
.post-body ol { margin: 0 0 22px; padding-left: 22px; }
.post-body li { margin: 0 0 9px; padding-left: 4px; }
.post-body li::marker { color: var(--accent); }
.post-body pre {
  margin: 0 0 22px;
  padding: 18px 20px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, .04);
  font-family: "SFMono-Regular", ui-monospace, "Consolas", monospace;
  font-size: 13px;
  line-height: 1.7;
  color: #d5dae0;
}
.post-body pre code { padding: 0; border-radius: 0; background: none; font-size: inherit; color: inherit; }
.post-body blockquote {
  margin: 0 0 22px;
  padding: 18px 22px;
  border-left: 2px solid var(--accent);
  border-radius: 0 12px 12px 0;
  background: rgba(183, 255, 90, .045);
  color: #c3c8cf;
  font-size: 15px;
  line-height: 1.72;
}
.post-body code {
  padding: 2px 6px;
  border-radius: 5px;
  background: rgba(255, 255, 255, .07);
  font-family: "SFMono-Regular", ui-monospace, "Consolas", monospace;
  font-size: .88em;
  color: #d5dae0;
}
.post-body blockquote code { background: rgba(255, 255, 255, .06); }
.post-body blockquote p { margin: 0; }
.post-body blockquote p + p { margin-top: 14px; }

.post-note {
  margin: 44px 0;
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--bg-soft);
  color: #9aa0a8;
  font-size: 14px;
  line-height: 1.72;
}
.post-note strong { color: #e6e9ec; }

.post-end {
  margin-top: 64px;
  padding-top: 30px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
}
.post-end p { margin: 0; color: #8b9199; font-size: 13px; }

@media (max-width: 680px) {
  .blog-intro { padding: 140px 0 40px; }
  .post { padding: 130px 0 90px; }
  .post-lede { font-size: 17px; }
  .post-body { font-size: 15px; }
}
