@import url("https://fonts.googleapis.com/css2?family=VT323&family=Inter:wght@400;500&display=swap");
@import url("https://fonts.googleapis.com/css2?family=VT323&family=Inter:wght@400;500&family=Playfair+Display:ital@400;500&display=swap");

:root {
  --bg: #ffffff;
  --text: #000000;
  --link: #0000ee;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'VT323', monospace;
  line-height: 1.5;
  min-height: 100vh;
}

.page {
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  text-align: center;
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: var(--bg);
  padding: 25px 20px 20px;
  z-index: 100;
  border-bottom: 3px solid #000;
}

.title {
  font-size: 2.8rem;
  margin: 0 0 8px;
  color: #000;
  font-family: 'VT323', monospace;
  letter-spacing: 2px;
}

.subtitle {
  font-size: 1.35rem;
  margin: 0;
  color: #333;
  font-family: 'Inter', sans-serif;
}

.links {
  display: grid;
  grid-template-columns: 1fr;
  gap: 5vh;
  max-width: 420px;
  margin: 0 auto;
  padding-top: 180px;
}

.link {
  display: flex;
  align-items: center;
  gap: 28px;
  text-decoration: none;
  color: var(--text);
  font-size: 1.25rem;
  padding-left: 20px;
}

.icon {
  width: 42px;
  height: 42px;
  object-fit: contain;
  border: 2px solid #000;
  padding: 4px;
  background: white;
  image-rendering: pixelated;
  margin-left: 15px;
}

.label {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  font-style: italic;
  letter-spacing: 0.5px;
}

.link:hover {
  color: #ee0000;
}

footer,
body > p {
  text-align: center;
  margin-top: 60px;
  margin-bottom: 20px;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
}

@media (min-width: 768px) {
  .links {
    grid-template-columns: repeat(6, 1fr);
    max-width: 900px;
    row-gap: 70px;
    column-gap: 50px;
    justify-items: center;
  }

  footer,
  body > p {
    margin-top: 150px;
  }

  .links{
    margin-top: 10vh;
  }

  .links .link:nth-child(1) {
    grid-column: 1 / 4;
  }

  .links .link:nth-child(2) {
    grid-column: 4 / 7;
  }

  .links .link:nth-child(3) {
    grid-column: 1 / 4;
  }

  .links .link:nth-child(4) {
    grid-column: 4 / 7;
  }

  .links .link:nth-child(5) {
    grid-column: 1 / 3;
  }

  .links .link:nth-child(6) {
    grid-column: 3 / 5;
  }

  .links .link:nth-child(7) {
    grid-column: 5 / 7;
  }

  .links .link:nth-child(5),
  .links .link:nth-child(6),
  .links .link:nth-child(7) {
    justify-self: center;
  }
}

@media (max-width: 480px) {
  .title {
    font-size: 2.3rem;
  }

  .subtitle {
    font-size: 1.2rem;
  }

  .header {
    padding: 20px 15px 15px;
  }

  .links {
    padding-top: 160px;
  }

  .link {
    gap: 22px;
    padding-left: 15px;
  }

  .icon {
    width: 38px;
    height: 38px;
    margin-left: 12px;
  }
}
