/*
Theme Name: Storyblock
Author: Meduzzen
Description: A blank WordPress theme
Version: 1.0
*/

/* standartization */

@font-face {
  font-family: "ABC Marfa";
  src: url("https://storyblok-hub.itcurated.com/wp-content/themes/storyblock-main/fonts/ABCMarfa-Regular.woff2")
    format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "ABC Marfa";
  src: url("https://storyblok-hub.itcurated.com/wp-content/themes/storyblock-main/fonts/ABCMarfa-Medium.woff2")
    format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "ABC Marfa";
  src: url("https://storyblok-hub.itcurated.com/wp-content/themes/storyblock-main/fonts/ABCMarfa-Semibold.woff2")
    format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "ABC Marfa";
  src: url("https://storyblok-hub.itcurated.com/wp-content/themes/storyblock-main/fonts/ABCMarfa-Bold.woff2")
    format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "ABC Marfa";
  src: url("https://storyblok-hub.itcurated.com/wp-content/themes/storyblock-main/fonts/ABCMarfa-Black.woff2")
    format("woff2");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --font-family: "ABC Marfa", sans-serif;
}

/* primary */

/* container */

.container {
  max-width: 1440px;
  margin: 0 auto;
}

@media screen and (min-width: 1401px) {
  .container {
    padding-left: 100px;
    padding-right: 100px;
  }
}

@media screen and (min-width: 1201px) and (max-width: 1400px) {
  .container {
    padding-left: 80px;
    padding-right: 80px;
  }
}

@media screen and (min-width: 801px) and (max-width: 1200px) {
  .container {
    padding-left: 50px;
    padding-right: 50px;
  }
}

@media screen and (max-width: 800px) {
  .container {
    padding-left: 20px;
    padding-right: 20px;
  }
}

/* body */

body,
body p {
  font-family: var(--font-family);
  font-weight: 400;
  line-height: 150%;
  font-size: 18px;
  letter-spacing: -0.01em;
  color: #000;
}

/* @media screen and (min-width: 1201px) {
  body,
  body p {
    font-size: 18px;
  }
}

@media screen and (min-width: 801px) and (max-width: 1200px) {
  body,
  body p {
    font-size: 17px;
  }
}

@media screen and (max-width: 800px) {
  body,
  body p {
    font-size: 16px;
  }
} */

/* headings */

h1,
.h1 {
  font-family: var(--font-family);
  font-weight: 700;
  font-size: 66px;
  line-height: 93%;
  letter-spacing: -0.01em;
}

h2,
.h2 {
  font-family: var(--font-family);
  font-weight: 700;
  font-size: 48px;
  line-height: 96%;
  letter-spacing: -0.01em;
}

h3,
.h3 {
  font-family: var(--font-family);
  font-weight: 500;
  font-size: 35px;
  line-height: 120%;
}

h4,
.h4 {
  font-family: var(--font-family);
  font-weight: 500;
  font-size: 25px;
  line-height: 120%;
}

/* @media screen and (min-width: 1201px) {
  h1,
  .h1 {
    font-size: 66px;
  }

  h2,
  .h2 {
    font-size: 48px;
  }

  h3,
  .h3 {
    font-size: 35px;
  }

  h4,
  .h4 {
    font-size: 25px;
  }
}

@media screen and (min-width: 801px) and (max-width: 1200px) {
  h1,
  .h1 {
    font-size: 60px;
  }

  h2,
  .h2 {
    font-size: 40px;
  }

  h3,
  .h3 {
    font-size: 30px;
  }

  h4,
  .h4 {
    font-size: 20px;
  }
}

@media screen and (max-width: 800px) {
  h1,
  .h1 {
    font-size: 48px;
  }

  h2,
  .h2 {
    font-size: 35px;
  }

  h3,
  .h3 {
    font-size: 25px;
  }

  h4,
  .h4 {
    font-size: 18px;
  }
}

@media screen and (max-width: 530px) {
  h1,
  .h1 {
    font-size: 35px;
  }
} */

/* buttons */

.btn {
  display: inline-flex;
  border: 1px solid #000;
  font-family: var(--font-family);
  font-weight: 400;
  line-height: 120%;
  color: #000;
  border-radius: 8px;
  max-width: fit-content;
  max-height: fit-content;
  box-sizing: border-box;
  transition: all 0.3s;
}

