html {
  box-sizing: border-box;
}

*, ::before, ::after {
  box-sizing: inherit;
}

body {
  margin: 0;
  min-width: 320px;
  color: #333;
  font: normal 16px/32px Arial, sans-serif;
}

h1, h2, h3 {
  margin: 0;
  padding: 0;
}

figure {
  margin: 0;
  padding: 0;
}

img {
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

a {
  text-decoration: none;
  color: inherit;
}

a:focus-visible {
  outline: none;
}

p {
  margin-top: 0;
  margin-bottom: 0;
}

ul {
  margin-bottom: 0;
  margin-top: 0;
  padding-left: 0;
  list-style: none;
}

input, textarea, select {
  -webkit-appearance: none;
}

input[type='number'] {
  -moz-appearance: textfield;
}

input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

picture {
  font-size: 0;
  line-height: 0;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

:root {
  --light-green-color: #99ff99;
  --carrot-color: #f36223;
}

.container {
  margin-left: auto;
  margin-right: auto;
}

.header {
  color: #333;
}

.portfolio-article {
  position: relative;
  width: fit-cpntent;
  background-color: #333;
  border: 1px dashed red;
  overflow: hidden;
}

.portfolio-article figcaption {
  position: absolute;
  bottom: 0;
  color: #fff;
}

.portfolio-article__desc {
  position: absolute;
  color: #fff;
  transform: translateY(100%);
}

.portfolio-article:hover .portfolio-article__desc {
  transform: translateY(-100%);
}

.portfolio-article figcaption,
.portfolio-article__desc {
  transition: .2s cubic-bezier(1, -1, 2, 3);
}

.footer {
  color: #fff;
}

@media(max-width: 500px) {
  .container {
    max-width: 480px;
    padding-left: 15px;
    padding-right: 15px;
  }
  
  .header {
    padding-top: 16px;
    padding-bottom: 18px;
  }
  
  .header__title {
    font-size: 16px;
    font-style: normal;
  }
}