/* --- Variables --- */

:root {
  --font-serif: "tiempos", "Georgia",serif;
  --font-sans-serif: "metric", sans-serif;
  --font-utility: "refrigerator-deluxe",sans-serif;

  --font-xs: 0.25rem;
  --font-s: 16px;
  --font-m: 1.1rem;
  --font-l: 1.5rem;
  --font-lh: 1.5rem;
  --font-sansmatch: 0.95rem;

  --unit-maxwidth-text: 30em;
  --unit-line-height: 1.4em;

  --white: #ffffff;
  --light-gray: #6e6e6e;
  --lightblack: #231F20;
  --background: #212224;
  --footer-background :#ffffff;
  --brightblue: #0037FF;
  --line-color: #dddddd;
  --color-dim: #DFE3E9;
  --color-mid: #87929F;
  --big-teal:#00B8CA;
  --big-purple:#4E35FF;
  --big-orange:#FF4500;

  --spacing-max-width: 36rem;
  --spacing-xs: calc(var(--font-lh) * 0.25);
  --spacing-s: calc(var(--font-lh) * 0.5);
  --spacing-m: var(--font-lh);
  --spacing-l: calc(var(--font-lh) * 3);
  --spacing-xl: calc(var(--font-lh) * 6);
  --spacing-letter: 0.3em;
  --spacing-sidebar: 33.33vh;
}

/* --- Fonts --- */

@font-face {
  font-family: metric;
  src: url(/fonts/metric-test-regular.woff) format("woff");
}

@font-face {
  font-family: tiempos;
  src: url(/fonts/tiempos-text-test-regular.woff) format("woff");
}

/* --- Basics --- */

* {
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
  -moz-font-smoothing: greyscale;
  font-feature-settings: 'ss02'
}

html {
  font-size:18px;
  line-height: var(--unit-line-height);
  margin: 0;
}

@media(min-width:1000px) {
  html {
    font-size: 19px
  }
}

body {
  color: var(--white);
  overflow-y: scroll;
  overflow-x: hidden;
  font-family: var(--font-sans-serif);
  line-height: 1.4;
  background-color: var(--background);
  margin: 0 calc(3*var(--unit-line-height));
}

@media (max-width: 800px) {
  body {
    margin: 0 calc(1*var(--unit-line-height));
  }
}

main {
  min-height: calc(100vh - 19*var(--unit-line-height));
}

main svg, main img {
  width: 100%;
}

@media (min-width: 1000px) {
  body.about main {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-gap: var(--unit-line-height);
  }
  body.about .second {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    grid-gap: var(--unit-line-height);
  }
  body.about .first_about {
    display:grid;
    grid-column:2;
  }
  svg.portrait {
    margin: 0 auto;
  }
}

/* --- Elements --- */

p {
  margin: 0 0 1rem;
  max-width: var(--unit-maxwidth-text);
}

h1, h2, h3 {
  font-weight: 400;
  font-family: var(--font-serif)
}

h1 {
  font-size: 1.5em;
  margin: 0 0 calc(0.5*var(--unit-line-height));
}

h2 {
  font-size: 1em;
}

h3 {
  font-family: var(--font-sans-serif);
  font-size: 1em;
}

.work h1 {
/*    margin-left: calc(50% + 0.5*var(--unit-line-height));*/
    line-height: var(--unit-line-height);
    max-width: var(--unit-maxwidth-text);
}

@media (min-width: 800px) {
.work h1 {
    margin-left: calc(50% + 0.5*var(--unit-line-height));
} }

.about h2:not(.hello) {
  margin-top: 2em;
}

a {
  color:var(--white);
  text-decoration: none;
}

a:hover {
  color: var(--big-teal);
  text-decoration: none;
}

p a, li a {
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.75);
}

p a:hover, li a:hover {
  text-decoration: none;
}

p.gb-live {
  font-size: 24px;
}

p.gb-live a {
  color:var(--big-orange);
  text-decoration-color: var(--big-orange);
}

p.gb-live a:hover {
  color:var(--big-orange);
}

strong a:hover {
  color:var(--white);
}

