:root {
  --devlog-bg: #0a100c;
  --devlog-bg-deep: #050806;
  --devlog-glow: #40ff8a;
  --devlog-amber: #ffb84d;
  --devlog-ink: #baffd4;
  --devlog-muted: rgba(186, 255, 212, 0.7);
  --ghost-accent-color: #4bff95;
  --font-sans: "VT323", "Lucida Console", monospace;
  --font-serif: "IBM Plex Mono", "Courier New", monospace;
  --font-mono: "IBM Plex Mono", "Courier New", monospace;
  --color-darkgrey: #baffd4;
  --color-midgrey: rgba(186, 255, 212, 0.7);
  --color-secondary-text: rgba(186, 255, 212, 0.6);
  --color-lightgrey: rgba(186, 255, 212, 0.15);
  --color-border: rgba(64, 255, 138, 0.2);
  --color-wash: rgba(10, 16, 12, 0.6);
}

body {
  background:
    radial-gradient(800px 600px at 12% 0%, rgba(64, 255, 138, 0.12), transparent 60%),
    radial-gradient(600px 400px at 90% 10%, rgba(255, 184, 77, 0.12), transparent 60%),
    linear-gradient(180deg, var(--devlog-bg) 0%, var(--devlog-bg-deep) 100%);
  color: var(--devlog-ink);
  position: relative;
  text-shadow: 0 0 12px rgba(64, 255, 138, 0.2);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(transparent 96%, rgba(64, 255, 138, 0.12) 97%),
    linear-gradient(90deg, transparent 97%, rgba(64, 255, 138, 0.12) 98%);
  background-size: 28px 28px;
  opacity: 0.2;
  z-index: 0;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(5, 8, 6, 0.7) 0%, rgba(5, 8, 6, 0) 20%, rgba(5, 8, 6, 0.6) 100%),
    repeating-linear-gradient(0deg, rgba(64, 255, 138, 0.06) 0px, rgba(64, 255, 138, 0.06) 1px, rgba(0, 0, 0, 0) 2px, rgba(0, 0, 0, 0) 4px);
  mix-blend-mode: screen;
  opacity: 0.3;
  z-index: 0;
}

.viewport {
  position: relative;
  z-index: 1;
}

a {
  color: var(--devlog-amber);
}

a:hover {
  color: #ffd08a;
}

.gh-head {
  background: rgba(5, 8, 6, 0.9);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(64, 255, 138, 0.25);
}

.has-cover .gh-head {
  background: rgba(5, 8, 6, 0.3);
  border-bottom: 1px solid rgba(64, 255, 138, 0.3);
}

.gh-head-logo {
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.gh-head-menu .nav a {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 1.5rem;
}

.gh-head-button {
  background: rgba(64, 255, 138, 0.18);
  border: 1px solid rgba(64, 255, 138, 0.5);
  color: var(--devlog-ink);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  box-shadow: 0 0 18px rgba(64, 255, 138, 0.25);
}

.site-header {
  background: linear-gradient(180deg, rgba(8, 18, 12, 0.95), rgba(5, 8, 6, 0.9));
}

.site-header-content {
  text-shadow: 0 0 18px rgba(64, 255, 138, 0.35);
}

.site-title,
.site-description {
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.post-card {
  padding: 18px;
  border: 1px solid rgba(64, 255, 138, 0.25);
  border-radius: 14px;
  background: rgba(5, 8, 6, 0.85);
  box-shadow: 0 0 28px rgba(64, 255, 138, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  animation: devlog-flicker 0.8s ease both;
}

.post-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 0 32px rgba(64, 255, 138, 0.18);
}

.post-card-title {
  font-size: 2.3rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.post-card-tags {
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.post-card-image-link,
.post-full-image {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(64, 255, 138, 0.3);
}

.post-card-image {
  filter: saturate(0.75) contrast(1.05);
}

.article-title {
  font-size: clamp(3rem, 4vw, 4.6rem);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.gh-content p,
.gh-content li {
  font-size: 1.8rem;
}

.kg-callout-card-accent {
  border-radius: 14px;
}

.site-footer {
  background: #040705;
  border-top: 1px solid rgba(64, 255, 138, 0.25);
}

.site-footer .inner {
  color: rgba(186, 255, 212, 0.7);
}

.footer-cta-button {
  background: rgba(64, 255, 138, 0.08);
  border: 1px solid rgba(64, 255, 138, 0.35);
}

.footer-cta-button span {
  background: rgba(64, 255, 138, 0.18);
  color: var(--devlog-ink);
}

@keyframes devlog-flicker {
  0% {
    opacity: 0;
    transform: translateY(8px);
    filter: brightness(1.15);
  }
  50% {
    filter: brightness(0.95);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

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

  .gh-head-menu .nav a {
    font-size: 2rem;
  }
}

html.dark-mode body {
  background:
    radial-gradient(700px 500px at 12% 0%, rgba(64, 255, 138, 0.1), transparent 60%),
    radial-gradient(500px 400px at 88% 0%, rgba(255, 184, 77, 0.08), transparent 60%),
    linear-gradient(180deg, #050806 0%, #060a07 100%);
}

html.dark-mode .gh-head {
  background: rgba(5, 8, 6, 0.92);
  border-bottom-color: rgba(64, 255, 138, 0.3);
}

html.dark-mode .post-card {
  background: rgba(5, 8, 6, 0.92);
  border-color: rgba(64, 255, 138, 0.3);
  box-shadow: 0 0 30px rgba(64, 255, 138, 0.12);
}
