@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Lexend+Deca:wght@100..900&display=swap');

:root {
    /* Fonts */
    --ff-main: 'Inter';
    --ff-accent: 'Lexand Deca';
    --ff-size: 0.938rem;
    --fw-mid: 400;
    --fw-bold: 700;

    /* Colors */
        /* ### Primary */

--clr-Verydarkblue: hsl(233, 47%, 7%);
--clr-Darkdesaturatedblue: hsl(244, 38%, 16%);
--clr-Softviolet: hsl(277, 64%, 61%);

        /* ### Neutral */
--clr-White: hsl(0, 0%, 100%);
--clr-Slightlytransparentwhite: hsla(0, 0%, 100%, 0.75);
--clr-Slightlytransparentwhite: hsla(0, 0%, 100%, 0.6);

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

  html {
    height: 100%;
    background-color: var(--clr-Verydarkblue);
  }
  body {
    height: 100%;
    display: grid;
    place-content: center;
  }
  .image__column {
    border-top-left-radius: 1rem;
    border-top-right-radius: 1rem;
    background-color:  hsl(277, 75%, 43%);
    margin-bottom: 1rem;
  }
  img {
    border-top-left-radius: 1rem;
    border-top-right-radius: 1rem;
    opacity: 0.5;
  }
  main {
    border-radius: 1rem;
    margin: 1.5rem;
    display: grid;
    text-align: center;
    font-size: var(--ff-size);
    font-family: var(--ff-main);
    background-color: var(--clr-Darkdesaturatedblue);
    max-width: 360px;
  }
  .text__column {
    padding: 1.5rem;
  }
  h1 {
    color: var(--clr-White);
    font-size: 1.5rem;
    margin-bottom: 1rem;
  }
  .main-description {
    color: var(--clr-Slightlytransparentwhite);
    margin-bottom: 1rem;
  }
  span {
    color: var(--clr-Softviolet);
    font-weight: var(--fw-bold);
  }
  h2, h3, h4 {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.863);
  }
  div {
    margin-bottom: .7rem;
  }
  .component__statistics p {
    color: var(--clr-Slightlytransparentwhite);
    letter-spacing: 2px;
    text-transform: uppercase;
    font-size: 0.7rem;
  }
  @media (min-width:1050px) {
    main {
        display: grid;
        grid-template-columns: 1fr 1fr;
        max-width: 1000px;
        max-height: 412px;
    }
    .image__column {
        border-top-left-radius: 0;
        border-bottom-right-radius: 1rem;
        grid-column: 2;
    }
    img {
        border-top-left-radius: 0;
        border-bottom-right-radius: 1rem;
    }
    .text__column {
        padding: 4rem;
        padding-left: 4rem;
        padding-right: 6rem;
        grid-column: 1;
        grid-row: 1;
        text-align: start;
    }
    h1 {
        font-size: 2rem;
    }
    .main-description {
        margin-bottom: 3rem;
    }
    .component__statistics {
        display: flex;
        gap: 1rem;
    }
  }
