/* This is the updated CSS please work this time */

:root {
  color-scheme: dark;
  --bg: #111111;
  --bg-alt: #1b1b1b;
  /* --text: #f5f5f5; */
 /* --muted: #d6d6d6; */
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  overflow: auto;
}

body {
  margin: 0;
  min-height: 100vh;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--bg) 0%, var(--bg-alt) 100%);
  color: var(--text);
  font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.5;
  text-transform: lowercase;
}

body.day {
  color: #111111;
  background: linear-gradient(135deg, #f3f3f3 0%, #e8e8e8 100%);
}

a {
  color: inherit;
  text-decoration: none;
}

.page {
  width: min(92vw, 720px);
  padding: 2rem 1.5rem 3rem;
}

.hero {
  display: grid;
  justify-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
  animation: text-glitch 4s infinite linear;
  animation-delay: 0.5s;
}

.hero__logo {
  width: min(220px, 60vw);
  height: auto;
  display: block;
}

.hero h1 {
  margin: 0;
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: 600;
  letter-spacing: 0.04em;
}

.social-nav {
  width: 100%;
}

.social-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 1.5rem);
  justify-items: center;
  align-items: center;
}

.social-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  min-width: 0;
  padding: 0.9rem 0.75rem;
  border-radius: 1rem;
  text-align: center;
  transition: transform 180ms ease, background-color 180ms ease;
}

.social-link:hover,
.social-link:focus-visible {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.08);
  outline: none;
}

.social-link img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  filter: invert(100%);
  transition: transform 180ms ease;
}

.social-link span {
  font-size: 1rem;
  color: var(--muted);
}

body.day .social-link img {
  filter: none;
}

body.day .social-link:hover,
body.day .social-link:focus-visible {
  background: rgba(0, 0, 0, 0.06);
}

@media (max-width: 600px) {
  .page {
    padding: 1.5rem 1rem 2.5rem;
  }

  .social-links {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

@keyframes text-glitch {
  0%,
  100% {
    transform: translate(0, 0);
  }

  50% {
    transform: translate(-1px, 1px) skewX(1deg);
  }
}

