@font-face {
  font-family: "cm-font";
  src: url("/fonts/DejaVuSansMono.woff2");
  font-display: block;
}

@font-face {
  font-family: "cm-font";
  src: url("/fonts/DejaVuSansMono-Bold.woff2");
  font-display: block;
  font-weight: bold;
}

@font-face {
  font-family: "poppins";
  src: url("/fonts/poppins-regular.woff2");
  font-display: block;
}

@font-face {
  font-family: "poppins";
  src: url("/fonts/poppins-bold.woff2");
  font-display: block;
  font-weight: bold;
}

@font-face {
  font-family: "bitter";
  src: url("/fonts/bitter-v19-latin-500.woff2");
  font-display: block;
  font-style: italic;
}

:root {
  --bg-color: #181818;
  --font-color: #fff;
  --font-family: "poppins", sans-serif;
  --footer-color: #999;
  --link-color: #fff;
  --code-font-family: "cm-font", monospace;
  --code-bg-color: #303446;
  --serif-font-family: "bitter", serif;
}

/* [data-theme="dark"] { */
/*   --bg-color: #1e1e2e; */
/*   --font-color: #fff; */
/*   --footer-color: #fff; */
/*   --link-color: #fff; */
/*   --code-bg-color: #303446; */
/* } */

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
  padding: 0;

  font-family: var(--font-family);
  background-color: var(--bg-color);
  color: var(--font-color);
}

body a {
  color: var(--link-color);
  text-decoration: underline;
  word-wrap: break-word;
}

body p {
  word-wrap: break-word;
}

header nav {
  display: flex;
  flex-direction: row;
  align-items: center;
}

ul.logo {
  display: flex;
  flex-direction: row;
  align-items: center;
  padding: 1rem;
  margin: 0;
}

ul.logo li {
  list-style: none;
}

ul.logo li a {
  color: var(--link-color);
  text-decoration: none;
  font-size: 1.5rem;
  font-weight: 600;
}

ul.logo li a:hover {
  text-decoration: underline;
}

details.dropdown {
  margin-left: auto;
  padding: 1rem;
  width: 100%;
}

details.dropdown[open] ul {
  display: flex;
  flex-direction: column;
  position: absolute;
  background-color: var(--bg-color);
  z-index: 99;
  margin: 0;
  margin-right: 1rem;
  padding: 0;
  right: 0;
  left: auto;
}

details.dropdown summary {
  display: flex;
  justify-content: right;
  cursor: pointer;
  font-size: 1.5rem;
}

details.dropdown ul li {
  list-style: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  margin: 0;
  border: 1px solid var(--font-color);
}

details.dropdown ul li a {
  color: var(--link-color);
  text-decoration: none;
}

details.dropdown ul li a:hover {
  text-decoration: underline;
}

ul.menu {
  display: none;
}

@media (min-width: 32rem) {
  details.dropdown {
    display: none;
  }

  ul.menu {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    margin-left: auto;
  }

  ul.menu li {
    list-style: none;
  }

  ul.menu li a {
    color: var(--link-color);
    text-decoration: none;
  }

  ul.menu li a:hover {
    text-decoration: underline;
  }
}

main {
  display: flex;
  flex-grow: 1;
  flex-direction: column;
  padding: 0 5%;
  max-width: 60rem;
}

@media (min-width: 60rem) {
  main {
    margin: 0 auto;
    width: 100%;
    padding: 0;
  }
}

main section h1 {
  font-size: 2.5rem;
}

main section article p {
  text-align: justify;
}

main ::-webkit-scrollbar {
  width: 10px;
  height: 10px;
  background-color: transparent;
}

main ::-webkit-scrollbar-track {
  background-color: transparent;
}

main ::-webkit-scrollbar-thumb {
  background: #8e8e8e;
  border: 1px solid #424242;
  border-radius: 5px;
}

main ::-webkit-scrollbar-thumb:hover {
  background: #555;
}

main section.post article hgroup {
  margin-bottom: 1rem;
}

main section.post article hgroup p {
  margin: 0;
}

main section.post article h1 {
  font-family: var(--serif-font-family);
  font-size: 2.5rem;
  font-weight: 500;
  text-transform: uppercase;
  margin-bottom: 0;
  line-height: 3rem;
}

main section.post article h2 {
  font-family: var(--serif-font-family);
}

