:root {
  --text: rgb(76, 79, 105);
  --subtext1: rgb(92, 95, 119);
  --subtext0: rgb(108, 111, 133);
  --base: rgb(239, 241, 245);
  --mantle: rgb(230, 233, 239);

  --rosewater: rgb(220, 138, 120);
  --flamingo: rgb(221, 120, 120);
  --mauve: rgb(136, 57, 239);
  --peach: rgb(254, 100, 11);
  --blue: rgb(30, 102, 245);
  --lavender: rgb(114, 135, 253);

  --primary-color: var(--lavender);
  --primary-color-light: color-mix(in srgb, var(--primary-color) 80%, white);
  --primary-color-dark: color-mix(in srgb, var(--primary-color) 90%, black);

  --content-width: 48rem;
  --border-radius: 1rem;
}

body {
  font-family: Inter, Roboto, "Helvetica Neue", "Arial Nova", "Nimbus Sans",
    Arial, sans-serif;
  font-weight: normal;

  background-color: var(--base);
  color: var(--text);
}

main,
header {
  width: var(--content-width);
  max-width: calc(100vw - 2rem);
  margin: 0 auto;
}

section {
  margin-bottom: 4rem;
}

h1 {
  color: var(--lavender);
}

h2 {
  color: var(--subtext1);
}

a {
  color: var(--blue);
}

strong {
  color: var(--primary-color-dark);
  font-weight: 400;
}

button {
  transition: all 0.4s ease;
  cursor: pointer;
  background-color: var(--primary-color-light);
  border: none;
  border-radius: var(--border-radius);
  padding: 0.5rem 1rem;
  color: var(--mantle);
  font-weight: bold;

  &:hover {
    background-color: var(--primary-color);
  }

  & img {
    width: 1.5rem;
    margin-right: 1rem;
  }
}

/* ------------------------------- */

header {
  padding: 2rem 0 1rem;

  & p:first-child {
    color: var(--subtext0);
  }

  & h1 {
    color: var(--primary-color);
  }
}

ul.list-grid {
  list-style-type: none;
  padding: 0;
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));

  & a {
    display: block;
    width: 100%;
  }

  & img.icon {
    display: block;
    width: 2rem;
    margin-bottom: 1rem;
  }

  & img.logo {
    width: 100%;
    max-width: 100%;
    height: 50px;
    object-fit: contain;
  }

  & button {
    width: 100%;
  }
}
