/* © 2025 Johann Naudé. All rights reserved. */

:root {
  /* Color System */
  --background-color: #333739;
  --text-color: #FFFFFF;

  /* Tiered Hover/Focus Scale System */
  --hover-scale-large: 1.05;   /* Large elements: buttons, cards */
  --hover-scale-medium: 1.05;  /* Medium elements: text links */
  --hover-scale-small: 1.1;    /* Small elements: icons */

  /* Active/Pressed State */
  --active-scale: 0.98;

  /* Transitions */
  --transition-transform: transform 0.1s ease-in-out;
}

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

html {
  height: 100%;
  font-size: 100%;
}

/* Header and layout */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  background-color: var(--background-color);
  z-index: 1000;
}

body {
  background-color: var(--background-color);
  color: var(--text-color);
  font-family: 'VT323', 'Courier New', monospace;
  font-size: 1.2rem;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100%;
}

.container {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 80px 1rem 1rem;
  width: 100%;
  max-width: 100%;
}

nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

h1 {
  font-size: 2rem;
  margin: 0;
  line-height: 1;
}

/* Site logo link */
.site-logo {
  text-decoration: none;
  color: var(--text-color);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-transform);
  border-radius: 4px;
}

.site-logo:focus-visible {
  transform: scale(var(--hover-scale-small));
  outline: none;
}

/* Social icons */
.social-icons {
  display: flex;
  gap: 1rem;
  text-align: center;
}

.social-icons a {
  color: var(--text-color);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-transform);
  text-decoration: none;
}

.social-icons a:hover {
  transform: scale(var(--hover-scale-small));
}

.social-icons a:focus-visible {
  transform: scale(var(--hover-scale-small));
  outline: none;
}

.social-icons svg {
  display: block;
  width: 26px;
  height: 26px;
}

.social-icons .x-icon {
  width: 23px;
  height: 23px;
}

/* Project buttons */
.button {
  display: inline-block;
  border: 3px solid var(--text-color);
  padding: 1rem 2rem;
  margin-bottom: 1rem;
  text-decoration: none;
  color: var(--text-color);
  width: 100%;
  max-width: 700px;
  transition: var(--transition-transform);
  text-align: center;
  border-radius: 12px;
}

.button:focus-visible {
  transform: scale(var(--hover-scale-large));
  outline: none;
}

.button:active {
  transform: scale(var(--active-scale));
}

/* Button text and title */
.button-text {
  display: flex;
  flex-direction: column;
  text-align: center;
}

.button-title {
  font-size: 1.3rem;
}

@media (hover: hover) {
  .button:hover {
    transform: scale(var(--hover-scale-large));
  }
}

@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
  }

  .button {
    padding: 1rem 1.5rem;
  }

  .container {
    padding: 1rem 2rem;
    margin-top: 70px;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 1.6rem;
  }

  header {
    padding: 0.75rem;
  }

  .container {
    margin-top: 60px;
  }

  .social-icons svg {
    width: 22px;
    height: 22px;
  }

  .social-icons .x-icon {
    width: 19px;
    height: 19px;
  }

  .social-icons .chess-icon {
    width: 15px;
    height: 18px;
  }

  .social-icons {
    gap: 0.75rem;
  }
}

/* Desktop styles */
@media (min-width: 769px) {
  .button {
    width: 90%;
  }

  .button-title {
    font-size: 1.5rem;
  }

  h1 {
    font-size: 2rem;
  }
}