body>header {
  display: grid;
  grid-template-columns: repeat(2,1fr);
  grid-gap: var(--unit-line-height);
  margin-bottom: calc(5*var(--unit-line-height));
  line-height: var(--unit-line-height);
  padding-top: var(--unit-line-height);
}

body>header img {
  width: 3rem;
  display: block;
}

body>header svg path {
  fill: #858590;
}

/* Two Column Nav, Which wouldn't match current footer */
/* header nav {
  line-height: var(--unit-line-height);
  display: grid;
  grid-gap: var(--unit-line-height);
  grid-template-columns: repeat(2,1fr);
} */

a.logo img{
  float:left;
  width: 3rem;
  margin-right:.7em;
}

a.name {
  float :left;
  text-align: left;
}

a.name span {
  display:block;
  opacity: 0.75;  
}

body header, footer a, footer {
  font-feature-settings: "smcp";
}

footer {
  line-height: var(--unit-line-height);
  display: grid;
  grid-gap: var(--unit-line-height);
  grid-template-columns: repeat(2,1fr);
  padding-top: calc(4*var(--unit-line-height));
  padding-bottom: var(--unit-line-height);
}

footer>div:first-child, footer>div:last-child {
  grid-column-start: 3;
}

footer div.copyright {
  opacity: 0.6;
  font-size:14px;
}

footer div.toparrow {
  grid-column: 1 / span 2;
  text-align: left;
  font-size:16px;
  font-family: var(--font-utility);
}

footer .text {
  font-size:16px;
  text-transform: uppercase;
  opacity: 0;
}

footer .up:hover .text {
  opacity: 1 !important;
}

@media (min-width: 500px) and (max-width: 983px) {
  footer .text {
    display: none;
  }
}

@media (max-width: 845px) {
  .toparrow {
    display: none;
  }
}  

@media (min-width: 1000px) {
  footer { grid-template-columns: repeat(4,1fr); }
}

figcaption {
  opacity: 0.6;
  font-size: 16px;
  margin-top: .7em;
}
@media screen and (max-width: 1025px) {
  figcaption {
    display:none;
  }
}

strong {
  background: var(--big-purple);
  padding: 0 0px 0 0;
  margin-left: 5px;
  margin-right: 5px;
  display: inline;
  box-shadow: 4px 0 0 var(--big-purple), -4px 0 0 var(--big-purple);
}

small {
  opacity:0.6;
}

.blockquote-container {
  margin:2em 0;
}

blockquote {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 1.6em;
  text-align: center;
  color: var(--brightblue);
  padding-left:1rem; }
  @media screen and (min-width: 700px) {
    blockquote {
      font-size: 2em;  } }

blockquote:before {
    content: "";
    display: block;
    /*width: 150px;*/
    margin: 0 auto 50px;
    border-top: 1px solid var(--line-color); }

blockquote:after {
    content: "";
    display: block;
    /*width: 150px;*/
    margin: 50px auto 0;
    border-top: 1px solid var(--line-color);}

.copyright {
  padding: 4em 0 1em 0;
  color: var(--light-grey);
} 

ul {
  margin:0;
  padding:0;
  list-style: none;
}

li {
}

ul span {
  margin-right:0.25em;
/*  font-variant-numeric: tabular-nums;*/
  opacity: 0.7;
  font-size: 16px;
  letter-spacing: .3px;
  display: inline-block;
  font-feature-settings: "smcp";
}

li.list-header {
  opacity: 1;
}

ul.about span {
  width: 5rem;
}

ul li.gap {
  margin-top: var(--unit-line-height);
}

/* --- Project List --- */

.intro {
  margin:4em 0 2em 0;
}

@media (min-width: 767px) {
  div.workthumbs {
    display: grid;
    grid-template-columns: 1fr ;
/*    grid-template-columns: 1fr 1fr;*/
    grid-gap: 0 var(--unit-line-height);
  }
}

@media (min-width: 1400px) {
  div.workthumbs { grid-template-columns: 1fr 1fr; }
/*  div.workthumbs { grid-template-columns: 1fr 1fr 1fr 1fr; }*/
}

body:not(.work) div.workthumbs, div.projectslabel {
  margin-left: calc(-1*var(--unit-line-height));
  margin-right: calc(-1*var(--unit-line-height));
  padding: calc(1*var(--unit-line-height));
  margin-bottom: calc(-3*var(--unit-line-height));
}

