/* mixins */
/* footer */
.footer {
  height: 6rem;
  margin-top: 2.5rem;
}
.footer__ul {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
  gap: 1rem;
}
.footer__ul > li > a {
  font-size: 0.9rem;
}

/* filter */
.pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: center;
  gap: 10px;
  margin-top: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--primary-color);
}
.pills__a {
  display: block;
  padding: 7px 10px 5px 10px;
  border: 1px solid var(--primary-color);
  border-radius: 200px;
  color: var(--primary-color);
  text-decoration: none;
  white-space: nowrap;
}
.pills__a:hover {
  text-decoration: none;
  color: var(--primary-color-contrast);
  background-color: var(--primary-color);
}
.pills [aria-current=page] {
  background-color: var(--background-color-contrast);
  color: var(--primary-color-contrast);
}

/* card */
.cards-container {
  display: flex;
  flex-wrap: wrap;
}

.card {
  box-sizing: content-box;
  width: 340px;
  height: 425px;
  border: 1px solid var(--primary-color);
  margin: 20px;
  display: flex;
  flex-direction: column;
}
.card:hover {
  -webkit-box-shadow: 1.5px 1.5px 0px 0px var(--background-color-contrast);
  -moz-box-shadow: 1.5px 1.5px 0px 0px var(--background-color-contrast);
  box-shadow: 1.5px 1.5px 0px 0px var(--background-color-contrast);
}
.card *:hover {
  background-color: transparent;
  color: var(--primary-color);
}
.card__img {
  aspect-ratio: 4/3.7;
  height: auto;
  width: 340px;
  object-fit: cover;
  border-bottom: 1px solid var(--primary-color);
}
.card__content {
  padding: 10px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex-grow: 1;
}
.card a {
  text-decoration: none;
  color: var(--primary-color);
}
.card__link {
  align-self: flex-end;
  padding: 10px;
}
.card__title {
  margin-top: 0.5rem;
  display: inline-block;
}
.card__date {
  font-size: 1.4rem;
  font-weight: 200;
}

/* about.njk > about */
.about {
  margin-top: 2.5rem;
  padding: 20px;
  width: fit-content;
  border: 1px solid var(--primary-color);
  display: flex;
  justify-content: space-evenly;
  flex-wrap: wrap;
  gap: 20px;
}
.about:hover {
  -webkit-box-shadow: 1.5px 1.5px 0px 0px var(--background-color-contrast);
  -moz-box-shadow: 1.5px 1.5px 0px 0px var(--background-color-contrast);
  box-shadow: 1.5px 1.5px 0px 0px var(--background-color-contrast);
}
.about__pWrapper {
  width: 400px;
}
.about__pWrapper > p {
  display: inline-block;
  vertical-align: middle;
  font-size: larger;
  line-height: 1.5rem;
  padding: 1rem 0.5rem;
}
.about__imgwrapper {
  aspect-ratio: 1/1;
  width: 400px;
  height: 400px;
  overflow: hidden;
  outline: 1px solid var(--primary-color);
  border-radius: 50%;
}
.about__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* about.njk > bio  */
.bio {
  margin-top: 2.5rem;
}
.bio__title {
  margin-top: 0.3rem;
}
.bio__type {
  display: inline-block;
  font-size: smaller;
  color: var(--primary-color);
  text-decoration: none;
  width: fit-content;
  margin: 0.3rem 2px 0 2px;
}
.bio__navigation {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 1.5rem;
}
.bio__navigation > a {
  text-decoration: none;
  color: var(--primary-color);
  margin: 0 10px;
  text-decoration: underline;
}
.bio__navigation > a:hover {
  background-color: var(--background-color);
  color: var(--primary-color);
  font-weight: 400;
}
.bio__date {
  margin-top: 2rem;
  font-weight: 600;
}
.bio__info {
  margin-top: 0;
}

/* article.njk */
.article {
  margin: 0 auto;
  width: fit-content;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.article__date {
  font-size: 1.5rem;
  font-weight: 200;
}
.article__cover {
  margin-top: 2rem;
  width: min(100%, 800px);
  border: 1px solid var(--primary-color);
}
.article__cover > picture * {
  width: 100%;
  height: auto;
}
.article__content {
  margin-top: 2rem;
  width: min(100%, 800px);
}
.article__content > p {
  margin-top: 1.5rem;
  line-height: 2;
}
.article__content > p > picture > img {
  display: block;
  margin: 3rem auto 0 auto;
  width: min(100%, 600px);
  height: auto;
  border: 1px solid var(--primary-color);
}
.article__content figcaption {
  font-size: 0.8rem;
  font-style: italic;
  display: block;
  margin: 1rem auto 2rem auto;
  width: fit-content;
}
.article__links {
  list-style-type: disc;
  padding-left: 20px; /* Adjust indentation */
  margin: 10px 0;
}
.article__images {
  display: grid;
  width: min(100%, 800px);
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 2rem;
}
.article__images > picture > img {
  width: 100%;
  height: auto;
  border: 1px solid var(--primary-color);
}
.article__h2 {
  width: min(100%, 800px);
}

/* contact */
.contact {
  border: 1px solid var(--primary-color);
  padding: 2rem 20px;
  width: fit-content;
}
.contact > h2:first-child {
  margin-top: 0;
}
.contact:hover {
  -webkit-box-shadow: 1.5px 1.5px 0px 0px var(--background-color-contrast);
  -moz-box-shadow: 1.5px 1.5px 0px 0px var(--background-color-contrast);
  box-shadow: 1.5px 1.5px 0px 0px var(--background-color-contrast);
}

.hero {
  margin-top: 60px;
}
.hero__imgWrapper {
  width: 100vw;
  height: calc(100vh - 60px);
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--primary-color);
}
.hero__img {
  width: 110%;
  height: 110%;
  object-fit: cover;
  position: absolute;
  top: -5px;
  left: -5px;
  pointer-events: none;
  filter: brightness(0.5);
}
.hero__h1 {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 4rem;
  font-weight: 300;
  color: var(--primary-color-contrast);
}
.hero__p {
  margin: 7rem 10% 7rem 10%;
  font-size: 1.3rem;
  font-weight: 200;
}