body {
  min-height: 100vh;
  margin: 0;
  background: var(--background-color);
  color: var(--text-normal);
  font-family: "Rajdhani";
  position: relative;
}

body.frame-dark {
  background-color: #111111c4;
}

body.frame-light {
  background-color: transparent;
}

#background-highlight {
  display: block;
  position: fixed;
  top: 0px;
  left: 0px;
  width: 100%;
  height: 224px;
  background-image: radial-gradient(ellipse at top, rgba(255,255,255,0.1), transparent, transparent);
  background-size: 200vw 224px;
  background-repeat: no-repeat;
  background-position: center top;
  background-attachment: fixed;
}

.centering {
  max-width: 1128px;
  margin: 0px auto;
  position: relative;
}

#footer-back {
  position: absolute;
  display: block;
  bottom: 0px;
  width: 100%;
  height: 200px;
  background-color: rgba(0,0,0,0.5);
  box-shadow: 0 -8px 0 0 rgba(255,255,255,0.065);
}

body.frame-light #footer-back {
  background-color: var(--masthead-back-light);
  box-shadow: 0 -8px 0 0 var(--link-contrast);
}

#footer {
  position: absolute;
  bottom: 0px;
  width: calc(100% - 258px);
  height: 200px;
  margin: 0 0 0 258px;
  padding: 0px;
  display: flex;
  flex-direction: column;
  z-index: 1;
}

#footer h4 {
  margin: 0px;
  padding: 24px 0 0 48px;
  font-size: 24px;
  font-weight: 600;
  color: var(--text-dimmer);
}

body.frame-light #footer h4 {
  color: var(--text-normal);
}

#footer #footer-copy {
  color: rgba(255,255,255,0.175);
  padding: 8px 132px 0 48px;
  font-weight: 600;
  font-size: 14px;
}

body.frame-light #footer #footer-copy {
  color: var(--text-dimmer);
}

#footer #footer-sitelink {
  margin: 0;
  padding: 0 0 0 44px;
}

#footer #footer-sitelink a {
  text-decoration: none;
  color: var(--accent-color);
  font-size: 18px;
  font-weight: 500;
  border-radius: 4px;
  padding: 0px 4px;
}

#footer #footer-sitelink a:hover {
  box-shadow: 0 0 0 3px var(--accent-color);
}

body.frame-light #footer #footer-sitelink a {
  color: var(--link-background);
}

body.frame-light #footer #footer-sitelink a:hover {
  box-shadow: 0 0 0 3px var(--link-background);
}

body.frame-dark #footer #footer-sitelink a {
  color: var(--primary-color);
}

body.frame-dark #footer #footer-sitelink a:hover {
  box-shadow: 0 0 0 3px var(--primary-color);
}

body.dynamic #footer #footer-sitelink a {
  color: var(--background-color);
  filter: hue-rotate(45deg) brightness(550%);
}

body.dynamic #footer #footer-sitelink a:hover {
  box-shadow: 0 0 0 3px var(--background-color);
}

#footer #footer-copyright {
  font-weight: 401;
  text-transform: lowercase;
  color: rgba(255,255,255,0.25);
  padding: 0px 0px 0px 10px;
  margin: 0 0 0 12px;
  box-shadow: -1px 0px;
}

body.frame-light #footer #footer-copyright {
  color: var(--text-dimmer);
}

#color-box {
  display: flex;
  position: absolute;
  top: 0px;
  right: 156px;
  flex-direction: row;
}

body.frame-light #color-box,
body.frame-dark  #color-box {
  display: none;
}

#color-box .color-button {
  display: block;
  width: 50px;
  height: 24px;

  margin: 0px 8px;
  box-shadow: inset 0 2px 2px rgba(0,0,0,0.45), inset 0 8px 0px var(--colorbox-bg);
  cursor: pointer;
  transition: all 0.18s 0s ease-in-out;
  opacity: 0.75;
}

#color-box .color-button:hover {
  height: 24px;
  box-shadow: inset 0 2px 2px rgba(0,0,0,0.45), inset 0 24px 0px var(--colorbox-bg);
  opacity: 1;
}

