/* reset -------------------------------------------------------------------- */

a {
  text-decoration: underline;
}

a img {
  vertical-align: bottom;
}

blockquote {
  box-sizing: border-box;
  color: gray;
  margin: 0 0 1.5rem 0;
  padding: 0 1.5rem;
  quotes: "\201C""\201D""\2018""\2019";
}

blockquote:after {
  content: close-quote;
}

blockquote:before {
  content: open-quote;
}

dd {
  margin: 0;
  padding: 0;
}

dt {
  margin-top: 1.5rem;
}

dl, ol, p, pre, ul {
  margin: 0;
  padding: 0;
}

h1, h2, h3 {
  clear: both;
  hyphens: manual;
  margin: 0;
  padding: 0;
}

ol, ul {
  list-style-position: outside;
}

p {
  hyphens: auto;
  word-break: break-word;
  word-wrap: break-word;

  -moz-hyphens: auto;
  -ms-hyphens: auto;
  -webkit-hyphens: auto;
}

pre {
  box-sizing: border-box;
  line-height: 1.5rem;
  padding: 1.5rem;
  white-space: pre-wrap;
  word-wrap: break-word;
}

q {
  quotes: none;
}

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

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

time {
  font-style: italic;
}

/* scrollbars --------------------------------------------------------------- */

::-webkit-scrollbar {
  height: 1.5rem;
  width: 1.5rem;
}

::-webkit-scrollbar-thumb {
  background-color: #3694FF;
}

::-webkit-scrollbar-thumb:hover {
  background-color: #FF9C00;
}

::-webkit-scrollbar-thumb:active {
  background-color: #FF220C;
}

::-webkit-scrollbar-track {
  background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAAECAYAAACp8Z5+AAAAH0lEQVQYV2NkQAXGjEh8YwYGhrMwATAHJAkSgHNAAgBPrgM4E7i5OwAAAABJRU5ErkJggg==);
}

body {
  scrollbar-arrow-color: #080808;
  scrollbar-face-color: #3694FF;

  scrollbar-3dlight-color: #efc665;
  scrollbar-dark-shadow-color: #efc665;
  scrollbar-highlight-color: #efc665;
  scrollbar-shadow-color: #efc665;
  scrollbar-track-color: #efc665;
}

/* site --------------------------------------------------------------------- */

html {
  border: 0;
  margin: 0;
  padding: 0;
}

body {
  background-color: #FFEAD0;
  box-sizing: border-box;
  color: #0F0F0F;
  hyphens: auto;
  line-height: 1.5;
  margin: 0;
  opacity: 0.95;
  orphans: 2;
  padding: 0;
  widows: 3;
}

body, button, code, input, pre, textarea {
  font-family: "Anonymous Pro", monospace, sans-serif;
}

code {
  font-size: 0.9rem;
  font-weight: 600;
}

/* site header & nav -------------------------------------------------------- */

#siteheader {
  background-color: #080808;
  box-sizing: border-box;
  height: 3rem;
  overflow: hidden;

  align-items: stretch;
  display: flex;
  flex-direction: row;
}

#siteheader a {
  text-decoration: none;
}

#siteheader a,
#siteheader a:visited,
#sitenav a,
#sitenav a:visited {
  color: #3694FF;
}

#sitenav li.selected a {
  color: #FF220C;
}

#siteheader a,
#siteheader label {
  display: table-cell;
  font-size: 1.5rem;
  height: 3rem;
  text-align: center;
  vertical-align: middle;
  width: 2rem;
}

#siteheader a:hover,
#sitenav a:hover,
#sitenav li.selected a:hover {
  color: #FF9C00;
  text-shadow: 0 0 1rem #FF9C00;
}

#siteheader a:active,
#sitenav a:active {
  color: #FF220C;
  text-shadow: 0 0 1rem #FF220C;
}

#siteheader > nav {
  border-bottom-right-radius: 0.3rem;
}

#siteheader > div {
  flex: 1;
  align-items: center;
  display: flex;
  justify-content: center;
  margin: 0;
}

#siteheader > div h1 {
  color: #FFEAD0;
  font-family: "Orbitron", sans-serif;
  font-size: 0.8rem;
  font-weight: normal;
  letter-spacing: 0.1rem;
  line-height: 1.5rem;
  margin: 0;
  white-space: nowrap;
}

#siteheader > ul {
  border-bottom-left-radius: 0.3rem;
  display: inline-block;
}

