/* Fonts */
@font-face {
  font-family: "B";
  src: url("/assets/fonts/b.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "A";
  src: url("/assets/fonts/a.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

:root{
  --red: #CE0019; /* #770000 */
  --bg: #E5E1DD;
}

/* Reset */
*:focus {
  outline: 0;
}
body,
html,
ul,
li,
dl,
dt,
p,
h1,
h2,
h3,
h4,
figure,
button,
header,
figure,
footer,
i {
  margin: 0;
  padding: 0;
  list-style: none;
  font-family: "A", 'Times New Roman', Times, serif;
  font-size: 20px;
  font-style: normal;
  color: var(--red);
  font-weight: normal;
  box-sizing: border-box;

  -webkit-font-smoothing: antialiased;
  -moz-font-smoothing: none;
  font-smoothing: antialiased;
  text-rendering: optimizeLegibility !important;
  -moz-osx-font-smoothing: grayscale !important;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0.05);
}
button {
  border: none;
  background: none;
}
a {
  color: var(--red);;
  text-decoration: none;
  transition: all .3s ease-in-out;
}

h1,h2,h3,h4,h5{
  font-weight: normal;
}
input{
  font-family: "A";
}

body, html{
  background-color: #e7ddd3;
}
::selection { background: #BFAA9E; } 
::-moz-selection { background: #BFAA9E; }

/* ------------------------------------------------------------- */

.scroll{
  width: 160px;
  height: 160px;
  position: fixed;
  bottom: -50px;
  right: 100px;
  transition: opacity .3s ease;
}
.scroll text{
  letter-spacing: .42em;
  font-size: 2.5rem;
  text-transform: uppercase;
  fill: var(--red);;
}
.scroll.hide{
  opacity: 0;
}

small{ 
  font-style: italic;
  position: relative;
  display: inline-block;
}

small svg.scribble{
  position: absolute;
  left: 50%;
  top:50%;
  transform: translate(-50%, -50%);
  width: 200%;
}
small.clip svg{
  width: 100%;
}

h1{ margin-left: 10px; }

h2{
  font-family: "B";
  font-size: 2.5em;
  max-width: 990px;
  text-indent: 0px;
  line-height: 50px;
  margin: 20px 10px 20px 0;
}

h2 i{
  display: inline-block;
  width: 0;
  height: 0;
  overflow: hidden;
}

h2 a{
  display: inline-block;
}
h2 a svg{
  pointer-events: none;
}

p{
  font-size: 1.25em;
  max-width: 600px;
  padding: 20px 0;
}

header{
  height: 36px;
  position: fixed;
  padding: 6px 0 0 0;
  z-index: 10;
  width: 100vw;
  /*background: linear-gradient(to bottom, #E5E1DD 0%, transparent 100%);*/
  /*background: #e7ddd3;*/
}

nav{
  display: grid;
  grid-template-columns: minmax(150px, 15%) 1fr;
  position: relative;
}
nav button{ display: none;}
nav ul,
nav dl{
  display: flex;
}
nav ul li{
  flex:1;
}
nav ul li.passed a{
  text-decoration: line-through;
  color: #BFAA9E;
  text-decoration-thickness: 1px;
}

section{
  padding-bottom: 50vh;
  position: relative;
}
section#about > aside{
  height: 85vh;
}

section > span{
  position: sticky;
  top: 36px;
  display: block;
  padding-bottom: 15vh;
  width: 20px;
  z-index: 1;
}
section > aside{
  position: relative;
  padding: 10px;
}
section img{
  mix-blend-mode: multiply;
  width: 100%;
}

.videos{
  display: flex;
  flex-wrap: wrap;
  font-size: 0;
  margin-bottom: 100px;
}
.videos figure{
  font-size: 0;
  position: relative;
  max-width: 33.33333%;
}
.videos figure.fwa::after{
  content: "";
  display: block;
  position: absolute;
  right: 0;
  bottom: 0;
  width: 60px;
  height: 60px;
  background: url(../images/fotd.png);
  background-size: contain;
}
.videos video{
  width: 100%;
  max-width: 100%;
  height: auto;
}

.videos.gaps{
  display: block;
  column-count: 3;
  column-gap: 10%;
  margin: 5% 10%;
}
.videos.gaps figure{
  max-width: none;
}

.sketches{
  display: flex;
  flex-wrap: wrap;
  margin: 6%;
  gap: 5%;
}
.sketches img{
  filter:grayscale(1);
}
.sketches figure{
  padding-bottom: 5vw;
  max-width: 21%;
}

.list{
  display: flex;
}
.list ul{
  flex: 1;
  margin-right: 30px;
}
.list ul li{
  font-size: 1rem;
}

.btn{
  display: inline-block;
  margin: 5px 0;
  border: 1px solid;
  padding: 6px 12px 4px;
  border-radius: 100px;
  font-size: 1em;
}
.btn:hover{
  background-color: #fff;
  text-decoration: none;
  border-color: #fff;
}
.btn:active{
  background-color: var(--red);;
  text-decoration: none;
  border-color: var(--red);;
  color: #fff;
}

b{
  font-size: 16px;
  vertical-align: super;
  font-family: "B";
  letter-spacing: 1px;
  font-weight: normal;
}

section ul{
  margin: 40px 0;
}
section ul li{
  font-size: 2em;
  padding-bottom: 15px;
}

section#awards ul{
  column-count: 1;
}

footer{
  width: 100vw;
  padding: 70px;
  text-align: center;
}
footer dl{
  position: fixed;
  bottom: 10px;
  left: 10px;
  text-align: left;
}
footer small.copy{
  display: block;
  font-style: normal;
  font-family: "B";
}

figure.wide{
  position: relative;
}
figure.wide small{
  position: absolute;
  bottom: 30px;
  left: 20px;
  color: #e7ddd3;
  font-family: "B";
  font-style: normal;
  font-size: .7em;
}
figure.wide small a{
  color: #BFAA9E;
}

@media only screen and (min-width:900px){
  section:nth-child(1) > span{ left: calc(max(15vw, 150px)); }
section:nth-child(1) > aside{ padding: 0 0 0 calc(max(15vw, 150px)); }

section:nth-child(2) > span{ left: calc(max(15vw + (85vw)/5 * 1, (100vw - 150px)/5 * 1)); }
section:nth-child(2) > aside{ padding: 0 0 0 calc(max(15vw + (85vw)/5 * 1, (100vw - 150px)/5 * 1)); }

section:nth-child(3) > span{ left: calc(max(15vw + (85vw)/5 * 2, (100vw - 150px)/5 * 2)); }
section:nth-child(3) > aside{ padding: 0 0 0 calc(max(15vw + (85vw)/5 * 2, (100vw - 150px)/5 * 2)); }

section:nth-child(4) > span{ left: calc(max(15vw + (85vw)/5 * 3, (100vw - 150px)/5 * 3)); }
section:nth-child(4) > aside{ padding: 0 calc(max((85vw)/5 * 2 + -40px, (100vw - 150px)/5 * 2 - 40px)) 0 calc(max(15vw, 150px)); }

section:nth-child(5) > span{ left: calc(max(15vw + (85vw)/5 * 4, (100vw - 150px)/5 * 4)); }
section:nth-child(5) > aside{ padding: 0 calc(max((85vw)/5 * 2 + -40px, (100vw - 150px)/5 * 2 - 40px)) 0 calc(max(15vw, 150px)); }

  section#about{
    padding-bottom: 0;
    height: auto;
  }
  section#about > div{
    padding: 0 0 100px calc(max(15vw, 150px));
  }
  section#experience ul{
    column-count: 3;
  }

  a:hover{
    text-decoration: line-through;
    text-decoration-thickness: 1px;
  }
  
}

