:root{
  --p:30px;
  --s:.7em;
  --c:grey;
  /* shop bg */
  --c1:white;
  --c2:#f0f0f0;
  --c3:yellow;
}
body{
  font:30px/1.4em "Inria Serif", serif;
  margin:var(--p);
  color:var(--c);
  background:var(--c1);
}
header{
  margin-bottom: calc(var(--p)*2);
  display: flex;
  justify-content: space-between;
}
header .pages-links{
  text-align: right;
}
.pages-links a:last-child{
  margin-left:var(--p);
}
.image-list, .shop-list{
  margin-top: calc(var(--p)*2);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  position: relative;
}

body.home .image-list::before{
  display: none;
}
.image-list::before{
  content:"";
  position: absolute;
  top:0;
  left: calc(var(--p)*-1);
  right: -var(--p);
  width: calc(100% + (var(--p) * 2));
  border-top:2px solid var(--c);
}
.project-box, a{
  transition: all .1s ease;
}
.project-box .project-title span{
  padding: 5px 0px 2px 0px;
  transition: all .2s ease;
}
.summary{
 text-align: left;
 font-family: monospace;
 font-size: 15px;
 padding:0;
 display: block;
 line-height: 19px;
}

.project-box:hover .project-title span{
  background: var(--c3);
  color:#666;
}
.shop .project-box:hover .project-title span{
  background: white;
  color:var(--c2);
}
.project-box:hover img{
  border-bottom:2px solid var(--c3);
}
.project-box{
  margin-bottom: var(--p)
}
.text p{
  margin-bottom: calc(var(--p) /2)
}
.images{
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  grid-gap: var(--p);
}
figcaption{
  font-size: var(--s);
  line-height: 1.2em;
  margin-top: 10px;
}
.video{
  width:calc(33.3% - (var(--p)));
  max-width: 700px;
  min-width: 400px;
  margin-bottom: var(--p);
}
.video iframe{
  width:100%;
}
.image, .shop-item{
  display: block;
  width:calc(33.3% - (var(--p)));
  max-width: 700px;
  min-width: 400px;
  margin-bottom: var(--p);
}
body.project .images img:hover{
  border-bottom:2px solid var(--c3);
}
.image img{
  width: 100%;
  height: auto;
  display: block;
  transition: all .2s ease;
  border-bottom: 2px solid transparent;
}
.project-title{
  text-align: left;
  display: block;
  font-size: var(--s);
}

h2{
  margin: var(--p) 0;
  width: 100%;
  padding:0 0 0 1.2em;
  position:relative;
}
h2:before{
  content:"";
  top:.25em;
  left:0;
  display: block;
  position: absolute;
  width:.7em;
  height:.7em;
  background: var(--c);
  border-radius: 100%;
}
.project .summary{
  margin-bottom:var(--p);
}
footer{
  width:100%;
  margin-top: var(--p);
  text-align: center;
}
.edit{
  position: fixed;
  top:var(--p);
  right: 350px;
}
.about-link{
  position: fixed;
  top:var(--p);
  right: var(--p);
}
body.about .text{
  position: relative;
}
body.about cite{
  position: absolute;
  right:0;
  top:0;
  font-size: var(--s);
  text-align: right;
}
/* SHOP */

body.shop{
  background: var(--c2);
  color: #333;
}
body.shop h2:before{
  background: #333;
}
body.shop header a, body.shop footer a, body.shop .text a{
  border-color: #333;
}
.shop-list{
  align-items: baseline;
}
.shop-list h2{
  margin-top: 0;
  margin-bottom: calc(var(--p)/3);
}
.shop-item{
  font-size: .7em;
  line-height: 1.3em;
  margin-bottom: calc(var(--p)*2);
}
.shop-item .shop-image img{
  width:100%;
  height: auto;
}
.shop-item .text{
    position: relative;
}
.shop-item.soldout .soldout-box{
  background:pink;
  color:black;
  width:112px;
  height: 69px;
  position: absolute;
  border-radius: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  top: -137px;
  left: -12px;
}
.shop-item.soldout form{
  display: none;
}
.shop-item form{
  display: flex;
}
.shop-item form table tr td{
  font-size: .8em;
}
.shop-item form input{
  width: 40%;
  height: 20%;
  padding-left: 20px;
  transition: all .2s linear;
}
.shop-item form input:hover{
  opacity: .8;
}
body.shop .image-list::before{
  border-color: #fff;
}

a{
  color: inherit;
  text-decoration: none;
}
a.button{
  display: inline;
}
/* .text a{
  text-decoration: underline;
} */
header a, footer a, .text a{
  border-bottom:2px solid var(--c);
  display: inline-block;
  line-height: 1em;
}
.shop header a, .shop footer a, .shop .text a{
  border-bottom-color: #fff;
}
header a:hover, footer a:hover, .text a:hover{
  border-color: transparent;
}
small{
  font-size: var(--s);
  letter-spacing: 1px;
}
em, i{
  font-style: italic;
}
::selection{
  background: var(--c3);
  color: var(--c3);
}

@media (max-width:700px) {
  body.about cite{
    position: static;
    font-size: var(--s);
    text-align: right;
  }
  body{
    font-size:20px;
    margin:20px;
  }
  .image, .shop-item{
    width:100%;
    min-width:0;
  }
  header a, footer a, .text a{
    display: inline;
  }
}