#siteheader > ul li {
  float: left;
  list-style: none;
}

#sitenav {
  background-color: #080808;
  box-sizing: border-box;
  color: #E9EADA;
  overflow: hidden;

  display: flex;
  flex-flow: row wrap;
}

#sitenav > * {
  margin: 0 0.75rem;
}

#sitenav > section {
  margin: 0 0.75rem;
  text-align: center;
}

#sitenav > div {
  align-self: stretch;
  flex: 1 100%;
  margin: 0.375rem;
  position: relative;
}

#sitenav > div form {
  justify-content: center;
  display: flex;
  flex-flow: row nowrap;
  z-index: 10;
}

#sitenav > div input {
  border: none;
  flex: 1 100%;
  max-width: 34.5em;
  width: 100%;
}

#sitenav > div button {
  flex: 0;
}

#sitenav h1 {
  color: #E9EADA;
  font-size: 1rem;
  font-weight: normal;
}

#sitenav ul li {
  list-style: none;
}

#togglemenu {
  display: none;
}

#togglemenu ~ nav {
  height: 0;
  padding-top: 0;
  width: 100%;
}

#togglemenu ~ nav > * {
  opacity: 0;
}

#togglemenu:checked ~ nav {
  min-height: 15rem;
  padding-top: 1.5rem;
  transition: min-height 0.1s linear;
  width: 100%;
}

#togglemenu:checked ~ nav > * {
  opacity: 1;
  transition: opacity 0.66s;
}

#togglemenu + header > nav > label:after {
  content: "\f20d";
}

#togglemenu:checked + header > nav > label:after {
  content: "\f12a";
}

/* site content ------------------------------------------------------------- */

#sitecontent {
  background-image:
    linear-gradient(
      90deg,
      rgba(0, 0, 0, 0.25),
      rgba(0, 0, 0, 0.0) 0.75rem
    );
  background-repeat: repeat-y;
  background-size: 60rem 100%;;
  flex: 1;
  overflow: auto;

  -webkit-overflow-scrolling: touch;
}

#sitecontent a {
  color: #3289E5;
}

#sitecontent a img {
  border: 0;
  outline: none;
}

#sitecontent a:visited {
  color: #374A67;
}

#sitecontent a:hover {
  color: #FF9C00;
  text-shadow: 0 0 0.75rem #FF9C00;
}

#sitecontent a:active {
  color: #FF220C;
  text-shadow: 0 0 0.75rem #FF220C;
}

#sitecontent ::selection {
  background-color: #E9EADA;
}

/* article ------------------------------------------------------------------ */

article > * > * {
  padding-left: 0.75rem;
  padding-right: 0.75rem;
}

article > * a[href*="//"]:not([href*="gmpreussner.com"]):after {
  content: '\00a0\f385';
  font-family: 'Ionicons';
}

article > * a.noicon:after {
  content: '';
}

article > * > aside {
  margin-left: 0.75rem;
  margin-right: 0.75rem;
}

article > header {
  box-sizing: border-box;
  margin-bottom: 1.5rem;
}

article > header > h1 {
  color: #FF220C;
  font-size: 2.2em;
  font-weight: bold;
  line-height: 3rem;
}

article > header > h1,
article > section h2 {
  font-family: 'Orbitron', sans-serif;
  letter-spacing: 0.1rem;
}

article > footer > p > span,
article > header > p > span {
  float: right;
}

article > footer,
article > nav,
article > section {
  margin-bottom: 3rem;
}

article > nav > h1,
article > section > h1 {
  background-color: #FF220C;
  color: #FFEAD0;
  display: inline-block;
  font-size: 1.5rem;
  font-weight: normal;
  line-height: 3rem;
  padding-right: 1.5rem;
}

article > header + * > h1 {
  margin-top: 0;
}

article > nav {
  background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAAECAYAAACp8Z5+AAAAH0lEQVQYV2NkQAXGjEh8YwYGhrMwATAHJAkSgHNAAgBPrgM4E7i5OwAAAABJRU5ErkJggg==);
  margin-top: 3rem;
  max-width: 64rem;
}

article > nav ul {
  overflow: auto;
  padding-bottom: 1.5rem;
}

article > nav li {
  float: left;
  height: 1.5rem;
  list-style: none;
  margin-right: 1.5rem
}

