/* Main theme color */
:root {
  --brand: #f098ef;
}

/* Reset and base layout */
html,
body {
  height: 100%;
  margin: 0;
}

body {
  font-family: Arial, sans-serif;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: #f4f4f4 url('pixel-heart.webp') repeat center;
}

/* Links */
a {
  color: var(--brand);
}

a:hover {
  text-decoration: underline;
}

/* Skip-to-content link */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--brand);
  color: #fff;
  padding: 0.5rem;
  font-weight: bold;
  z-index: 1000;
}

.skip-link:focus {
  top: 0;
}

/* Card layout */
.card-row {
  flex: 1 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(0.5rem, 2vw, 1rem);
  flex-wrap: wrap;
  padding: 1.5rem;
}

.card {
  background: #fff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.main-card {
  max-width: 480px;
}

.payment-card,
.about-card {
  width: 220px;
  max-width: 220px;
}

.side-column {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(0.5rem, 2vw, 1rem);
}

@media (max-width: 700px) {
  .payment-card,
  .about-card {
    max-width: unset;
    width: auto;
  }
}

/* Profile picture */
.profile-pic {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid #000;
  margin: 0 auto 1.5em;
}

.profile-pic img {
  width: 150px;
  height: 150px;
  /* HTML attribute handles lazy-loading */
}

/* Catchphrase animation */
@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.02);
  }
  100% {
    transform: scale(1);
  }
}

h1,
h2,
h3 {
  font: 2em 'Press Start 2P', cursive;
  color: #333;
  margin-bottom: 0.5em;
}

h2,
#catchphrase-display {
  font-size: 1em;
  animation: pulse 2s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
  #catchphrase-display {
    animation: none;
  }
}

h1 span {
  font-weight: bold;
}

.pronouns {
  font: 1em 'Press Start 2P', cursive;
  color: #666;
  margin-bottom: 0.5em;
}

/* Social icons */
.icons {
  display: flex;
  justify-content: center;
  margin-top: 1em;
  flex-wrap: wrap;
}

.icon {
  margin: 0 0.5em;
}

.icon img {
  width: 2em;
  height: auto;
  /* HTML attribute handles lazy-loading */
}

.card p {
  color: #555;
}

/* Footer */
footer {
  margin-top: auto;
  width: 100%;
  background: #fff;
  text-align: center;
  font-size: 0.8em;
  color: gray;
  padding: 0.5em 0;
  box-shadow: 0 -2px 4px rgba(0, 0, 0, 0.1);
}

/* Dark-mode tweaks */
@media (prefers-color-scheme: dark) {
  body {
    background: #1e1e1e;
  }
  .card,
  footer {
    background: #2b2b2b;
    color: #d8d8d8; /* body text slightly darker than headers */
  }
  /* ensure paragraph and pronoun text are also slightly darker */
  .card p,
  .pronouns {
    color: #d8d8d8;
  }
  h1,
  h2,
  h3,
  #catchphrase-display {
    color: #f0f0f0; /* lighter text for better contrast */
  }
  a {
    color: var(--brand);
  }
}