div.workthumb:not(:last-child) {
  margin-bottom: calc(1*var(--unit-line-height));
}

div.title-wrap {
  margin-top: calc(.1*var(--unit-line-height));
  clear:left;
}

div.workthumbs span {
    font-size:16px;
    display: block;
    opacity: 0.5;
}

div.workthumbs a {
  color: var(--white);
}

div.workthumbs a img {
  opacity: .8;
  transition: opacity .3s ease;
}

div.workthumbs a:hover img {
  opacity: 1;
}

div.project-status {
  width:fit-content;
  margin:8px 0;
  padding:4px 12px;
  letter-spacing: .75px;
  font-size: 12px;
  font-weight: bold;
  text-transform:uppercase;
  color: var(--white);
}

/* .status {
  padding:4px 12px;
  letter-spacing: 1px;
  font-size: 12px;
  font-weight: bold;
  text-transform:uppercase;
  background-color: var(--big-orange);
  color: var(--white);
} */

.project-status-ic {
  background-color: var(--big-teal);
}

.project-status-group-buy {
  background-color: var(--big-orange);
}

.project-status-complete {
  background-color: var(--big-purple);
}

/*div.ic {
  background-color: var(--big-teal);
}

div.gb {
  background-color: var(--big-orange);
}*/

/* --- Projects --- */

div.project-header {
  margin: var(--unit-line-height) 0 var(--unit-line-height);
}

div.projectslabel {
    margin-bottom: 0;
    padding-bottom: 0;
}

div.projectinfo ul {
  font-family: var(--font-sans-serif);
  margin: var(--unit-line-height) 0 calc(2*var(--unit-line-height));
  opacity: 0.75;
  font-feature-settings: "smcp";
}

div.projectinfo {
  margin: var(--unit-line-height) 0 calc(2*var(--unit-line-height));
}

@media (min-width: 800px) {
  div.projectinfo {
    display: grid;
    grid-gap: var(--unit-line-height);
    grid-template-columns: 1fr 1fr 1fr 1fr;
    margin-bottom: 10vh;
  }
  div.projectinfo .project-header { grid-column: 3 / span 2; grid-row: 1; }
  div.projectinfo h2.h2section { grid-column: 3 / span 2; }
  div.projectinfo ul { grid-column: 1 / span 2; grid-row: 2; margin: 0; }
  div.projectinfo div { grid-column: 3 / span 2; grid-row: 2; }
}

@media (min-width: 1300px) {
  div.projectinfo ul { grid-column: 2 / span 1; grid-row: 2; margin: 0; }
}

div.projectslabel h1 {
    margin: 0;
}

@media (min-width: 800px) {
div.projectslabel h1 {
    /*margin-left: calc(50% + 0.5*var(--unit-line-height));*/
    margin-bottom:1em; /*TEMPORARY STYLE*/
} }

.project-card {
  margin: 0 calc(-1*var(--unit-line-height));
}

.project .single_image {
  margin: calc(2*var(--unit-line-height)) 0;
}

@media (max-width:800px) {
  .project .single_image {
    margin: calc(.5*var(--unit-line-height)) 0;
} }

.project .inline_image,
.blog-article .inline_image {
  width: var(--unit-maxwidth-text);
  margin: calc(2*var(--unit-line-height)) 0;
}

@media (max-width:800px) {
  .project .inline_image,
  .blog-article .inline_image {
    width:inherit;
    margin: calc(.5*var(--unit-line-height)) 0;
} }

.project .gif_image {
  width:70%;
  margin:calc(2*var(--unit-line-height)) auto;
}

@media (max-width:800px) {
  .project .gif_image {
    width:100%;
    margin:calc(.5*var(--unit-line-height)) auto;
} }

/* --- About --- */

img.portrait {
  display:block;
  margin:0 auto;
  width:200px;
}

@media (max-width:1000px) {
  body.about>main {
    display: flex;
    flex-direction: column-reverse;
  }
  img.portrait {
    margin:3em auto 0 auto;
  }
}

/* --- Blog --- */

.blog {

}

.blog-article {

}

article>header {
  display: flex;
  flex-direction: column-reverse;
}

