@import url('/customshop/examples.css');

.customshop-intro {
  overflow: clip;
  min-height: 42rem;
  background: var(--a);
  padding-top: 10rem;
  align-content: center;

  img.__bg-technical {
    all: unset;
    position: absolute;
    right: 0;
    height: 100%;
    width: auto;
    opacity: 0.04;
    top: 0;
    z-index: -1;
    pointer-events: none;
  }

  .__copy {
    display: grid;
    justify-items: start;
    gap: 2rem;
    max-width: 45%;
    line-height: var(--line-height);
  }

  h1 {
    font-size: 1.5rem;
    position: relative;
    padding-bottom: 1.25rem;

    &::after {
      content: '';
      position: absolute;
      bottom: 0;
      left: 0;
      width: 4rem;
      height: 3px;
      border-radius: 1.5px;
      background: color-mix(in srgb, currentColor, transparent 50%);
    }
  }

  .link {
    max-width: 100%;
    white-space: normal;
  }

  @media (max-width: 1000px) {
    .__copy {
      max-width: 65ch;
    }
  }

  @media (max-width: 640px) {
    padding-top: 8rem;
  }
}

.customshop-benefits {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding-block: 1.5rem;
  background: var(--block-background);

  > div {
    display: grid;
    justify-items: center;
    text-align: center;
    gap: 1rem;
    padding: 1rem;
  }

  img, i {
    width: 3rem;
    height: 3rem;
    object-fit: contain;
  }

  img {
    filter: brightness(0) invert(1);
  }

  i {
    display: grid;
    place-items: center;
    font-size: 1.5rem;
  }

  span {
    max-width: 18ch;
    line-height: var(--line-height);
  }

  @media (max-width: 640px) {
    display: none;
  }
}

.customshop-discover {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  gap: 2rem;
  padding-block: 4rem;

  article {
    display: flex;
    flex-direction: column;
    overflow: clip;
    border-radius: var(--border-radius);
    background: var(--block-background);
  }

  article.--designer {
    grid-column: 1 / -1;

    @media (min-width: 1001px) {
      display: grid;
      grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    }
  }

  .__media {
    display: block;
    position: relative;
    flex: none;
    aspect-ratio: 4/3;
    overflow: clip;
  }

  .__media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  article:first-child .__media img {
    object-position: 55% top;
    mask-image: radial-gradient(ellipse 40% 30% at 100% 100%, transparent 85%, black 125%);
  }

  .__previews {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-template-rows: repeat(2, minmax(0, 1fr));
    gap: 0.25rem;

    picture {
      position: relative;
      min-height: 0;
      overflow: clip;

      &:first-child {
        grid-column: span 2;
        grid-row: span 2;
      }
    }
  }

  .__copy {
    display: flex;
    flex-direction: column;
    flex: 1;
    align-items: start;
    gap: 1.5rem;
    padding: 2rem;
    line-height: var(--line-height);
  }

  h2 {
    font-size: 1.25rem;
    margin: 0;
  }

  .link {
    margin-top: auto;
    white-space: normal;
  }

  @media (max-width: 1000px) {
    grid-template-columns: 1fr;

    article {
      display: grid;
      grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    }

    .__media {
      aspect-ratio: auto;
      min-height: 16rem;
    }
  }

  @media (max-width: 640px) {
    article {
      display: flex;
    }

    .__media {
      aspect-ratio: 4/3;
      min-height: 0;
    }

    .__copy {
      padding: 1.5rem;
    }
  }
}

.customshop-journey {
  h2 {
    margin: 0 0 2rem;
  }
}
