@import url('https://fonts.googleapis.com/css2?family=Space+Mono:ital,wght@0,400;0,700;1,400;1,700&display=swap');

:root {
  color-scheme: only light;
  --accent: #fff200;
  --paper: #f6f3ed;
}

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

body {
  margin: 0;
  font-family: "Space Mono", "Courier New", monospace;
  color: var(--paper);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

@media (max-width: 900px) {
  body {
    background-image:
            image-set(
                    url("images/Blueprint@0.5x.jpg") 1x,
                    url("images/Blueprint@0.75x.jpg") 2x
            );
  }
}

@media (min-width: 901px) {
  body {
    background-image:
            image-set(
                    url("images/Blueprint@0.75x.jpg") 1x,
                    url("images/Blueprint.jpg") 2x
            );
  }
}

a {
  color: #fff200;
}

a {
  font-weight: 700;
}
a:hover {
  color: var(--paper);
  transition: color 0.5s ease;
}
a:focus {
  color: var(--accent);
  transition: color 0.5s ease;
}

.page {
  min-height: 100vh;
  display: grid;
  gap: 1rem;
  animation: fade-in 0.9s ease-out;
}

.logo-badge {
  padding: 0.6rem 0.8rem;
  width: fit-content;
}

.logo {
  display: block;
  width: clamp(120px, 18vw, 220px);
  height: auto;
}

.badge {
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-size: 1.25rem;
  color: var(--paper);
  padding: 0.6rem 1rem;
  width: fit-content;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.card {
  padding: 1rem;
  animation: rise 0.9s ease-out;
}

.card img {
  display: block;
  height: 300px;
  width: auto;
  max-width: 100%;
  margin: 0 auto 1rem;
  object-fit: contain;
}

@keyframes fade-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 720px) {
  .page {
    padding: 4rem 8vw 3.5rem;
  }
}
