@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600&display=swap');
@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono&display=swap');

html {
  scroll-behavior: smooth;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'IBM Plex Mono', monospace;
  background-color: #141414;
  color: #e0e0e0;
  line-height: 1.7;
}

strong {
  color: #ececec;
  font-weight: 600;
}

header.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #14141477;
  padding: 1rem 2rem;
  position: sticky;
  height: 5rem;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(4px);
}

.navbar nav a {
  margin-left: 1.5rem;
  color: #bbbbbb;
  text-decoration: none;
  position: relative;
}

.navbar nav a::after {
  content: '';
  display: block;
  height: 2px;
  background: #00bcd4;
  width: 0;
  transition: width 0.3s;
  position: absolute;
  bottom: -4px;
  left: 0;
}

.navbar nav a:hover::after {
  width: 100%;
}

.container {
  max-width: 960px;
  margin: 2rem auto;
  padding: 0 1rem;
  align-items: center;
  justify-content: center;
}

.logo-wrapper {
  max-width: 960px;
  margin: 0 auto;
  position: relative;
  text-align: center;
}

.main-banner-img {
  width: 100%;
  height: auto;
  object-fit: cover;
  object-position: center;
  max-height: 100vh;
  display: block;
}

#dustCanvas {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
}

.text-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: rgb(146, 146, 146);
  font-size: 1.5rem;
  text-align: center;
}

.text-bottom-left {
  position: absolute;
  bottom: 100px;
  left: 10px;
  color: rgb(146, 146, 146);
  font-size: 1rem;
}

.posts-grid {
  display: grid;
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto;
  align-items: center;
}

.post-card {
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: row;
  font-family: 'Inter', sans-serif;
  padding-bottom: 2rem;
  border-bottom: 1px solid #333;
}

.post-card:hover {
  transform: translateY(-5px);
}

.post-thumb {
  width: 40%;
  height: 300px;
  background-size: cover;
  background-position: center;
}

.post-content {
  padding: 1rem;
  width: 60%;
}

.post-body {
  flex: 1;
  color: #999;
}

.post-content-header {
  display: flex;
  align-items: baseline;
  gap: 3rem;
}

.post-title {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
  color: #ccc;
}

.post-meta {
  font-size: 0.85rem;
  color: #888;
  margin-bottom: 0.3rem;
  font-family: 'IBM Plex Mono', monospace;
}

/* -------------------
   ✅ Mobile styles
--------------------- */
@media (max-width: 768px) {
  header.navbar {
    flex-direction: column;
    align-items: flex-start;
    height: auto;
    padding: 1rem;
  }

  .navbar nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
    margin-top: 1rem;
  }

  .post-card {
    flex-direction: column;
  }

  .post-thumb {
    width: 100%;
    height: 200px;
  }

  .post-content {
    width: 100%;
  }

  .post-content-header {
    flex-direction: column;
    gap: 0.5rem;
  }

  .text-center {
    font-size: 0.7rem;
    top: 65%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 0 1rem;
  }

  .text-bottom-left {
    font-size: 0.9rem;
    bottom: 40px;
    left: 10px;
  }

  .logo-wrapper {
    transform: none !important;
    padding: 0 1rem;
  }
}
