:root {
  --background: #E6F5F1;
  --foreground: #1E104E;
  --link-color: #F27A27;
  --accent: #D8C9A7;
  --stripe-one: #27CFF5;
  --stripe-two: #2768F5;
}

html {
  font-size: 16px;
  font-size: calc(0.8rem + 0.3vw);
}

body {
  background: repeating-linear-gradient(
    0deg,
    var(--stripe-one),
    var(--stripe-one) 30px,
    var(--stripe-two) 30px,
    var(--stripe-two) 60px
  );
  color: var(--foreground);
  font-family: sans-serif;
  font-weight: 400;
  line-height: 1.6;
  margin: 0;
  min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
}

b, strong, th {
  font-weight: 600;
}

p {
  text-align: left;
}

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

a:hover {
  text-decoration: underline;
}

header {
  background: var(--stripe-one);
}

header a, footer a, aside a {
  color: inherit;
}

header time {
  color: #909194;
}

hr {
  border: 1px solid rgba(144, 145, 148, 0.3);
  margin: 2em 0;
}

article:not(:last-of-type) {
  border-bottom: 1.5px solid rgba(144, 145, 148, 0.2);
  flex: 1;
}

blockquote {
  background: rgba(144, 145, 148, 0.06);
  border-left: 3px solid rgba(144, 145, 148, 0.9);
  padding: 1px 1.5em;
  opacity: 0.75;
}

blockquote, figure {
  margin: 1em 0;
}

img, li {
  margin: 0.5em 0;
}

img {
  border-radius: 2px;
  max-width: 100%;
  height: auto;
}

table {
  display: inline-block;
  max-width: 100%;
  overflow-y: scroll;
  border-spacing: 1px;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(144, 145, 148, 0.12) inset;
}

th, td {
  padding: 0.5em 1em;
  box-shadow: 0 0 0 1px rgba(144, 145, 148, 0.12);
}

tr:hover, tr:nth-child(odd) td {
  background: rgba(144, 145, 148, 0.04);
}

pre {
  background: rgba(144, 145, 148, 0.12);
  border-radius: 2px;
  font-size: 0.8em;
  margin: 1.5em 0;
  padding: 0.8em 1.2em;
  overflow-x: auto;
}

:not(pre) > code {
  font-size: 0.9em;
  background: rgba(144, 145, 148, 0.15);
  opacity: 0.7;
  border-radius: 2px;
  margin: 0 0.1em;
  padding: 0.2em 0.4em;
}

body > header, body > footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
}

body > header, body > article, body > footer {
  padding: 1.5em;
}

main {
  background: var(--background);
  max-width: 38em;
  margin: 0 auto;
  padding: 3rem 5rem 4rem;
  border-left: 1px solid;
  border-right: 1px solid;
  border-top: 1px solid;
  border-bottom: 1px solid;
}

article header {
  margin-bottom: 1.5em;
}

article header h1 {
  font-size: 1.7em;
  margin: 0 0 0.1em;
}

nav {
  margin: 0.5em -1em;
}

nav a {
  margin: 0.5em 1em;
}

body > header {
  box-shadow: 0 0 .6em rgba(33, 34, 40 ,0.04);
  border-bottom: 1px solid rgba(144, 145, 148, 0.14);
}

body > footer {
  box-shadow: 0 0 .6em rgba(33, 34, 40 ,0.04) inset;
  border-top: 1px solid rgba(144, 145, 148, 0.14);
}

@media (min-width: 38em) {
  body > header, body > article, body > footer {
    padding: 1.7em calc(38% - 14em);
  }
}

.title {
  font-size: 1.3em;
}

.more {
  margin: 2em 0 1em;
}

.more a {
  border-radius: 2px;
  border: 1.5px solid #68f;
  padding: 0.4em 0.8em;
  transition: 0.2s background, 0.2s color;
}

.more a:hover {
  color: #fff;
  background: #68f;
  text-decoration: inherit;
}

.archive {
  font-size: 1.1em;
}

.archive time {
  display: inline-block;
  min-width: 10ch;
  margin: 0 0.2em;
}

.highlight pre {
  background: rgba(47, 48, 57, 0.9)!important;
  color: white!important;
}

.katex {
  overflow-x: auto;
  overflow-y: hidden;
}

#nextprev {
    padding: 1em calc(38% - 14em);
    display: flex;
    justify-content: space-between;
}

#prevart {
    margin-right: auto;
}

#nextart {
    margin-left: auto;
}

