/* ===== CSS Reset ===== */

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

body {
  min-height: 100vh;
  line-height: 1.5;
  font-family: "Inter", sans-serif;
  -webkit-font-smoothing: antialiased;
}

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

input,
button,
textarea,
select {
  font: inherit;
}

p,
h1,
h2,
h3,
h4,
h5,
h6 {
  overflow-wrap: break-word;
}

ul,
ol {
  list-style: none;
}

/* variables */

:root {
  /* primary colors */
  --primary-300: hsl(75, 94%, 57%);

  /* neutral colors */
  --neutral-100: hsl(0, 0%, 100%);
  --neutral-700: hsl(0, 0%, 20%);
  --neutral-800: hsl(0, 0%, 12%);
  --neutral-900: hsl(0, 0%, 8%);

  /* font stuff */
  --ff-primary: "Inter", sans-serif;

  --fw-regular: 400;
  --fw-semibold: 600;
  --fw-bold: 700;
}

/* base styling */
body {
  min-height: 100vh;
  display: grid;
  place-items: center;
  font-family: var(--ff-primary);
  font-weight: var(--fw-bold);
  text-align: center;
  background-color: var(--neutral-900);
  font-size: 14px;
}
/* component styling */
.profile {
  width: clamp(350px, 45vw, 400px);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 1.5em;
  margin: 1.5rem;
  border-radius: 1.25em;
  background-color: var(--neutral-800);
}
.user-img {
  align-self: center;
}
.user-img img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  overflow: hidden;
}

.user-name {
  font-size: 2.2rem;
  font-weight: var(--fw-regular);
  color: var(--neutral-100);
}
.user-location {
  font-size: 1.1rem;
  font-style: normal;
  color: var(--primary-300);
  font-weight: var(--fw-semibold);
}
.user-role {
  margin-top: 1.5rem;
  font-size: 0.9rem;
  font-weight: var(--fw-regular);
  word-spacing: 1px;
  color: var(--neutral-100);
}
.user-socail-links {
  display: flex;
  gap: 0.8rem;
  flex-direction: column;
  list-style-type: none;
}
li a {
  width: 100%;
  display: inline-block;
  padding: 0.8rem 0;
  font-size: 0.9rem;
  font-weight: var(--fw-semibold);
  color: var(--neutral-100);
  text-decoration: none;
  border-radius: 0.625em;
  background-color: var(--neutral-700);
  transition: 0.5s ease;
}
li a:hover,
li a:focus-visible {
  background-color: var(--primary-300);
  color: var(--neutral-900);
  outline: none;
  cursor: pointer;
}

footer {
  margin: 1rem;
}
.attribution {
  color: var(--neutral-700);
}
.attribution a {
  text-align: center;
  font-size: 1rem;
  background: #c5f82a;
  background: linear-gradient(to right, #c5f82a 0%, #333333 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-decoration: none;
}
