.blog-shell,
.blog-hero,
.blog-feature,
.blog-card,
.blog-post,
.blog-state {
  --rw-surface: #201f20;
  --rw-border: #3b494b;
  --rw-text: #e5e2e3;
  --rw-muted: #b9cacb;
  --rw-cyan-soft: #67e8f9;
  --rw-font-display: "Space Grotesk", Inter, sans-serif;
}

.blog-shell {
  max-width: 1080px;
  margin: 0 auto;
  padding: 108px 20px 64px;
}

.blog-hero {
  position: relative;
  border: 1px solid color-mix(in srgb, var(--rw-border) 70%, transparent);
  background:
    radial-gradient(circle at 80% 0%, rgba(0, 240, 255, 0.12), transparent 50%),
    linear-gradient(150deg, #1a1a1b, #151516);
  border-radius: 22px;
  padding: clamp(24px, 4vw, 44px);
  box-shadow: 0 20px 80px rgba(0, 0, 0, 0.35);
  margin-bottom: 28px;
}

.blog-hero__eyebrow {
  margin: 0 0 10px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--rw-cyan-soft);
}

.blog-hero__title {
  margin: 0 0 10px;
  font-family: var(--rw-font-display);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.02;
  font-size: clamp(2rem, 5vw, 3.5rem);
  color: #ecfeff;
}

.blog-hero__lede {
  margin: 0;
  max-width: 72ch;
  font-size: 1.02rem;
  color: var(--rw-muted);
}

.blog-state {
  border: 1px dashed rgba(59, 73, 75, 0.85);
  border-radius: 16px;
  background: rgba(20, 21, 22, 0.65);
  padding: 20px;
  color: #b9cacb;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 16px;
}

.blog-feature {
  grid-column: span 12;
  border: 1px solid rgba(59, 73, 75, 0.8);
  border-radius: 20px;
  overflow: hidden;
  background:
    radial-gradient(circle at 95% 0%, rgba(254, 95, 0, 0.18), transparent 35%),
    linear-gradient(180deg, rgba(27, 27, 29, 0.95), rgba(20, 20, 21, 0.98));
}

.blog-feature__inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 16px;
  padding: 24px;
}

.blog-feature__title {
  margin: 0 0 8px;
  font-family: "Space Grotesk", Inter, sans-serif;
  font-weight: 800;
  font-size: clamp(1.4rem, 2.7vw, 2.2rem);
  line-height: 1.07;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.blog-feature__meta,
.blog-card__meta {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #8ec3c6;
}

.blog-feature__desc,
.blog-card__desc {
  margin: 10px 0 0;
  color: #b8cbcc;
  line-height: 1.52;
}

.blog-feature__cta,
.blog-card__cta {
  margin-top: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #67e8f9;
  font-weight: 700;
}

.blog-feature__decor {
  border-radius: 14px;
  border: 1px solid rgba(59, 73, 75, 0.75);
  background:
    radial-gradient(circle at 40% 30%, rgba(0, 240, 255, 0.25), transparent 42%),
    radial-gradient(circle at 80% 70%, rgba(254, 95, 0, 0.2), transparent 35%),
    linear-gradient(145deg, #151617, #1f2124);
}

.blog-card {
  grid-column: span 6;
  border: 1px solid rgba(59, 73, 75, 0.75);
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(30, 31, 33, 0.9), rgba(22, 22, 23, 0.95));
  padding: 18px;
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease;
}

.blog-card:hover {
  transform: translateY(-2px);
  border-color: rgba(103, 232, 249, 0.45);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.4);
}

.blog-card__title {
  margin: 8px 0 0;
  font-family: "Space Grotesk", Inter, sans-serif;
  font-size: 1.24rem;
  line-height: 1.15;
  color: #eef7f7;
  text-transform: uppercase;
  letter-spacing: 0.035em;
}

.blog-post {
  border: 1px solid rgba(59, 73, 75, 0.8);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(28, 29, 31, 0.98), rgba(20, 20, 21, 1));
  padding: clamp(20px, 4vw, 40px);
}

.blog-post__back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.blog-post__headline {
  margin: 12px 0 8px;
  font-family: "Space Grotesk", Inter, sans-serif;
  font-size: clamp(2rem, 4.8vw, 3.2rem);
  line-height: 1.03;
  letter-spacing: 0.02em;
  color: #f2f5f5;
  text-transform: uppercase;
}

