html {
  font-size: 10px;
}

@media (min-width: 756px) {
  html {
    font-size: 11px;
  }
}
@media (min-width: 890px) {
  html {
    font-size: 12px;
  }
}
@media (min-width: 1024px) {
  html {
    font-size: 13px;
  }
}
@media (min-width: 1190px) {
  html {
    font-size: 14px;
  }
}
@media (min-width: 1300px) {
  html {
    font-size: 15px;
  }
}
@media (min-width: 1500px) {
  html {
    font-size: 16px;
  }
}

body {
  background: #1e1f22;
  color: #b8b8b8;
  font-family: sans-serif;
  padding: 0;
  margin: 0;
}

a {
  color: #d9d9ca;
}
a:visited {
  color: #99998a;
}

/************************** Global Chrome *************************************/

#global-chrome {
  margin: 0;
  padding: 0;
}

#global-chrome-header menu {
  margin: 0;
  padding: 0;
  list-style-type: none;
}

#home-link {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 4.5rem;
  height: 4.5rem;
  margin: 0;
  padding: 0.45rem;
  border: none;
}

#home-link-chevron {
  display: inline-block;
  width: 1.5rem;
  height: 1.5rem;
  border-top: 0.2rem solid #888;
  border-right: 0.2rem solid #888;
  transform: rotate(45deg);
  transition: transform 0.2s ease;
}
#home-link-chevron:after {
  display: inline-block;
  content: "";
  width: 1.5rem;
  height: 0.5rem;
  border-bottom: 0.2rem solid #888;
  margin: -0.75rem 0 1rem 2.7rem;
  transform: rotate(-45deg);
  transition:
    margin 0.2s ease,
    transform 0.2s ease;
}
#home-link:hover #home-link-chevron {
  transform: rotate(-45deg);
}
#home-link:hover #home-link-chevron:after {
  margin: 0 0 -0.4rem -0.2rem;
  transform: rotate(45deg);
}

/************************** Article *******************************************/

@font-face {
  font-family: "PermianSlabSerif";
  src: url("../fonts/permian-slab-serif-regular.woff2") format("woff2");
  font-weight: normal;
  font-style: normal;
}
@font-face {
  font-family: "PermianSlabSerif";
  src: url("../fonts/permian-slab-serif-italic.woff2") format("woff2");
  font-weight: normal;
  font-style: italic;
}
@font-face {
  font-family: "PermianSlabSerif";
  src: url("../fonts/permian-slab-serif-bold.woff2") format("woff2");
  font-weight: bold;
  font-style: normal;
}

#article {
  margin: 0 auto;
  max-width: 85ex;
  font-size: 1.3rem;
  font-family: "PermianSlabSerif", "Georgia", serif;
  padding: 0 4rem;
}

#article header h1 {
  font-family: "Segoe UI Light", sans-serif;
  font-weight: 100;
  font-size: 3rem;
  color: #d5b778;
  margin: 0;
  padding: 0;
  text-align: justify;
}

#article header section#article-properties {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 1.7rem 0 3.5rem 0;
}

#article header section#article-properties time {
  font-family: "Courier New", "Lucida Console", monospace;
  color: #6aab73;
}
#article header section#article-properties time::before,
#article header section#article-properties time::after {
  content: '"';
}

#article header section#article-properties span#author {
  color: #0d64c7;
}
#article header section#article-properties span#author::before,
#article header section#article-properties span#author::after {
  font-family: "Courier New", "Lucida Console", monospace;
}
#article header section#article-properties span#author::before {
  content: "/** ";
}
#article header section#article-properties span#author::after {
  content: " */";
}

#article-content {
  line-height: 1.75;
  text-align: justify;
  hyphens: auto;
}

#article-content p {
  margin: 0 0 1.3rem 0;
}

code {
  font-family: "Courier New", "Lucida Console", monospace;
  font-size: 1rem;
  background: #2e2e35;
  padding: 0.75ex;
  white-space: nowrap;
}

#article-content .code-snippet {
  margin: 3rem 0;
}

#article-content .code-snippet header {
  font-family: "Calibri", sans-serif;
  font-size: 85%;
  margin: 0 0 0.5rem 0;
}

#article-content .code-snippet-body {
  display: block;
  background: #181820;
  padding: 1.5rem;
  margin: 0 -1.5rem;
  border: 0.1rem solid #555;
  font-family: "Courier New", "Lucida Console", monospace;
  font-size: 1rem;
  white-space: pre;
}
#article-content .code-snippet-body code {
  background: none;
  padding: 0;
  white-space: pre;
}

#article-content .code-snippet-comment {
  font-family: "Calibri", sans-serif;
  font-size: 75%;
  color: #888;
}

/************************** Main Page Title ***********************************/

