body, body * { letter-spacing: normal !important; }

:root {
  --blog-red: #b62124;
  --blog-red-dark: #9b1b1e;
  --blog-line: rgba(255, 255, 255, 0.1);
  --blog-muted: rgba(255, 255, 255, 0.62);
  --blog-card: #0f0f0f;
}

.blog-main { padding-top: 97px; }
.blog-wrap { width: min(100% - 2.5rem, 1200px); margin-inline: auto; }

.blog-kicker {
  display: inline-flex; align-items: center; gap: .6rem;
  color: #ff6b6e; font-size: .85rem; font-weight: 600; margin: 0 0 1rem;
}
.blog-kicker::before { content: ""; width: 22px; height: 2px; background: var(--blog-red); border-radius: 2px; }

.blog-meta { color: var(--blog-muted); font-size: .85rem; margin: 0; }

.blog-chip {
  display: inline-block; padding: .35rem .75rem; border-radius: 999px;
  background: rgba(182, 33, 36, .14); border: 1px solid rgba(182, 33, 36, .4);
  color: #ffb3b4; font-size: .75rem; font-weight: 500; line-height: 1.3;
  transition: background .2s ease, color .2s ease;
}
.blog-chip:hover { background: var(--blog-red); color: #fff; }

.blog-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 48px; padding: 0 1.6rem; border-radius: 999px;
  background: var(--blog-red); color: #fff; font-weight: 600; font-size: .95rem;
  white-space: nowrap; transition: background .2s ease, transform .2s ease, box-shadow .2s ease;
}
.blog-btn:hover { background: var(--blog-red-dark); transform: translateY(-2px); box-shadow: 0 12px 30px -10px rgba(182, 33, 36, .7); }

