:root {
  --fz: 16px;
}
::selection {
  background-color: lemonchiffon;
  color: #000;
}
html {
  height: 100%;
  font-size: var(--fz);
  scroll-behavior: smooth;
  font-family: sans-serif;
}
body {
  line-height: calc(var(--fz) * 1.618);
  max-width: 52rem;
  margin: 1rem auto;
  color: #333;
  padding: 0 2rem 2rem 2rem;
  background: #fff;
  word-break: break-word;
}
img,
video {
  max-width: 100%;
  padding: 0.5em 0;
  border-radius: 8px;
}
img:hover {
  scale: 1.1;
  border-radius: 0px;
}
h1,
h2,
h3,
h4,
h5,
h6 {
  line-height: 1.25;
  font-weight: bold;
  color: #000;
}
h1,
h2 {
  border-bottom: 1px solid #ddd;
  padding-bottom: 0.25em;
}
nav {
  padding: 0.67em 0 calc(0.67em * 2) 0;
}
a img {
  transition: all 0.5s ease;
}
a img:hover {
  scale: 1.1;
  border-radius: 0px;
}
a {
  color: #000;
}
a:visited {
  color: #444;
}
a:hover {
  background-color: lemonchiffon;
  color: #000;
}
a:focus {
  color: crimson;
}
header,
footer {
  font-size: 14px;
}
nav a {
  margin-right: 2ch;
  color: #000;
}
nav a:visited {
  color: #000;
}
hr {
  box-sizing: content-box;
  height: 0;
  border: 0;
  border-top: 1px solid #ddd;
}
ul,
ol {
  margin-block-start: 0.25em;
  margin-block-end: 1em;
  padding-inline-start: 2.5em;
}
ul {
  padding-inline-start: 1.5em;
  overflow-x: auto;
  white-space: nowrap;
}
code {
  background: #eff1f3;
  color: #000;
  padding: 2px 1ch;
  border-radius: 6px;
  font-family: Menlo, Consolas, Monaco, Liberation Mono, Lucida Console,
    monospace;
  font-size: 0.8em;
}
pre code {
  background: #f6f8fa;
  display: block;
  line-height: 1.25;
  padding: 1.5em;
  overflow-x: auto;
  overflow-y: hidden;
}
blockquote {
  margin-inline-start: 20px;
  padding-left: 20px;
  border-left: 2px solid #ddd;
  font-style: italic;
}
table {
  border-collapse: collapse;
  max-width: 100%;
}
table tr td,
table tr th {
  padding: 0.3em 1ch;
}
table tr td {
  vertical-align: top;
}
table tr th {
  border-bottom: 1px solid #ddd;
  color: #111;
  font-weight: normal;
  text-align: inherit;
}
/*table tr td:first-child { white-space: nowrap }*/
.postlink {
  line-height: 1.25;
  white-space: pre-line;
}
.postdate {
  white-space: nowrap;
  vertical-align: baseline;
}
.right {
  float: right;
}
@media (prefers-color-scheme: dark) {
  body {
    background-color: #1C2023;
    color: #a0aaaf;
  }
  nav a,
  nav a:visited {
    color: #C7CCd1;
  }
  nav a:focus {
    color: #1C2023;
  }
  a {
    color: #C7CCd1;
  }
  a:visited {
    color: #808a8f;
  }
  a:hover {
    background-color: #1C2023;
    color: #C7CCd1;
  }
  a:focus {
    background-color: #C7CCd1;
    color: #1C2023;
  }
  hr,
  table tr th,
  blockquote {
    border-color: #808a8f50;
  }
  code,
  pre code {
    background-color: transparent;
    color: #a0aaaf;
    border: 1px solid #808a8f50;
  }
  h1,
  h2,
  h3,
  h4,
  h5,
  h6,
  table tr th {
    color: #C7CCd1;
  }
  h1,
  h2 {
    border-color: #808a8f50;
  }
  ::selection {
    color: #111111;
    background-color: #a0aaaf;
  }
}
.nav-left {
  float: left;
}
nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
nav ul {
  margin: 0;
  padding: 0;
  list-style-type: none;
  overflow: hidden;
}

nav {
  align-items: baseline;
}

nav ul.links {
  display: flex;
  flex-direction: row;
}

.nav-left ul li {
  float: left;
}

.nav-right {
  float: right;
}

.nav-right ul li,
.nav-right ul {
  float: right;
}
