:root {
  --color-text: #000000;
  --color-background: #fbfefe;
  --color-primary: #b81e2b;
  --color-secondary: #ebfcfb;
  --color-accent: #b81e2b;
}

body {
  font:
    15px Helmet,
    Freesans,
    sans-serif;
  background: var(--color-background);
  color: var(--color-text);
}

* {
  box-sizing: border-box;
}

.page-content {
  width: 80%;
  max-width: 1000px;
  margin: 50px auto 0;
  display: flex;
  flex-direction: column;
}

@media only screen and (max-width: 600px) {
  .page-content {
    width: 100vw;
    max-width: 100vw;
    margin: 0;
    padding: 10px;
  }
  .main .main--info {
    padding-left: 10px;
    padding-right: 10px;
  }
}

.main .main--sidebar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.info {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.name {
  font-size: 2em;
  font-family: monospace;
  letter-spacing: -2px;
}

.aboutme {
  color: var(--color-accent);
}

.main {
  margin: 20px 0 40px 0;
  display: flex;
  justify-content: center;
}

.main--sidebar {
  flex-grow: 1;
}

.main--info {
  padding-left: 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.main--info > * {
  margin-bottom: 20px;
}

h2 {
  font-size: 1.2em;
  line-height: 1.4em;
}

p {
  line-height: 1.3em;
}

.bio {
  font-size: 1em;
  max-width: 500px;
  align-self: center;
}

.bio a {
  font-weight: bold;
}

.photo {
  border-radius: 100%;
  width: 180px;
  max-width: 180px;
}

.footer {
  display: flex;
  justify-content: center;
  column-gap: 25px;
  flex-wrap: wrap;
}

a {
  color: #444;
  text-decoration: none;
}

a:hover,
a:focus {
  text-decoration: underline;
  color: #666;
}

.footer a {
  font-family: monospace;
  font-size: 1.2em;
  white-space: nowrap;
  margin-right: 10px;
  margin-bottom: 10px;
}

.footer .fab {
  margin-right: 4px;
}

.interviews {
  text-align: left;
}

.interview--article {
  margin-top: 20px;
}

.interview--quote {
  display: inline-block;
  margin: 5px 0 5px 10px;
}

.media--list {
  display: flex;
  flex-wrap: wrap;
  row-gap: 20px;
  justify-content: center;
}

.media--article {
  width: 250px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.media--article:hover {
  background-color: var(--color-secondary);
  border-radius: 20px;
  transition: background-color 0.2s ease-in-out;
}

.media--image {
  height: 300px;
  display: inline-block;
}

.media--image img {
  height: 100%;
}
.media--info {
  text-align: center;
}

.media--date {
  display: block;
  color: var(--color-accent);
}

.blurred-img {
  background-repeat: no-repeat;
  background-size: cover;
  filter: blur(10px);
  height: 100%;
}
.blurred-img img {
  opacity: 0;
  transition: opacity 0.1s ease-in-out;
}

.blurred-img::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  animation: pulse 2.5s infinite;
  animation-timing-function: ease-in-out;
  background-color: white;
}

@keyframes pulse {
  0% {
    opacity: 0;
  }
  50% {
    opacity: 0.1;
  }
  100% {
    opacity: 0;
  }
}

.blurred-img.loaded {
  filter: none;
  background-image: none !important;
}
.blurred-img.loaded::before {
  animation: none;
  content: none;
}
.blurred-img.loaded img {
  opacity: 1;
}
