/*
  1. Use a more-intuitive box-sizing model.
*/
*,
*::before,
*::after {
  box-sizing: border-box;
}
/*
    2. Remove default margin
  */
* {
  margin: 0;
}
/*
    3. Allow percentage-based heights in the application
  */
html,
body {
  height: 100%;
}
/*
    Typographic tweaks!
    4. Add accessible line-height
    5. Improve text rendering
  */
body {
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
/*
    6. Improve media defaults
  */
img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}
/*
    7. Remove built-in form typography styles
  */
input,
button,
textarea,
select {
  font: inherit;
}
/*
    8. Avoid text overflows
  */
p,
h1,
h2,
h3,
h4,
h5,
h6 {
  overflow-wrap: break-word;
}
/*
    9. Create a root stacking context
  */
#root,
#__next {
  isolation: isolate;
}

/* 
- Mobile: 375px
- Desktop: 1440px

Start */
:root {
  --cl-primary-violet: hsl(263, 55%, 52%);
  --cl-primary-grey-blue: hsl(217, 19%, 35%);
  --cl-primary-dark-blue: hsl(219, 29%, 14%);
  --cl-primary-white: hsl(0, 0%, 100%);

  --cl-secondary-light-gray: hsl(0, 0%, 81%);
  --cl-secondary-grey-blue: hsl(210, 46%, 95%);

  --cl-opacity-verified-white: rgba(255, 255, 255, 0.5);
  --cl-opacity-verified-dark: rgba(25, 33, 46, 0.5);

  --cl-opacity-quote-white: rgba(255, 255, 255, 0.7);
  --cl-opacity-quote-dark: rgba(25, 33, 46, 0.7);

  --fs-paragraph: 16px;

  --ff-primary: "Barlow Semi Condensed", sans-serif;

  --fw-normal: 500;
  --fw-bold: 600;
}

body {
  background-color: var(--cl-secondary-grey-blue);
  font-family: var(--ff-primary);
  position: relative;
}

.container {
  width: 90%;
  margin-inline: auto;
}

.card:first-child {
  margin-top: 4rem;
}

.card:last-child {
  margin-bottom: 4rem;
}

.card {
  border-radius: 0.5rem;
  margin-bottom: 1.5rem;
  padding: 1.5rem 2rem 2rem 2rem;
}

.daniel,
.jonathan,
.patrick {
  color: var(--cl-primary-white);
}

.jeanette,
.kira {
  color: var(--cl-primary-grey-blue);
}

.daniel {
  background-color: var(--cl-primary-violet);
  position: relative;
}

.quotemark {
  position: absolute;
  top: 0;
  right: 7%;
  z-index: 0;
}

.daniel .text {
  z-index: 1;
  position: relative;
}

.jonathan {
  background-color: var(--cl-primary-grey-blue);
}

.jeanette {
  background-color: var(--cl-primary-white);
}

.patrick {
  background-color: var(--cl-primary-dark-blue);
}

.kira {
  background-color: var(--cl-primary-white);
}

.profile {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
}

.icon {
  border-radius: 100vh;
  width: 2rem;
}

.daniel .icon {
  border: 2px solid hsl(263, 59%, 66%);
}

.jonathan .icon {
  border: 2px solid grey;
}

.patrick .icon {
  border: 2px solid hsl(263, 59%, 66%);
}

.name-block {
  display: flex;
  flex-direction: column;
  padding-left: 1.5rem;
}

.daniel .name,
.jonathan .name,
.patrick .name {
  color: var(--cl-primary-white);
}

.daniel .verified,
.jonathan .verified,
.patrick .verified {
  color: var(--cl-opacity-verified-white);
}

.daniel .quote,
.jonathan .quote,
.patrick .quote {
  color: var(--cl-opacity-quote-white);
}

.jeanette .name,
.kira .name {
  color: var(--cl-primary-dark-blue);
}

.jeanette .verified,
.kira .verified {
  color: var(--cl-opacity-verified-dark);
}

.jeanette .quote,
.kira .quote {
  color: var(--cl-opacity-quote-dark);
}

.name {
  font-size: 14px;
}

.verified {
  font-size: 11px;
  margin-top: -0.2rem;
}

.text {
  font-size: 22px;
  font-weight: var(--fw-bold);
  line-height: 1.2;
  margin-bottom: 1rem;
}
.quote {
  font-size: 12px;
  padding-right: 1.5rem;
}

.copyright {
  display: flex;
  justify-content: center;
  font-size: 10px;
  color: var(--cl-primary-grey-blue);
}

a,
a:visited {
  text-decoration: none;
  color: var(--cl-primary-grey-blue);
}

@media (min-width: 1440px) {
  .container {
    margin-top: 10rem;
    margin-inline: 7rem;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 2rem;
  }

  .card {
    margin: 0;
    box-shadow: 10px 10px 44px -6px rgba(0, 0, 0, 0.4);
  }

  .card:first-child {
    margin-top: 0;
  }

  .card:last-child {
    margin-bottom: 0;
  }

  .daniel {
    grid-row: 1 / 2;
    grid-column: 1 / span 2;
  }

  .quotemark {
    right: 15%;
  }

  .jonathan {
    grid-row: 1 / 2;
    grid-column: 3 / 4;
  }

  .kira {
    grid-row: 1 / span 2;
    grid-column: 4 / 5;
  }

  .jeanette {
    grid-row: 2 / 3;
    grid-column: 1 / 2;
  }

  .patrick {
    grid-row: 2 / 3;
    grid-column: 2 / span 2;
  }

  .quote {
    font-size: 14px;
  }

  .copyright {
    font-size: 15px;
    margin-top: 5rem;
  }
}