.blog-link { display: inline-flex; gap: .4rem; color: #fff; font-weight: 600; margin-top: 1.4rem; }
.blog-link span { transition: transform .25s ease; }
.blog-link:hover span { transform: translateX(4px); }

/* Listing hero */
.blog-hero {
  position: relative; overflow: hidden; padding: 4.5rem 0 2.5rem;
  background:
    radial-gradient(60% 80% at 85% 0%, rgba(182, 33, 36, .28), transparent 70%),
    linear-gradient(180deg, #050505, #000);
  border-bottom: 1px solid var(--blog-line);
}
.blog-hero__title { font-size: clamp(2.1rem, 5vw, 3.6rem); line-height: 1.08; font-weight: 700; max-width: 16ch; margin: 0; }
.blog-hero__text { color: var(--blog-muted); font-size: clamp(1rem, 1.6vw, 1.15rem); line-height: 1.65; max-width: 58ch; margin: 1.2rem 0 2rem; }

.blog-search {
  display: flex; align-items: center; gap: .6rem; max-width: 520px;
  padding: .35rem .35rem .35rem 1rem; border-radius: 999px;
  background: rgba(255, 255, 255, .06); border: 1px solid var(--blog-line);
  transition: border-color .2s ease, background .2s ease;
}
.blog-search:focus-within { border-color: rgba(255, 255, 255, .35); background: rgba(255, 255, 255, .09); }
.blog-search svg { width: 18px; height: 18px; color: var(--blog-muted); flex: none; }
.blog-search input { flex: 1; min-width: 0; background: transparent; border: 0; outline: 0; color: #fff; font-size: .95rem; padding: .6rem 0; }
.blog-search input::placeholder { color: rgba(255, 255, 255, .45); }
.blog-search button { border-radius: 999px; background: #fff; color: #000; font-weight: 600; font-size: .85rem; padding: .65rem 1.2rem; transition: background .2s ease; }
.blog-search button:hover { background: #e9e9e9; }

.blog-cats {
  display: flex; gap: .5rem; margin-top: 1.8rem; padding-bottom: .4rem;
  overflow-x: auto; scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg, #000 92%, transparent);
  mask-image: linear-gradient(90deg, #000 92%, transparent);
}
.blog-cats::-webkit-scrollbar { display: none; }
.blog-cat {
  flex: none; padding: .5rem .95rem; border-radius: 999px; font-size: .82rem;
  color: rgba(255, 255, 255, .75); border: 1px solid var(--blog-line);
  transition: color .2s ease, border-color .2s ease, background .2s ease;
}
.blog-cat:hover { color: #fff; border-color: rgba(255, 255, 255, .35); }
.blog-cat.is-active { background: #fff; color: #000; border-color: #fff; }

/* Listing */
.blog-list { padding: 3rem 0 5rem; }
.blog-results { color: var(--blog-muted); margin: 0 0 1.8rem; }
.blog-results a { color: #fff; text-decoration: underline; text-underline-offset: 3px; margin-left: .5rem; }

.blog-featured {
  display: grid; grid-template-columns: 1.25fr 1fr; gap: 2.5rem; align-items: center;
  padding-bottom: 3rem; margin-bottom: 3rem; border-bottom: 1px solid var(--blog-line);
}
.blog-featured__media, .blog-card__media {
  position: relative; display: block; overflow: hidden; border-radius: 18px;
  background: linear-gradient(135deg, #1a1a1a, #0b0b0b);
}
.blog-featured__media { aspect-ratio: 16 / 10; }
.blog-featured__media img, .blog-card__media img {
  width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.2, .7, .2, 1);
}
.blog-featured:hover img, .blog-card:hover .blog-card__media img { transform: scale(1.045); }
.blog-featured__title { font-size: clamp(1.6rem, 3vw, 2.4rem); line-height: 1.15; font-weight: 700; margin: 0 0 1rem; }
.blog-featured__title a, .blog-card__title a { transition: color .2s ease; }
.blog-featured__title a:hover, .blog-card__title a:hover { color: #ffb3b4; }
.blog-featured__excerpt { color: var(--blog-muted); line-height: 1.7; margin: 0 0 1.2rem; }

.blog-card__placeholder {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-size: 2rem; font-weight: 700; color: rgba(255, 255, 255, .12);
}

.blog-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.5rem 1.75rem; }
.blog-card { display: flex; flex-direction: column; animation: blog-rise .6s both cubic-bezier(.2, .7, .2, 1); }
.blog-card:nth-child(2) { animation-delay: .06s; }
.blog-card:nth-child(3) { animation-delay: .12s; }
.blog-card:nth-child(n+4) { animation-delay: .18s; }
.blog-card__media { aspect-ratio: 16 / 10; }
.blog-card__body { display: flex; flex-direction: column; align-items: flex-start; gap: .75rem; padding-top: 1.2rem; }
.blog-card__title { font-size: 1.2rem; line-height: 1.35; font-weight: 600; margin: 0; }
.blog-card__excerpt { color: var(--blog-muted); font-size: .95rem; line-height: 1.6; margin: 0; }

@keyframes blog-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.blog-empty { text-align: center; padding: 4rem 1rem; border: 1px dashed var(--blog-line); border-radius: 20px; }
.blog-empty h2 { font-size: 1.5rem; font-weight: 600; margin: 0 0 .6rem; }
.blog-empty p { color: var(--blog-muted); margin: 0; }
.blog-empty a { color: #fff; text-decoration: underline; }

.blog-pager { display: flex; align-items: center; justify-content: center; gap: 1.5rem; margin-top: 4rem; color: var(--blog-muted); font-size: .9rem; }
.blog-pager a { color: #fff; padding: .65rem 1.2rem; border: 1px solid var(--blog-line); border-radius: 999px; transition: border-color .2s ease, background .2s ease; }
.blog-pager a:hover { border-color: #fff; background: rgba(255, 255, 255, .05); }

/* Bottom call to action */
.blog-cta { padding: 0 0 5rem; }
.blog-cta__inner {
  width: min(100% - 2.5rem, 1200px); margin-inline: auto;
  display: flex; align-items: center; justify-content: space-between; gap: 2rem;
  padding: clamp(2rem, 4vw, 3.5rem); border-radius: 24px;
  background: radial-gradient(80% 140% at 100% 0%, rgba(182, 33, 36, .45), transparent 60%), #0e0e0e;
  border: 1px solid var(--blog-line);
}
.blog-cta__title { font-size: clamp(1.5rem, 3vw, 2.2rem); line-height: 1.2; font-weight: 700; margin: 0 0 .8rem; max-width: 22ch; }
.blog-cta__text { color: var(--blog-muted); line-height: 1.65; margin: 0; max-width: 56ch; }

/* Article */
.post-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 60; pointer-events: none; }
.post-progress span { display: block; height: 100%; background: var(--blog-red); transform-origin: 0 50%; transform: scaleX(0); }

.post-head { max-width: 820px; padding: 3.5rem 0 2.2rem; text-align: left; }
.post-crumbs { display: flex; gap: .6rem; color: var(--blog-muted); font-size: .85rem; margin-bottom: 1.6rem; }
.post-crumbs a:hover { color: #fff; }
.post-title { font-size: clamp(2rem, 4.6vw, 3.3rem); line-height: 1.12; font-weight: 700; margin: 1.1rem 0 1.1rem; }
.post-lede { color: rgba(255, 255, 255, .78); font-size: clamp(1.05rem, 1.7vw, 1.25rem); line-height: 1.6; margin: 0 0 1.4rem; }

.post-hero { max-width: 1100px; margin-bottom: 3rem; }
.post-hero img { width: 100%; max-height: 620px; object-fit: cover; border-radius: 22px; }

.post-body { width: min(100% - 2.5rem, 760px); margin-inline: auto; padding-bottom: 4rem; }

.prose { color: rgba(255, 255, 255, .84); font-size: 1.08rem; line-height: 1.8; }
.prose > * + * { margin-top: 1.2em; }
.prose h2 { color: #fff; font-size: clamp(1.45rem, 2.6vw, 1.9rem); line-height: 1.25; font-weight: 700; margin-top: 2.2em; }
.prose h3 { color: #fff; font-size: 1.3rem; line-height: 1.3; font-weight: 600; margin-top: 1.8em; }
.prose h4 { color: #fff; font-size: 1.1rem; font-weight: 600; margin-top: 1.6em; }
.prose a { color: #ff8a8c; text-decoration: underline; text-underline-offset: 3px; }
.prose a:hover { color: #fff; }
.prose strong { color: #fff; font-weight: 600; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li + li { margin-top: .45em; }
.prose li::marker { color: var(--blog-red); }
.prose blockquote { border-left: 3px solid var(--blog-red); padding: .3em 0 .3em 1.2em; color: #fff; font-size: 1.18rem; font-style: italic; }
.prose img { border-radius: 14px; margin-inline: auto; }
.prose iframe { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; border: 0; border-radius: 14px; }
.prose hr { border: 0; border-top: 1px solid var(--blog-line); margin: 2.5em 0; }
.prose table { width: 100%; border-collapse: collapse; font-size: .95rem; display: block; overflow-x: auto; }
.prose th, .prose td { border: 1px solid var(--blog-line); padding: .6em .8em; text-align: left; }
.prose th { background: rgba(255, 255, 255, .05); color: #fff; }
.prose code { background: rgba(255, 255, 255, .08); padding: .1em .35em; border-radius: 4px; font-size: .9em; }

.post-body > * + * { margin-top: 2.2rem; }

.post-video { position: relative; aspect-ratio: 16 / 9; border-radius: 18px; overflow: hidden; background: #111; }
.post-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.post-cta {
  display: flex; flex-direction: column; align-items: flex-start; gap: 1.2rem;
  padding: 1.8rem 2rem; border-radius: 18px;
  background: linear-gradient(135deg, rgba(182, 33, 36, .2), rgba(182, 33, 36, .04));
  border: 1px solid rgba(182, 33, 36, .35);
}
.post-cta__text { color: #fff; font-size: 1.1rem; line-height: 1.6; }
.post-cta__text > * + * { margin-top: .6em; }

.post-section img { width: 100%; border-radius: 16px; margin-bottom: 1.4rem; }
.post-section .prose h2 { margin-top: 0; }

.post-tags { display: flex; flex-wrap: wrap; gap: .5rem; padding-top: 1rem; }
.post-tags li { padding: .35rem .8rem; border-radius: 999px; border: 1px solid var(--blog-line); color: var(--blog-muted); font-size: .8rem; }

.post-share { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; padding-top: 2rem; border-top: 1px solid var(--blog-line); color: var(--blog-muted); font-size: .9rem; }
.post-share span { margin-right: .4rem; }
.post-share a { color: #fff; padding: .5rem 1rem; border: 1px solid var(--blog-line); border-radius: 999px; transition: border-color .2s ease, background .2s ease; }
.post-share a:hover { border-color: #fff; background: rgba(255, 255, 255, .05); }

.post-related { padding: 3rem 0 5rem; border-top: 1px solid var(--blog-line); }
.post-related__title { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 700; margin: 0 0 2rem; }

@media (max-width: 1024px) {
  .blog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .blog-featured { grid-template-columns: 1fr; gap: 1.8rem; }
}

@media (max-width: 640px) {
  .blog-main { padding-top: 90px; }
  .blog-hero { padding: 3rem 0 2rem; }
  .blog-list { padding: 2rem 0 3.5rem; }
  .blog-grid { grid-template-columns: 1fr; gap: 2.2rem; }
  .blog-search button { padding: .6rem 1rem; }
  .blog-cta__inner { flex-direction: column; align-items: flex-start; }
  .blog-btn { width: 100%; }
  .post-head { padding: 2.2rem 0 1.6rem; }
  .post-hero { margin-bottom: 2rem; }
  .post-hero img { border-radius: 14px; }
  .prose { font-size: 1.02rem; }
  .post-cta { padding: 1.4rem; }
  .blog-pager { gap: .8rem; font-size: .85rem; }
}

@media (prefers-reduced-motion: reduce) {
  .blog-card { animation: none; }
  .blog-featured__media img, .blog-card__media img, .blog-btn, .blog-link span { transition: none; }
}
