html {
  overflow-y: auto;
  scrollbar-gutter: stable;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  width: 100%;
}

.pretty-face {
  margin-bottom: 1rem;
  background: linear-gradient(180deg, #4893a5 15%, #2c4353 85%);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}

.space {
  font-family: 'Space Mono', monospace;
}

.large {
  font-size: 4.0rem;
}

.medium {
  font-size: 3.0rem;
}

.small {
  font-size: 2.0rem;
}

.tiny {
  font-size: 1.5rem;
}

.header-link {
  text-decoration: none;
  background: none;
  color: inherit;
}

.header-link:hover .pretty-face {
  background: linear-gradient(180deg, #6bb3d5 15%, #4a7a92 85%);
  background-clip: text;
  -webkit-background-clip: text;
}

/*noinspection CssReplaceWithShorthandSafely*/
a {
  background: linear-gradient(to right,
      rgba(72, 147, 165),
      rgba(72, 147, 165)),
    linear-gradient(to right,
      rgba(255, 0, 0, 1),
      rgba(255, 0, 180, 1),
      rgba(0, 100, 200, 1));
  background-size: 100% 3px, 0 3px;
  background-position: 100% 100%, 0 100%;
  background-repeat: no-repeat;
  transition: background-size 400ms;
  text-decoration: none;
}

a:link {
  color: rgba(113, 177, 193, 0.65);
}

a:visited {
  color: rgba(113, 177, 193, 0.65);
}

a:active {
  color: rgba(113, 177, 193, 0.65);
}

a:hover {
  background-size: 0 3px, 100% 3px;
}


.main {
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: #333333;
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}

.content {
  display: flex;
  flex-direction: row;
  column-gap: 10rem;
  row-gap: 1.0rem;
  flex-wrap: wrap;
}

.recent-writings {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  width: 100%;
  max-width: 900px;
  padding-bottom: 1.5rem;
}

.entry {
  position: relative;
  display: flex;
  flex-direction: row;
  gap: 2.0rem;
  align-items: center;
  padding: 2rem;
  padding-left: 1.5rem;
  background: rgba(44, 67, 83, 0.3);
  border-radius: 0.5rem;
}

.entry::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 4px;
  height: 100%;
  background-image: linear-gradient(to bottom, #4893a5 0%, #2c4353 100%),
    linear-gradient(to bottom, rgba(255, 0, 0, 1) 0%, rgba(255, 0, 180, 1) 50%, rgba(0, 100, 200, 1) 100%);
  background-size: 100% 100%, 0 100%;
  background-repeat: no-repeat;
  background-position: center;
  transition: background-size 400ms ease;
  border-radius: 0 0.25rem 0.25rem 0;
}

.entry-content {
  flex: 1;
}

.entry-title {
  margin: 0 0 0.75rem 0;
  background: linear-gradient(180deg, #4893a5 15%, #2c4353 85%);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  font-size: 1.5rem;
}

.entry-description {
  margin: 0;
  color: rgba(200, 200, 200, 0.85);
  font-size: 1.0rem;
  line-height: 1.3;
}

.entry-image {
  max-width: 200px;
  height: auto;
  opacity: 1;
  padding: 0;
  border-radius: 0.5rem;
  flex-shrink: 0;
}

.entry-link {
  display: block;
  text-decoration: none;
  background: none;
}

.entry-link:hover .entry {
  background: rgba(44, 67, 83, 0.6);
}

.entry-link:hover .entry::before {
  background-size: 0 100%, 100% 100%;
}

.entry-link:hover .entry-title {
  background: linear-gradient(180deg, #6bb3d5 15%, #4a7a92 85%);
  background-clip: text;
  -webkit-background-clip: text;
}

.entry-link:hover .entry-description {
  color: rgba(200, 200, 200, 1);
}

@media (max-width: 760px) {
  .recent-writings {
    gap: 1.25rem;
  }

  .entry {
    flex-direction: column;
    align-items: stretch;
    padding: 1.25rem;
  }

  .entry::before {
    left: 0;
    top: 0;
    height: 100%;
  }

  .entry-content {
    margin-bottom: 1rem;
  }

  .entry-title {
    font-size: 1.25rem;
  }

  .entry-description {
    font-size: 0.95rem;
    line-height: 1.6;
  }

  .entry-image {
    width: 100%;
    max-width: 100%;
  }
}