main section.post article h2::after {
  content: "";
  display: block;
  height: 1px;
  width: 100%;
  background: var(--font-color);
  margin-top: 0.5rem;
}

main section.post article h3 {
  font-family: var(--serif-font-family);
}

main section.post article p {
  text-align: justify;
}

main section.post article p sup {
  font-size: 75%;
  vertical-align: middle;
  position: relative;
  top: -0.5rem;
}

main section.post article blockquote {
  margin: 1rem 0;
  padding: 0.5rem 1rem;
  border: 1px solid var(--font-color);
}

main section.posts article {
  margin-bottom: 2rem;
}

main section.posts article h2 {
  font-family: var(--serif-font-family);
  text-transform: uppercase;
  font-size: 1.5rem;
  margin-top: 0.5rem;
}

main section.posts article h2::after {
  content: "";
  display: block;
  height: 1px;
  width: 100%;
  background: var(--font-color);
  margin-top: 0.5rem;
}

main section.posts article h2 a {
  /* color: var(--link-color); */
  text-decoration: none;
}

main section.posts article h2 a:hover {
  text-decoration: underline;
}

main section.posts article p {
  margin: 0.75rem 0;
}

pre {
  line-height: initial;
}

pre.ascii {
  display: flex;
  justify-content: center;
  background-color: transparent;
}

pre code {
  display: block;
  filter: none;
  overflow-x: auto;
  font-family: var(--code-font-family);
  padding: 1rem;
  background-color: transparent;
  border-radius: 0.5rem;
}

p code {
  font-family: var(--code-font-family);
  background-color: var(--code-bg-color);
  padding: 0.1rem 0.4rem;
  margin: 0 0.1rem;
  border-radius: 0.25rem;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
  width: 100%;
  margin-bottom: 1rem;
}

table th {
  text-align: left;
  padding: 0.3rem 0.2rem 0.3rem 0.2rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

table td {
  padding: 0 0.2rem 0 0.2rem;
  text-align: left;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

section.hero {
  display: flex;
  flex-grow: 1;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

section.hero h1 {
  font-size: 3rem;
  font-weight: bold;
  line-height: 3rem;
  margin-bottom: 1.25rem;
}

section.hero h2 {
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1.25rem;
  margin-top: -1.25rem;
  margin-bottom: 1.25rem;
}

section.hero ul {
  list-style-type: none;
  margin: 0;
  padding: 0;
  text-align: center;
}

section.hero ul li {
  display: inline-block;
  padding: 0.75rem;
}

section.contact form {
  display: flex;
  flex-direction: column;
  width: 100%;
  margin-top: 1rem;
}

@media (min-width: 32rem) {
  section.contact form {
    width: 50%;
  }
}

section.contact form label {
  margin-bottom: 0.5rem;
}

section.contact form label,
section.contact form input,
section.contact form textarea {
  font-family: var(--font-family);
}

section.contact form input,
section.contact form textarea {
  padding: 0.5rem;
  margin-bottom: 1rem;
  border: 1px solid var(--font-color);
  border-radius: 0.25rem;
  margin-bottom: 1rem;
}

section.contact form textarea {
  height: 10rem;
}

section.contact form button {
  color: var(--font-color);
  background-color: var(--bg-color);
  padding: 0.5rem;
  border: 1px solid var(--font-color);
  border-radius: 0.25rem;
  margin-bottom: 1rem;
}

section.contact form button:hover {
  background-color: var(--font-color);
  color: var(--bg-color);
  cursor: pointer;
}

footer {
  text-align: center;
}

.button-round {
  display: inline-block;
  padding: 0.5rem 1rem;
  border-radius: 50%;
  background-color: var(--bg-color);
  filter: brightness(1.5);
}

.button-round:hover {
  filter: brightness(1.25);
}

.button-round .icon {
  margin: 0.25rem 0 0.25rem;
  width: 32px;
  height: 32px;
  stroke: currentColor;
  stroke-width: 0.75;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.img-round {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;

  img {
    object-fit: cover;
    border-radius: 50%;
    object-fit: cover;
    width: 16rem;
    height: 16rem;
    min-height: 16rem;
    min-width: 16rem;
    max-width: 16rem;
    max-height: 16rem;
  }
}

.table-horizontal-scroll {
  width: 100%;
  overflow-x: auto;
}

.blink {
  animation: blink 1s infinite;
}

@keyframes blink {
  0% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}
