:root {
  --bg: #000000;
  --text: #ffffff;
  --muted: #999999;
  --accent: #ffffff;
}

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

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: 'Georgia', serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

header {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 15vh;
  width: 100%;
}

h1 {
  font-size: clamp(3rem, 8vw, 7rem);
  letter-spacing: 0.25em;
  font-weight: 400;
  text-transform: uppercase;
  color: var(--text);
  text-align: center;
}

nav {
  display: flex;
  gap: 3rem;
  margin-top: 2.5rem;
}

nav a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  transition: color 0.2s ease;
}

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

nav a.active {
  color: var(--text);
  cursor: default;
  pointer-events: none;
}

.instagram-link {
  margin-top: 1.5rem;
  text-decoration: underline;
  font-style: italic;
  color: var(--muted);
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  transition: color 0.2s ease;
}

.instagram-link:hover {
  color: var(--text);
}

main {
  flex: 1;
  width: 100%;
  max-width: 1100px;
  padding-top: 4rem;
  display: flex;
  flex-direction: column;
}

.game {
  display: flex;
  flex-direction: column;
}

.game-bg {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.game-body {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  gap: 2rem;
  padding: 2rem 1.5rem;
}

.game-info {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0.4) 60%, transparent);
}

.game-cover {
  display: block;
  width: 100%;
  height: auto;
  margin-bottom: 1rem;
  object-fit: contain;
}

.game-info h2 {
  font-size: 1.4rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text);
}

.game-info .year {
  color: var(--muted);
  font-size: 1rem;
  letter-spacing: 0;
  text-transform: none;
}

.game-info p {
  margin-top: 0.6rem;
  color: var(--muted);
  line-height: 1.6;
}

.game-info a {
  display: inline-block;
  margin-top: 0.6rem;
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid var(--muted);
  font-size: 0.9rem;
}

.game-info a:hover {
  border-bottom-color: var(--text);
}

.game-info .link-pending {
  margin-top: 0.6rem;
  color: var(--muted);
  font-style: italic;
}

.game-screenshot {
  display: block;
  width: 100%;
  height: 100%;
  align-self: center;
  object-fit: contain;
}

.art-grid {
  column-count: 1;
  column-gap: 1rem;
  width: 100%;
}

@media (min-width: 600px) {
  .art-grid {
    column-count: 2;
  }
}

@media (min-width: 900px) {
  .art-grid {
    column-count: 3;
  }
}

.art-grid img {
  display: block;
  width: 100%;
  height: auto;
  margin-bottom: 1rem;
  break-inside: avoid;
  cursor: pointer;
  transition: box-shadow 0.2s ease;
}

.art-grid img:hover {
  box-shadow: 0 0 20px var(--accent);
}

.art-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  align-items: center;
  justify-content: center;
  z-index: 100;
}

.art-modal.open {
  display: flex;
}

.art-modal-image {
  max-width: 85vw;
  max-height: 85vh;
  object-fit: contain;
}

.art-modal-close,
.art-modal-prev,
.art-modal-next {
  position: absolute;
  background: none;
  border: none;
  color: var(--text);
  font-size: 2rem;
  cursor: pointer;
  padding: 0.5rem;
  line-height: 1;
}

.art-modal-close {
  top: 1.5rem;
  right: 1.5rem;
}

.art-modal-prev {
  left: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
}

.art-modal-next {
  right: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
}

.art-modal-close:hover,
.art-modal-prev:hover,
.art-modal-next:hover {
  color: var(--muted);
}
