/* --- Variables --- */

:root {
  --font-serif: "tiempos", "Georgia",serif;
  --font-sans: -apple-system,BlinkMacSystemFont,Segoe UI,Helvetica,Arial,sans-serif,Apple Color Emoji,Segoe UI Emoji;
  --font-sans-serif: "metric", sans-serif;
  --font-utility: "refrigerator-deluxe",sans-serif;
  --font-mono: "inconsalata",monospace;

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

  --light-gray: #6e6e6e;
  --lightblack: #231F20;
  --background: #ffffff;
  --footer-background:#ffffff;
  --brightpurple:#9013FE;
  --brightblue: #0037FF;
  --line-color: #dddddd;
  --color-dim: #E0E0E0;
  --color-mid: #727272;

  --unit-maxwidth-text: 38rem;
  --unit-line-height: 1.4rem;
  --spacing: 1.5em;
  --spacing-s: calc(0.5* var(--spacing));
  --spacing-m: var(--spacing);
  --spacing-l: calc(1.5* var(--spacing));
  --spacing-xl: calc(2.5* var(--spacing));
  --spacing-xxl: calc(5* var(--spacing));
  --spacing-col: calc(6* var(--spacing));
  --spacing-width-tiny: 30rem;
  --spacing-width-xl: 50rem;
  --spacing-width-xxl: 75rem;
}

/* --- 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:16px;
  line-height: var(--unit-line-height);
  margin: 0;
}

body {
  color: var(--lightblack);
  overflow-y: scroll;
  overflow-x: hidden;
  font-family: var(--font-sans);
  font-weight:400;
  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 {
  margin-top: 8rem;
  min-height: calc(100vh - 19*var(--unit-line-height));
}

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

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

/* --- Elements --- */

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

h1 {
  line-height: 140%;
  font-size: 1.5em;
  font-weight: 800;
  /* margin: 0 0 calc(1.5*var(--unit-line-height)); */
}

h2 {
  line-height: 160%;
  font-size: 1.2em;
  font-weight: 400;
}

h3 {
  font-size: 1rem;
  margin-top: 3rem;
}

h4 {
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom : .5rem;
  margin-top: 1.5rem;
}

ul, ol {
}

li {
  line-height: 1.6rem;
}

a, a:link, a:active, a:focus, a:visited {
  color: var(--brightpurple);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
  text-decoration-color: var(--brightpurple);
}

/* p a:hover, li a:hover {
  text-decoration: underline;
  text-decoration-color: var(--brightpurple);
} */

hr {
  margin: var(--spacing-xl) auto;
  max-width: calc(2 * var(--spacing-xxl));
  border: none;
  border-top: 1px solid var(--color-dim);
}

figure, video, audio {
  display: block;
  width: 100%;
  margin: var(--spacing-xl) auto;
  max-width: var(--spacing-width-xl);
}

figure img {
  width: 100%;
  height: auto;
}

figcaption {
  color: var(--color-mid);
  margin: .7em 0;
  text-align: center;
}

section {
  padding-top: 2em;
  margin-top: 1em;
  margin-bottom: 3em;
}

mark {
}

small {
  opacity:0.6;
}

time {
  color: var(--color-mid);
  font-size: var(--font-med);
  display:block;
  font-feature-settings: "kern" 1,"liga" 1,"onum" 1;
}

blockquote {
  font-family: var(--font-mono);
  letter-spacing: 3px;
  font-size: 1.3em;
  text-transform: uppercase;
  margin-top: 4rem;
  margin-bottom: 4rem;
  }

/* -----------------------------------
Limit widths
-------------------------------------- */

h1, h2, h3, h4, time,
p, blockquote, ol, ul, details, pre.code, pre, figcaption,
.split, .posts, .text-limit
{
  max-width: var(--unit-maxwidth-text);
  margin-left: auto;
  margin-right: auto;
}

.limit {
  max-width: var(--spacing-width-tiny);
}

.no-limit {
  max-width: var(--spacing-width-xxl);
}

iframe[src*="youtube"] {
  max-width: var(--spacing-width-xl);
  width: 100%;
  aspect-ratio: 16/9;
}

iframe[src*="figma"] {
  max-width: var(--spacing-width-xl);
  width: 100%;
}

.collapse-top {
  margin-top: var(--spacing-m);
}

