/*
 * Styling sheet.
 *
 * Inspiration:
 *   * Fred Zhang's (https://fredzhang.me) sheet.
*/

:root {
  --blue: #0870a9;
  --red: #980002; /* blood red */
}

/* General styling */

body {
  width: 60%;
  margin: 5% auto;
  font-family: 'Roboto', sans-serif;
  line-height: 1.5;
}

p {
  text-align: justify;
}

.hr { /* handwriting */
  font-family: 'Nothing You Could Do', 'Roboto', sans-serif;
  /* font-size: 2em; */
}

.tr { /* typewriting */
  font-family: Courier, 'Roboto', sans-serif;
}

@media (max-width: 1024px) {
  body {
    width: 80%;
  }
}

h1 {
  font-family: 'Playfair Display', serif;
  color: var(--red);
}

a {
  color: var(--blue);
  cursor: pointer;
  text-decoration: none;
  background-image: linear-gradient(to right, var(--blue) 50%, rgba(255, 255, 255, 0) 0%);
  background-position: bottom;
  background-size: 3px 1px;
  background-repeat: repeat-x;
}

a:hover {
  background-image: linear-gradient(to right, var(--blue) 100%, rgba(255, 255, 255, 0) 0%);
}

ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

/* Specific styling */

#title {
  margin-bottom: 0.2em;
}

#icon {
  background-image: none;
}

#icon img {
  width: 1em;
}

.section h1 {
  font-size: 1.7em;
  border-bottom: 1px solid #c9cad6;
}

.section a {
  color: #000;
  background-image: linear-gradient(to right, #000 50%, rgba(255, 255, 255, 0) 0%);
}

.section a:hover {
  background-image: linear-gradient(to right, #000 100%, rgba(255, 255, 255, 0) 0%);
}

.meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* Source: https://fellowtuts.com/tryit/css3-price-post-tags/ */

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 10px 0;
}

.tag {
  position: relative;
  display: inline-block;
  padding: 0 10px;
  margin-right: 10px;
  padding-right: 22px;
  height: 26px;
  line-height: 26px;
  background: var(--red);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  border-top-left-radius: 4px;
  border-bottom-left-radius: 4px;
}

.tag::before {
  content: "";
  position: absolute;
  top: 0;
  right: -13px;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 13px 0 13px 13px;
  border-color: transparent transparent transparent var(--red);
  z-index: 1;
}

.tag::after {
  content: "";
  position: absolute;
  top: 11px;
  right: -2px;
  width: 4px;
  height: 4px;
  background: #fff;
  border-radius: 50%;
  box-shadow: -1px -1px 2px #004977;
  z-index: 2;
}

.tag a {
  all: unset;
  text-decoration: none;
  cursor: pointer;
  color: inherit;
}