/* Background */
.bg {
  background-color: #fff;
}
/* PreWrapper */
.chroma {
  background-color: #fff;
}
/* Other */
.chroma .x {
}
/* Error */
.chroma .err {
  background-color: #a848a8;
}
/* CodeLine */
.chroma .cl {
}
/* LineLink */
.chroma .lnlinks {
  outline: none;
  text-decoration: none;
  color: inherit;
}
/* LineTableTD */
.chroma .lntd {
  vertical-align: top;
  padding: 0;
  margin: 0;
  border: 0;
}
/* LineTable */
.chroma .lntable {
  border-spacing: 0;
  padding: 0;
  margin: 0;
  border: 0;
}
/* LineHighlight */
.chroma .hl {
  background-color: #e5e5e5;
}
/* LineNumbersTable */
.chroma .lnt {
  white-space: pre;
  -webkit-user-select: none;
  -moz-user-select: none;
       user-select: none;
  margin-right: 0.4em;
  padding: 0 0.4em 0 0.4em;
  color: #7f7f7f;
}
/* LineNumbers */
.chroma .ln {
  white-space: pre;
  -webkit-user-select: none;
  -moz-user-select: none;
       user-select: none;
  margin-right: 0.4em;
  padding: 0 0.4em 0 0.4em;
  color: #7f7f7f;
}
/* Line */
.chroma .line {
  display: flex;
}
/* Keyword */
.chroma .k {
  color: #2838b0;
}
/* KeywordConstant */
.chroma .kc {
  color: #444;
  font-style: italic;
}
/* KeywordDeclaration */
.chroma .kd {
  color: #2838b0;
  font-style: italic;
}
/* KeywordNamespace */
.chroma .kn {
  color: #2838b0;
}
/* KeywordPseudo */
.chroma .kp {
  color: #2838b0;
}
/* KeywordReserved */
.chroma .kr {
  color: #2838b0;
}
/* KeywordType */
.chroma .kt {
  color: #2838b0;
  font-style: italic;
}
/* Name */
.chroma .n {
}
/* NameAttribute */
.chroma .na {
  color: #388038;
}
/* NameBuiltin */
.chroma .nb {
  color: #388038;
}
/* NameBuiltinPseudo */
.chroma .bp {
  font-style: italic;
}
/* NameClass */
.chroma .nc {
  color: #287088;
}
/* NameConstant */
.chroma .no {
  color: #b85820;
}
/* NameDecorator */
.chroma .nd {
  color: #287088;
}
/* NameEntity */
.chroma .ni {
  color: #709030;
}
/* NameException */
.chroma .ne {
  color: #908828;
}
/* NameFunction */
.chroma .nf {
  color: #785840;
}
/* NameFunctionMagic */
.chroma .fm {
  color: #b85820;
}
/* NameLabel */
.chroma .nl {
  color: #289870;
}
/* NameNamespace */
.chroma .nn {
  color: #289870;
}
/* NameOther */
.chroma .nx {
}
/* NameProperty */
.chroma .py {
}
/* NameTag */
.chroma .nt {
  color: #2838b0;
}
/* NameVariable */
.chroma .nv {
  color: #b04040;
}
/* NameVariableClass */
.chroma .vc {
}
/* NameVariableGlobal */
.chroma .vg {
  color: #908828;
}
/* NameVariableInstance */
.chroma .vi {
}
/* NameVariableMagic */
.chroma .vm {
  color: #b85820;
}
/* Literal */
.chroma .l {
}
/* LiteralDate */
.chroma .ld {
}
/* LiteralString */
.chroma .s {
  color: #b83838;
}
/* LiteralStringAffix */
.chroma .sa {
  color: #444;
}
/* LiteralStringBacktick */
.chroma .sb {
  color: #b83838;
}
/* LiteralStringChar */
.chroma .sc {
  color: #a848a8;
}
/* LiteralStringDelimiter */
.chroma .dl {
  color: #b85820;
}
/* LiteralStringDoc */
.chroma .sd {
  color: #b85820;
  font-style: italic;
}
/* LiteralStringDouble */
.chroma .s2 {
  color: #b83838;
}
/* LiteralStringEscape */
.chroma .se {
  color: #709030;
}
/* LiteralStringHeredoc */
.chroma .sh {
  color: #b83838;
}
/* LiteralStringInterpol */
.chroma .si {
  color: #b83838;
  /* text-decoration: underline; */
}
/* LiteralStringOther */
.chroma .sx {
  color: #a848a8;
}
/* LiteralStringRegex */
.chroma .sr {
  color: #a848a8;
}
/* LiteralStringSingle */
.chroma .s1 {
  color: #b83838;
}
/* LiteralStringSymbol */
.chroma .ss {
  color: #b83838;
}
/* LiteralNumber */
.chroma .m {
  color: #444;
}
/* LiteralNumberBin */
.chroma .mb {
  color: #444;
}
/* LiteralNumberFloat */
.chroma .mf {
  color: #444;
}
/* LiteralNumberHex */
.chroma .mh {
  color: #444;
}
/* LiteralNumberInteger */
.chroma .mi {
  color: #444;
}
/* LiteralNumberIntegerLong */
.chroma .il {
  color: #444;
}
/* LiteralNumberOct */
.chroma .mo {
  color: #444;
}
/* Operator */
.chroma .o {
  color: #666;
}
/* OperatorWord */
.chroma .ow {
  color: #a848a8;
}
/* Punctuation */
.chroma .p {
  color: #888;
}
/* Comment */
.chroma .c {
  color: #888;
  font-style: italic;
}
/* CommentHashbang */
.chroma .ch {
  color: #287088;
  font-style: italic;
}
/* CommentMultiline */
.chroma .cm {
  color: #888;
  font-style: italic;
}
/* CommentSingle */
.chroma .c1 {
  color: #888;
  font-style: italic;
}
/* CommentSpecial */
.chroma .cs {
  color: #888;
  font-style: italic;
}
/* CommentPreproc */
.chroma .cp {
  color: #289870;
}
/* CommentPreprocFile */
.chroma .cpf {
  color: #289870;
}
/* Generic */
.chroma .g {
}
/* GenericDeleted */
.chroma .gd {
  color: #c02828;
}
/* GenericEmph */
.chroma .ge {
  font-style: italic;
}
/* GenericError */
.chroma .gr {
  color: #c02828;
}
/* GenericHeading */
.chroma .gh {
  color: #666;
}
/* GenericInserted */
.chroma .gi {
  color: #388038;
}
/* GenericOutput */
.chroma .go {
  color: #666;
}
/* GenericPrompt */
.chroma .gp {
  color: #444;
}
/* GenericStrong */
.chroma .gs {
  font-weight: bold;
}
/* GenericSubheading */
.chroma .gu {
  color: #444;
}
/* GenericTraceback */
.chroma .gt {
  color: #2838b0;
}
/* GenericUnderline */
.chroma .gl {
  /* text-decoration: underline; */
}
/* TextWhitespace */
.chroma .w {
  color: #a89028;
}