article > section h2 {
  color: #FF220C;
  font-size: 1.333em;
  line-height: 3rem;
  margin-top: 1.5rem;
}

article > section h1 + h2 {
  margin-top: 0;
}

article > section h3 {
  font-size: 1.125em;
  line-height: 1.5rem;
}

article > section h1,
article > section h2,
article > section h3 {
  clear: both;
}

article > section h2,
article > section h3 {
  font-weight: bold;
}

article > footer > *,
article > header > *,
article > section blockquote,
article > section ol,
article > section p,
article > section ul {
  box-sizing: content-box;
  max-width: 42rem;
}

article > footer > p,
article > header > p,
article > section > p,
article > section > ol,
article > section > ul,
article > section figcaption {
  background:
    linear-gradient(
      transparent 1.4rem,
      rgba(0, 0, 0, 0.1) 100%
    );
  background-repeat: repeat-y;
  background-size: 48rem 1.5rem;
}

article > section img {
  display: block;
  max-width: 100%;
}

article > header li,
article > section li {
  margin-left: 1.5rem;
}

article > header ul li,
article > section ul li {
  list-style-type: square;
}

article a > img:hover
{
  transform: scale(1.07);
  transform-origin: center bottom;
  transition: all 0.25s ease;

  -ms-transform: scale(1.07);
  -ms-transform-origin: center bottom;

  -webkit-transform: scale(1.07);
  -webkit-transform-origin: center bottom;
}

article aside {
  box-sizing: border-box;
  margin-bottom: 1.5rem;
  margin-top: 1.5rem;
  max-width: 43.5rem;
  padding: 1.5rem;
  position: relative;
}

article aside:before {
  border: 0.75rem solid rgba(0, 0, 0, 0.075);
  bottom: 0;
  content: '';
  left: 0;
  position: absolute;
  right: 0;
  top: 0;
  z-index: -1;
}

article aside.critical {
  color: #FF220C;
}

article aside.critical:before {
  border-color: #FF220C;
}

article aside.notice:before {
  border-color: #8EA604;
}

article aside.warning:before {
  border-color: #FF9C00;
}

article aside > * {
  margin-bottom: 1.5rem;
}

article aside > :last-child {
  margin-bottom: 0;
}

article form,
article p > code,
article pre,
.gallery div,
.youtube-wrap {
  background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAAECAYAAACp8Z5+AAAAH0lEQVQYV2NkQAXGjEh8YwYGhrMwATAHJAkSgHNAAgBPrgM4E7i5OwAAAABJRU5ErkJggg==);
  background-clip: padding-box;
}

article form {
  background-clip: padding-box;
  padding-top: 1.5rem;
}

article p > code {
  display: inline-block;
  height: 1.5rem;
  padding: 0 0.375rem;
}

article pre {
  background-clip: padding-box;
  margin-bottom: 1.5rem;
  max-width: 64rem;
}

/* special content ---------------------------------------------------------- */

.blog div {
  font-size: 0;
}

.blog div img {
  display: block;
  height: auto;
  max-width: 59.5rem;
  width: 100%;
}

.gallery div {
  box-sizing: border-box;
  font-size: 0;
  max-width: 64rem;
  padding: 1.5rem 1.5rem 1.5rem 0;
}

.gallery div img {
  box-sizing: border-box;
  display: block;
  height: auto;
  margin-bottom: 1.5rem;
  max-width: 100%;
}

.gallery div img:last-child {
  margin-bottom: 0;
}

.home article > header > h2 {
  background-color: #FF220C;
  border: none;
  color: #FFEAD0;
  font-size: 1.25rem;
  line-height: 3rem;
  margin-top: 1.5rem;
  padding: 0 3rem;
}

.projects {
  margin-bottom: 1.5rem;
  overflow: auto;
}

.projects figure {
  float: left;
  font-size: 0.75rem;
  line-height: 1.5rem;
  margin: 0 0.75rem 1.5rem 0;
  width: 9rem;
}

.projects figure a {
  box-sizing: border-box;
  width: 100%;
}

.projects figure img {
  border: 0.75rem solid #275DAD;
  width: 100%;
}

.projects figcaption {
  text-align: center;
}

.youtube-wrap {
  box-sizing: border-box;
  max-width: 64rem;
  padding: 1.5rem 1.5rem 1.5rem 0.75rem;
}

