:root {
  --background: #0a0615;
  --black: #000000;
  --white: #ffffff;
}

html,
body {
  padding: 0;
  margin: 0;
  font-family: 'Sora', sans-serif;
  background: var(--background);
  color: var(--white);
  overflow-x: hidden;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-size: inherit;
}

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

:is(button, .button, input, textarea, select) {
  font-family: 'Sora', sans-serif;
}

h1 {
  font-size: clamp(1.75rem, 0.0938rem + 3.3203vw, 2.75rem);
  line-height: 110%;
  font-weight: 700;
}

h2 {
  font-size: clamp(1.375rem, 0.8125rem + 1.1719vw, 1.75rem);
  font-weight: 600;
}

h3 {
  font-size: 1.375rem;
  font-weight: 600;
}

b {
  font-weight: 600;
}

img {
  max-width: 100%;
  display: block;
  object-fit: cover;
}

.button {
  background: #473180;
  color: var(--white);
  box-shadow: #110c2e26 0 48px 100px;
  padding: 0.75rem 2rem;
  border-radius: 1rem;
  font-weight: 600;
  text-align: center;

  &:hover {
    opacity: 0.9;
    transition: all 0.3s ease;
  }
}

main {
  position: relative;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  align-items: center;
  justify-content: center;
  max-width: 1000px;
  margin-inline: auto;

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

  &:before {
    content: '';
    position: absolute;
    top: 0;
    left: -20rem;
    width: 500px;
    height: 500px;
    background: #2d1e54;
    filter: blur(200px);
  }

  &:after {
    content: '';
    position: absolute;
    bottom: 0;
    right: -20rem;
    width: 500px;
    height: 500px;
    background: #2d1e54;
    filter: blur(200px);
  }

  > * {
    position: relative;
    z-index: 10;
  }
}

.avatar {
  width: 8rem;
  height: 8rem;
  border: 1px solid var(--white);
  border-radius: 50%;
  background: url('avatar.jpg') no-repeat center/cover;
}

.heading {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  text-wrap: balance;
}

.socials {
  display: flex;
  gap: 1.5rem;
  font-size: 1.5rem;
}

.socials a {
  height: 3rem;
  width: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--white);
  border-radius: 50%;
}

.socials a:hover {
  background: var(--white);
  color: var(--background);
  transition: all 0.3s ease;
}

.cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;

  @media (max-width: 600px) {
    grid-template-columns: 1fr;
  }
}

.card {
  padding: 1rem;
  border-radius: 2rem;
  border: 1px solid var(--white);
  box-shadow: 0 15px 60px rgba(0, 0, 0, 0.1);
}

.card:has(img) {
  display: flex;
  gap: 1rem;
}

.card img {
  width: 7rem;
  height: 8rem;
  border-radius: 1rem;
  object-fit: cover;
}

.card-content {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.875rem;

  div {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
  }

  h2 {
    font-size: 1rem;
  }

  .button {
    margin-top: 0.75rem;
  }
}