.blog-post__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin-bottom: 18px;
  color: #9ec5c8;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.blog-post__prose {
  color: #d7dede;
  line-height: 1.7;
  font-size: 1.04rem;
}

/* Body often repeats the page title as # — hide first H1 so the template headline is the only one */
.blog-post__prose > h1:first-of-type {
  display: none;
}

.blog-post__prose h1,
.blog-post__prose h2,
.blog-post__prose h3 {
  font-family: "Space Grotesk", Inter, sans-serif;
  letter-spacing: -0.02em;
  color: #eff8f9;
}

.blog-post__prose h1 {
  margin-top: 1.75em;
  margin-bottom: 0.4em;
  font-size: clamp(1.5rem, 2.8vw, 2.05rem);
  line-height: 1.12;
}

.blog-post__prose h2 {
  margin-top: 1.9em;
  margin-bottom: 0.45em;
  font-size: clamp(1.4rem, 2.5vw, 1.95rem);
}

.blog-post__prose h3 {
  margin-top: 1.5em;
  margin-bottom: 0.35em;
  font-size: clamp(1.1rem, 2vw, 1.35rem);
}

.blog-post__prose h2 + p,
.blog-post__prose h3 + p {
  margin-top: 0.35em;
}

.blog-post__prose p {
  margin: 0.75em 0 0;
}

.blog-post__prose ul,
.blog-post__prose ol {
  margin: 0.8em 0 0;
  padding-left: 1.35em;
}

.blog-post__prose li + li {
  margin-top: 0.35em;
}

.blog-post__prose li > ul,
.blog-post__prose li > ol {
  margin-top: 0.45em;
  margin-bottom: 0.35em;
}

.blog-post__prose blockquote {
  margin: 1.1em 0 0;
  border-left: 3px solid rgba(103, 232, 249, 0.42);
  background: rgba(0, 240, 255, 0.06);
  border-radius: 0 10px 10px 0;
  padding: 12px 14px;
  color: #c6ecef;
}

.blog-post__prose code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  background: rgba(7, 10, 12, 0.65);
  border: 1px solid rgba(59, 73, 75, 0.85);
  border-radius: 6px;
  font-size: 0.86em;
  padding: 0.08em 0.38em;
}

.blog-post__prose pre {
  margin-top: 1em;
  background: #0f1316;
  border: 1px solid rgba(59, 73, 75, 0.85);
  border-radius: 12px;
  padding: 13px 14px;
  overflow-x: auto;
}

.blog-post__prose pre code {
  border: 0;
  background: transparent;
  padding: 0;
}

.blog-post__links {
  margin-top: 2.25rem;
  border: 1px solid rgba(59, 73, 75, 0.65);
  border-radius: 14px;
  padding: 1.15rem 1.25rem 1.2rem;
  background: linear-gradient(165deg, rgba(24, 25, 27, 0.95), rgba(18, 19, 20, 0.98));
}

.blog-post__links-title {
  margin: 0 0 0.75rem;
  font-family: "Space Grotesk", Inter, sans-serif;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--rw-cyan-soft);
}

.blog-post__links-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  color: #c4d4d5;
  font-size: 0.98rem;
  line-height: 1.45;
}

