/* ============================================================ VARIABLES */
:root {
  --bg: #131313;
  --white: #fff;
  --lime: #b2f700;
  --lime-dim: #9cd900;
  --on-lime: #131f00;

  --surface: #131313;
  --surface-low: #1b1b1c;
  --surface-lowest: #0e0e0e;
  --surface-high: #2a2a2a;
  --surface-highest: #353535;

  --g1: #0e0e0e;
  --g2: #111;
  --g3: #1a1a1a;
  --gb: #2a2a2a;
  --gt: #888;

  --fd: 'Space Grotesk', sans-serif;
  --fb: 'Inter', sans-serif;
  --nh: 72px;
}

/* ============================================================ RESET */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: auto;
  overflow-x: hidden;
  width: 100%;
}

body {
  background: var(--bg);
  color: var(--white);
  font-family: var(--fb);
  font-weight: 400;
  overflow-x: hidden;
  width: 100%;
  position: relative;
  line-height: 1.5;
}

img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; transition: color .2s; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ============================================================ BLOG COMMON */
.section-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 48px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: .38em;
  text-transform: uppercase;
  color: var(--lime);
  margin-bottom: 20px;
}

.eyebrow::before {
  content: '';
  display: block;
  width: 28px;
  height: 1px;
  background: var(--lime);
  flex-shrink: 0;
}

.section-title {
  font-family: var(--fd);
  font-size: clamp(38px, 4.8vw, 68px);
  font-weight: 900;
  line-height: 1.0;
  letter-spacing: -.01em;
  text-transform: uppercase;
  margin-bottom: 2rem;
}

/* ============================================================ BLOG GRID */
.blog-hero {
  padding-top: calc(var(--nh) + 60px);
  padding-bottom: 60px;
  text-align: center;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 2px;
  background: var(--surface);
  margin-bottom: 100px;
}

.post-card {
  background: var(--surface-lowest);
  padding: 40px;
  transition: background .3s;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.post-card:hover {
  background: var(--surface-low);
}

.post-card.has-thumb {
  padding: 0;
}

.post-card-thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  display: block;
}

.post-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s ease;
}

.post-card:hover .post-card-thumb img {
  transform: scale(1.04);
}

.post-card-body {
  padding: 28px 40px 40px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.post-card:not(.has-thumb) .post-card-body {
  padding: 40px;
}

.post-card-cat {
  font-family: var(--fd);
  font-size: 11px;
  font-weight: 700;
  color: var(--lime);
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: 16px;
}

.post-card-title {
  font-family: var(--fd);
  font-size: 24px;
  font-weight: 800;
  text-transform: uppercase;
  line-height: 1.1;
  margin-bottom: 16px;
}

.post-card-excerpt {
  font-size: 14px;
  color: var(--gt);
  margin-bottom: 24px;
  flex-grow: 1;
}

.post-card-meta {
  font-size: 12px;
  color: var(--gt);
  text-transform: uppercase;
  letter-spacing: .05em;
}

/* ============================================================ ARTICLE VIEW */
.article-container {
  padding-top: calc(var(--nh) + 60px);
  max-width: 800px;
  margin: 0 auto 100px;
}

.article-header {
  margin-bottom: 48px;
}

.article-title {
  font-family: var(--fd);
  font-size: clamp(32px, 5vw, 64px);
  font-weight: 900;
  text-transform: uppercase;
  line-height: 1;
  margin-bottom: 24px;
}

.article-meta {
  color: var(--gt);
  font-size: 14px;
  margin-bottom: 40px;
}

.article-featured-image {
  margin-bottom: 48px;
  overflow: hidden;
}

.article-featured-image img {
  width: 100%;
  height: auto;
  display: block;
}

.article-content {
  font-size: 18px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.9);
}

.article-content h2 {
  font-family: var(--fd);
  font-size: 32px;
  margin: 48px 0 24px;
  text-transform: uppercase;
  color: var(--white);
}