:root {
  --bg: #fff;
  --bg-d1: #ddd;
  --fg: #1e1e24;
  --fg-l1: #2a2a31;
  --fg-l2: #34343c;
  --border: rgb(0 0 0 / 10%);
  --link: #0071e3;
  --accent: orangered;
}

* {
  margin: 0;
}

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

html,
body {
  height: 100%;
}

body {
  background-color: var(--bg);
  color: var(--fg);
  font-size: 18px;
  line-height: 1.5;
  font-family: sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

  &:hover {
    text-decoration: underline;
  }

  &:active {
    color: var(--accent);
  }
}

/*******************************************************************************
 * Site structure
 ******************************************************************************/

#site {
  max-width: 800px;
  margin: 0 auto;
  padding: 1rem;
  padding-top: 2rem;
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

#home-inner {
  margin-bottom: 2rem;
}

.nav {
  height: 30px;
  display: flex;
  align-items: flex-start;
  margin-bottom: 1.5rem;

  .translations {
    width: -moz-fit-content;
    width: fit-content;
    display: flex;
    align-items: center;
    margin-left: auto;
    gap: 0.4rem;
    font-size: 0.8em;

    svg {
      width: 16px;
      height: 16px;
    }
  }
}

.header {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  margin-bottom: 1.5rem;

  h1 {
    font-size: 1.8em;
  }

  .subtitle {
    display: flex;
    flex-direction: column;
  }
}

/*******************************************************************************
 * Typographic Elements
 ******************************************************************************/

#content {
  margin-bottom: 2rem;

  a.footnote-ref {
    &::before {
      content: "[";
    }
    &::after {
      content: "]";
    }
  }

  hr {
    border: 0;
    width: 100%;
    height: 1px;
    background-color: var(--border);
  }

  & > * {
    margin-bottom: 1rem;
  }

  .footnotes {
    & > hr {
      margin-bottom: 1rem;
    }
  }

  blockquote {
    border-left: solid 4px var(--bg-d1);
    padding: 0.5rem 1rem;
    color: var(--fg-l2);
  }

  pre {
    padding: 1rem;
    background-color: #f6f8fa !important;
    overflow-x: scroll;
    font-size: 85%;
  }

  img {
    width: 100%;
  }
}

