:root {
  --blog-bg: #f5f7fa;
  --blog-navy: #1e2024;
  --blog-muted: #5b6470;
  --blog-border: #dfe3e8;
  --blog-accent: #2ccbd4;
  --blog-accent-hover: #0c91ad;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "DM Sans", "Helvetica Neue", Arial, sans-serif;
  color: var(--blog-navy);
  background:
    radial-gradient(1020px circle at 4% 0%, rgba(44, 203, 212, 0.2), transparent 54%),
    linear-gradient(180deg, #ffffff 0%, var(--blog-bg) 100%);
}

.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;
}

main {
  padding: calc(var(--shared-header-height, 96px) + 30px) 24px 64px;
}

.blog-shell {
  width: min(1200px, 100%);
  margin: 0 auto;
}

.breadcrumbs {
  margin: 0 0 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: #596475;
  font-size: 0.92rem;
}

.breadcrumbs a {
  color: inherit;
  text-decoration: none;
}

.breadcrumbs a:hover,
.breadcrumbs a:focus-visible {
  color: #0f172a;
  text-decoration: underline;
}

.breadcrumb-separator {
  color: #8893a1;
}

.intro {
  margin-bottom: 28px;
}

.intro h1 {
  margin: 0;
  font-size: clamp(2rem, 4.8vw, 3.2rem);
  line-height: 1.1;
}

.intro h1 span {
  display: block;
}

.intro h1 .brand {
  margin-top: 8px;
  color: #5a6574;
  font-size: clamp(1.1rem, 2.2vw, 1.45rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.intro p {
  margin: 16px 0 0;
  max-width: 75ch;
  color: var(--blog-muted);
  line-height: 1.7;
}

.controls {
  margin-bottom: 24px;
  display: grid;
  gap: 14px;
}

.filter-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-chip {
  border: 1px solid #bdc6d3;
  background: #ffffff;
  color: #314052;
  min-height: 38px;
  padding: 0 14px;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  cursor: pointer;
}

.filter-chip:hover,
.filter-chip:focus-visible {
  border-color: #95a2b3;
  outline: none;
}

.filter-chip.is-active {
  border-color: var(--blog-accent);
  background: rgba(44, 203, 212, 0.13);
  color: #102831;
}

.search-field {
  display: flex;
  align-items: center;
  border: 1px solid #bdc6d3;
  background: #ffffff;
  min-height: 46px;
  padding: 0 12px;
  max-width: 460px;
}

.search-field svg {
  width: 18px;
  height: 18px;
  color: #6d7888;
  flex: 0 0 auto;
}

.search-field input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  padding: 0 10px;
  color: #243143;
  font-size: 0.95rem;
}

.search-field input:focus {
  outline: none;
}

.featured-rail {
  margin-bottom: 22px;
}

.section-label {
  margin: 0 0 12px;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #5c6778;
  font-weight: 800;
}

.post-card {
  border: 1px solid var(--blog-border);
  background: #ffffff;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.08);
  overflow: hidden;
}

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

.featured-post {
  display: grid;
  grid-template-columns: minmax(240px, 36%) minmax(0, 1fr);
}

.post-image {
  display: block;
  overflow: hidden;
}

.post-image img {
  width: 100%;
  height: 100%;
  min-height: 220px;
  object-fit: cover;
  transition: transform 220ms ease;
}

.post-card:hover .post-image img,
.post-card:focus-within .post-image img {
  transform: scale(1.03);
}

.post-body {
  padding: 22px;
}

.post-kicker {
  margin: 0 0 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #4f5b6d;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
}

.post-kicker .dot {
  color: #8b97a8;
}

.post-title {
  margin: 0;
  font-size: clamp(1.35rem, 2.3vw, 1.8rem);
  line-height: 1.25;
}

.post-title a {
  color: #0f172a;
  text-decoration: none;
}

.post-title a:hover,
.post-title a:focus-visible {
  text-decoration: underline;
}

.post-excerpt {
  margin: 12px 0 0;
  color: var(--blog-muted);
  line-height: 1.7;
}

.post-byline {
  margin: 14px 0 0;
  color: #495669;
  font-size: 0.92rem;
}

.post-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.post-grid .post-body {
  padding: 18px;
}

.post-grid .post-title {
  font-size: 1.22rem;
}

.empty-state {
  margin: 20px 0 0;
  padding: 18px;
  border: 1px solid var(--blog-border);
  background: #ffffff;
  color: #4f5b6d;
}

.cta-banner {
  margin-top: 36px;
  border: 1px solid #0e1a2c;
  background: linear-gradient(120deg, #0f172a 0%, #1f2937 100%);
  color: #ffffff;
  padding: 24px;
  display: grid;
  gap: 18px;
}

.cta-banner h2 {
  margin: 0;
  font-size: clamp(1.4rem, 2.2vw, 1.9rem);
  line-height: 1.2;
}

.cta-banner p {
  margin: 10px 0 0;
  color: rgba(226, 234, 244, 0.9);
  max-width: 68ch;
  line-height: 1.7;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.brand-btn {
  display: inline-flex;
  align-items: stretch;
  border: 2px solid var(--blog-accent);
  background: var(--blog-accent);
  color: #ffffff;
  text-decoration: none;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  min-height: 48px;
}

.brand-btn span {
  display: inline-flex;
  align-items: center;
}

.brand-btn .text {
  padding: 0 16px;
}

.brand-btn .arrow {
  justify-content: center;
  width: 40px;
  background: #000000;
}

.brand-btn svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}

.brand-btn:hover,
.brand-btn:focus-visible {
  background: var(--blog-accent-hover);
  border-color: var(--blog-accent-hover);
  outline: none;
}

.brand-btn.secondary {
  background: transparent;
  border-color: #ffffff;
}

.brand-btn.secondary .arrow {
  background: #ffffff;
  color: #0f172a;
}

.brand-btn.secondary:hover,
.brand-btn.secondary:focus-visible {
  background: rgba(255, 255, 255, 0.1);
  border-color: #ffffff;
}

@media (max-width: 1050px) {
  .post-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 780px) {
  main {
    padding-left: 16px;
    padding-right: 16px;
  }

  .featured-post {
    grid-template-columns: 1fr;
  }

  .post-image img {
    min-height: 200px;
  }

  .post-grid {
    grid-template-columns: 1fr;
  }

  .cta-actions {
    flex-direction: column;
  }

  .brand-btn {
    width: 100%;
    justify-content: space-between;
  }
}