#masthead {
  font-size: 28px;
  font-weight: 200;
  padding: 24px;
  box-shadow: 0 8px 32px -16px rgba(0, 0, 0, 1),inset 0 -1px rgba(255,255,255,0.05);
  position: fixed;
  top: 0px;
  left: 0px;
  width: calc(100vw - 48px);
  z-index: 2;
  backdrop-filter: blur(35px) hue-rotate(15deg) saturate(250%);
}

#masthead img.menu {
  display: none;
}

body.frame-light #masthead {
  backdrop-filter: none;
  background-color: var(--masthead-back-light);
  box-shadow: 0 8px 32px -16px rgb(0, 0, 0), inset 0 -1px 0 rgba(255,255,255,0.35);
}

body.frame-dark #masthead {
  backdrop-filter: none;
  background-color: var(--masthead-back-dark);
  box-shadow: 0 8px 32px -16px rgba(0, 0, 0, 1),inset 0 -1px rgba(255,255,255,0.075);
}

body.frame-dark .centering:after, body.frame-light .centering:after {
  content: " ";
  display: block;
  top: 0px;
  left: 0px;
  width: 100vw;
  height: 84px;
  position: fixed;
  z-index: 1;
  background-color: var(--primary-color);
  opacity: 0.75;
}

#masthead a {
  text-decoration: none;
  color: var(--text-normal);
}

#masthead span {
  max-width: 1080px;
  margin: 0 auto;
  display: block;
}

#masthead emp {
  font-weight: 500;
}

#sidebar {
  z-index: 1;
  position: fixed;
  top: 82px;

  width: 224px;
  height: calc(100vh - 82px);
  padding-right: 32px;
  overflow: hidden;
}

#sidebar .sidebar-fill {
  display: none;
}

#sidebar h4 {
  margin: 48px 0 0 24px;
  box-shadow: 0 1px 0 rgba(255,255,255,0.2);
  line-height: 36px;
  font-size: 18px;
  text-transform: lowercase;
  font-weight: 500;
}

body.frame-light #sidebar h4 {
  box-shadow: 0 1px 0 rgba(255,255,255,0.5);
}

#sidebar h4 a {
  text-decoration: none;
  color: var(--text-normal);
}

#sidebar h4 a:hover {
  color: var(--text-full-bright);
}

#sidebar ul {
  margin: 12px 0 0 24px;
  padding: 0px;
}

#sidebar ul li {
  list-style-type: none;
  font-weight: 500;
  display: block;
}

#sidebar ul li.active {
  position: relative;
}

#sidebar ul li.active:after {
  content: " ";
  display: block;
  position: absolute;
  width: 0px;
  height: 0px;
  top: 6px;
  left: -14px;
  border-style: solid;
  border-color: transparent transparent transparent var(--text-full-bright);
  border-width: 4px 0px 4px 8px;
}

#sidebar ul li a {
  text-decoration: none;
  color: var(--text-normal);
}

#sidebar ul li a:hover {
  color: var(--text-full-bright);
}

#sidebar ul li ul {
  margin: 0 0 0 16px;
}

#sidebar ul li ul li {
  font-weight: 400;
  font-style: normal;
  font-size: 13px;
  color: var(--text-dimmer);
}

#sidebar ul li ul li.active {
  position: relative;
}

#sidebar ul li ul li.active:after {
  content: " ";
  display: block;
  position: absolute;
  width: 0px;
  height: 0px;
  top: 4px;
  left: -14px;
  border-style: solid;
  border-color: transparent transparent transparent var(--text-full-bright);
  border-width: 4px 0px 4px 8px;
}

#sidebar ul li ul li a {
  color: var(--text-dimmer);
}

#sidebar ul li ul li a:hover {
  color: var(--text-full-bright);
}


#content {
  z-index: 1;
  position: relative;
  display: block;
  min-height: 100vh;
  width: calc(100vw - 256px);
  margin: 90px 0 0 256px;
  /*
  box-shadow: inset 1px -3px 2px rgba(255,255,255,0.075),-6px 16px 15px -6px rgba(0, 0, 0,0.6), -21px 16px 25px -6px rgba(0, 0, 0,0.8);
  */
  box-shadow: inset 1px -3px 2px rgba(255,255,255,0.075),-6px 12px 9px -6px rgba(0, 0, 0,0.5), -14px 5px 16px -6px rgba(0, 0, 0,0.24);
  max-width: 872px;
  padding-bottom: 200px;
}