/* --- Header --- */

body>header {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-gap: var(--unit-line-height);
  line-height: var(--unit-line-height);
  padding-top: var(--unit-line-height);
  max-width: 1440px;
  margin: 0 auto;
}

header div {
  margin-bottom: .25rem;
}

/* --- Navigation --- */

nav {
  text-align: left;
  margin-top: auto;
  margin-bottom: auto;
}

@media (min-width:768px) {
  nav {
    text-align: right;
    margin-top: auto;
    margin-bottom: auto;
  }
  
  nav div {
    display: inline;
    margin-right: 16px;
  }
}

/* --- Logo / Name --- */

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

a.name span {
  display:block;
  color: var(--color-mid);
  margin-top:.25rem; 
}

/* --- Nav --- */

header a, header a:visited, header a:link,
footer a, footer a:visited, footer a:link {
  color: var(--lightblack);
  text-decoration: none;
}

header a:hover,
footer a:hover {
  color: var(--brightpurple);
  text-decoration: none;
}

/* --- Footer --- */

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);
  max-width: 1440px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  footer { grid-template-columns: repeat(4,1fr); }
  .footer-nav { grid-column-start: 3; } 
}

footer div.footer-link {
  margin-bottom: .25rem;
}

footer div.copyright {
  color: var(--color-mid);
  grid-column: 1 / span 2;
  padding-top: calc(8*var(--unit-line-height));
}

footer div.toparrow {
  grid-column: 1 / span 2;
  text-align: left;
  margin-bottom: 2rem;
}

div.toparrow .text {
  font-size: 16px;
}

footer .text {
  opacity: 0;
}

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

@media (max-width: 768px) {
  footer .text {
    opacity: 1 !important;
    /* display: none; */
  }
}

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

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

.not-found {
  margin-top: calc(8*var(--unit-line-height));
  margin-bottom: calc(8*var(--unit-line-height));
}

/* --- Home Overrides --- */

.home-content h2 {
  margin-top: 4rem;
  font-weight: 700;
}

.home-content h3 {
  margin-top: 2rem;
}

.home-content ul {
  padding: 0;
  list-style-type: none;
}

.home-content ul span {
  width: 6rem;
  margin-right: 1em;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  text-transform: uppercase;
  letter-spacing: 1px;
  display: inline-block;
  font-feature-settings: "smcp";
}

/* --- Intro --- */

h1.intro,
h2.intro,
h1#selected-work {
  margin-left:0;
}

.intro-container a {
  text-decoration: none;
}

.intro-container a:hover {
  color: var(--lightblack);
}

h3.work-anchor {
  letter-spacing: 1px;
  font-family:var(--font-mono);
  margin-top:1.6em;
  margin-left:0;
  text-transform: uppercase;
}

body.home .intro-container {
  margin-top: 5em;
}

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

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

.project-listing {
  margin: 3em auto 0 auto;
  max-width: 1440px;
}

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

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

.workthumbs {
  margin-top:3em;
}

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: 135px;
}

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

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

div.workthumbs a {
  color: var(--lightblack);
  display: block;
  text-decoration: none;
}

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

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

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

h2.projectlist_title {
  color: var(--lightblack);
  font-size: 1.6em;
  font-style: normal;
  font-weight: 800;
  line-height: normal;
  margin: 0;
  /* margin-top: 1.5rem; */
}

a:hover h2.projectlist_title {
  color: var(--brightpurple);
  text-decoration: none;
}

h3.projectlist_subhead {
  margin-top: 1em;
  text-transform: none;
  letter-spacing: 0;
}

h4.projectlist_subhead {
  margin-bottom: 1em;
  margin-left: 0;
  letter-spacing: 1.5px;
  font-family: var(--font-mono);
  color: var(--lightblack);
  text-transform: uppercase;
}

p.projectlist_subhead {
  margin-top: 1rem;
  margin-left: 0;
  color: var( --lightblack)
}

.projectlist_container {
  margin-bottom: 135px;
}

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

div.projectslabel h2 {
    letter-spacing: 1px;
    font-weight: 600;
    font-size: 1.5em;
    margin: 0;
    padding: var(--unit-line-height) 0 var(--unit-line-height);
}

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

/* --- Writing List --- */

.writing-list {
  margin-top: 3rem;
}

