/*
1. Use a more-intuitive box-sizing model.
*/
*, *::before, *::after {
  box-sizing: border-box;
}

/*
2. Remove default margin
*/
* {
  margin: 0;
}

/*
Typographic tweaks!
3. Add accessible line-height
4. Improve text rendering
*/
body {
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/*
5. Improve media defaults
*/
img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
}

/*
6. Remove built-in form typography styles
*/
input, button, textarea, select {
  font: inherit;
}

/*
7. Avoid text overflows
*/
p, h1, h2, h3, h4, h5, h6 {
  overflow-wrap: break-word;
}

/*
8. Create a root stacking context
*/
#root, #__next {
  isolation: isolate;
}

html {
  font-family: "Epilogue", sans-serif;
  font-optical-sizing: auto;
  font-weight: 500;
  font-style: normal;
  color: #333333;
  letter-spacing: -0.02rem;
}

a {
  color: #D53D4C;
}

.c2a {
  position: fixed;
  left: 1.5rem;
  top: 1.5rem;
  z-index: 999;
}

header {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.5rem;
  max-width: 80rem;
  margin: 1rem auto 0 auto;
}
@media (min-width: 961px) {
  header {
    padding: 4rem;
    flex-direction: row;
  }
}
header .missionstatement {
  font-size: clamp(1.6rem, 2.6vw, 2.8rem);
  order: 2;
  max-width: 50rem;
  color: #E95160;
  letter-spacing: -0.1rem;
  line-height: 120%;
  font-weight: 700;
  padding: 2rem 2rem 0 0;
}
@supports not (font-size: clamp(1.6rem, 2.6vw, 2.8rem)) {
  header .missionstatement {
    font-size: min(max(1.6rem, 2.6vw), 2.8rem);
  }
}
@media (min-width: 961px) {
  header .missionstatement {
    padding: 4rem 2rem 0 0;
    order: 1;
  }
}
header .logo {
  order: 1;
  align-self: flex-end;
}
header .logo img {
  width: 8rem;
  height: auto;
}
@media (min-width: 961px) {
  header .logo {
    align-self: flex-start;
    order: 2;
  }
  header .logo img {
    width: 15rem;
    height: auto;
  }
}
@media (min-width: 1401px) {
  header .logo {
    align-self: flex-start;
    order: 2;
  }
  header .logo img {
    width: 20rem;
    height: auto;
  }
}

.container {
  position: relative;
  margin: 0 auto;
  width: 100%;
  max-width: 40rem;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}
@media (min-width: 961px) {
  .container {
    max-width: 42rem;
  }
}
@media (min-width: 1401px) {
  .container {
    max-width: 45rem;
  }
}

.textblock {
  margin-bottom: 2rem;
}

.introduction {
  padding: 0;
}
@media (min-width: 961px) {
  .introduction {
    padding: 2rem 0;
  }
}
.introduction .hero-slider {
  width: 90%;
  margin: 0 auto;
  display: block;
  z-index: 99;
  position: relative;
  rotate: -4deg;
}
.introduction .hero-slider img {
  border: 15px solid #ffffff;
  width: 100% !important;
  height: auto;
}
@media (min-width: 961px) {
  .introduction .hero-slider img {
    border: 20px solid #ffffff;
  }
}
@media (min-width: 1101px) {
  .introduction .hero-slider {
    max-width: 80vw;
  }
}
@media (min-width: 1401px) {
  .introduction .hero-slider {
    max-width: 60vw;
  }
}
.introduction .highlight {
  position: relative;
  z-index: 1;
  background-color: #fbe2e4;
  padding-top: 10rem;
  padding-bottom: 4rem;
  margin: 0 auto;
  margin-top: -6rem;
  max-width: calc(40rem + 100px);
  margin-bottom: 3rem;
}
@media (min-width: 961px) {
  .introduction .highlight {
    margin-top: -4rem;
    max-width: calc(42rem + 100px);
  }
}
@media (min-width: 1401px) {
  .introduction .highlight {
    max-width: calc(45rem + 100px);
  }
}
@media (min-width: 961px) {
  .introduction .highlight {
    rotate: 2deg;
  }
}
@media (min-width: 961px) {
  .introduction .highlight .container {
    rotate: -2deg;
  }
}
.introduction .highlight .container p {
  margin-bottom: 1.5rem;
  font-size: clamp(1.1rem, 1.15vw, 1.2rem);
}
@supports not (font-size: clamp(1.1rem, 1.15vw, 1.2rem)) {
  .introduction .highlight .container p {
    font-size: min(max(1.1rem, 1.15vw), 1.2rem);
  }
}

.content h2 {
  margin-bottom: 1rem;
  line-height: 110%;
  font-size: 1.5rem;
  letter-spacing: -0.05rem;
  font-weight: 700;
  font-size: clamp(1.7rem, 1.9vw, 2rem);
}
@supports not (font-size: clamp(1.7rem, 1.9vw, 2rem)) {
  .content h2 {
    font-size: min(max(1.7rem, 1.9vw), 2rem);
  }
}

.content p {
  font-weight: 500;
  margin-bottom: 2.5rem;
  font-size: clamp(1.1rem, 1.15vw, 1.2rem);
}
@supports not (font-size: clamp(1.1rem, 1.15vw, 1.2rem)) {
  .content p {
    font-size: min(max(1.1rem, 1.15vw), 1.2rem);
  }
}

footer {
  padding: 5rem 0 0 0;
  font-size: 0.8rem;
}
footer:after {
  content: "";
  background: url(img/pattern.svg);
  background-repeat: repeat-x;
  height: 50px;
  display: block;
  width: 100%;
}
footer .container {
  margin-bottom: 2rem;
}

.button {
  padding: 0.8rem 1rem;
  background-color: #D53D4C;
  color: #ffffff;
  font-size: 1.2rem;
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  transition: all 0.15s ease-in-out 0s;
}
.button .arrow {
  transition: all 0.15s ease-in-out 0s;
}
.button:hover {
  background-color: #e42d3f;
}
.button:hover .arrow {
  margin-left: 1rem;
}

@keyframes slideshow__fade {
  0% {
    opacity: 0;
    z-index: 2;
  }
  6.6666666667% {
    opacity: 1;
  }
  26.6666666667% {
    opacity: 1;
  }
  27.6666666667% {
    opacity: 0;
    z-index: 1;
  }
  100% {
    opacity: 0;
  }
}
.slideshow {
  position: relative;
}

.slideshow img:not(:first-child) {
  position: absolute;
  left: 0;
  top: 0;
  margin: 0 auto;
  animation-duration: 30s;
  animation-fill-mode: both;
  animation-iteration-count: infinite;
  animation-name: slideshow__fade;
  animation-timing-function: ease-in;
  transition: opacity 2s ease-in;
}

.slideshow img:nth-child(1) {
  animation-delay: 0s;
}

.slideshow img:nth-child(2) {
  animation-delay: 6s;
}

.slideshow img:nth-child(3) {
  animation-delay: 12s;
}

.slideshow img:nth-child(4) {
  animation-delay: 18s;
}

.slideshow img:nth-child(5) {
  animation-delay: 24s;
}
