@import url(https://fonts.googleapis.com/css?family=Playfair+Display+SC&subset=cyrillic,latin-ext);
@import url(https://fonts.googleapis.com/css?family=Cantarell:400,400i);
@import url(https://fonts.googleapis.com/css?family=Ubuntu+Mono:400,400i);
header {
  text-align: center;
  background: var(--bg-trans);
  box-shadow: 0 0 6px #00000021;
  border-bottom: 1px solid var(--border);
  backdrop-filter: saturate(180%) blur(20px);
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  max-height: 50px;
  z-index: 9;
}

header > div {
  position: relative;
  display: flex;
  justify-content: center;
  flex-direction: column;
  display: inline-flex;
  height: 100%;
  flex-direction: row;
  justify-content: flex-start;
}

header .aside {
  float: left;
}

header .right {
  position: absolute;
  right: 0;
}

header a {
  font-weight: normal;
  font-size: 12px;
  padding: 15px;
  display: inline-block;
  border-color: transparent;
}

header .aside a {
  text-transform: uppercase;
  color: #999;
}

header .right a {
  text-decoration: none;
  border: none;
  height: 15px;
  padding: 15px !important;
}

header img {
  opacity: 0.4;
}

header img:hover {
  opacity: 1;
}

header #home {
  font-family: 'Playfair Display SC';
  padding: 0 15px 0 0;
  font-size: 33px;
  color: var(--fg);
}

header a:hover {
  color: #000;
}

:root {
  --bg: #fff;
  --accent: #fafafa;
  --bg-trans: #fffc;
  --fg: #000;
  --fg-trans: #000c;
  --border: #ddd;
  --shadow: drop-shadow(0 4px 4px rgba(0,0,0,0.1));
  --radius: 5px;
}

/* :not(body) {
    border: 1px dotted #ff000010;
} */

html {
  overflow-y: scroll;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

html {
    font-size: 16px;
}

body {
  background: var(--accent);
  color: var(--fg);
  margin: 0 auto;
  padding: 2em 0;
  font-family: -apple-system, BlinkMacSystemFont, "Cantarell", "Helvetica Neue", sans-serif;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  font-size: 16px;
  width: 40rem;
  min-height: 100%;
  position: relative;
  top: 0;
  left: 0;
}

@media (max-width: 760px) {
  html {
    font-size: 14px;
  }
}

@media (max-width: 650px) {
    html {
        font-size: 12px;
    }
}

@media (max-width: 500px) {
    html {
        font-size: 10px;
    }
}

pre, code {
  font-family: 'Ubuntu Mono', 'monospace';
}

code {
  border-radius: 4px;
  background: #f5f5f5;
  color: #444;
  padding: 0 4px;
}

blockquote {
  margin: 0;
  padding: 1px 0 4px 2em;
  border-left: 4px solid #ccc;
}

img {
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.text {
  display: block;
  max-width: 35rem;
  margin: 20px auto;
  font-weight: 400;
  font-size: 0.9em;
  line-height: 24px;
}

header > div {
  width: 40rem;
}

h1, h2, h3, h4, h5, h6 {
  margin-top: 35px;
}

/*h2 {
    font-size: 20pt;
}

h3 {
    font-size: 14pt;
}

p, div {
    font-size: 11pt;
}
*/

h1 {
  font-family: 'Playfair Display SC', 'serif';
  text-align: left;
  font-size: 12vh;
  margin-top: 8vh;
}

h1, h2 {
  font-weight: 300;
}

h1 span {
  background: #deffec;
  height: 0.9em;
  padding: 0 50px 0 15px;
  display: inline-block;
}

a, a:hover, a:active {
  transition: all .13s ease;
  text-decoration: none;
  border-bottom: 1px solid;
  color: #333;
  cursor: pointer;
}

a:hover {
  color: #888;
}
ul {
  list-style-type: none;
}

ul > li::before {
  content: "\2500";
  display: inline-block;
  color: #666;
  position: absolute;
  margin-left: -16px;
}

table {
  margin: 2em 0;
  border-collapse: collapse;
  border-radius: 3px;
  border-style: hidden;
  box-shadow: 0 0 0 1px #ddd;
}

th, td {
  border: 1px solid #ddd;
  padding: 2px 10px;
}

.GitLink, .GitLink:hover {
  text-decoration: none;
  border: none;
  padding: 0 8px;
}

.GitLink img {
  transition: all .13s ease;
  border-radius: 0;
  border: none;
  opacity: 0.4;
  vertical-align: baseline;
}

.GitLink img:hover {
  opacity: 1;
}

#dark-toggle {
  position: fixed;
  transition: all .13s ease;
  bottom: 3em;
  right: 3em;
  height: 1em;
  width: 1em;
  padding: 0.3em;
  border: 1px solid var(--border);
  background-color: var(--bg);
  border-radius: var(--radius);
  filter: invert(1) drop-shadow(0 2px 4px #0006);
  opacity: 0.4;
  z-index: 99;
}

#dark-toggle:hover {
  opacity: 1;
}

#dark-toggle img {
  width: 100%;
  height: 100%;
  border: none;
}