.writinglist_container {
  margin-bottom: 2rem;
}

.writing-list a {
  text-decoration: none;
}

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

div.writing-list a {
color: var(--lightblack);
display: block;
}

div.writing-list a:hover {
color: var(--brightpurple);
}

h2.writinglist_title {
  color: var(--lightblack);
  font-style: normal;
  font-weight: 900;
  margin-top : .25rem;
  margin-bottom: .5rem;
}

@media (min-width: 768) {
  h2.writinglist_title {
    font-size: 1.8em
  }
}

a:hover h2.writinglist_title {
  color: var(--brightpurple);
}

/* --- Projects --- */



/* --- About Overrides --- */


/* Try to get rid of this */

.about h2 {
  margin-top: 4rem;
  font-weight: 700;
}

.about ul, .home h2 {
  padding: 0;
  list-style-type: none;
}

.about ul span, .home ul span {
  width: 6rem;
  margin-right: 1em;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  text-transform: uppercase;
  letter-spacing: 1px;
  display: inline-block;
  font-feature-settings: "smcp";
}

/* --- Contact Module --- */

.contact-container {
  margin-top: 8em;
  margin-bottom: 8em;
  text-align: center;
}

.contact-container h2.contact-message {
  max-width: none;
  font-weight: 900;
  font-size: 2em;
}

.contact-container a {
  font-size: 1.5em;
  letter-spacing: 3%;
}

/* --- About --- */

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

/* --- Numbered Lists --- */

ol.numbered {
  counter-reset: item;
  padding: 0;
  list-style: none;
}

ol.numbered>li {
  counter-increment: item;
  margin-top: .5rem;
  margin-bottom: .5rem;
}

ol.numbered b {
  display:inline;
}

ol.numbered ul {
  padding-inline-start:16px;
  margin-bottom: 1rem;
}

ol.numbered ul li {
  list-style-type: disc;
}

@media (min-width: 768px) {
  ol.numbered>li {
      display:flex;
  }
  ol.numbered ul {
    padding-inline-start: 44px;
  }
}

ol.numbered>li:before {
  display: block;
  margin-right: 12px;
  color: var(--lightblack);
  font-family: var(--font-mono);
  font-size: .75rem;
  font-style: normal;
  font-weight: 600;
  letter-spacing: .1em;
  line-height: 1.7rem;
  content: "0" counter(item);
}

@media (min-width: 1024px) {
  ol.numbered>li:before {
      font-size:.75rem;
  }
}

ol.numbered  p {
  margin:0;
}

h3.numbered {
  margin-top: 2em;
  font-size: 1.1em;
}

/* Remove? Unused? used on TCS Takeaways*/
ol.numbered  h4 {
  margin-top:0;
  margin-bottom:.35em;
  /* font-size: 1em;
  font-weight: 600; */
  /* text-transform: uppercase;
  letter-spacing: 1px; */
}

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

#project_nav span, #writing_nav span {
  display:block;
  margin-top:4px;
}

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

#project_nav a {
  text-decoration: none;
}

.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, #writing_nav .text {
    display: none;
  }
}

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


/* --- Figma Embed --- */

.figma-tcs-presentation {
  display:none;
}

.project .figma-container {
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 800px) {
  .figma-tcs-presentation {
    display:block;
    height:700px;
    width:100%;
    border: 5px solid rgba(0, 0, 0, 0.1);
  }
}

.figma-tcs-presentation-mobile {
  display:block;
}

@media (min-width: 800px) {
  .figma-tcs-presentation-mobile {
    display: none;
  }
}

/* --- Video Embed --- */

#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; 
}

.scrollable {
  height: 400px;
  border: 4px solid var(--color-dim);
  overflow:hidden;
}

/* Figure out what to do on mobile */
@media (min-width: 768px) {
  .scrollable {
    overflow: scroll;
    width: 100%;
    height: 800px;
    border: 10px solid var(--color-dim);
    -o-object-fit: cover;
    object-fit: cover;
    -o-object-position: 50% 0%;
    object-position: 50% 0%;
  }
}

.triple-container {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-gap: var(--unit-line-height);
}

.double-container {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  grid-gap: var(--unit-line-height);
}

.desktop-scroll {
  grid-column: auto / span 3;
}

.mobile-scroll {
   grid-column: auto / span 1;
}