body.frame-light #content {
  box-shadow: inset 1px -3px 2px rgba(255,255,255,0.075),-6px 2px 9px -6px rgba(0, 0, 0,0.125), -14px 3px 16px -6px rgba(0, 0, 0,0.125)
}

#blog-post {
  padding: 36px;
  max-width: 800px;
}

.post-header {

}

.post-header h1 {
  margin: 36px 0 18px;
  font-size: 36px;
  font-weight: bold;
}

.post-header h2 {
  font-weight: 600;
  font-size: 24px;
  margin: 18px 0 12px;
}

.post-header div.byline {
  box-shadow: inset 0px 1px 0 rgba(255,255,255,0.1),
              inset 0px -1px 0 rgba(255,255,255,0.1),
              0 12px 12px -7px rgba(0, 0, 0, 0.5);
  padding: 6px 0;
  margin: 24px 0 12px;
  color: var(--text-full-bright);
  display: flex;
  flex-direction: row;
  align-items: center;
}

body.frame-light .post-header div.byline {
  box-shadow: inset 0px 1px 0 rgba(255, 255, 255, 0.5),
              inset 0px -1px 0 rgba(255,255,255,0.5),
              0 12px 12px -7px rgba(0, 0, 0, 0.125);
  background-color: rgba(255,255,255,0.2);
}

.post-header .dateline {
  display: block;
  font-weight: 600;
  color: var(--text-full-bright);
  padding-left: 8px;
}

.post-header .post-tag {
  padding: 0 0 0 24px;
  color: var(--accent-color);
  font-weight: 600;
}

.post-header .post-tag:before {
  content: "#";
  color: var(--accent-color);
  font-weight: bolder;
}

body.dynamic .post-header .post-tag {
  color: var(--background-color);
  filter: hue-rotate(45deg) brightness(550%);
}

body.dynamic .post-header .post-tag:before {
  color: var(--background-color);
}

.post-content {
  position: relative;
}

.post-content a {
  text-decoration: none;
  color: var(--text-normal);
  font-weight: bold;
}

.post-content a:hover {
  box-shadow: 0 0 0 0px rgba(255,255,255,0.5);
  border-radius: 5px;
  color: var(--link-contrast);
  background-color: var(--link-background);
}

.post-content h3, .post-content h4 {
  margin: 40px 0 8px;
  box-shadow: 0 1px 0 0 rgba(255,255,255,0.1);
  padding: 8px 0;
}

body.frame-light .post-content h3, .post-content h4 {
  box-shadow: 0 1px 0 0 rgba(255,255,255,0.5);
}

.post-content img {
  max-width: 100%;
}

.post-content figure.image figcaption {
  padding: 6px;
  box-shadow: inset 0 1px rgba(255,255,255,0.1);
  background-color: rgba(255,255,255,0.025);
  margin: -5px 0 0;
}

body.frame-light .post-content figure.image figcaption {
  padding: 6px;
  box-shadow: inset 0 1px rgba(255,255,255,0.35), inset 0 -1px rgba(255,255,255,0.35);
  background-color: rgba(255,255,255,0.25);
  margin: -5px 0 0;
  display: block;
}

.post-content img.left, .post-content figure.image.left {
  float: left;
  margin: 0 24px 24px 0;
  box-shadow: 0 1px 0 0 rgba(255,255,255,0.2), 0 12px 12px -7px rgb(0, 0, 0);
  max-width: 47%;
}

.post-content img.right, .post-content figure.image.right {
  float: right;
  margin: 0 0 24px 24px;
  box-shadow: 0 1px 0 0 rgba(255,255,255,0.2), 0 12px 12px -7px rgb(0, 0, 0);
  max-width: 47%;

}

.post-content img.center, .post-content figure.image.center {
  margin: 24px auto;
  box-shadow: 0 1px 0 0 rgba(255,255,255,0.2), 0 12px 12px -7px rgb(0, 0, 0);
  display: block;
  max-width: 100%;
}

