article {
  margin-top: 30px;
}

article.about {
  margin: 0;
}
article.about h1 {
  margin: 0;
  font-family: "Libre Baskerville", serif;
  font-size: clamp(2rem, 1.3rem + 3.1vw, 3rem);
}
article.about p.title {
  font-size: 1.1rem;
  margin: 0;
  color: var(--subtle);
}
article.about .photo {
  float: right;
  width: 100px;
  height: 100px;
  border-radius: 100px;
  overflow: hidden;
  margin-left: 20px;
}
article.about .photo img {
  width: 100px;
  position: relative;
  top: -15px;
}
@media (max-width: 375px) {
  article.about .photo {
    display: none;
  }
}
@media (min-width: 576px) {
  article.about .photo {
    width: 150px;
    height: 150px;
  }
  article.about .photo img {
    width: 150px;
  }
}
@media (min-width: 799px) {
  article.about .photo {
    width: 200px;
    height: 200px;
  }
  article.about .photo img {
    width: 200px;
  }
}

article.writing table {
  width: 100%;
  border-collapse: collapse;
}
article.writing table tr {
  border-bottom: 1px solid var(--border);
}
article.writing table tr td {
  font-size: 0.9rem;
  padding: 10px 0;
}
@media (max-width: 576px) {
  article.writing table tr td {
    display: block;
  }
  article.writing table tr td:first-child {
    padding-bottom: 0;
    font-size: 0.8rem;
  }
  article.writing table tr td:last-child {
    padding-top: 0;
  }
}
article.writing table tr td a {
  text-decoration: none;
}
article.writing table tr td a:hover {
  text-decoration: underline;
}
article.writing table tr td:first-child {
  margin-right: 20px;
}
article.writing table tr:last-child {
  border-bottom: none;
}

article.projects h2 a {
  color: inherit;
  text-decoration: none;
}
article.projects h2 a:hover {
  text-decoration: underline;
}
article.projects .cards {
  display: grid;
  gap: 1rem;
}
@media (min-width: 799px) {
  article.projects .cards {
    grid-template-columns: repeat(2, 1fr);
  }
}
article.projects .card {
  font-size: 0.8rem;
  border-radius: 5px;
  overflow: hidden;
  border: 1px solid var(--border);
  background-color: var(--card-bg);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}
article.projects .card:hover {
  border-color: var(--rule);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transform: translateY(-1px);
}
article.projects .card .card-body {
  padding: 0.6rem;
}