ul[class*="m-boxes"] {
  list-style: none;
  margin: 0;
  padding: 0;
}

.m-boxes {
  padding-inline: max( calc( ( 100vw - 70rem ) / 2  ), 5vw);
  background: #f8f8fa;
  display: grid;
  gap: 4rem;
}

.m-boxes__richtext {
  display: flex;
  flex-flow: column nowrap;
  gap: 1.2em;
  max-width: 90ch;
  margin: 0 auto;
  height: 100%;
}

.m-boxes__richtext * {
  margin: 0;
}

.m-boxes__richtext p {
    line-height: 1.4;
}

.m-boxes__items {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(var(--min-width, 20ch), 1fr));
  grid-gap: 1em;
  gap: 1em;
  grid-auto-rows: 1fr;
}

.m-boxes__box {
  font-size: 1rem;
  background-color: var(--color-white);
  border-radius: 1em;
  padding: 2em 1.5em;
  position: relative;
  transition: all 200ms ease;
  box-shadow: 0 0 1rem rgb(0 0 120 / 2%)
    
    &:has(a) { cursor: pointer }

}

.m-boxes__box:has(a[href]):hover {
  box-shadow: 
    0 0 0 1.5px var(--color-accent) inset,
    0 .4em 1em -0.3em rgb(0 0 0 / 10%)
  ;
  scale: 1.01;
}

.m-boxes__box-title {
  font-size: 1.3em;
  font-weight: 500;
}

.m-boxes__box a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
}

.m-boxes__box-fakelink {
  color: var(--color-accent);
  font-weight: 500;
  font-size: .9em;
  margin-top: auto;
}

