@font-face {
  font-family: 'Monocraft';
  src: url('../media/Monocraft-otf/Monocraft.otf') format('opentype');
}

* {
  box-sizing: border-box;
  font-family: 'Monocraft', monospace;
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--base);
  color: var(--text);
}

main {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 32px 16px 48px;
}

.terminal {
  background: var(--mantle);
  border-radius: 8px;
  padding: 12px 14px;
  box-shadow: 0 0 0 1px var(--surface0);
}

.terminal p {
  margin: 4px 0;
  line-height: 1.4;
}

.highlight {
  color: var(--pink);
}

.highlight2 {
  color: var(--blue);
}

.muted {
  color: var(--overlay1);
}

.header {
  width: 90%;
  max-width: 700px;
  margin-bottom: 24px;
}

.header p {
  font-size: 0.8rem;
}

#kits-list {
  color: var(--subtext0);
  font-size: 0.75rem;
  margin-top: 4px;
  line-height: 1.8;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 10px;
  width: 90%;
  max-width: 1100px;
  margin-bottom: 28px;
}

.kit-card {
  background: var(--mantle);
  border-radius: 8px;
  box-shadow: 0 0 0 1px var(--surface0);
  overflow: hidden;
  transition: box-shadow 0.15s;
}

.kit-card:hover {
  box-shadow: 0 0 0 1px var(--mauve);
}

.kit-card img {
  width: 100%;
  display: block;
  image-rendering: pixelated;
  background: var(--crust);
}

.kit-alias {
  padding: 6px 8px;
  font-size: 0.72rem;
  color: var(--mauve);
}

.woof {
  width: 90%;
  max-width: 700px;
}

button {
  display: block;
  margin: 10px auto 0;
  padding: 6px 18px;
  background: var(--surface0);
  border: none;
  border-radius: 4px;
  color: var(--text);
  cursor: pointer;
  font-family: 'Monocraft', monospace;
  font-size: 0.8rem;
  transition: background 0.15s;
}

button:hover {
  background: var(--surface1);
}

#lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  z-index: 999;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 12px;
  cursor: pointer;
}

#lightbox-img {
  max-width: 90vw;
  max-height: 80vh;
  image-rendering: pixelated;
  border-radius: 6px;
  box-shadow: 0 0 0 2px var(--mauve);
}

#lightbox-label {
  color: var(--mauve);
  font-size: 1rem;
}

@media (max-width: 600px) {
  .header, .gallery, .woof {
    width: 95%;
  }

  .gallery {
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  }
}

.nav {
  width: 90%;
  max-width: 700px;
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 18px;
  font-size: 0.78rem;
}

.nav a {
  color: var(--subtext0);
  text-decoration: none;
}

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

.nav a.here {
  color: var(--mauve);
}

.nav a.here::before {
  content: '> ';
  color: var(--pink);
}

.note { font-size: 0.7rem; }
.note-s { font-size: 0.65rem; }
.note-l { font-size: 0.75rem; }
.link { color: var(--blue); }