.article-content h3 {
  font-family: var(--fd);
  font-size: 24px;
  margin: 32px 0 16px;
  text-transform: uppercase;
  color: var(--lime);
}

.article-content p {
  margin-bottom: 24px;
}

.article-content ul, .article-content ol {
  margin-bottom: 24px;
  padding-left: 20px;
}

.article-content li {
  margin-bottom: 12px;
}

.article-content strong {
  color: var(--lime);
}

.article-content a {
  color: var(--lime);
  text-decoration: underline;
}

/* ============================================================ UTILS */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--lime);
  font-family: var(--fd);
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 32px;
}

/* ============================================================ NAV */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 999;
  height: var(--nh);
  padding: 0 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background .4s;
}

#navbar.scrolled {
  background: rgba(19, 19, 19, .88);
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
}

.nav-logo {
  height: 26px;
  width: auto;
}

.nav-links {
  display: flex;
  gap: 36px;
  list-style: none;
}

.nav-links a {
  font-size: 12px;
  font-weight: 400;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--gt);
  transition: color .2s;
}

.nav-links a:hover {
  color: var(--white);
}

.nav-cta {
  font-family: var(--fd);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--on-lime);
  background: linear-gradient(135deg, var(--lime) 0%, var(--lime-dim) 100%);
  box-shadow: 0px 0px 16px rgba(178, 247, 0, 0.25);
  padding: 10px 26px;
  display: inline-block;
  transition: background .15s ease-out, color .15s ease-out, box-shadow .15s ease-out;
}

.nav-cta:hover {
  background: #ffffff;
  color: #000000;
  box-shadow: none;
}

.nav-ham {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}

.nav-ham span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: all .35s;
  transform-origin: center;
}

.nav-ham.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-ham.open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.nav-ham.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ============================================================ FOOTER */
footer {
  background: var(--surface-lowest);
  padding: 72px 48px 40px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 72px;
}

.footer-logo-img {
  height: 52px;
  width: auto;
  margin-bottom: 22px;
}

.footer-tagline {
  font-size: 14px;
  font-weight: 300;
  color: var(--gt);
  line-height: 1.7;
  max-width: 260px;
}

.footer-col-title {
  font-family: var(--fd);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 22px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  font-size: 14px;
  font-weight: 300;
  color: var(--gt);
  transition: color .2s;
}

.footer-links a:hover {
  color: var(--lime);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 32px;
  margin-top: 32px;
  background: var(--surface-lowest);
  border-top: 1px solid var(--surface-high);
}

.footer-copy,
.footer-credit {
  font-size: 12px;
  font-weight: 300;
  color: rgba(255, 255, 255, .22);
}

.footer-credit span {
  color: var(--lime);
}

/* ============================================================ MOBILE NAV OVERLAY */
#mobileNav {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 998;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  transform: translateY(-100%);
  transition: transform .6s cubic-bezier(.76, 0, .24, 1);
}

#mobileNav.open {
  transform: translateY(0);
}

#mobileNav a {
  font-family: var(--fd);
  font-size: clamp(36px, 8vw, 56px);
  font-weight: 900;
  text-transform: uppercase;
  color: var(--white);
  transition: color .2s;
}

#mobileNav a:hover {
  color: var(--lime);
}

/* ============================================================ RESPONSIVE BLOG */
@media (max-width: 1100px) {
  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
}

@media (max-width: 768px) {
  :root {
    --nh: 64px;
  }
  
  #navbar {
    padding: 0 24px;
  }
  
  .nav-links,
  .nav-cta {
    display: none;
  }
  
  .nav-ham {
    display: flex;
  }
  
  .blog-hero {
    padding-top: calc(var(--nh) + 40px);
    padding-bottom: 40px;
  }
  
  .section-inner {
    padding: 0 24px;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .post-card {
    padding: 30px;
  }

  .post-card-body {
    padding: 20px 30px 30px;
  }

  .post-card:not(.has-thumb) .post-card-body {
    padding: 30px;
  }
  
  .blog-grid {
    grid-template-columns: 1fr;
  }
}
