@font-face {
  font-family: 'hershey-futura';
  src: url('../fonts/Hershey-Noailles-Futura-Duplex-Regular.otf');
  font-weight: regular;
  font-style: regular;
}

@font-face {
  font-family: 'old-french';
  src: url('../fonts/Hershey-Noailles-OldFrench-Bold.otf');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'hershey-times';
  src: url('../fonts/Hershey-Noailles-Times-Duplex-Regular.otf');
  font-weight: normal;
  font-style: normal;
}
@font-face {
  font-family: 'hershey-times-italic';
  src: url('../fonts/Hershey-Noailles-Times-Mono-Regular.otf');
  font-weight: normal;
  font-style: normal;
}

html {
  font-family: old-french, serif;
  font-size: 1rem;
}

::selection {
  background-color: #FFFCBA;
}

body {
  margin: 2em;
}

.home {
  background-color: #FFFCBA;
}

h1,
h2 {
  font-size: 2rem;
  margin: 0px;
  font-family: hershey-futura, sans-serif;
  font-weight: normal;
}

a {
  display: inline-block;
  padding: 6px 2px 2px 2px;
  margin-top: -6px;
}

a,
a:visited,
a:hover {
  color: black;
}

a:visited,
a:hover {
  background-color: #FFFCBA;
}

.home a:visited {
  background-color: white;
}

a:hover {
  /*font-style: italic;*/
  /*font-weight: bold;*/
  /*-webkit-transform: skewX(-5deg);
    -moz-transform: skewX(-5deg);
     -ms-transform: skewX(-5deg);
      -o-transform: skewX(-5deg);
         transform: skewX(-5deg);*/
  cursor: pointer;
}

.project:hover {
  font-style: initial;
}

a.project:hover {
  background-color: white;
}

.tag:hover {
  /*font-style: italic;*/
  cursor: pointer;
  background-color: white;
}

.tag {
  text-transform: capitalize;
  margin-right: 0.25em;
}

header {
  position: fixed;
  top: 0px;
  left: 0px;
  z-index: 100;
  width: 100%;
  padding-bottom: 1em;
  background-color: pink;
  padding: 1.5em 2em 3em;
  box-sizing: border-box;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  background: linear-gradient(0deg,
    rgba(249, 249, 249, 0) 0%, rgba(249, 249, 249, 1) 35%,
    rgba(249, 249, 249, 1) 100%);
  pointer-events: none;
}

header a {
  font-family: old-french, serif;
  text-decoration: none;
  /*margin-top: 1em;*/
  pointer-events: initial;
}

header a:hover,
.about header a:hover {
  text-decoration: underline;
}


.home header {
  background: linear-gradient(0deg,
    rgba(255, 252, 186, 0) 0%, rgba(255, 252, 186, 1) 35%,
    rgba(255, 252, 186, 1) 100%);
}

.filters {
  margin-top: 7em;
}

.filter {
  border-radius: 1em;
  border: 1px solid black;
  display: inline-block;
  padding: 0.25em 0.5em;
  font-family: hershey-futura, sans-serif;
  cursor: pointer;
  text-transform: capitalize;
  font-size: 1.5em;
  margin: 0 0.25em 0.5em 0;
}
.filters .selected {
  background-color: white;
}
.filter:hover {
  background-color: white;
}

.table {
  margin-top: 2em;
}

.row {
  display: grid;
  grid-template-columns: 6fr 1fr 2fr 2fr;
  border-bottom: 1px solid black;
}

.row:hover {
  /*background-color: yellow;*/
  background-color: white;
}

.heading:hover {
  background-color: initial;
}

.heading .project:hover,
.heading .year:hover,
.heading .client:hover,
.clear_tags:hover {
  /*font-style: italic;*/
  cursor: pointer;
  /*background-color: yellow;*/
  /*background-color: white;*/
}

.tags:hover {
  font-style: initial;
  cursor: initial;
}

.asc::after {
  content: "↑";
  margin-left: 0.2em;
  font-size: .8em;
}

.desc::after {
  content: "↓";
  margin-left: 0.2em;
  font-size: .8em;
}

.row {
  text-decoration: none;
  padding: 0;
  margin: 0;
}
.project,
.year,
.client,
.tags {
  margin-top: initial;
  padding: 0.3em;
  font-weight: normal;
  text-decoration: none;
}

h2.project,
h2.year,
h2.client,
h2.tags {
  font-family: old-french, serif;
  line-height: 1.1em;
  font-size: 2rem;
}

.tags,
.clear_tags {
  display: inline;
}

.clear_tags {
  display: none;
}

.year {
  position: relative;
  overflow: hidden;
}

.year img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  display: none;
}

.projects,
.project-sort,
.year,
.client,
.tag {
  font-family: hershey-futura, sans-serif;
  font-size: clamp(1rem, 2.25vw, 2rem); 
}
.project {
  /*padding-left: 0em;*/
  text-decoration: none;
  color: black;
}

.year,
.project,
.client {
  border-right: 1px solid black;
}

.project-title {
  font-size: 2.5em;
  margin-bottom: 1em;
}

/*ABOUT*/
.about {
  background-color: #C9C9C9;
}

.about header {
  background: linear-gradient(0deg,
    rgba(201, 201, 201, 0) 0%, rgba(201, 201, 201, 1) 35%,
    rgba(201, 201, 201, 1) 100%);
}

.about .bio {
  font-size: 4.5vw;
  margin-top: 7rem;
  margin-bottom: 3rem;
}

.bio em {
  font-family: hershey-times-italic, serif;
  font-style: normal;
}

.about h2 {
  font-family: hershey-futura, sans-serif;
  font-style: bold;
}

.about-link {
  display: block;
  margin-bottom: 1em;
}
.about-link,
.contact-info {
  font-size: 2em;
}
.contact-info * {
  margin-bottom: 1em;
}
.about a:hover {
  background-color: initial;
  text-decoration: none;
}

.credits {
    margin-top: 3em;
}
.credits div {
  font-family: hershey-futura, sans-serif;
}
.credits div:first-child {
  margin-bottom: .2em;
}
.credits a {
  font-family: hershey-futura;
}
h1 a:hover {
  background-color: initial;
}


@media (max-width: 800px) {
  body {
    /*font-size: 1rem;*/
    /*margin: 2em;*/
  }

  header {
    padding: 1em 1.333em 2em;
    font-size: 1.5em;
  }

  h1, h2, h2.project, h2.year, h2.client, h2.tags {
    font-size: 1.5rem;
  }
  .filters, .about .bio {
    margin-top: 5.5em;
  }
  .filters {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    
  }
  .filter {
    margin: 0.25em;
    font-size: 1.25em;
  }
  .tags,
  .client {
    display: none;
  }
  .table {
    margin-top: 2em;
  }
  .row {
    display: grid;
    grid-template-columns: 5fr 1fr;
    border-bottom: 1px solid black;
  }

  .project 
  .year {
    padding: 0.25em 0;
  }

  .project {
    padding-left: 0.25em;
  }

  .project div {
    /*overflow: hidden;
    height: 1.25em;*/
    padding-top: 0.25em;
    line-height: 1.25em;
    /*background: linear-gradient(90deg, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 1) 86%, rgba(255, 252, 186, 1) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;*/
  }
  .year {
    border-right: none;
    padding-left: 0.5em;
  }

  .about-link,
  .contact-info {
    font-size: 1.5em;
  }

  .about .bio {
    font-size: 1.5em;
  }
}
