@font-face {
  font-family: 'Myna';
  src: url('/Myna.otf') format('opentype');
}

:root {
  --breakpoint-sm: 640px;
  --breakpoint-md: 768px;
  --breakpoint-lg: 1024px;
  --breakpoint-xl: 1280px;

  --text-color: #111111;
  --background-color: #fefefe;

  --a-color: crimson;
  --sep-color: lavender;
  --blockquote-border-color: lavender;

  --code-background-color: lavender;
  --code-color: indigo;

  --table-border-color: lavender;
}

* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

body {
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;

  color: var(--text-color);
  background-color: var(--background-color);
  display: flex;
  flex-flow: column;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 1.4rem;
  letter-spacing: 1px;
  line-height: 1.5;
  margin: 0 auto;
  width: 75vw;
  padding: 2rem 0;
}

main {
  flex: 1;
  margin: 1.5rem 0 3rem 0;
}

h1 {
  font-weight: bold;
  margin: 1rem 0;
}

h2 {
  font-weight: bold;
  margin: 1rem 0;
}

h3 {
  font-weight: bold;
  margin: 0.75rem 0;
}

a {
  color: var(--a-color);
  text-decoration: none;
}

hr {
  background-color: var(--sep-color);
  border-radius: 2px;
  border: none;
  height: 2px;
  margin: 2rem 0;
}

p {
  font-variant-ligatures: no-common-ligatures;
  margin: 0 0 1.5rem 0;
  text-rendering: optimizeLegibility;
}

code {
  background-color: var(--code-background-color);
  border-radius: 0.5rem;
  color: var(--code-color);
  font-family: 'Myna', monospace;
  padding: 0.1rem 0.5rem 0.3rem 0.5rem;
}

code::-webkit-scrollbar {
  display: none;
}

pre {
  border-radius: 1rem;
  margin: 2rem 0;
  overflow-x: auto;
}

pre code {
  border-radius: 0;
  border: none;
  font-size: 1.2rem;
  overflow: scroll;
  padding: 0;
}

blockquote {
  border-left: 8px solid var(--blockquote-border-color);
  margin: 2rem 0;
  padding: 2rem;
  border-radius: 0 16px 16px 0;
  font-style: italic;
  position: relative;
}

ul, ol {
  margin: 1.5rem 0;
  padding-left: 2.5rem;
}

li {
  margin: 0.75rem 0;
}

img {
  border-radius: 1rem;
  height: auto;
  margin: 2rem 0;
  max-width: 100%;
}

table {
  border-collapse: collapse;
  border-radius: 1rem;
  margin: 2rem 0;
  overflow: hidden;
  width: 100%;
}

th, td {
  border-bottom: 2px solid var(--table-border-color);
  padding: 1rem;
  text-align: left;
}

th {
  font-size: 1.5rem;
  font-weight: bold;
}

@media (max-width: 1080px) {
  body {
    font-size: 1.2rem;
    width: 90vw;
  }
}
