@tailwind components;
@tailwind utilities;

:root {
  font-family: "Inter", Calibri, "Trebuchet MS", sans-serif;
  font-size: 18px;

  @media (min-width: 768px) {
    font-size: 20px;
  }
}

* {
  margin: 0;
}

body {
  background-color: #f5fffa;
}

img,
video {
  max-width: 100%;
  height: auto;
}

@font-face {
  font-family: "Source Code Pro";
  src: url(/fonts/SourceCodePro-Regular.otf.woff2) format("woff2");
}

@font-face {
  font-family: "Inter";
  src: url(/fonts/Inter-Regular.woff2) format("woff2");
}

@layer components {
  .posts {
    @apply flex flex-col gap-10 md:gap-8;
  }

  .title {
    font-family: "Source Code Pro", monospace;
  }
}

.shiki {
  font-size: 16px;
  line-height: 1rem;
  padding: 18px;
  border-radius: 8px;
  margin-bottom: 16px;
}

h3,
hr {
  margin: 0.7em 0 0.5em 0;
}

#full-text p {
  margin: 0.5em 0 1.2em 0;
}

figcaption {
  color: gray;
  text-align: center;
  font-size: 0.9em;
}

#toc > ul {
  line-height: 2em;
}

li a {
  color: black;
}

table {
  border: 1px solid slategrey;
  padding: 4px;
  background-color: #f8f9fa;
  margin: 0.5em 0 1.2em 0;
}

th {
  text-align: left;
  white-space: nowrap;
}

td {
  text-align: left;
  white-space: nowrap;
}
