@font-face {
    font-family: 'MicroJournal';
    src: url(resources/fonts/MicroJournal.ttf);
    font-weight: normal;
    font-style: normal;
}
:root{
  --accent-color1: #45ffb2;
  --accent-color2: #62c19d;
  --accent-color3: #2c9d90;
  --text-color1: #f0efd4;
  --text-color2: #c2baac;
  --text-color3: #726e6a;
  --bg-color1: #4e4c43;
  --bg-color2: #34302b;
  --bg-color3: #312d28;
  --bg-image: url("./bg.svg");
  --embed-color: #232423;
  --main-font: 'Trebuchet MS', sans-serif;
  --header-font: 'Trebuchet MS', sans-serif;
}
::selection {
  color: var(--text-color1);
  background: var(--accent-color3);
}
html {
    background-color:var(--bg-color2);
    background-image: var(--bg-image);
    color:var(--text-color1);
    font-family: var(--main-font);
    line-height: 1.4em;
}
body {
    background-color:var(--bg-color2);
    margin: 0 auto;
    padding: 0 2em;
    max-width: 30em;
    min-height: 100vh;
}
header {
    padding-top:2em;
}
footer {
    margin: 2em;
}
/* Main Text */
article header {
  border-bottom: solid 0.15em var(--bg-color1);
}
article header h1 {
  color:var(--accent-color2);
}
article header h3 {
  color:var(--text-color3);
}
h1 {
  margin:0;
  padding: 0.25rem 0;
  font-family: var(--header-font);
  line-height: 1em;
}
h2 {
  margin:0;
  padding: 0.5rem 0;
  font-family: var(--header-font);
}
h3 {
  margin:0;
  padding: 0.75rem 0;
  font-family: var(--header-font);
}
hr {
  border: solid 0.01em var(--bg-color1);
}
small {
  color:var(--text-color2);
}
/* Links */
a {text-decoration-line: none;}
a:link {color:var(--accent-color1);}
a:visited {color:var(--accent-color2);}
a:active {color:var(--accent-color3);}
a:hover {color:var(--text-color1); text-decoration-line:underline;}

/* Images */
img {max-width:100%;}
img.pixelated {image-rendering: pixelated;}

/* Image Gallery */
div.gallery {
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  line-height: 0;
  gap: 0.5ch;
  padding:1ch;
}
div.gallery a {
  overflow: hidden;
}
div.gallery a img {
  display: block;
  max-width: 100%;
  aspect-ratio: 1 / 1;
  transition: 0.2s ease;
}
div.gallery a:hover img {
  transform: scale(1.08);
}

/* Code Blocks */
pre:has(code) {
  max-width:100%;
  background-color: var(--embed-color);
  color: var(--accent-color1);
  border-left:solid 0.3em var(--accent-color2);
  padding:1em;
  overflow: scroll;
}

/* Quotes */
blockquote {
  margin:0.5em;
  background-color: var(--bg-color1);
  padding: 0.2em 1em;
  border-left:solid 0.3em var(--accent-color2);
}

/*Lists*/
ul { list-style-type: square; list-style-position: inside; padding: 0;}

/* Tables */
table {width:100%;}
tr {background-color: var(--bg-color1);}

/* Top Navigation */
.top-navbar {
    margin-bottom: 1em;
    display:grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
}
.pixel-button:link, .pixel-button:visited, .pixel-button-down:link, .pixel-button-down:visited {
    box-sizing:border-box;
    font-size: 1.35rem;
    font-family: MicroJournal;
    color: var(--bg-color2);
    background-color: var(--accent-color2);
    padding: 0.5rem 0.2rem 0.2rem 1.5rem;
    text-align:end;
}
.pixel-button-down, .pixel-button-down:visited {
    background-color: var(--accent-color3);
}
.pixel-button:hover {
    background-color: var(--accent-color1);
    color:var(--bg-color3);
    text-decoration-line:none;
}
.pixel-button:hover:active {
    color:var(--bg-color3);
    background-color: var(--accent-color3);
}
/* Top Header */
.top-header h1 a, .top-header h1 visited{
    font-family: "MicroJournal";
    font-size: 1.5rem;
    font-weight: normal;
    color:var(--accent-color2);
}
.top-header h1 a:hover{
    color:var(--accent-color1);
    text-decoration-line:none;
}
/* Separator */
.separator {
  display: flex;
  align-items: center;
  text-align: center;
  color:var(--text-color3);
  font-weight:bold;
  margin-top:1em;
  margin-bottom:0.5em;
}
.separator::before, .separator::after {
  content: '';
  flex: 1;
  border-bottom: 2px solid var(--bg-color1);
}
.separator::after {
    content: '';
    flex: 0.03;
    border-bottom: 2px solid var(--bg-color1);
}
.separator:not(:empty)::before {
  margin-right: .25em;
}
.separator:not(:empty)::after {
  margin-left: .25em;
}
/* Footer */
footer div.socialmedia-icons a, footer div.socialmedia-icons a:visited {
    color:var(--text-color3);
}
footer div.socialmedia-icons a:hover {
    color:var(--accent-color1);
    margin:0;
    padding:0;
    background-color: transparent;
    transition: 0.2s ease;
}
footer {
    text-align: center;
    color: var(--text-color3);
    align-self: center;
    margin-top: 3ch;
    word-spacing: -0.2em;
    font-family: Microjournal;
}