:root {
  --dark: rgb(0, 51, 102);
  --less-dark: rgb(0, 91, 189);
  --light: #e5eaef;
  --text: rgb(37, 37, 37);
  --content-width: 50vw;
  --outer-space: 2rem;
}

* {
  box-sizing: border-box;
  contain: content;
}

html,
body {
  margin: 0;
  padding: 0;
  color: var(--text);
  font-family: 'Lato', sans-serif;
  font-size: 16px;
  scroll-behavior: smooth;
  min-height: 100vh;
}

body {
  display: flex;
  flex-direction: column;
}

.main {
  flex-grow: 1;
}

.section {
  padding: 2rem 0 4rem 0;
  display: flex;
  flex-direction: column;
  width: 100%;
  justify-content: center;
  align-items: center;
}

.section--header {
  background: var(--dark);
  background-image: url('./assets/bg_xl.jpg');
  color: var(--dark);
  background-size: cover;
}

.section--dark {
  background-color: var(--dark);
  color: #fff;
}

.section--light {
  background-color: var(--light);
}

.section__heading {
  font-size: 1.8rem;
  font-weight: 300;
  margin: 0 0 1rem 0;
  grid-area: heading;
  text-align: center;
  width: 100%;
  padding: 0.3rem calc(50% - var(--content-width) / 2);
  /* width: var(--content-width); */
  text-align: left;
}

.section__heading--light {
  background-color: var(--light);
}

.section__double {
  display: flex;
  justify-content: center;
  align-items: stretch;
  column-gap: 30px;
  width: var(--content-width);
}

.article {
  padding: 0 var(--outer-space);
  flex-grow: 1;
  flex-shrink: 0;
  flex-basis: 0;
  width: 100%;
  font-size: 0.9rem;
  max-width: calc(var(--content-width) + 2 * var(--outer-space));
}

.article__condensed {
  padding: 0;
  max-width: auto;
}

.article__heading {
  margin: 0 0 12px 0;
  font-size: 1.3rem;
  font-weight: 400;
  width: auto;
}

.article__paragraph {
  margin: 0 0 8px 0;
}

.article__divider {
  height: 1px;
  width: 100%;
  border: 0;
  background-color: #fff;
  margin: 0 0 2rem 0;
}

.article__fluid {
  display: flex;
  justify-content: flex-start;
  gap: 24px;
  align-items: stretch;
  flex-wrap: wrap;
}

.article__image {
  width: 10rem;
  height: auto;
  float: right;
  margin: 0 0 2rem 2rem;
  border: 2px solid #fff;
}

.list {
  margin: 0;
  padding: 0 0 0 24px;
  list-style: square;
}

.list__element {
  margin: 0;
  contain: none;
}

.gallery {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 0.5rem;
}

.gallery__image {
  display: block;
  max-height: 5rem;
  width: auto;
  flex-shrink: 1;
}

.gallery__image--full {
  grid-column: 1 / span 4;
  /* width: 100%; */
}

.footer {
  padding: 3rem var(--outer-space);
  display: flex;
  flex-direction: column;
  width: 100%;
  justify-content: center;
  align-items: center;


  background-color: var(--light);
}

.footer__double {
  flex-grow: 1;
  flex-shrink: 0;
  flex-basis: 0;
  width: 100%;
  font-size: 0.9rem;
  max-width: var(--content-width);
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.footer__text {
  color: var(--text);
}


.contact {
  display: flex;
  gap: 1rem;
}

.contact__link {
  display: block;
}

.contact__icon {
  height: 24px;
  width: auto;
}

.header {
  padding: 1.5rem 4rem;
  background-color: rgba(255, 255, 255, 1);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border-radius: 3px;
}

.logo {
  width: 140px;
  height: 140px;
  margin: 0 0 0.2rem 0;
}

.heading {
  font-size: 1.7rem;
  font-weight: 700;
  letter-spacing: 0.2rem;
  margin: 0 0 1rem 0;
}

.subheading {
  font-size: 1rem;
  font-weight: 400;
  margin: 0 0 3rem 0;
}

.link {
  color: var(--text);
  text-decoration: underline;
  padding: 0.2rem;
  margin: 0 -0.2rem;
}

.link:hover {
  outline: 1px solid var(--text);
}

.navigation {
  display: flex;
  justify-content: center;
  width: 100%;
  background: var(--light);
}

.navigation__list {
  max-width: var(--content-width);
  list-style: none;
  display: flex;
  gap: 2rem;
  padding: 0;
}

.navigation__item {
  margin: 0;
  padding: 0;
}

.navigation__link,
.navigation__link:visited {
  text-decoration: none;
  color: var(--dark);
}

.navigation__link:hover,
.navigation__link:active {
  color: var(--less-dark);
  text-decoration: underline;
}

.experience {
  border: 2px solid var(--light);
  border-radius: 2px;
  padding: 1rem 2rem;
  margin: 0;
  flex-shrink: 1;
  width: calc(50% - 24px);

}

.experience__text {
  margin: 0;
}

.experience__list {
  list-style: none;
  display: flex;
  padding: 0;
  justify-content: flex-start;
  gap: 2em;
  margin: 2rem 0 0 0;
  flex-wrap: wrap;
}

.experience__listitem {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.experience__listimage {
  width: auto;
  height: auto;
  max-width: 8rem;
  max-height: 8rem;
}

@media screen and (max-width: 1500px) {
  .experience {
    flex-grow: 1;
    width: 100%;
  }
}

@media screen and (max-width: 1200px) {
  :root {
    --content-width: 70vw;
  }
}

@media screen and (max-width: 1000px) {
  :root {
    --content-width: 80vw;
  }
}

@media screen and (max-width: 800px) {
  :root {
    --content-width: 100%;
  }

  .section__heading {
    padding: 0.3rem var(--outer-space);
  }

  .section__double {
    flex-direction: column;
    row-gap: 30px;
    padding: 0 var(--outer-space);
  }

  .article__fluid {
    flex-direction: column;
  }

  .header {
    padding: 1.5rem 2.5rem;
  }

  .section--header {
    background-image: url('./assets/bg_s.jpg');
  }

  .article__image {
    float: none;
    margin: 0 0 2rem 0;
  }

  .navigation__list {
    flex-wrap: wrap;
    justify-content: center;
  }

  .navigation__item {
    width: calc(50% - 1rem);
    text-align: center;
  }

}
