/* Reset */
:root {
  --main: #00ff41;
  --highlight: #ff6b00;
  --main-dim: rgba(255, 107, 0, 0.1);
  --main-glow: rgba(255, 107, 0, 0.3);
  --main-glow-weak: rgba(255, 107, 0, 0.05);
  --highlight-dim: rgba(0, 255, 65, 0.15);
  --highlight-glow: rgba(0, 255, 65, 0.3);
  --highlight-glow-weak: rgba(0, 255, 65, 0.05);
  --bg: #0a0a0a;
  --bg-card: #0d0d0d;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  max-width: 100%;
}

body {
  font-family: 'Courier New', Courier, monospace;
  background: var(--bg);
  color: var(--main);
  line-height: 1.6;
  min-height: 100vh;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

img {
  max-width: 100%;
  height: auto;
}

/* Banner */
.banner {
  background: var(--bg);
  padding: 30px 0 10px;
  text-align: center;
  border-bottom: 1px solid var(--main);
  box-shadow: 0 0 20px var(--main-glow-weak);
}

.banner h1 {
  font-size: 2.5rem;
  font-weight: 300;
  letter-spacing: 6px;
  text-transform: uppercase;
  color: var(--main);
  text-shadow: 0 0 30px var(--main-glow);
  font-family: 'Courier New', Courier, monospace;
}

/* Navigation */
.navbar {
  background: var(--bg);
  padding: 12px 0;
  border-bottom: 1px solid var(--main);
  box-shadow: 0 0 20px var(--main-glow-weak);
}

.navbar ul {
  list-style: none;
  display: flex;
  gap: 24px;
  justify-content: center;
  flex-wrap: wrap;
}

.navbar a {
  color: var(--main);
  text-decoration: none;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 4px 0;
  transition: all 0.3s;
  border-bottom: 1px solid transparent;
  font-family: 'Courier New', Courier, monospace;
}

.navbar a:hover {
  color: var(--highlight);
  border-bottom-color: var(--highlight);
  text-shadow: 0 0 20px var(--highlight-glow);
}

/* Grid Layout - 3 columns on desktop */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding: 30px 0;
}

/* Cards */
/* Card link - makes entire card clickable */
.card-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

/* Keep existing card styles as they are */
.card {
  background: var(--bg-card);
  border: 1px solid var(--main);
  box-shadow: 0 0 15px var(--main-glow-weak);
  transition: all 0.3s;
  overflow: hidden;
}

.card:hover {
  border-color: var(--highlight);
  box-shadow: 0 0 30px var(--highlight-glow-weak);
}

.card:hover h2 a {
  color: var(--highlight);
  text-shadow: 0 0 20px var(--highlight-glow-weak);
}

.card img {
  width: 100%;
  height: auto;
  max-height: 250px;
  object-fit: contain;
  background: var(--bg);
  display: block;
}

.card .content {
  padding: 16px 18px;
}

.card h2 {
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
  line-height: 1.4;
}

.card h2 a {
  color: var(--main);
  text-decoration: none;
  transition: color 0.3s;
}

.card .meta {
  display: flex;
  flex-direction: column;
  font-size: 0.7rem;
  color: var(--main);
  border-top: 1px solid var(--highlight-dim);
  padding-top: 10px;
  letter-spacing: 0.5px;
}

.card .byline {
  opacity: 0.7;
}

.card .date {
  opacity: 0.7;
  font-size: 0.65rem; /* Slightly smaller */
  margin-top: 2px; /* Small gap between byline and date */
}

/* Article content styles */
.article-content {
  padding: 40px 0;
  max-width: 720px;
  margin: 0 auto;
  overflow: hidden;
  word-wrap: break-word;
  color: var(--main);
}

.article-content h1 {
  font-size: 2rem;
  font-weight: 300;
  margin-bottom: 10px;
  text-shadow: 0 0 30px var(--main-glow);
}

.article-content h2 {
  font-size: 1.5rem;
  font-weight: 300;
  margin: 35px 0 15px;
  padding-left: 16px;
  border-left: 3px solid var(--highlight);
  letter-spacing: 1px;
  text-shadow: 0 0 20px var(--main-glow-weak);
}

.article-content .meta {
  margin-bottom: 30px;
  border-bottom: 1px solid var(--main-dim);
  padding-bottom: 20px;
}

.article-content p {
  margin-bottom: 20px;
  max-width: 720px;
}

.article-content ol {
  list-style-type: disc;
  padding-left: 24px;
  margin: 20px 0;
}

.article-content li {
  margin-bottom: 8px;
}

.article-content a {
  color: var(--highlight);
}


.article-content img {
  width: 100%;
  max-width: 720px;
  height: auto;
  border: 1px solid var(--main);
  margin-bottom: 30px;
  box-shadow: 0 0 30px var(--main-glow-weak);
  display: block;
}

/* Image with caption */
.article-content figure {
  margin: 0 0 30px 0;
  max-width: 720px;
}

.article-content figure img {
  margin-bottom: 8px;
}

.article-content figcaption {
  color: var(--main);
  font-size: 0.8rem;
  opacity: 0.7;
  font-style: italic;
  text-align: center;
}

/* Clearfix for floated images */
.article-content .clearfix::after {
  content: "";
  display: table;
  clear: both;
}

/* Responsive - Mobile */
@media (max-width: 768px) {
  .grid {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 20px 0;
  }

  .container {
    padding: 0 16px;
  }

  .banner h1 {
    font-size: 1.8rem;
    letter-spacing: 4px;
  }

  .navbar ul {
    gap: 14px;
  }

  .navbar a {
    font-size: 0.7rem;
    letter-spacing: 1px;
  }

  .card img {
    height: 160px;
  }

  .card .content {
    padding: 14px 16px;
  }

  .card h2 {
    font-size: 0.95rem;
  }
}

/* Tablet - 2 columns */
@media (min-width: 769px) and (max-width: 1024px) {
  .grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
  }
}

/* Small tweaks for glow effects */
::-webkit-scrollbar {
  width: 8px;
  background: var(--bg);
}

::-webkit-scrollbar-thumb {
  background: var(--main);
  box-shadow: 0 0 20px var(--main-glow);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--highlight);
  box-shadow: 0 0 30px var(--highlight-glow);
}

/* Selection color */
::selection {
  background: var(--highlight);
  color: var(--bg);
}

/* Glow effect for links on focus */
a:focus {
  outline: none;
  text-shadow: 0 0 30px var(--main-glow);
}