body.frame-light .post-content img.left, body.frame-light .post-content figure.image.left,
body.frame-light .post-content img.right, body.frame-light .post-content figure.image.right,
body.frame-light .post-content img.center, body.frame-light .post-content figure.image.center {
  box-shadow: 0 1px 0 0 rgba(255,255,255,0.2), 0 12px 12px -7px rgba(0, 0, 0, 0.25);
}

.post-content figure.image img {
  width: 100%;
  cursor: pointer;
}

.post-content figure.image.pixelated img {
  image-rendering: pixelated;
}

.post-content pre {
  background-color: rgba(0,0,0,0.5);
  box-shadow: inset 0 1px rgba(255,255,255,0.1),inset 0 -1px 0 rgba(255,255,255,0.1),0 15px 12px -18px rgba(0,0,0,0.8);
  padding: 8px 0;
  overflow-x: auto;
}

body.frame-light .post-content pre {
  background-color: rgba(255,255,255,0.5);
}

#posts-index {
  margin: 0;
  padding: 48px 24px 24px;
}

.no-posts {
  max-width: 650px;
  margin: 24px 24px 56px;
  padding: 16px 20px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.05), 0 12px 10px rgba(0,0,0,0.5);
  border-radius: 12px;
  background-color: rgba(255,255,255,0.0125);
  background-image: linear-gradient(to bottom,rgba(255,255,255,0.05), rgba(255,255,255,0.0) 75%);
  text-align: center;
  font-size: 22px;
  font-weight: 500;
}

.index-post {
  max-width: 650px;
  margin: 24px 24px 56px;
  padding: 16px 20px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.05), 0 12px 10px rgba(0,0,0,0.5);
  border-radius: 12px;
  background-color: rgba(255,255,255,0.0125);
  background-image: linear-gradient(to bottom,rgba(255,255,255,0.05), rgba(255,255,255,0.0) 25%);
}

body.frame-light .index-post {
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.5), 0 12px 10px rgba(0,0,0,0.5);
  background-image: linear-gradient(to bottom,rgba(255,255,255,0.25), rgba(255,255,255,0.0) 25%);
}


.index-post h1 {
  margin: 0 0 12px -4px;
  font-size: 28px;
  font-weight: 600;
}

.index-post div.byline {
  box-shadow: 0px 1px 0 rgba(255,255,255,0.1), 0px -1px 0 rgba(255,255,255,0.1);
  padding: 6px 20px;
  margin: 0px 0 12px -20px;
  color: var(--text-full-bright);
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  background-color: rgba(255,255,255,0.03);
  width: 100%;
}

body.frame-light .index-post div.byline {
 box-shadow: 0px 1px 0 rgba(255, 255, 255, 0.5), 0px -1px 0 rgba(255,255,255,0.5);
 background-color: rgba(255,255,255,0.2);
}

.index-post .dateline {
  display: block;
  font-weight: 600;
  color: var(--text-full-bright);
}

.index-post .post-tag {

  padding: 0 0 0 24px;
  color: var(--accent-color);
  font-weight: 600;
}

.index-post .post-tag:before {
  content: "#";
  color: var(--accent-color);
  font-weight: bolder;
}

body.dynamic .index-post .post-tag {
  color: var(--background-color);
  filter: hue-rotate(45deg) brightness(550%);
}

body.dynamic .index-post .post-tag:before {
  color: var(--background-color);
}

.index-post .post-summary {
  font-size: 18px;
}

.index-post .post-footer {
  text-align: left;
  font-size: 18px;
  margin: 12px 0 0 -4px;
}

.index-post a {
  text-decoration: none;
  color: var(--text-normal);
  font-weight: bold;
  padding: 0 4px;
}

.index-post h1 a {
  padding: 0;
}

.index-post a:hover {
  box-shadow: 0 0 0 0px rgba(255,255,255,0.5);
  border-radius: 5px;
  color: var(--link-contrast);
  background-color: var(--link-background);
}

.clear {
  clear: both;
}

