@tailwind base;
@tailwind components;
@tailwind utilities;

@font-face {
  font-family: "Gilroy";
  src: url("./gilroy-light-webfont.woff2") format("woff2"),
    url("./gilroy-light-webfont.woff") format("woff");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Gilroy";
  src: url("./gilroy-regular-webfont.woff2") format("woff2"),
    url("./gilroy-regular-webfont.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Gilroy";
  src: url("./gilroy-medium-webfont.woff2") format("woff2"),
    url("./gilroy-medium-webfont.woff") format("woff");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Gilroy";
  src: url("./gilroy-bold-webfont.woff2") format("woff2"),
    url("./gilroy-bold-webfont.woff") format("woff");
  font-weight: bold;
  font-style: normal;
  font-display: swap;
}

html {
  @apply bg-backdrop;
}

body {
  @apply mx-auto text-base antialiased font-medium bg-white max-w-screen-2xl;
}

strong {
  @apply font-bold;
}

h1,
.h1 {
  @apply mb-8 text-4xl font-light;
}

h2,
.h2 {
  @apply mb-6 text-2xl font-bold;
}

h3,
.h3,
h4,
.h4 {
  @apply mb-1 text-base font-bold;
}

p {
  @apply mb-4;
}

a {
  color: blue;
  text-decoration: underline;
}

.btn {
  @apply inline-block px-4 py-1 font-medium text-black no-underline rounded-full bg-lemon;
}

.blob {
  @apply relative my-10 overflow-hidden;

  padding-top: 115px;
  padding-bottom: 115px;
}

.blob:before,
.blob:after {
  @apply absolute block w-full bg-top bg-no-repeat;
  content: "";
  z-index: 0;
}

.blob:before {
  @apply bg-top;
  height: 180px;
  top: 0px;
}

.blob:after {
  @apply bg-bottom;
  height: 130px;
  bottom: 0px;
}

.blob .container,
.blob .container > div {
  @apply relative;
  z-index: 1;
}

.blob-yellow:before,
.blob-yellow:after {
  background-image: url("../images/blob-yellow.svg");
  background-size: 2043px 1024px;
}

.blob-green:before,
.blob-green:after {
  background-image: url("../images/blob-green.svg");
  background-size: 2043px 1081px;
}

.blob-green:after {
  height: 150px;
}

.blob-green-2 {
  padding-bottom: 175px;
}

.blob-green-2:before,
.blob-green-2:after {
  background-image: url("../images/blob-green-2.svg");
  background-size: 1916px 456px;
}

.blob-green-2:after {
  height: 190px;
}

.blob .container:after {
  @apply absolute;
  content: "";
  width: calc(100% + 200px);
  left: -100px;
  z-index: 0;
}

.blob-yellow .container:after {
  background: #fff6bc;
  height: calc(100% - 65px);
  top: 55px;
}

.blob-green .container:after {
  background: #e0ffc0;
  height: calc(100% - 90px);
  top: 55px;
}

.blob-green-2 .container:after {
  background: #b8e986;
  height: calc(100% - 70px);
  top: 55px;
}

@media (max-width: 1024px) {
  .blob {
    padding-top: 85px;
    padding-bottom: 85px;
  }

  .blob-green-2 {
    padding-top: 120px;
    padding-bottom: 120px;
  }
}

@media (max-width: 767px) {
  .blob {
    padding-top: 50px;
    padding-bottom: 50px;
  }
}

.container {
  @apply relative w-full px-6 mx-auto max-w-screen-xl;
}

.site-footer {
  @apply relative;
}

.site-footer:before {
  @apply absolute w-full;
  display: block;
  content: "";
  height: 5px;
  bottom: 0;
  left: 0;
  background: rgb(43, 249, 217);
  background: linear-gradient(
    90deg,
    rgba(43, 249, 217, 1) 0%,
    rgba(242, 255, 35, 1) 100%
  );
}

.client-strip img {
  @apply w-full;
  filter: grayscale(100%);
}

.client-strip a {
  @apply block p-4;
}

.client-strip a:hover img {
  filter: grayscale(0%);
}

@media (min-width: 1024px) {
  .home-hero {
    @apply font-normal;

    h1 {
      font-size: 3rem;
    }

    p {
      font-size: 1.8rem;
    }

    .btn {
      font-size: 1.2rem;
    }
  }
}

.highlight pre {
  @apply p-4 rounded max-w-full overflow-x-scroll;
  font-size: 1rem;
}

.markdown {
  ul {
    @apply pl-4 mb-2 list-disc;
  }

  @apply font-normal;

  h1 {
    @apply font-bold leading-tight;
  }

  * + h1,
  * + h2,
  * + h3 {
    @apply mt-8;
  }

  @media (max-width: 1024px) {
    h1 {
      @apply text-2xl;
    }
  }

  pre {
  }
}