@media only screen and (max-width:900px){
  body{
    font-size: 18px;
  }
  header{
    padding-top: 10px;
    height: auto;
  }
  h2{
    font-size: 2.1em;
    line-height: 45px;
  }
  h2 svg{
    height: 35px;
    width: auto;
  }
  h2 a{
    height: 35px;
  }
  nav{
    display: block;
    flex-direction: column;
  }
  nav button{
    display: block;
    position: absolute;
    right: 15px;
    top: 28px;
    background: var(--red);;
    width: 20px;
    height: 20px;
    border-radius: 10px;
    opacity: 1;
    overflow: hidden;
    text-indent: 100px;
  }
  body.menu-open nav button{
    background: #e7ddd3;
    border: 1px solid var(--red);;
  }
  nav ul{
    margin-left: 50px;
    flex-direction: column;
  }
  nav ul li{
    display: none;
  }
  nav ul li.focus{
    display: inline-block;
  }
  body.menu-open nav ul li{
    display: inline-block;
    margin-top: 15px;
  }
  body.menu-open header{
    padding-bottom: 30px;
    background:rgba(231, 221, 211, 1);
  }
  
  section{
    padding-bottom: 20vh;
  }
  section > span{
    left: 10px;
    top: 38px;
    width: 50px;
    padding-bottom: 8vh;
  }
  section > span::after{
    content: " —";
    display: inline-block;
  }
  section#about > aside{
    min-height: 95vh;
    height: auto;
  }
  section#about > div{
    padding: 10px;
  }
  section#experience ul{
    column-count: 3;
  }
  section#experience ul li{
    font-size: 1rem;
  }
  section ul li{
    font-size: 1.7em;
  }
  .videos figure{
    max-width: 50%;
  }
  .videos.gaps{
    column-count: 2;
    column-gap: 5%;
    margin: 5% 10px;
  }
  .videos.gaps figure{
    padding-top: 25%;
  }
  .videos.gaps figure:first-child{
    padding-top: 0;
  }
  figure.wide small{
    bottom: 20px;
    left: 10px;
  }
  .sketches figure{
    max-width: 47%;
  }
  footer dl{
    bottom: 0px;
    left: 0;
    display: flex;
    width: 100%;
    background: linear-gradient(0deg, rgba(231, 221, 211, 1) 0%, rgba(231, 221, 211, 0) 100%);
    padding: 10px 0 5px;
  }
  footer dl dt{
    padding: 0 30px 0 10px;
    font-size: .8em;
  }
  footer{
    padding-bottom: 150px;
  }
  .scroll{
    right: -70px;
  }
}