html {
    font-family: 'Libertinus Serif',serif;
    scroll-behavior: smooth;
}

body {
    display: grid;
    grid-template-columns: 1fr min(60rem, 95%) 1fr;
    color: #000000;
    line-height: 1.5;
    font-size:  calc(0.9em + 0.9vmin);
    text-rendering: optimizeLegibility;
}

body > * {
    grid-column: 2;
}

/* Use flexbox to allow items to wrap, as needed */
body > header {
  font-family: 'Libertinus Sans',sans;
  border-bottom: 1px solid #eee;
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
}

body > header h1 {
    margin: inherit;
    padding: 1rem 0;
    padding-right: 2rem;
    font-size: inherit;
    line-height: inherit;
    font-weight: inherit;
}

body > header h1 a,
body > header h1 a:visited {
    color: #000000;
}

/* Navigation */

/* Use flexbox to allow items to wrap, as needed */
header > nav ul,
header > nav ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  align-content: space-around;
  list-style-type: none;
  margin: 0;
  padding: 0;
}

header > nav ul li,
header > nav ol li {
    padding-left: 2rem;
}

header > nav ul li:first-child,
header > nav ol li:first-child {
    padding-left: 0;
}


header > nav a,
header > nav a:visited {
  color: #000;
  display: inline-block;
  text-decoration: none;
}

header > nav a:hover {
  cursor: pointer;
}

/* Footer */

body > footer {
    font-size: 80%;
    border-top: 1px solid #ccc;
}

/* Format headers */

h1, h2, h3, h4, h5, h6 {
    font-family: 'Libertinus Sans',sans;
}

/* Prevent long strings from overflowing container */
p, h1, h2, h3, h4, h5, h6 {
    overflow-wrap: break-word;
}

/* Fix line height when title wraps */
h1,
h2,
h3 {
    line-height: 1.1;
}

a {
    color: #5b6ee1;
    text-decoration: none;
}

a:hover {
    color: #306082;
    background-color: #f3f3f3;
}

a:visited {
    color: #306082;
}

/* Use mono font for code and svg elements */
code,
pre.src {
    font-family: "Fira Code",monospace;
    font-size: 80%;
    line-height: 1.3;
}

code {
    background-color: #deeed6;
    padding: 2px;
}

pre {
    line-height: 110%;
    width: 100%;
    padding: 1rem;
    background-color: #222034;
    color: #deeed6;
    border-radius: 4px;
    display: inline-block;
    overflow: auto;
    box-sizing: border-box;
}

blockquote {
    padding-left: 2rem;
    border-left: 5px solid #eee;
    font-style: italic;
}

aside {
    font-size: 85%;
    opacity: 70%;
}

.feed-icon {
    padding-left: 1rem;
    vertical-align: bottom;
    height: 1em;
}

.copyright {
    text-align: center;
}

.cc-button {
    margin-left: 1rem;
}

/* Summaries */

.summary {
    margin-bottom: 3rem;
}

.summary .date {
    margin-bottom: 0rem;
}

.summary p {
    margin-top: 1rem;
    margin-bottom: 1rem;
}

/* Posts */

.date {
    margin-top: -1rem;
    color: #666;
}

.tags {
    margin-top: -1rem;
    color: #666;
    font-size: 80%;
}

.tags ul {
    display: inline-block;
    padding-left: 0.5rem;
}

.tags li {
    display: inline-block;
    padding: 0.5rem;
}

figure img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 0 auto;
}

figure figcaption {
  text-align: center;
}

.post img,
.centered-image {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 0 auto;
    padding: 0px;
    border-radius: 4px;
}

.post video {
    display: block;
    margin: 0 auto;
    padding: 0px;
    max-width: 100%;
}

.caption {
    text-align: center;
    margin: 0;
    margin-left: 4rem;
    margin-right: 4rem;
}

/* Pagination */

.paginator {
    display: flex;
    justify-content: space-between;
}

.paginator-next {
    margin-left: auto;
}

/* Syntax Highlighting */

.syntax-special, .syntax-element {
    color: #8ac6f2;
    font-weight: bold;
}

.syntax-string {
    color: #95e454;
}

.syntax-keyword, .syntax-attribute {
    color: #e5786d;
}

.syntax-comment {
    color: #999;
}

.syntax-open, .syntax-close {
    color: #999;
}
