*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  user-select: none;
}

:root {
  --bg: #0a0e0a;
  --bg-raised: #0f140f;
  --text: #8a9a8a;
  --text-bright: #c8dcc8;
  --accent: #33ff66;
  --accent-dim: #1a8033;
  --accent-dot: color-mix(in srgb, var(--accent) 50%, transparent);
  --border: #1a2e1a;
  --glow: rgba(51, 255, 102, 0.08);
}

html {
  font-size: 15px;
}

body {
  align-items: center;
  background-color: var(--bg);
  color: var(--text);
  display: flex;
  font-family: "IBM Plex Mono", "SF Mono", "Fira Code", ui-monospace, monospace;
  justify-content: center;
  line-height: 1.6;
  min-height: 100vh;
  padding: 1.5rem;
}

#dot-field {
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  position: fixed;
  z-index: 0;
}

.dot {
  background-color: var(--accent-dot);
  border-radius: 50%;
  height: 4px;
  position: absolute;
  transform: translate(-50%, -50%);
  width: 4px;
  opacity: 0.15;
  will-change: transform;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.15s ease;
}

a:hover {
  color: var(--text-bright);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.site {
  max-width: 640px;
  position: relative;
  width: 100%;
  z-index: 1;
}

.site-header {
  margin-bottom: 3.5rem;
}

.site-title-row {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.site-title {
  color: var(--text-bright);
  font-size: 1.5rem;
  font-weight: 400;
  letter-spacing: 0.04em;
}

.site-tagline {
  color: var(--text);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.02em;
}

.site-title .cursor {
  animation: blink 1.1s step-end infinite;
  color: var(--accent);
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

.section {
  margin-bottom: 3rem;
}

.section-details > summary {
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.section-details > summary::-webkit-details-marker {
  display: none;
}

.section-details[open] > summary {
  margin-bottom: 1rem;
}

.section-heading {
  color: var(--accent);
  font-size: 0.95rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  display: inline-block;
}

.section-heading:hover {
  color: var(--text-bright);
}

.section-heading .prompt {
  color: var(--accent-dim);
  display: inline-block;
  transition: transform 0.15s ease;
  width: 1ch;
}

.section-details[open] > summary.section-heading .prompt {
  transform: rotate(90deg);
}

.post-category {
  margin-top: 1rem;
  margin-bottom: 2rem;
  margin-left: 20px;
}

.post-list {
  list-style: none;
}

.post-list li {
  border-left: 1px solid var(--border);
  padding: 0.35rem 0 0.35rem 1rem;
  transition: border-color 0.15s ease;
}

.post-list li:hover {
  border-left-color: var(--accent-dim);
}

.post-list a {
  color: var(--text);
}

.post-list a:hover {
  color: var(--accent);
}

.post-date {
  color: var(--accent-dim);
  font-size: 0.8rem;
  margin-right: 0.75rem;
}

.game-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  list-style: none;
}

.game-card {
  border: 1px solid var(--border);
  display: grid;
  gap: 0.75rem;
  grid-template-columns: 160px 1fr;
  padding: 0.75rem;
  transition: border-color 0.15s ease;
}

.game-card:hover {
  border-color: var(--accent-dim);
}

.game-preview {
  aspect-ratio: 16 / 9;
  background-color: var(--bg-raised);
  border: 1px solid var(--border);
  display: block;
  object-fit: cover;
  width: 100%;
}

.game-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.game-title {
  color: var(--text-bright);
  font-size: 0.95rem;
  font-weight: 400;
}

.game-title a {
  color: inherit;
}

.game-title a:hover {
  color: var(--accent);
}

.game-year {
  color: var(--accent);
  font-weight: 500;
  margin-right: 0.5rem;
}

.game-meta {
  color: var(--accent-dim);
  font-size: 0.75rem;
  margin-top: 0.25rem;
}

@media (max-width: 480px) {
  body {
    padding: 1rem;
  }

  .game-card {
    grid-template-columns: 1fr;
  }

  .game-preview {
    max-width: 100%;
  }
}
