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

:root {
  --color-purple-50: hsl(260, 100%, 95%);
  --color-purple-300: hsl(264, 82%, 80%);
  --color-purple-500: hsl(263, 55%, 52%);
  --color-white: hsl(0, 0%, 100%);
  --color-grey-100: hsl(214, 17%, 92%);
  --color-grey-200: hsl(0, 0%, 81%);
  --color-grey-400: hsl(224, 10%, 45%);
  --color-grey-500: hsl(217, 19%, 35%);
  --color-dark-blue: hsl(219, 29%, 14%);
  --color-black: hsl(0, 0%, 7%);

  --shadow-card: 20px 40px 40px -10px rgba(0, 0, 0, 0.3);
  ;
}

h1,
h2,
p,
ul,
blockquote {
  margin: 0;
}

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

img {
  display: block;
  max-width: 100%;
  height: auto;
}

html {
  height: 100%;
}

body {
  min-height: 100vh;
  font-family: "Barlow Semi Condensed", sans-serif;
  font-size: clamp(0.8125rem, 1vw + 0.58rem, 0.9375rem);
  line-height: 1.2;
  letter-spacing: -0.015rem;
  color: var(--color-black);
  background-color: var(--color-purple-50);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin: 0;
  padding: 1rem;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
  white-space: nowrap;
}

.container {
  max-width: 19.125rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-block-end: 2rem;
}

@media (min-width: 40rem) {
  .container {
    max-width: 69.625rem;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
  }
}

article {
  border-radius: 0.5rem;
  padding: 2rem;
  box-shadow: var(--shadow-card);
}

.daniel_clifford {
  background-color: var(--color-purple-500);
  color: var(--color-white);
  grid-area: 1/1/2/3;
}

@media (min-width: 40rem) {
  .daniel_clifford {
    background-image: url(../images/bg-pattern-quotation.svg);
    background-repeat: no-repeat;
    background-size: 6.375rem;
    background-position: top right 3.9rem;
  }
}

header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-block-end: 1rem;
}

.avatar {
  border-radius: 50%;
  width: 2rem;
}

.daniel_clifford .avatar {
  border: 2px solid var(--color-purple-300);
}

.name {
  font-size: clamp(0.75rem, 1vw + 0.4rem, 0.875rem);
  font-weight: 600;
}

.status {
  font-size: clamp(0.625rem, 0.8vw + 0.3rem, 0.75rem);
  font-weight: 500;
}

.lead {
  font-size: clamp(1.125rem, 2vw + 0.5rem, 1.25rem);
  font-weight: 600;
  margin-block-end: 1rem;
}

.quote {
  font-size: clamp(0.8125rem, 1vw + 0.4rem, 0.875rem);
  font-weight: 500;
  line-height: 1.28;
}

.jonathan_walters {
  grid-area: 1/3/2/4;
  background-color: var(--color-grey-500);
  color: var(--color-white);
}

.jeanette_harmon {
  grid-area: 2/1/3/2;
}

.jeanette_harmon,
.kira_whittle {
  background-color: var(--color-white);
  color: var(--color-grey-500);
  box-shadow: var(--shadow-card);
}

.kira_whittle {
  grid-area: 1/4/3/5;
}

.patrick_abrams {
  grid-area: 2/2/3/4;
  background-color: var(--color-dark-blue);
  color: var(--color-grey-100);
}

.patrick_abrams .avatar {
  border: 2px solid var(--color-purple-500);
}

.attribution {
  margin: 0 auto;
  text-align: center;
  font-size: 0.75rem;
  opacity: 0.7;
}

.attribution a {
  text-decoration: underline;
  transition: color 0.3s ease;
}

.attribution a:hover,
.attribution a:focus,
.attribution a:focus-visible {
  color: var(--color-grey-400);
}

.attribution a:active {
  color: var(--color-grey-400);
  opacity: 0.3;
}

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}