@media screen and (max-width: 768px) {
  :root {
    font-size: 14px;
  }
}

h1,
h2,
h3,
h4,
h5,
h6 {
  line-height: 1.2;
  font-weight: 700;
}

h1 {
  font-size: 3rem;
}

h2 {
  font-size: 2.25rem;
}

h3 {
  font-size: 1.5rem;
}

h4 {
  font-size: 1.125rem;
}

h5 {
  font-size: 1rem;
}

h6 {
  font-size: 0.875rem;
}

a,
.button {
  line-height: 1.2;
}

.button {
  font-weight: 500;
}

body {
  font-family: "Rubik Variable", "Rubik", sans-serif;
  line-height: 1.5;
  color: #030517;
  font-size: 1rem;
  background-color: #fafcff;
}

.credits-hero {
  background-image: linear-gradient(to bottom, rgba(5, 2, 20, 0.25) 0%, rgba(19, 15, 48, 0.35) 100%), url("/imgs/credits-hero.png");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  min-height: 42vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 16px;
}

.credits-hero-content {
  text-align: center;
  max-width: 780px;
}

.credits-hero-heading {
  color: #fafcff;
  font-size: 3rem;
  margin-bottom: 12px;
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.4), 0 0 20px rgba(0, 0, 0, 0.2);
}

.credits-hero-subtitle {
  color: #fafcff;
  font-size: 1.125rem;
  line-height: 1.6;
  opacity: 0.95;
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

.credits-content {
  max-width: 1100px;
  margin: -56px auto 64px;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

.credits-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.credits-card {
  background: #fafcff;
  border: 1px solid #ceced0;
  border-radius: 14px;
  padding: 24px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}
.credits-card h2 {
  color: #030517;
  margin-bottom: 16px;
}

.credits-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.credits-list-item {
  padding-bottom: 12px;
  border-bottom: 1px solid #ceced0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.credits-list-item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.credits-list-item--with-avatar {
  flex-direction: row;
  align-items: flex-start;
  gap: 12px;
}

.credits-list-item--with-avatar:has(.credits-avatar-link):is(:has(.credits-avatar-link:hover),
:has(.credits-github-name:hover)) .credits-github-name-label {
  text-decoration: underline;
}
.credits-list-item--with-avatar:has(.credits-avatar-link):is(:has(.credits-avatar-link:hover),
:has(.credits-github-name:hover)) .credits-github-link-icon {
  opacity: 0.85;
}
.credits-list-item--with-avatar:has(.credits-avatar-link):is(:has(.credits-avatar-link:hover),
:has(.credits-github-name:hover)) .credits-avatar {
  opacity: 0.9;
}

.credits-avatar-link {
  display: inline-flex;
  flex-shrink: 0;
  border-radius: 50%;
  line-height: 0;
  text-decoration: none;
}
.credits-avatar-link:focus-visible {
  outline: 2px solid #030517;
  outline-offset: 2px;
  border-radius: 50%;
}

.credits-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid #ceced0;
  object-fit: cover;
  background: #fafcff;
  flex-shrink: 0;
  display: block;
}

.credits-avatar.credits-avatar--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  background: var(--credits-ph-bg);
  color: var(--credits-ph-fg);
}

.credits-avatar__person-icon {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.credits-person-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.credits-name,
.credits-github-name {
  color: #030517;
  font-size: 1.125rem;
  font-weight: 600;
}

.credits-github-name {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  max-width: 100%;
}
.credits-github-name:focus-visible {
  outline: 2px solid #030517;
  outline-offset: 2px;
  border-radius: 2px;
}

.credits-github-name-label {
  min-width: 0;
}

.credits-github-link-icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  opacity: 0.55;
  margin-top: 1px;
}

.credits-role {
  color: #3b3d4a;
  font-size: 1rem;
}

.credits-empty,
.credits-error p {
  color: #73747d;
  font-style: italic;
}

.credits-error {
  background: #fafcff;
  border: 1px solid #ceced0;
  border-radius: 14px;
  padding: 24px;
}

@media screen and (max-width: 769px) {
  .credits-hero-heading {
    font-size: 2.25rem;
  }
  .credits-content {
    margin-top: -36px;
    padding: 0 16px;
  }
  .credits-grid {
    grid-template-columns: 1fr;
  }
}