@charset "utf-8";

:root {
  --primary-font-family: "Inter Tight";
  --title-font-family: "Instrument Serif";
}

b,
strong {
  font-weight: 700;
  font-style: inherit;
}
i,
em {
  font-weight: inherit;
  font-style: italic;
}

/** {
  outline: red solid 1px;
}*/

body {
  font-family: var(--primary-font-family);
  font-weight: 400;
  font-size: 14px;
  max-width: calc(100vw - 10em);
  margin: 10em;
  margin-top: 2em;
}

article {
  display: block;
  width: 100%;
  padding: 1em;
  border-radius: 20px;
}

nav {
  display: flex;
  flex-direction: row;
  height: auto;
  padding-top: 2em;
  padding-left: 1em;
  font-family: var(--title-font-family);
}

nav span {
  display: flex;
  flex-direction: row;
  position: relative;
}

nav .name {
  font-size: 4em;
  font-weight: regular;
}

nav .links {
  display: flex;
  flex-direction: row;
}

nav span.link {
  font-size: 2em;
  bottom: 4px;
  margin-top: auto;
  margin-left: 1em;
}

nav a {
  border-radius: 5px;
}

nav a:hover {
  text-decoration: none;
  color: var(--f_inv);
  background-color: var(--b_inv);
}

nav .padding {
  flex-grow: 1;
}

.works {
  margin: 3em auto;
  height: auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  grid-auto-flow: dense;
  grid-gap: 1em;
}

.portrait,
.landscape {
  display: flex;
  grid-column: span 1;
  /*object-fit: cover;*/
  width: 100%;
  height: auto;
}

.portrait {
  grid-row: span 2;
}

.landscape {
  grid-row: span 1;
}

.work {
  position: relative;
}

.works img {
  width: 100%;
  height: auto;
  -o-object-fit: cover;
  object-fit: cover;
  border-radius: 10px;
}

.latest img {
  -webkit-filter: brightness(100%);
  transition: all 0.5s ease;
  outline-offset: -2px;
  padding: 2px;
  width: calc(100% - 4px);
}

.title-overlay,
.title-static {
  transition: all 0.5s ease;

  color: var(--f_med);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 100;

  width: 80%;
  padding: 10%;

  text-align: right;
}

.title-overlay h1,
.title-static h1 {
  font-family: var(--title-font-family);
  color: var(--f_med);
  font-size: 4em;
  font-weight: bold;
}

.title-overlay p,
.title-static p {
  font-family: var(--primary-font-family);
  font-size: 1.5em;
  font-weight: regular;
}

.title-overlay {
  opacity: 0%;
}

.latest:hover img {
  -webkit-filter: brightness(30%);
}

.latest:hover .title-overlay {
  opacity: 100%;
}

.featured {
  outline: 2px solid var(--f_med);
  outline-offset: -2px;
  border-radius: 10px;
}

@media only screen and (min-width: 2000px) {
  .works {
    grid-template-columns: repeat(auto-fit, minmax(800px, 1fr));
  }
}

@media only screen and (max-width: 1400px) {
  body {
    margin: 1em;
  }

  nav {
    width: calc(100vw - (14px * 4));
    padding-bottom: 1em;
    padding-top: 0.5em;
  }

  .works {
    margin: 0em auto;
    padding: 0em;
    background-color: unset;
    width: calc(100vw - 2em);
  }
}

@media only screen and (max-width: 900px) {
  nav {
    flex-direction: column;
    padding: 14px;
  }

  nav .name {
    font-size: 3em;
    width: 100vw;
    padding: 0;
  }

  nav .padding {
    visibility: hidden;
  }

  nav .links {
    display: flex;
    flex-direction: row;
    padding: 0;
  }

  nav span.link {
    margin-left: 0;
    margin-right: 1em;
  }

  .works {
    display: block;
  }

  .works .work {
    margin-bottom: 1em;
  }

  .title-overlay {
    opacity: 100%;
  }

  .title-static {
    height: auto;
    transition: all 0.5s ease;
    color: var(--f_med);
    position: relative;
    top: unset;
    left: unset;
    transform: unset;
    z-index: 100;
    width: 100%;
    padding: 14px;
    text-align: left;
  }

  .title-overlay h1,
  .title-static h1 {
    font-size: 2.5em;
    font-weight: bold;
  }

  .title-overlay p,
  .title-static p {
    font-size: 1.25em;
  }

  .latest img {
    -webkit-filter: brightness(30%);
  }
}