.youtube {
  box-sizing: border-box;
  height: 0;
  padding-top: 25px;
  padding-bottom: 56.34%;
  position: relative;
  overflow: hidden;
}

.youtube iframe {
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  position: absolute;
}

/* effects ------------------------------------------------------------------ */

#siteheader > div h1,
article > header > h1 {
  -webkit-font-smoothing: antialiased;
}

/*article > nav > h1,
article > section > h1,*/
article a > img:hover {
  box-shadow: 0.25rem 0.25rem 0.75rem rgba(0, 0, 0, 0.25);
}

/* multicolumn hack --------------------------------------------------------- */

article > footer > *,
article > header > *,
article > nav > *,
article > section > :not(h1) {
  border-top: 1.5rem solid transparent;
}
/*
article > section > * {
  margin-bottom: 0;
  margin-top: 0;
}*/

article > section > pre {
  padding-bottom: 1.5rem;
  padding-top: 1.5rem;
}

/* forms -------------------------------------------------------------------- */

form {
  max-width: 58rem;
}

form > div {
  padding-bottom: 1.5rem;
}

button,
input,
textarea,
.button:not(.secondary) {
  border-style: solid;
  border-width: 0.15rem;
  box-sizing: border-box;
  font-size: 1.25rem;
  margin: 0;
  min-width: 3rem;
  padding: 0 0.75rem;
}

.button,
button,
input {
  height: 3rem;
}

textarea {
  height: 12rem;
  padding-bottom: 0.75rem;
  padding-top: 0.75rem;
}

input,
textarea {
  background-color: #EEE;
  border-color: #EEE;
  color: #080808;
  width: 100%;
}

input[type=checkbox] {
  height: 1.5rem;
  min-width: 0;
  width: 1.5rem;
}

input[type=file],
input[type=range] {
  background: none;
  border: none;
  padding: 0;
}

button,
input[type=submit],
.button:not(.secondary) {
  background-color: #3694FF;
  border-color: #3694FF;
  color: #0F0F0F !important;
  text-align: center;
  text-decoration: none !important;
  width: auto;
}

button:hover,
input[type=submit]:hover,
.button:not(.secondary):hover {
  background-color: #FF9C00;
  border-color: #FF9C00;
  box-shadow: 0 0 0.75rem #FF9C00;
}

button:active,
input[type=submit]:active,
.button:not(.secondary):acctive {
  background-color: #FF220C;
  border-color: #FF220C;
  box-shadow: 0 0 0.75rem #FF220C;
}

.button.secondary {
  margin-right: 1.5rem;
  vertical-align: top;
}

label.inline {
  display: inline-block;
  vertical-align: top;
}

/* icons -------------------------------------------------------------------- */

.icon {
  display: inline-block;
  font-family: "Ionicons";
  font-size: 0.9rem;
  font-style: normal;
  font-weight: normal;
  font-variant: normal;
  speak: none;
  text-decoration: none;
  text-transform: none;
  text-rendering: auto;

  -webkit-font-smoothing: antialiased;
}

.icon span {
  display: none;
}

.icon.email:after {
  content: '\f132';
}

.icon.github:after {
  content: '\f4e8';
}

.icon.home:after {
  content: '\f38f';
}

.icon.linkedin:after {
  content: '\f239';
}

.icon.phone:after {
  content: '\f4b9';
}

.icon.pinterest:after {
  content: '\f2b1';
}

.icon.slideshare:after {
  content: '\f3ca';
}

.icon.twitter:after {
  content: '\f243';
}

a.icon:active,
a.icon:focus,
a.icon:hover {
  transform: rotate(-10deg);
  transition: transform 0.1s;
}

/* screen ------------------------------------------------------------------- */

@media only screen and (min-height: 33em) and (min-width: 33em) {
  body {
    border: 0.75rem solid #080808;
    overflow: hidden;
  }
}

@media only screen and (min-height: 67.5em) and (min-width: 67.5em) {
  body {
    border-width: 1.5rem;
  }
}

@media only screen and (min-height: 43.5em) {
  article > header {
    margin-bottom: 4.5rem;
    padding-top: 1.5rem;
  }

  article > header > h1 {
    padding-bottom: 3rem;
    padding-top: 3rem;
  }

  article > section > h1 {
    margin: 1.5rem 0;
  }

  article > section > h2 {
    margin-top: 3rem;
  }
}