body {
  --text-full-bright: rgba(255, 255, 255, 1);
  --text-normal: rgba(255, 255, 255,0.8);
  --text-dimmer: rgba(255,255,255,0.6);
  --background-color: #111111;
  --accent-color: #51beff;
  --primary-color: transparent;
  --link-contrast: black;
  --link-background: rgba(255, 255, 255,0.75);
  --masthead-back-light: rgba(255,255,255,0.35);
  --masthead-back-dark: rgba(0,0,0,0.75);
}

@media screen and (width < 850px) {

  #color-box {
    right: unset;
    left: 40px;
    width: calc(100% - 40px);
  }

  #color-box .color-button {
    flex-shrink: 1;
  }

}

@media screen and (width < 660px) {
  body {

  }
  #masthead {
    font-size: 1.4rem;
    padding: 1rem 1rem 1rem 0;
    width: calc(100% - 1rem);    z-index: 3;
    display: flex;
    align-items: center;
    align-self: start;
    height: 2rem;
  }

  body.frame-dark .centering:after, body.frame-light .centering:after {
    height: 4rem;
  }

  #masthead img.menu {
    display: block;
    width: 1.5rem;
    height: 1.5rem;
    filter: invert();
    padding: 1rem;
  }

  .frame-light #masthead img.menu {
    filter: none;
  }

  #footer {
    margin: 0;
    width: 100vw;
  }

  #footer h4 {
    padding: 24px 0 0 18px;
    width: calc(100vw - 32px);
    font-size: 1.25rem;
  }

  #footer h4 #footer-copyright {

  }

  #footer #footer-sitelink {
    font-size: 0.75rem;
    padding: 0 0 0 14px
  }

  #footer #footer-sitelink a {
    font-size: 1.0rem;
  }

  #footer #footer-copy {
    padding: 8px 18px 0 18px;
    font-size: 0.9rem;
  }

  #color-box {
    left: 0;
    right: 0;
    width: 100vw;
  }

  #color-box .color-button {
    flex-shrink: 1;
    flex-grow: 1;
  }


  #sidebar {
    display: block;
    position: fixed;
    font-size: 2rem;
    width: 100vw;
    top: -150vh;
    padding-top: 4rem;
    backdrop-filter: blur(0.75rem);
    height: calc(100vh - 4rem);
    background-color: var(--masthead-back-dark);
    z-index: 2;
    transition: all 0.18s 0s ease-in-out;
  }

  .frame-light #sidebar {
      background-color: var(--masthead-back-light);
  }

  #sidebar .sidebar-fill {
    display: none;
    top: 0px;
    left: 0px;
    position: fixed;
    width: 100%;
    height: 100%;
    background-color: var(--masthead-back-dark);
    z-index: 1;
  }

  .frame-light #sidebar .sidebar-fill {
    display: block;
    background-color: var(--primary-color);
  }

  #sidebar.open {
    display: block;
    top: 0;
    overflow-y: auto;
  }

  #sidebar h4 {
    margin: 1rem;
    font-size: 1.65rem;
    display: none;
  }

  #sidebar ul {
    margin: 1rem 0 0 0;
    position: relative;
    z-index: 5;
  }

  #sidebar ul li {

  }

  #sidebar ul li a {
    width: 100%;
    display: block;
    padding: 0 0 0 1rem;
  }

  #sidebar ul li ul {
    margin: 0 0 0 0rem;
    box-shadow: inset 0 0.05rem var(--masthead-back-light), inset 0 -0.05rem var(--masthead-back-light);
  }

  .frame-light #sidebar ul li ul {
    margin: 0 0 0 0rem;
    box-shadow: inset 0 0.05rem var(--masthead-back-dark), inset 0 -0.05rem var(--masthead-back-dark);
  }


  #sidebar ul li ul li {
    margin: 0 0 0 -4rem;
    width: calc(100% - 2rem);
    padding: 0.5rem 2rem 0.5rem 4rem;
    font-size: 1.5rem;

    box-shadow: inset 0 -0.05rem var(--masthead-back-light);
  }

  #sidebar ul li ul li a {
    text-indent: 0.75rem;
  }

  .frame-light #sidebar ul li ul li {
    /*
    background-color: var(--masthead-back-light);
    */
    box-shadow: inset 0 -0.05rem var(--masthead-back-dark);
  }

  #sidebar ul li ul li:last-child {
    box-shadow: none;
  }

  .no-posts {
    max-width: 100%;
    margin: 2rem;
    padding: 1rem;
    font-size: 2rem;
  }

  #content {
    margin: 0px;
    width: 100%;
    padding: 0 0 220px 0;
    max-width: unset;
    z-index: 1;
  }

  #content #blog-post {
    max-width: unset;
    padding: 4rem 1rem 1rem;
    font-size: 1.25rem;
  }

  #content #blog-post .post-header h1 {
    margin: 2rem 0 0;
    font-size: 2.5rem;
  }

  #content #blog-post .post-header h2 {
    font-size: 1.85rem;
    margin: 1rem 0;
    font-weight: 500;
  }

  #content #blog-post .post-header div.byline {
    font-size: 0.75rem;
    justify-content: space-between;
    padding: 1rem 0.5rem;
    margin: 1rem -1rem;
  }

  #content #blog-post .post-header div.byline .post-tag,
  #content #blog-post .post-header div.byline .dateline,{
    font-weight: 500;
  }

  #content #blog-post .post-content h3,
  #content #blog-post .post-content h4 {
    margin: 3rem 0 0.5rem;
    box-shadow: 0 0.1rem 0 0 rgba(255,255,255,0.1);
    font-size: 1.5rem;
    font-weight: 500;
    padding: 0.25rem 0;
  }

  #content #blog-post .post-content img.left,
  #content #blog-post .post-content img.center,
  #content #blog-post .post-content img.right,
  #content #blog-post .post-content figure,
  #content #blog-post .post-content figure.image.left,
  #content #blog-post .post-content figure.image.center,
  #content #blog-post .post-content figure.image.right {
    float: none;
    max-width: 100%;
    margin: 3rem 0 0 0rem;
    box-shadow: 0 0.1rem 0 0 rgba(255,255,255,0.2), 0 0.75rem 0.5rem -0.25rem rgba(0, 0, 0,0.35);
    width: 100%;
  }

  #content #blog-post .post-content figure.image img {
    width: 100%;
  }

  #content #blog-post .post-content figure.image figcaption {
    padding: 0.5rem;
    font-size: 1rem;
  }

  #content #blog-post .post-content pre {
    font-size: 1rem;
    padding: 1rem 0;
    box-shadow: 0 -0.1rem 0 0 rgba(255,255,255,0.2), 0 0.1rem 0 0 rgba(255,255,255,0.2), 0 0.75rem 0.5rem -0.25rem rgba(0, 0, 0,0.35);
  }

  #content #posts-index {
    padding: 3rem 0 0.25rem;
  }

  #content #posts-index .index-post {
    max-width: unset;
    margin: 3rem 1rem;
    font-size: 1rem;
    padding: 0.5rem 1rem;
  }

  #content #posts-index .index-post h1 {
    font-size: 2rem;
    font-weight: 500;
    margin: 0;
  }

  #content #posts-index .index-post .byline {
    font-size: 0.75rem;
    justify-content: space-between;
    padding: 1rem 1rem;
    margin: 1rem -1rem 1rem;
    width: calc(100% + 0rem);
  }

  #content #posts-index .index-post .post-summary {
    font-size: 1.25rem;
  }

  #content #posts-index .index-post .post-footer {
    font-size: 1.25rem;
    margin: 1rem 0 0.5rem;
  }
}
@media screen and (width < 320px) {
  body {

  }
  #masthead {
    font-size: 1rem;
    padding: 1rem;
    width: calc(100% - 2rem);
    z-index: 3;
    display: flex;
    align-items: center;
    align-self: start;
    height: 2rem;
  }

  #masthead img.menu {
    display: block;
    width: 1.2rem;
    height: 1.2rem;
    filter: invert();
    padding: 0 1rem 0 0rem;
  }

  #sidebar {
    font-size: 1.25rem;
  }

  #sidebar ul li ul li {
    font-size: 1.0rem;
  }
}
