:root {
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font: 16px/1.5 system-ui, sans-serif;
  background: #0b0f17;
  color: #e6eaf2;
}

.wrap {
  max-width: 900px;
  margin: 8vh auto;
  padding: 0 24px;
  text-align: center;
}

h1 {
  margin-bottom: 1rem;
  font-size: 2rem;
}

.cards {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin-top: 2rem;
}

.card {
  background: #121826;
  border: 1px solid #202a3b;
  border-radius: 14px;
  padding: 20px;
  text-decoration: none;
  color: inherit;
  transition: all 0.2s ease;
}

.card:hover {
  border-color: #4da6ff;
  box-shadow: 0 6px 18px rgba(77, 166, 255, 0.2);
  transform: translateY(-2px);
}

small {
  display: block;
  margin-top: 6px;
  opacity: 0.75;
  font-size: 0.9em;
}

/* Mobile: keep the single-column grid you already have. */
/* Desktop: 2x2 with VM + MC on top, IG + SC below */
@media (min-width: 900px) {
  .cards {
    /* two columns */
    grid-template-columns: repeat(2, minmax(220px, 1fr));
    /* explicit placement */
    grid-template-areas:
      "vm mc"
      "ig sc";
  }
  .card--vm { grid-area: vm; }
  .card--mc { grid-area: mc; }
  .card--ig { grid-area: ig; }
  .card--sc { grid-area: sc; }
}

.back {
  position: absolute;
  top: 16px;
  left: 16px;
  padding: 6px 12px;
  background: #121826;
  border: 1px solid #202a3b;
  border-radius: 6px;
  color: #e6eaf2;
  text-decoration: none;
  font-size: 0.9rem;
  transition: background 0.2s, border-color 0.2s;
}

.back:hover {
  background: #1c2333;
  border-color: #4da6ff;
}
