/* CSS Reset */
html,
body,
div,
span,
applet,
object,
iframe,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
a,
abbr,
acronym,
address,
big,
cite,
code,
del,
dfn,
em,
img,
ins,
kbd,
q,
s,
samp,
small,
strike,
strong,
sub,
sup,
tt,
var,
b,
u,
i,
center,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
label,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td,
article,
aside,
canvas,
details,
embed,
figure,
figcaption,
footer,
header,
hgroup,
menu,
nav,
output,
ruby,
section,
summary,
time,
mark,
audio,
video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
}

/* HTML5 display-role reset for older browsers */
article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
menu,
nav,
section {
  display: block;
}

body {
  line-height: 1;
}

.date-list :is(ol, ul) {
  list-style: none;
}

blockquote,
q {
  quotes: none;
}

blockquote:before,
blockquote:after,
q:before,
q:after {
  content: '';
  content: none;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

/* End of CSS reset */

:root {
  --background-color: #1F1E1E;
  --secondary-color: #ecd76eff;
  --tertiary-color: #79d4e7ff;
  --text-color: #F5F5F5;
  --link-color: #79d4e7ff;
  --warn-color: #F6ADC6;

}


/* Main */
body {
  font-family: -apple-system, BlinkMacSystemFont, avenir next, avenir, segoe ui, helvetica neue, helvetica, Cantarell, Ubuntu, roboto, noto, arial, sans-serif;
  background-color: var(--background-color);
  padding: 0 3rem 3rem 3rem;
  color: var(--text-color);
  margin-right: auto;
  margin-left: auto;
  line-height: 200%;
  font-weight: 400;
  max-width: 40rem;
}

video,
picture,
img {
  width: 100%;
}

p {
  margin-top: 0;
}

article>p {
  line-height: 2;
  margin-bottom: 1rem;
}

a {
  font-weight: 450;
  color: var(--link-color);
  text-decoration-color: var(--tertiary-color);
}

a:hover {
  text-decoration-color: var(--secondary-color);
}

h1 {
  font-size: 1.5em;
}

h2 {
  font-size: 1.17em;
}

h3 {
  font-size: 1em;
}

h4 {
  font-size: .83em;
}

h5 {
  font-size: .67em;
}

h6 {
  font-size: .5em;
}

/* Headings */
h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
  font-weight: 700;
  position: relative;
}

h1>a,
h2>a,
h3>a,
h4>a,
h5>a,
h6>a {
  text-decoration: none;
  color: inherit;
}

hr {
  margin-bottom: 1em;
}

.zola-anchor {
  opacity: 0;
  position: absolute;
  right: 101%;
  transition: opacity .1s linear;
  color: var(--tertiary-color);
}

h1:hover>.zola-anchor,
h2:hover>.zola-anchor,
h3:hover>.zola-anchor,
h4:hover>.zola-anchor,
h5:hover>.zola-anchor,
h6:hover>.zola-anchor {
  opacity: 100;
}

/* Nav */
nav {
  width: 100%;
  display: flex;
  font-weight: 600;
  justify-content: space-around;
}

nav>a {
  color: inherit;
  text-decoration: none;
}

header {
  padding-bottom: 0.25rem;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

/* Quotes */
blockquote {
  border-left: 5px solid var(--secondary-color);
  margin: 1.5rem 0;
  padding: 0 1.5rem;
}

/* Tables */
table {
  border-collapse: collapse;
  width: 100%;
}

thead {
  background-color: var(--tertiary-color);
}

td,
th {
  border: 1px solid var(--text-color);
  padding: 0.5rem;
  text-align: left;
}

/* Abbreviations */
abbr {
  text-decoration-line: underline;
  text-decoration-style: dotted;
  text-decoration-color: var(--tertiary-color);
  text-decoration-thickness: 2px;
}

/* Keyboard */
kbd {
  color: var(--background-color);
  font-size: 1.25rem;
  padding: 0.05rem 0.4rem;
  text-shadow: 0 1px 0 #FFF;
  background-color: #E4E6E8;
  border: 1px solid #726E6E;
  border-radius: 3px;
  box-shadow: 0 1px 1px rgba(244, 245, 245, 0.15), inset 0 1px 0 0 #FFF;
}

/* Highlights */
mark {
  padding: 0.15rem;
  background-color: var(--tertiary-color);
}

/* Posts and Projects */
.date-list {
  padding: 0;
}

.date-list>li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  line-height: 145%;
  padding: 0 0 1rem 0;
}

.date-list>li>a {
  flex-basis: 50%;
}

/* Error */
.error {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
}

.error>svg {
  max-width: 19rem;
}

.error>strong {
  font-size: 5rem;
  margin-bottom: 1.5rem;
}

.error>p {
  font-size: 2rem;
  margin: 0;
}

article>small {
  padding: 0;
  margin: 0;
  line-height: normal;
}

article>h1 {
  line-height: normal;
}

strong.warning {
  line-height: 2;
  margin-top: 0.5rem;
  margin-bottom: 1rem;
  font-size: 1.5em;
  color: var(--warn-color);
}

#blog-title {
  white-space: nowrap;
  font-size: 1.5em;
  font-weight: bold;
}

/* Code */
pre {
  padding: 1rem;
  white-space: pre-wrap;
  border: 1px solid #CCC;
}

pre>code {
  border: none;
}

code {
  font-size: 1rem;
}

pre {
  padding: 1rem;
  overflow: auto;
}

/* Always want to have this formatting regardless of the existance of line numbers */
pre[data-lang] {
  padding: 1rem 0;
  margin: 1rem 0;
}

code table tbody tr td {
  border: none;
  padding: 0;
  margin: 0;
  line-height: normal;
}

/* The line number cells */
pre table td:nth-of-type(1) {
  text-align: center;
  user-select: none;
}

pre mark {
  /* If you want your highlights to take the full width. */
  display: block;
  /* The default background colour of a mark is bright yellow */
  background-color: rgba(254, 252, 232, 0.9);
}

pre table {
  width: 100%;
  border-collapse: collapse;
}

pre {
  padding: 0;
}

/* Line up lists that are not the post/date list  */
:is(ul):not(.date-list) {
  margin-left: 1.3em;
}

:is(ol):not(.date-list) {
  margin-left: 1.1em;
}