@media only screen and (min-width: 24em) {
  #siteheader a,
  #siteheader label {
    width: 3rem;
  }

  article > * > * {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }

  #sitenav > *,
  article > * > aside {
    margin-left: 1.5rem;
    margin-right: 1.5rem;
  }

  .gallery div img,
  .youtube-wrap {
    padding-left: 1.5rem;
  }

  .home article > header > h2 {
    font-size: 1.7rem;
  }

  .projects figure {
    font-size: 1rem;
    width: 10.5rem;
  }
}

@media only screen and (min-width: 33em) {
  article > header > h1 {
    font-size: 2.5em;
    line-height: 3rem;
  }

  .home article > header > h2 {
    font-size: 2.4rem;
    line-height: 4.5rem;
  }

  .projects figure {
    width: 12rem;
  }
}

@media only screen and (min-width: 43.5em) {
  article > * > * {
    padding-left: 3rem;
  }

  #sitenav > *,
  article > * > aside {
    margin-left: 3rem;
    margin-right: 3rem;
  }

  article > header > div {
    display: inline-block;
  }

  article > header > h1 {
    font-size: 3em;
    line-height: 4.5rem;
  }

  .gallery div img,
  .youtube-wrap {
    padding-left: 3rem;
  }

  .projects figure img:hover {
    box-shadow: 0.5rem 0.5rem 1.5rem rgba(0, 0, 0, 0.25);
  }
}

@media only screen and (min-width: 67.5em) {
  article > * > * {
    padding-left: 4.5rem;
  }

  #sitenav > *,
  article > * > aside {
    margin-left: 4.5rem;
    margin-right: 4.5rem;
  }

  .gallery div img,
  .youtube-wrap {
    padding-left: 4.5rem;
  }
}

/* screen (landscape) ------------------------------------------------------- */

@media only screen and (orientation: landscape) and (min-height: 33em) {
  body {
    align-items: stretch;
    display: flex;
    flex-flow: row;
    height: 100vh;
    width: 100vw;
  }

  #siteheader {
    flex-direction: column;
    height: 100%;
    width: 3rem;
  }

  #siteheader > nav a {
    margin-bottom: 0.75rem;
  }

  #siteheader > div {
    margin: 0 0.375rem 0 0;
  }

  #siteheader > div h1 {
    font-size: 1rem;
    margin: 0;
    transform: rotate(-90deg);

    -moz-transform: rotate(-90deg);
    -ms-transform: rotate(-90deg);
    -o-transform: rotate(-90deg);
    -webkit-transform: rotate(-90deg);
  }

  #siteheader > ul {
    border-bottom-left-radius: 0;
    border-top-right-radius: 0.3rem;
  }

  #sitenav {
    border-top: none;
    flex-flow: column;
    justify-content: flex-start;
    overflow-y: auto;
  }

  #sitenav > section {
    flex: 0;
    margin-bottom: 1.5rem;
    margin-right: 3rem;
    text-align: right;
  }

  #sitenav > div {
    margin-bottom: 0.375rem;
    position: relative;
  }

  #sitenav > div form {
    bottom: 0;
    position: relative;
    position: absolute;
  }

  #togglemenu ~ nav {
    height: 100%;
    padding-top: 1.5rem;
    width: 0;
  }

  #togglemenu:checked ~ nav {
    height: 100%;
    padding-top: 1.5rem;
    transition: width 0.1s linear;
    width: 13.5rem;
  }
}

@media only screen and (orientation: landscape) and (min-height: 43.5em) {
  #siteheader > div h1 {
    font-size: 1.2rem;
  }

  #togglemenu:checked ~ nav {
    padding-top: 3rem;
  }
}

/* screen (portrait) -------------------------------------------------------- */

@media only screen and (orientation: portrait) {
  article > header > div {
    display: inline-block;
  }
}

@media only screen and (orientation: portrait) and (min-height: 45em) {
  body {
    align-items: stretch;
    display: flex;
    flex-flow: column;
    height: 100vh;
    overflow: hidden;
    width: 100vw;
  }
}

@media only screen and (orientation: portrait) and (min-width: 33em) {
  #siteheader > div h1 {
    font-size: 1rem;
  }
}

@media only screen and (orientation: portrait) and (min-width: 43.5em) {
  #siteheader > div h1 {
    font-size: 1.2rem;
  }
}

/* monochrome --------------------------------------------------------------- */

@media (monochrome) {
  a, a:hover {
    text-decoration: underline;
  }
}