article>header time {
  width: 100%;
  display: block;
  line-height: 2;
  font-size:;
}

time {
  color: var(--light-gray);
  font-size: var(--font-med);
}

.blog-content {

}

@media (min-width: 800px) {
  .blog-article article {
      display: grid;
      grid-gap: var(--unit-line-height);
      grid-template-columns: 1fr 1fr 1fr 1fr;
      margin-bottom: 10vh;
  } 
  article header,
  article section { grid-column: 3 / span 2; }
}


@media (min-width: 800px) {
  div.blog-list {
    display: grid;
    grid-gap: var(--unit-line-height);
    grid-template-columns: 1fr 1fr 1fr 1fr;
    margin-bottom: 10vh;
  }
  div.blog-list h1 { grid-column: 3 / span 2; }
  div.blog-list .posts { grid-column: 1 / span 2; grid-row: 2; margin: 0; }
  div.blog-list div { grid-column: 3 / span 2; grid-row: 2; }
}

.blog ul,
.blog-article ul {
  margin-bottom:calc(.7*var(--unit-line-height));
}

.blog li a {
  color: var(--color-default);
  text-decoration: none;
}

.blog ul span,
.blog-article ul span {
  display: block;
  text-transform: uppercase;
  opacity:0.75;
}

section.posts ul {
    list-style: none;
    padding: 0;
    border-bottom: 1px solid var(--color-dim);
    max-width: 45rem;
}

@media (min-width: 550px) {
section.posts li {
    display: flex;
    justify-content: space-between;
} }

section.posts li {
    padding: var(--spacing-s) 0;
    border-top: 1px solid var(--color-dim);
}

section.posts time {
    white-space: nowrap;
}

time {
    color: var(--color-mid);
    font-family: var(--font-sans);
    font-size: var(--font-s);
    font-feature-settings: "kern" 1,"liga" 1,"onum" 1;
}

/* --- Adjustments --- */

.show-for-medium-up {
  display:none; }
  @media screen and (min-width: 768px) {
    .show-for-medium-up {
        display:block; } }

.show-for-small-down {
  display:block; }
  @media screen and (min-width: 768px) {
    .show-for-small-down {
        display:none; } }


/* --- Next / Previous Project --- */

#project_nav span, #blog_nav span {
  display:block;
  margin-top:4px;
  font-family: var(--font-utility);
  text-transform:uppercase;
  font-size:16px;
}

#project_nav .text, #blog_nav .text {
  opacity: 0;
  margin-top:13px;
}

.next .text,
.back .text {
  position: relative;
  top: -17px;
  line-height: 12pt;
  float: left;
}

.next .text {
  text-align: right;
}

.next,
.back {
  padding: 1%;
  position: fixed;
  top: 0;
  top: 44%;
}

.next {
  right: 0;
}

.back {
  left: 0;
}

.next>div {
  text-align: right;
}

.back>div {
  text-align: left;
}

.next:hover .text,
.back:hover .text {
  opacity: 1 !important;
}

@media (min-width: 500px) and (max-width: 983px) {
  #project_nav .text, #blog_nav .text {
    display: none;
  }
}

@media (max-width: 845px) {
  #project_nav, #blog_nav {
    display: none;
  }
}        

/* --- Video --- */

#player .vp-player-layout {
  left: 0px !important; 
  top: 0px !important;
  width: 100% !important; 
  height: auto !important;   
}

.video {
  height: 0;
  padding-top: 25px;
  padding-bottom: 67.5%;
  margin-bottom: 2em;
  position: relative;
  overflow: hidden;
  z-index: 0;
}

.video.widescreen {
  padding-bottom: 57%;
}

.video.square {
  padding-bottom: 100%; }
  @media screen and (min-width: 768px) {
    .video.square {
      padding-bottom: 64%; } }


.video.vimeo {
  padding-top: 0;
}

.video embed, .video iframe, .video object, .video video {
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  position: absolute;
  z-index: 0;
}

.vimeo-sucks {
  height: 2px;
  position: relative;
  z-index: 10;
}

.vimeo-sucks.top {
  top: 1px;
}

.vimeo-sucks.bottom {
  top: -1px;
}

.controls-wrapper .sidedock {
  display:none!important; 
}
