@font-face {
  font-family: mononoki;
  font-weight: 400;
  font-style: normal;
  src: url("/fonts/mononoki/mononoki-Regular.otf") format("opentype");
}

@font-face {
  font-family: mononoki;
  font-weight: 700;
  font-style: normal;
  src: url("/fonts/mononoki/mononoki-Bold.otf") format("opentype");
}

html {
  font-family: system-ui, -apple-system, "system-ui", "Segoe UI", Roboto, sans-serif;
}

a {
  font-weight: 450;
}

h1, h2, h3, h4, h5, h6 {
  font-family: "Source Serif 4", Georgia, serif;
  font-weight: 400;
}

b,
strong {
  font-weight: 500;
}

code,
pre {
  font-family: mononoki, Monaco, monospace;
}

main#content {
  margin: 90px auto 0;
  text-align: center;
}

main#content > .container {
  margin: 0 auto;
}

.list-posts > .list-title {
  margin-left: 0;
  text-align: center;
}

.list-posts .post-content .posts-year,
.list-posts .post-content .post-title {
  margin-left: 0;
  text-align: left;
}

.list-posts .post-content .post-title {
  margin-top: 18px;
}

.list-posts .posts-year {
  margin-top: 2.5rem;
}

.list-posts .post-content > .posts-year:first-child {
  margin-top: 0;
}

.list-posts .post-title .post-link {
  display: inline-block;
  text-decoration: none;
  width: auto;
}

.list-posts .post-title .post-date {
  color: hsl(var(--color-text-muted));
  font-size: 0.7rem;
  margin-left: 0.5em;
}

.post-title .post-link {
  width: auto;
}

.post .post-header-section {
  text-align: center;
}

.markdown-content {
  margin: 0 auto;
  text-align: center;
}

.prev-next {
  text-align: center;
}

.prev-post,
.next-post {
  float: none;
  max-width: none;
  text-align: center;
}

.post-content img,
.markdown-content img {
  border-radius: 1em;
}

.post .post-content,
.list-posts > .post-content {
  background-color: hsl(var(--color-bg-surface-1));
  border-radius: 1em;
  box-sizing: border-box;
  margin-top: 1.5em;
  padding: 1.5rem 2rem;
  text-align: left;
}

.post-content blockquote {
  margin-right: 0;
  margin-left: calc(-1em - 2px);
  background: hsl(var(--color-bg-surface-2));
  border-radius: 0.75rem;
}

.post .post-header-section,
.list-posts > .list-title {
  padding-top: 1em;
}

blockquote {
  margin-left: auto;
  margin-right: auto;
}

.post-content pre {
  border-radius: 0.75rem;
  text-align: left;
}

.post-content pre code {
  text-align: left;
}

.post-content iframe {
  border-radius: 0.75rem;
}

.post-content a {
  color: hsl(var(--color-text-secondary));
  text-decoration: none;
}

.post-content a:hover {
  color: hsl(var(--color-accent));
}

ul {
  padding-inline-start: 0.9em;
}

ol {
  padding-inline-start: 1.15em;
}

main#content:has(.home-social-icons) {
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - 140px);
}

main#content:has(.home-about) {
  align-items: center;
  margin: 64px auto 0;
  text-align: center;
}

main#content:has(.home-about) .home-about {
  display: block;
  margin: 0;
  text-align: center;
}

.home-about .avatar img {
  border-radius: 1em;
}

.header-nav .avatar {
  margin-left: 0;
  padding-left: calc(2em + 8px);
}

.header-nav .avatar img {
  border-radius: 8px;
}

.home-bio {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
  margin: 1.25rem auto 0;
  max-width: 36rem;
  text-align: center;
}

.home-bio a {
  color: hsl(var(--color-text-secondary));
  text-decoration: none;
}

.home-bio a.bio-link-hackerrank:hover,
html:has(link#dark-theme:not([disabled])) .home-bio a.bio-link-hackerrank:hover {
  color: #19aa59;
}

.home-bio a.bio-link-touch-ai:hover,
html:has(link#dark-theme:not([disabled])) .home-bio a.bio-link-touch-ai:hover {
  color: #00c864;
}

.home-bio a.bio-link-you-com:hover,
html:has(link#dark-theme:not([disabled])) .home-bio a.bio-link-you-com:hover {
  color: #5368ee;
}

.home-about .post-title {
  margin: 18px 0 0;
  text-align: center;
}

.home-about .post-title p {
  margin: 0;
}

.home-about .post-link {
  display: inline;
  font-family: "Source Serif 4", Georgia, serif;
  text-decoration: none;
  width: auto;
}

.home-projects.list-posts,
.home-posts.list-posts {
  align-items: center;
  display: flex;
  flex-direction: column;
  margin: 1.5rem auto 0;
  text-align: center;
  width: 80%;
}

.home-projects.list-posts h2,
.home-posts.list-posts h2 {
  margin-bottom: 0.5rem;
}

.home-projects.list-posts .post-title,
.home-posts.list-posts .post-title {
  margin: 18px 0 0;
  text-align: center;
  width: 100%;
}

.home-projects.list-posts .post-title p,
.home-posts.list-posts .post-title p {
  margin: 0;
}

.home-projects.list-posts .post-link,
.home-posts.list-posts .post-link {
  display: inline;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  width: auto;
}

.home-social-icons::before,
.home-projects.list-posts::before,
.home-posts.list-posts::before {
  background-color: currentColor;
  content: "";
  display: block;
  height: 1px;
  margin: 0 auto 0.75rem;
  opacity: 0.2;
  width: 2.5rem;
}

.home-social-icons {
  margin-top: auto;
  padding-bottom: 2rem;
  padding-top: 1.5rem;
  text-align: center;
}

.project-item {
  align-items: center;
  display: flex;
  flex-direction: column;
  text-align: center;
  width: 100%;
}

.project-tagline {
  color: hsl(var(--color-text-muted));
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 0.7rem;
  line-height: 1.5;
  margin: 0.5rem auto 0;
  max-width: 36rem;
  text-align: center;
}

.project-tagline a {
  color: inherit;
  text-decoration: none;
}

@media only screen and (max-width: 820px) {
  .list-posts .post-title .post-date {
    display: block;
    margin-left: 0;
    margin-top: 0.25rem;
  }

  .home-about {
    margin: 0;
  }

  .home-about .avatar img {
    border-radius: 1em;
  }

  .home-projects.list-posts,
  .home-posts.list-posts {
    margin-left: auto;
    margin-right: auto;
    width: auto;
  }
}
