html {
  box-sizing: border-box;
}

*, *:before, *:after {
  box-sizing: inherit;
}

:root {
  --theme-primary-color: #000;
  --theme-heading-color: #000;
  --theme-text-color: #333;
  --theme-main-bg: #fff;
  --theme-secondary-bg: #f8f9fa;
}

:root .dark-theme {
  --theme-primary-color: #fff;
  --theme-text-color: #fff;
  --theme-heading-color: #fff;
  --theme-main-bg: #000;
  --theme-secondary-bg: #111;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
  font-size: 14px;
  line-height: 1.6;
  background-color: white;
  background-color: var(--theme-main-bg);
  color: #333;
  color: var(--theme-text-color);
}

a {
  color: #000;
  color: var(--theme-primary-color);
  text-decoration-line: underline;
  text-decoration-color: rgba(0, 0, 0, 0.2);
}

a:hover {
  text-decoration-color: #000;
  text-decoration-color: var(--theme-primary-color);
}

h1, h2, h3, h4, h5, h6 {
  margin: 24px 0 12px;
  padding: 0;
  font-weight: bold;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  cursor: text;
  position: relative;
}

h2:first-child, h1:first-child, h1:first-child + h2, h3:first-child, h4:first-child, h5:first-child, h6:first-child {
  margin-top: 0;
  padding-top: 0;
}

h1 tt, h1 code {
  font-size: inherit;
}

h2 tt, h2 code {
  font-size: inherit;
}

h3 tt, h3 code {
  font-size: inherit;
}

h4 tt, h4 code {
  font-size: inherit;
}

h5 tt, h5 code {
  font-size: inherit;
}

h6 tt, h6 code {
  font-size: inherit;
}

h1 {
  font-size: 36px;
  line-height: 1.4;
  margin-top: 48px;
  margin-bottom: 24px;
  color: black;
  color: var(--theme-heading-color);
  font-weight: 400;
}

h2 {
  font-size: 24px;
  line-height: 1.4;
  margin-top: 36px;
  margin-bottom: 12px;
  color: black;
  color: var(--theme-heading-color);
  font-weight: 500;
}

h3 {
  font-size: 18px;
  line-height: 1.4;
  color: black;
  color: var(--theme-heading-color);
  font-weight: 500;
}

h4 {
  font-size: 16px;
}

h5 {
  font-size: 14px;
}

h6 {
  color: #777777;
  font-size: 14px;
}

ul, ol {
  list-style: initial;
}

p, blockquote, ul, ol, dl, li, table, pre {
  margin: 14px 0;
}

hr {
  border: 0;
  color: #cccccc;
  color: var(--theme-secondary-bg);
  height: 1px;
  padding: 0;
}

body > h2:first-child {
  margin-top: 0;
  padding-top: 0;
}

body > h1:first-child {
  margin-top: 0;
  padding-top: 0;
}

body > h1:first-child + h2 {
  margin-top: 0;
  padding-top: 0;
}

body > h3:first-child, body > h4:first-child, body > h5:first-child, body > h6:first-child {
  margin-top: 0;
  padding-top: 0;
}

a:first-child h1, a:first-child h2, a:first-child h3, a:first-child h4, a:first-child h5, a:first-child h6 {
  margin-top: 0;
  padding-top: 0;
}

h1 p, h2 p, h3 p, h4 p, h5 p, h6 p {
  margin-top: 0;
}

ul, ol {
  padding-left: 36px;
}

ul :first-child, ol :first-child {
  margin-top: 0;
}

ul :last-child, ol :last-child {
  margin-bottom: 0;
}

dl {
  padding: 0;
}

dl dt {
  font-size: 14px;
  font-weight: bold;
  font-style: italic;
  padding: 0;
  margin: 14px 0 8px;
}

dl dt:first-child {
  padding: 0;
}

dl dt > :first-child {
  margin-top: 0;
}

dl dt > :last-child {
  margin-bottom: 0;
}

dl dd {
  margin: 0 0 14px;
  padding: 0 14px;
}

dl dd > :first-child {
  margin-top: 0;
}

dl dd > :last-child {
  margin-bottom: 0;
}

blockquote {
  border-left: 4px solid #dddddd;
  padding: 0 14px;
  opacity: 0.7;
}

blockquote blockquote {
  opacity: 1;
}

blockquote > :first-child {
  margin-top: 0;
}

blockquote > :last-child {
  margin-bottom: 0;
}

table {
  padding: 0;
}

table tr {
  border-top: 1px solid #cccccc;
  background-color: white;
  margin: 0;
  padding: 0;
}

table tr:nth-child(2n) {
  background-color: #f8f8f8;
}

table tr th {
  font-weight: bold;
  border: 1px solid #cccccc;
  text-align: left;
  margin: 0;
  padding: 8px 14px;
}

table tr td {
  border: 1px solid #cccccc;
  text-align: left;
  margin: 0;
  padding: 8px 14px;
}

table tr th :first-child, table tr td :first-child {
  margin-top: 0;
}

table tr th :last-child, table tr td :last-child {
  margin-bottom: 0;
}

img {
  max-width: 100%;
}

code, tt {
  font-family: "Fira Code", "Operator Mono", "Ubuntu Mono", "Droid Sans Mono", "Liberation Mono", "Source Code Pro", Menlo, Consolas, Courier, monospace;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 500;
}

pre code {
  margin: 0;
  padding: 14px;
  display: block;
  white-space: pre;
  border: none;
  overflow-x: auto;
}

pre {
  background-color: #F8F9FA;
  background-color: var(--theme-secondary-bg);
  font-size: 13px;
  line-height: 1.5;
  border-radius: 2px;
  tab-size: 2;
  hyphens: none;
}

pre code, pre tt {
  background-color: transparent;
  border: none;
  font-weight: normal;
}

@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }
}
