@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;700&family=Lexend+Deca&display=swap');
:root {
  --very-dark-blue: hsl(233, 47%, 7%);
  --dark-desaturated-blue: hsl(244, 38%, 16%);
  --soft-violet: hsl(277, 64%, 61%);

  --white: hsl(0, 0%, 100%);
  --slightly-transparent-white-1: hsla(0, 0%, 100%, 0.75);
  --slightly-transparent-white-2: hsla(0, 0%, 100%, 0.6);
}
html {
  font-size: 62.5%;
}
* {
  font-family: 'Inter', sans-serif;
}
body {
  margin: 0;
  font-size: 1.5rem;
  display: flex;
  flex-direction: column;
  min-block-size: 100vh;
  color: var(--slightly-transparent-white-1);
  background-color: var(--very-dark-blue);
}
main {
  flex-grow: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}
article {
  display: flex;
  flex-direction: column;
  text-align: center;
  background-color: var(--dark-desaturated-blue);
  margin: 2.4rem;
  border-radius: 0.8rem;
}
article picture {
  background-color: var(--soft-violet);
  border-radius: 0.8rem 0.8rem 0 0;
}
article img {
  opacity: 0.7;
  display: block;
  object-fit: cover;
  inline-size: 100%;
  mix-blend-mode: multiply;
}
article section {
  padding: 3rem;
  display: flex;
  flex-direction: column;
}
article h1 {
  margin-block: 0.5rem 0;
  font-size: 2.8rem;
  color: var(--white);
}
article h1 em {
  font-style: normal;
  color: var(--soft-violet);
}
article p {
  line-height: 1.7em;
}
article dl {
  margin-block: 4rem 1rem;
  display: flex;
  flex-direction: column;
}
article div {
  margin-block-end: 2.8rem;
}
article div:last-child {
  margin: 0;
}
article div dd {
  font-weight: 700;
  display: block;
  font-size: 2.4rem;
  color: var(--white);
  padding-block-end: 0.4rem;
  margin: 0;
}
article div dt {
  font-size: 1.2rem;
  font-family: 'Lexend Deca', sans-serif;
  text-transform: uppercase;
}
footer {
  margin: 1rem;
  font-size: 1.1rem;
  text-align: center;
}
footer a {
  color: hsl(228, 45%, 44%);
}

@media only screen and (min-width: 48em) {
  article {
    flex-direction: row;
  }
  article h1 {
    font-size: 3.6rem;
  }
  article section {
    box-sizing: border-box;
    flex-basis: 50%;
    padding: 7rem;
    max-inline-size: 54rem;
    flex-direction: column;
  }
  article picture {
    order: 1;
    flex-basis: 50%;
    max-inline-size: 54rem;
    border-radius: 0 0.8rem 0.8rem 0;
  }
  article picture img {
    block-size: 100%;
    border-radius: 0 0.8rem 0.8rem 0;
  }
  article {
    text-align: left;
  }
  article dl {
    margin-block-start: auto;
    flex-direction: row;
    justify-content: space-between;
  }
  article div {
    margin: 0;
  }
}
