

:root{
  --Very-dark-blue: hsl(212, 21%, 14%);
  --Dark-grayish-blue: hsl(228, 12%, 48%);
  --White: hsl(0, 0%, 100%);
  --Dark-cyan: hsl(158, 36%, 37%);
  --very-Dark-cyan: hsl(158, 36%, 20%);
  
  --Cream: hsl(30, 38%, 92%);
  --fw-regular:500;
  --fw-bold:700;
  --ff-accent: 'Fraunces', serif;
  --ff-base: 'Montserrat', sans-serif;
} 


.attribution{ 
    font-size: 11px; 
    text-align: center; 
}
.attribution a { 
    color: hsl(228, 45%, 44%); 
}


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

  h1,h2,h3{
    line-height: 1;
  }
  /*
    8. Create a root stacking context
  */
  
body{
    background:var(--Cream) ;
    font-family: var(--ff-base);
    font-weight:var(--fw-regular);
    color: var(--Dark-grayish-blue);
    font-size: 0.875rem;
    display: grid;
    place-content: center;
    min-height: 100vh;
    margin: 1rem;
}

.product{
    background-color: var(--White);
    border-radius: 0.5rem;
    overflow: hidden;
    display: grid;
    max-width: 600PX;
}
 
/* HEADING AND PARAGRAPH SETTING */

.product-content{
    padding: 1.5rem;
    display: grid;
    gap: 1rem;
}
.product-category{
    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 5px;

}
.product-title{
    font-size: 2rem;
    font-family: var(--ff-accent);
    color: var(--Very-dark-blue);
}

 /* PRODUCT PRICE STYLING */
.flex-group{
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}
  .product-price{
    font-size: 2rem;
    font-family: var(--ff-accent);
    color: var(--Dark-cyan);
  }
  .product-original-price{
    text-decoration: line-through;
  }


  /* BUTTON STYLING */

  .btn{
    cursor: pointer;
    padding: 0.7rem 1.5rem;
    border-radius: 8px;
    border: none;
    text-decoration: none;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 0.8rem;
    background-color: var(--Dark-cyan);
    font-weight: var(--fw-bold);
    color: var(--White);
    border-radius: 8px;
    font-size: 0.925rem;

  }
  .btn:is(:hover, :focus){
     background-color:--hsl(158, 36%, 20%);
  }


  /* MEDIA QUERY */

  @media(min-width: 600px){
    .product{
        grid-template-columns:1fr 1fr ;
    }
  }
  .product{
    margin-bottom: 50px;
  }