.blog-post__links-list a {
  color: #7ee7f8;
  text-decoration: none;
  border-bottom: 1px solid rgba(103, 232, 249, 0.28);
  padding-bottom: 1px;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.blog-post__links-list a:hover {
  color: #b5f7ff;
  border-bottom-color: rgba(103, 232, 249, 0.55);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.blog-post-root {
  margin-top: 0;
}

.blog-toolbar {
  margin-bottom: 22px;
  padding: 18px 20px;
  border: 1px solid rgba(59, 73, 75, 0.75);
  border-radius: 16px;
  background: linear-gradient(165deg, rgba(28, 29, 31, 0.92), rgba(18, 19, 20, 0.98));
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.22);
}

.blog-search {
  display: block;
  margin-bottom: 14px;
}

.blog-search__input {
  width: 100%;
  max-width: 420px;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid rgba(59, 73, 75, 0.9);
  background: rgba(8, 9, 10, 0.85);
  color: #e5e2e3;
  font-size: 0.95rem;
}

.blog-search__input::placeholder {
  color: #6b7678;
}

.blog-search__input:focus {
  outline: none;
  border-color: rgba(103, 232, 249, 0.5);
  box-shadow: 0 0 0 3px rgba(0, 240, 255, 0.12);
}

.blog-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.blog-filter-pill {
  appearance: none;
  border: 1px solid rgba(59, 73, 75, 0.9);
  background: rgba(255, 255, 255, 0.03);
  color: #b9cacb;
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition:
    border-color 0.15s ease,
    background 0.15s ease,
    color 0.15s ease;
}

.blog-filter-pill:hover {
  border-color: rgba(103, 232, 249, 0.4);
}

.blog-filter-pill.is-active {
  color: #04242a;
  background: linear-gradient(125deg, #67e8f9, #5eead4);
  border-color: rgba(103, 232, 249, 0.85);
}

.blog-filter-pill:focus-visible {
  outline: 2px solid rgba(103, 232, 249, 0.9);
  outline-offset: 2px;
}

.blog-toolbar__hint {
  margin: 12px 0 0;
  font-size: 0.78rem;
  color: #7a8688;
}

.blog-empty {
  text-align: center;
  padding: 48px 24px;
  border: 1px dashed rgba(59, 73, 75, 0.85);
  border-radius: 18px;
  background: rgba(20, 21, 22, 0.65);
}

.blog-empty__title {
  margin: 0 0 10px;
  font-family: var(--rw-font-display);
  font-size: 1.35rem;
  color: #ecfeff;
}

.blog-empty__text {
  margin: 0;
  color: #b9cacb;
  line-height: 1.55;
  max-width: 46ch;
  margin-left: auto;
  margin-right: auto;
}

.blog-empty__text a {
  color: #67e8f9;
}

.blog-empty__meta {
  margin: 16px 0 0;
  font-size: 0.8rem;
  color: #6b7678;
}

.blog-no-matches {
  text-align: center;
  padding: 28px 16px;
  color: #9aa6a8;
}

.blog-no-matches__reset {
  margin-left: 6px;
  background: none;
  border: none;
  color: #67e8f9;
  text-decoration: underline;
  cursor: pointer;
  font: inherit;
}

.blog-card-wrap[hidden] {
  display: none !important;
}

.blog-post--locked {
  text-align: center;
  padding: 32px 20px 40px;
}

.blog-post__locked-lede {
  font-size: 1.1rem;
  color: #b9cacb;
  margin: 0 0 12px;
}

.blog-post__locked-date {
  color: #9ec5c8;
  margin: 0 0 20px;
}

.blog-post__locked-hint {
  margin: 0;
  color: #7a8688;
  font-size: 0.92rem;
}

.blog-post__locked-hint a {
  color: #67e8f9;
}

.blog-post__back {
  color: #67e8f9;
  text-decoration: none;
}

.blog-post__back:hover {
  text-decoration: underline;
}

.blog-post__prose a {
  color: #67e8f9;
  text-underline-offset: 3px;
}

.blog-post__prose a:hover {
  color: #a5f3fc;
}

.blog-post__prose strong {
  color: #f0fafa;
  font-weight: 600;
}

.blog-post__prose em {
  color: #c5d4d6;
}

.blog-post__prose hr {
  margin: 2rem 0 0;
  border: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(103, 232, 249, 0.35), transparent);
}

.blog-post__prose .table-wrap {
  margin-top: 1em;
  overflow-x: auto;
  border-radius: 12px;
  border: 1px solid rgba(59, 73, 75, 0.75);
}

.blog-post__prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.blog-post__prose th,
.blog-post__prose td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid rgba(59, 73, 75, 0.55);
}

.blog-post__prose th {
  background: rgba(0, 240, 255, 0.08);
  color: #c6ecef;
  font-weight: 600;
}

.blog-post__prose img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  margin-top: 1em;
  border: 1px solid rgba(59, 73, 75, 0.6);
}

.blog-post__prose > p:first-of-type {
  font-size: 1.07rem;
  color: #e2e8e8;
}

@media (max-width: 880px) {
  .blog-feature__inner {
    grid-template-columns: 1fr;
  }

  .blog-feature__decor {
    min-height: 120px;
  }

  .blog-card {
    grid-column: span 12;
  }
}
