:root {
  --bg: #021520;
  --bg2: #031d2a;
  --lime: #c7cf00;
  --white: #ffffff;
  --muted: rgba(255, 255, 255, 0.58);
  --border: rgba(199, 207, 0, 0.14);
}

*, *::before, *::after { box-sizing: border-box; }

body {
  background: var(--bg);
  color: var(--white);
  font-family: 'DM Sans', sans-serif;
  overflow-x: hidden;
}

.wrapper {
  position: relative;
  z-index: 1;
  max-width: 1260px;
  margin: 0 auto;
  padding: 0 48px;
}

.blog-hero {
  padding: 96px 48px 74px;
  border-bottom: 1px solid var(--border);
}

.blog-hero-compact {
  min-height: 52vh;
}

.page-hero-badge,
.section-kicker {
  font-family: 'Space Mono', monospace;
  font-size: 0.6rem;
  letter-spacing: 0.42em;
  color: var(--lime);
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.page-hero-badge::before,
.section-kicker::before {
  content: '';
  width: 28px;
  height: 1px;
  background: var(--lime);
  flex-shrink: 0;
}

.page-hero-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(3.3rem, 7vw, 6.7rem);
  line-height: 0.92;
  letter-spacing: 0.03em;
}

.blog-article-title {
  max-width: 980px;
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2.3rem, 4.4vw, 4.25rem);
  line-height: 0.98;
  letter-spacing: 0.02em;
}

.t-lime { color: var(--lime); }

.page-hero-desc,
.blog-article-lede {
  max-width: 760px;
  margin-top: 24px;
  color: var(--muted);
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.82;
}

.blog-list-section {
  padding-top: 72px;
  padding-bottom: 104px;
}

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

.blog-card {
  min-height: 100%;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.025);
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.blog-card:hover {
  transform: translateY(-4px);
  border-color: rgba(199, 207, 0, 0.42);
  background: rgba(255, 255, 255, 0.045);
}

.blog-card-media {
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, rgba(199, 207, 0, 0.18), rgba(255, 255, 255, 0.035));
  color: var(--lime);
  text-decoration: none;
  overflow: hidden;
}

.blog-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.blog-card:hover .blog-card-media img {
  transform: scale(1.04);
}

.blog-card-mark {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 4rem;
  letter-spacing: 0.12em;
}

.blog-card-body {
  padding: 24px;
}

.blog-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
  font-family: 'Space Mono', monospace;
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.blog-meta span::before {
  content: '/';
  margin-right: 10px;
  color: rgba(199, 207, 0, 0.55);
}

.blog-card-title {
  margin: 0;
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(1.65rem, 2.4vw, 2.25rem);
  line-height: 1;
  letter-spacing: 0.03em;
}

.blog-card-title a {
  color: var(--white);
  text-decoration: none;
}

.blog-card-title a:hover {
  color: var(--lime);
}

.blog-card-excerpt {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.72;
}

.blog-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.blog-tags span {
  border: 1px solid rgba(199, 207, 0, 0.2);
  color: rgba(255, 255, 255, 0.68);
  padding: 5px 9px;
  font-family: 'Space Mono', monospace;
  font-size: 0.58rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

body[data-theme='light'] .blog-tags span,
body[data-theme='arctic-light'] .blog-tags span,
body[data-theme='sand-blue'] .blog-tags span,
body[data-theme='ice-indigo'] .blog-tags span {
  border-color: rgba(95, 103, 0, 0.32);
  background: rgba(199, 207, 0, 0.1);
  color: #263000;
}

.blog-read-more,
.blog-back,
.blog-back-link {
  display: inline-flex;
  align-items: center;
  margin-top: 24px;
  color: var(--lime);
  font-family: 'Space Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
}

.blog-read-more::after,
.blog-back::before {
  color: currentColor;
}

.blog-read-more::after {
  content: '->';
  margin-left: 10px;
}

.blog-back::before {
  content: '<-';
  margin-right: 10px;
}

.blog-empty {
  border: 1px solid var(--border);
  padding: 44px;
  background: rgba(255, 255, 255, 0.025);
}

.blog-empty h2 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2.3rem;
  letter-spacing: 0.03em;
  margin: 0 0 10px;
}

.blog-empty p {
  color: var(--muted);
  margin: 0;
}

.blog-article {
  padding-top: 58px;
  padding-bottom: 86px;
}

.blog-article-header {
  max-width: 1040px;
}

.blog-article-tags {
  margin-top: 26px;
}

.blog-article-image {
  margin: 34px 0 0;
  border: 1px solid var(--border);
  overflow: hidden;
  aspect-ratio: 21 / 8;
  background: rgba(255, 255, 255, 0.035);
}

.blog-article-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.blog-content {
  max-width: 1120px;
  margin-top: 40px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.98rem;
  line-height: 1.68;
  column-count: 2;
  column-gap: 54px;
  column-rule: 1px solid rgba(199, 207, 0, 0.12);
}

.blog-content > * + * {
  margin-top: 15px;
}

.blog-content h2,
.blog-content h3,
.blog-content h4 {
  break-after: avoid;
  margin-top: 28px;
  color: var(--white);
  font-family: 'Bebas Neue', sans-serif;
  letter-spacing: 0.03em;
  line-height: 1.05;
}

.blog-content h2 {
  padding-top: 10px;
  border-top: 1px solid rgba(199, 207, 0, 0.2);
  color: var(--lime);
  font-size: 2rem;
}
.blog-content h3 { font-size: 1.45rem; }
.blog-content h4 { font-size: 1.45rem; }

.blog-content p,
.blog-content ul,
.blog-content ol,
.blog-content blockquote,
.blog-content figure,
.blog-content table {
  break-inside: avoid;
}

.blog-content p {
  margin-bottom: 0;
}

.blog-content a {
  color: var(--lime);
}

.blog-content ul,
.blog-content ol {
  padding: 14px 18px 14px 32px;
  border: 1px solid rgba(199, 207, 0, 0.14);
  background: rgba(199, 207, 0, 0.035);
}

.blog-content li + li {
  margin-top: 8px;
}

.blog-content blockquote {
  border-left: 3px solid var(--lime);
  padding: 10px 0 10px 22px;
  color: var(--white);
  background: rgba(199, 207, 0, 0.035);
}

.blog-content img {
  max-width: 100%;
  height: auto;
  border: 1px solid var(--border);
}

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

  .blog-content {
    column-count: 1;
    max-width: 860px;
  }
}

@media (max-width: 720px) {
  .wrapper,
  .blog-hero {
    padding-left: 22px;
    padding-right: 22px;
  }

  .blog-hero {
    padding-top: 72px;
    padding-bottom: 56px;
  }

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

  .blog-card-body,
  .blog-empty {
    padding: 22px;
  }

  .blog-article {
    padding-top: 56px;
    padding-bottom: 78px;
  }

  .blog-article-image {
    aspect-ratio: 4 / 3;
  }
}