.btn-size-small {
  font-size: 13px !important;
  padding: 7px 11px 8px;
}

.btn-size-medium {
  font-size: 18px !important;
  padding: 7px 11px 8px;
}

.btn-size-big {
  font-weight: 500;
  padding: 8px 20px;
}

.btn-bg-black {
  color: #fff;
  background: #000;
}

.btn-bg-black:active {
  background: #4a4a4a;
}

@media screen and (min-width: 1201px) {
  .btn {
    font-size: 18px;
  }

  .btn-size-big {
    font-size: 25px;
  }

  .btn:hover {
    background: #f5f5f7;
  }

  .btn-bg-black:hover {
    background: #4a4a4a;
  }
}

@media screen and (max-width: 1200px) {
  .btn:active {
    background: #f5f5f7;
  }
}

@media screen and (min-width: 801px) and (max-width: 1200px) {
  .btn {
    font-size: 17px;
  }

  .btn-size-big {
    font-size: 22px;
  }
}

@media screen and (max-width: 800px) {
  .btn {
    font-size: 16px;
  }

  .btn-size-big {
    font-size: 18px;
  }
}

/* subpage content */

.category-page {
  overflow: hidden;
}

.subpage-content {
  padding-top: 230px;
  display: flex;
  flex-direction: column;
}

.subpage-content__title {
  color: #000;
}

.subpage-content__cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.cards__item {
  display: flex;
  flex-direction: column;
  border: 1px solid #d1d3d9;
  border-radius: 8px;
  overflow: hidden;
  box-sizing: border-box;
  background: #fff;
}

.cards__item * {
  transition: all 0.3s;
}

.cards__head img {
  object-fit: cover;
  background-size: cover;
  border-radius: 8px;
}

.cards__content {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.cards__tag {
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #000;
  margin-bottom: 13px;
}

.cards__title,
.cards__desc {
  flex-grow: 1;
}

.cards__desc {
  margin-top: auto;
}

.cards__title,
.cards__desc p,
.cards__btn {
  color: #000;
}

@media screen and (min-width: 1401px) {
  .subpage-content__cards {
    column-gap: 35px;
    row-gap: 80px;
  }

  .subpage-content__head {
    margin-bottom: 66px;
  }

  .cards__title {
    margin-bottom: 15px;
    min-height: 168px;
  }

  .cards__desc {
    margin-bottom: 56px;
  }
}

@media screen and (min-width: 1201px) and (max-width: 1400px) {
  .subpage-content__cards {
    column-gap: 30px;
    row-gap: 50px;
  }

  .subpage-content__head {
    margin-bottom: 56px;
  }

  .cards__title {
    margin-bottom: 50px;
  }

  .cards__desc {
    margin-bottom: 40px;
  }
}

@media screen and (min-width: 1201px) {
  .cards__item {
    padding: 25px;
  }

  .cards__head img {
    height: 201px;
  }

  .cards__content {
    margin-top: 25px;
    padding-right: 25px;
  }
}

@media screen and (max-width: 1200px) {
  .subpage-content__cards {
    gap: 40px;
  }

  .subpage-content__head,
  .cards__title,
  .cards__desc {
    margin-bottom: 30px;
  }
}

@media screen and (min-width: 1001px) and (max-width: 1400px) {
  .subpage-content__cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media screen and (max-width: 1000px) {
  .subpage-content__cards {
    grid-template-columns: 1fr;
  }
}

@media screen and (min-width: 801px) and (max-width: 1200px) {
  .cards__head img {
    height: 180px;
  }

  .subpage-content {
    padding-top: 105px;
  }

  .cards__item {
    padding: 22px;
  }

  .cards__content {
    margin-top: 20px;
  }
}

@media screen and (max-width: 800px) {
  .subpage-content {
    padding-top: 153px;
  }

  .cards__item {
    padding: 20px;
  }

  .subpage-content__title {
    text-wrap-style: balance;
  }

  .cards__head img {
    height: 140px;
  }

  .cards__content {
    margin-top: 12px;
  }
}

.black-btn {
  background: #000000;
  color: #ffffff;
  border-radius: 6px;
  min-height: 43px;
  box-sizing: border-box;
  padding-left: 20px;
  padding-right: 20px;
  max-width: max-content;
  display: flex;
  align-items: center;
}

.black-btn:hover {
  background: #4a4a4a;
}

.black-btn:active {
  background: #4a4a4a;
}