.main-page-title {
  font-family: "Georgia", "Calibri", serif;
  font-size: 25vw;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
}
.main-page-title.text {
  z-index: -1;
  color: #1e1f22;
  animation: main-page-title-appear 25s 1 normal ease-in-out;
}
.main-page-title.shadow {
  z-index: -2;
  filter: blur(1px);
  background: linear-gradient(
    0deg,
    #ff0000 0%,
    #ff00bc 25%,
    #ff00bc 50%,
    #006dff 75%,
    #006dff00 95%
  );
  background-size: 100% 10%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;

  animation:
    main-page-title-appear 25s 1 normal ease-in-out,
    main-page-title-fire 30s infinite alternate ease-in-out;
}
@keyframes main-page-title-appear {
  0% {
    font-size: 22vw;
    filter: blur(4px);
  }
  100% {
    font-size: 25vw;
    filter: blur(0px);
  }
}
@keyframes main-page-title-fire {
  0% {
    background-size: 100% 500%;
    filter: blur(8px);
    opacity: 0.1;
  }
  100% {
    background-size: 100% 100%;
    filter: blur(1px);
    opacity: 1;
  }
}

/*********************** Main Page Articles ***********************************/

#article-section,
#article-section-overlay,
#blog-section,
#blog-section-overlay {
  position: fixed;
  width: 50vw;
  height: 99vh;
}
#article-section,
#article-section-overlay {
  left: 0;
  top: 0;
}
#blog-section,
#blog-section-overlay {
  right: 0;
  bottom: 0;
}
#article-section,
#blog-section {
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #00000020 #00000000;
  transition: scrollbar-color 0.4s ease;
}
#article-section:hover,
#blog-section:hover {
  scrollbar-color: #00000080 #00000020;
}
#article-section {
  text-align: left;
}
#blog-section {
  text-align: right;
}
#article-section-overlay {
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    #1e1f2200 0%,
    #1e1f2200 72%,
    #1e1f22 100%
  );
}
#blog-section-overlay {
  pointer-events: none;
  background: linear-gradient(to top, #1e1f2200 0%, #1e1f2200 72%, #1e1f22 100%);
}
@media (min-width: 756px) {
  #article-section,
  #article-section-overlay,
  #blog-section,
  #blog-section-overlay {
    width: 45vw;
  }
}
@media (min-width: 1024px) {
  #article-section,
  #article-section-overlay,
  #blog-section,
  #blog-section-overlay {
    width: 37vw;
  }
}
@media (min-width: 1280px) {
  #article-section,
  #article-section-overlay,
  #blog-section,
  #blog-section-overlay {
    width: 30vw;
  }
}
@media (min-width: 1500px) {
  #article-section,
  #article-section-overlay,
  #blog-section,
  #blog-section-overlay {
    width: 25vw;
  }
}
#article-section header {
  margin: 0 0 0.4rem 0;
  background: #1e1f22;
  position: sticky;
  top: 0;
}
#blog-section header {
  margin: 0.4rem 0 0 0;
  background: #1e1f22;
  position: sticky;
  bottom: 0;
}
#article-section header,
#article-section menu,
#blog-section header,
#blog-section menu {
  padding: 0 1rem 0 1rem;
}
#article-section header h2,
#blog-section header h2 {
  font-family: "Segoe UI Light", sans-serif;
  font-size: 2rem;
  font-weight: 100;
  padding: 0.8rem;
  margin: 0 0 1rem 0;
}
#article-section header h2 {
  border-bottom: 1px solid #b9b9aa;
}
#blog-section header h2 {
  border-top: 1px solid #b9b9aa;
}
#article-section menu,
#blog-section menu {
  margin: 0;
  list-style-type: none;
}
#article-section menu li,
#blog-section menu li {
  display: block;
  margin: 0;
  padding: 0;
}

.card {
  border-radius: 0.2rem;
  border: 1px solid transparent;
  margin: 0.4rem 0;
  padding: 0.8rem;
  background: #00000000;
  cursor: pointer;
  transition:
    background 0.4s ease,
    border-color 0.2s ease;
}
.card:hover {
  background: #00000040;
  border: 1px solid #ffffff40;
}
.card a {
  text-decoration: none;
}
.card h3 {
  font-family: "Segoe UI Light", sans-serif;
  font-size: 1.5rem;
  font-weight: 100;
  color: #d5b778;
  margin: 0 0 0.4rem 0;
  padding: 0;
}
.card .date-value::before {
  content: '"';
}
.card .date-value {
  font-family: "Courier New", "Lucida Console", monospace;
  color: #6aab73;
}
.card .date-value::after {
  content: '"';
}
.card .summary::before {
  font-family: "Courier New", "Lucida Console", monospace;
  content: "/** ";
}
.card .summary {
  text-align: left;
  font-size: 1rem;
  font-style: italic;
  margin: 0.4rem 0 0 0;
  color: #0d64c7;
}
.card .summary::after {
  font-family: "Courier New", "Lucida Console", monospace;
  content: " */";
}

/********************* 404 *************************************/
.page-404 h1 {
  font-family: "Segoe UI Light", sans-serif;
  font-weight: 100;
  border-bottom: 1px solid #b9b9aa;
  max-width: 25%;
  margin: 0 0 1rem 0;
  padding: 0 0 0.4rem 0;
}
