:root{
  --centerheight:100%;
  --expandedwidth:calc(100vw - 99px);
  --shrunkwidth:100px;
}

body{
  /* background-color: aliceblue; */
}

header{
  height:calc(100vh - 100px);
  max-height:80vw;
  display:flex;
  flex-flow:column  nowrap;
  justify-content:center;
}








#essays{
  position:relative;
  width:100vw;
  height:fit-content;
  display:flex;
  flex-flow:row nowrap;
}

@media(min-width:901px){
  body.center article{
    --w:50vw;
  }

  nav h2{
    width:50vw;
  }
}



body:not(.center) article.active{
  --w:var(--expandedwidth);
}

body:not(.center) article:not(.active){
  --w:var(--shrunkwidth);
  max-height:100%;
  overflow:hidden;
}
body:not(.center) article:not(.active) .content{
  position:absolute;
}

nav{
  height:100px;
  position:sticky;
  top:0;
  padding:20px 0px;
  box-sizing: border-box;
  z-index:2000;
}


nav h2{
  pointer-events: none;
  transition: width 0.6s, transform 0.6s;
  padding:0px 30px;
  box-sizing: border-box;
  display:flex;
  flex-flow: row nowrap;
  justify-content: space-between;
  position:absolute;
}

nav span{
  pointer-events: all;
  cursor:pointer;
}

.left{
  left:0;
  transform-origin: 0 50%;
}

.right{
  right:0;
}

.right span{
  transition:transform 0.6s;
  transform-origin: 0 50%;
}

body.theory .left,body.practice .right{
  width:var(--expandedwidth);
}
body.theory .right{
  width:99px;
}

body.theory .right span{
  transform: rotate(90deg) translate(-15px, -20px);
}

body.practice .left{
  width:calc(100vh - 20px);
  transform: rotate(90deg) translate(-40px, -40px);
}



/*
.theory .yes-and{
  width:calc(var(--w) - 60px);
}

.practice .yes-and{
  max-width:calc(100vh - 60px);
} */

/* #essays[data-active='theory'] #practice,#essays[data-active='practive'] #theory{
  max-width:100px;
} */

article{
  --w:50vw;
  position:relative;
  width:var(--w);
  box-sizing: border-box;
  transition:width 0.6s;
  /* min-height:100%; */
  min-height:var(--centerheight);
  /* height:var(--centerheight); */
  /* height:100%; */
  /* transition:flex-grow 0.3s,width 0.3s; */
}
/*
#practice{
  top:0;
  right:0;
} */
.article-wrapper{
  position:relative;
  height:100%;
}




.content{
  /* border-top:1px solid black; */
  width:100%;
  overflow:hidden;
  height:100%;
  min-height:100vh;

  padding:20px 30px;
  /* padding-top:50px; */
  box-sizing: border-box;
  position:relative;
  transition:opacity 0.3s;
  padding-top:30px;

}


.content.tnr{
  font-family:"Times New Roman", "Times", serif;
  font-size:18px;
  line-height: 26px;
}

.content.charter,aside{
  font-family:'Charter',serif;
  font-size:17px;
  line-height: 26px;
}

/* .content>h2{
  margin:0;
  margin-bottom:50px;
  width:100%;
  position:sticky;
  top:0;
} */

.content>*{
  max-width:590px;
  min-width:min(100%,400px);
  margin:auto;
  /* margin-left:min(300px,calc(50% - 295px)); */
  margin-bottom:20px;
}

.content blockquote{
  max-width:590px;
  font-size:24px;
  line-height: 30px;
  --shift:calc(35% - 245px);
}


.content .real-blockquote{
  overflow:hidden;
  color:var(--primary);
  height:0px;
  transition:height 0.3s;
  margin-bottom:0px;
}

.content .real-blockquote.possible{
  height:auto;
}

.content .real-blockquote .inner{
  padding-bottom:20px;
}




#theory .content blockquote:nth-of-type(1),#theory .content blockquote:nth-of-type(3){
  margin-left:max(0px,var(--shift));
}
#theory .content blockquote:nth-of-type(2),#theory .content blockquote:nth-of-type(4){
  margin-right:max(0px,var(--shift));
  text-align: right;
}

/* #practice .content blockquote:nth-of-type(1){
  margin-left:max(0px,var(--shift));
} */
/* #theory .content blockquote:nth-of-type(2),#theory .content blockquote:nth-of-type(4){
  margin-right:max(0px,var(--shift));
  text-align: right;
} */


/* .special-meaning{
  font-family:'Courier Fraktur';
} */



body[data-selected='theory'] span[data-which='theory']::after,body[data-selected='practice'] span[data-which='practice']::after{
  content:'←';
  margin-left:10px;
  /* animation: blink 1s linear infinite; */
}

body[data-selected='center'] span[data-which='center']::before{
  content:'→';
  margin-right:10px;
  /* animation: blink 2s linear infinite; */
}

/* #essays[data-selected='center'] article{
  min-height:var(--centerheight);
} */


@keyframes blink {
  50% {
    opacity: 0;
  }
}


#theory{
  /* border-right:1px solid black; */
  --primary:darkviolet;
  --highlight:#f6e2ff;
  --secondary:green;
  --shift-x:104%;
}

.centerline{
  width:0px;
  border-left:1px solid black;
  min-height:calc(100% + 80px);
  position:relative;
  top:-80px;
}

.centerline .bottomline{
  position:absolute;
  bottom:-80px;
  left:-1px;
  height:80px;
  border-left:1px solid black;

}

#practice{
  --secondary:darkviolet;
  --primary:green;
  --highlight:#d1ffd1;
  --shift-x:-145%;
  /* border-left:1px solid black; */
  right:1px;
}




#practice .footnote-link[data-type="crossover"]::after{
  float:left;
  transform:translate(var(--shift-x),-27px);
}






div[data-trigger="scale"]{
  position:absolute;
  top:70%;
  /* border-top:1px solid black; */
  height:2px;
  width:100%;
}

div[data-trigger="end"]{
  height:10px;
  transform:translateY(-100px);
}

h1,h2{
  font-family:'Courier New';
  /* font-family: 'pitch-sans','Courier New',monospace; */
}

.nav{
  cursor:pointer;
}

h1{
  /* text-align: center; */
  /* font-family: 'pitch',monospace; */
  /* font-size: 10vw;
  line-height: 10vw;
  padding:0px 30px; */
  /* margin-left:30px; */
  padding:0px 30px;
}

h1,h2{
  height:60px;
  font-size: 50px;
  line-height: 60px;
}



/* h2{
  z-index: 20;
  position:relative;
  transition: transform 0.6s;
  margin-left:30px;
  transform-origin: 0 50%;
} */


/* #practice h2{
  transform-origin: 0 50%;
} */

/* #essays:not(.center) article:not(.active) h2{
  transform:translateY(-30%) rotate(90deg);
  top:15px;
} */

/* #essays:not(.center) article.active h2{

} */

#essays h2{
  position:sticky;
  top:20px;
}

body:not(.center) article:not(.active) .content{
  opacity:0;
}


.content .diptych{
  display:flex;
  flex-flow:column nowrap;
  justify-content: center;
}

.active .content .diptych[data-name="cooker"]{
  max-width:700px;
}

.content .diptych[data-name="cooker"]{
  flex-flow:row nowrap;
}
.content .diptych[data-name="cooker"] figure{
  padding:10px;
}



.content p>img{
  max-width:min(100%,330px);
  margin-left:50%;
  transform:translateX(-50%);
}

.active .content .diptych{
  flex-flow:row nowrap;
  width:100%;
  max-width:100%;
}

figure{
  flex:1;
  padding:0px;
  padding-bottom:20px;
  max-width:590px;
}

.active figure{
  padding:20px;
}


figure img{
  /* width:100%; */
  border:1px solid black;
  margin-bottom:5px;
  width:100%;
}

.language-games{
  counter-reset:poof;
}
.language-games span{
  display:block;
}

.language-games span:not(span:first-child){
  /* --delay:calc(0.1s * counter(poof)); */
  --count:0;
  transition:opacity 0.6s;
  transition-delay:calc(0.3s * var(--count));
  opacity:0;
  /* display:block; */
}

.language-games.view span:not(span:first-child){
  opacity:1;
}



em{
  font-style: italic;
}

strong{
  font-weight:bold;
}


#footnote-panel{
  max-width:min(100vw,500px);
  position:fixed;
  opacity:0;
  top:0;
  left:0;
  z-index:200;
  background-color: white;
  display:flex;
  flex-flow:row nowrap;
  justify-content: flex-start;
  pointer-events: none;
  transition:opacity 0.1s;
  padding:10px;
  /* box-shadow: 3px 3px 0px 0px #9400D3; */
  border:1px solid #9400D3;
}


#footnote-panel.on{
  opacity:1;
}




.footnote-link[data-type="crossover"]{
  color:var(--secondary);
}

/* #practice .footnote-link[data-type="crossover"]{

} */

.footnote-link[data-type="crossover"]::after{
  font-weight: 400;
  content:'--------------------------------------------------------------------------------------------------------------------------------------------------------';
  float:right;
  white-space: nowrap;
  display:inline-block;
  width:590px;
  color:var(--secondary);
  height:0;
  /* border-top:1px solid green; */
  transform:translate(var(--shift-x),-24px);
}


.footnote-link{
  scroll-margin-top:200px;
  text-decoration: none;
  color:var(--primary);
  /* background-color: rgba(0,0,0,0.06); */
  /* text-decoration: underline palegreen 4px; */
  /* text-underline-offset:0px; */


  /* background-image: linear-gradient(to left, #FDFBC6,#FDFBC6); */
  /* background-color: #EFEFFF; */
  /* background-size: 100% 20px;
  background-repeat: no-repeat;
  background-position: 0 -2px; */


  /* border-bottom:3px solid blue; */
    /* padding:0px 6px; */
  /* border-bottom: 2px solid rgba(0,0,255,0.2); */

  /* border-radius:20px; */

  cursor:pointer;
}


.placeholder-graphic{
  min-height:400px;
  border:1px solid black;
}


/* span::before{
  display:inline-block;
  margin-right:5px;
  margin-bottom:1px;
  width:6px;
  height:6px;
  border:1px solid black;
  border-radius:50%;
  content:'';
} */

.content ol,.content ul{
  --shift:calc(40% - 245px);
  margin-right:max(0px,var(--shift));
}

.active .content ol.references{
  margin-left:max(0px,var(--shift));
}

.content ul{
  /* margin-left:40px; */
  /* padding-left:20px; */
  list-style: circle;
  margin-right:max(0px,var(--shift));
}

.content ol{
  /* margin-left:max(0px,var(--shift)); */
  list-style-type: decimal;
}

.references{
  display:flex;
  flex-flow:column nowrap;
  justify-content: flex-start;

}


.glow{
  background-color: var(--highlight);
}

.glow::after{
  background-color: var(--highlight);
}

.footnote,.footnote-link{
  transition:background-color 0.3s;
}

.footnote-link[data-type="crossover"]{
  transition:background-color 0.6s;
}


.footnote{
  position:relative;
  list-style: none;
  margin-bottom:20px;
  scroll-margin-top:200px;
}

.footnote .return-top{
  cursor:pointer;
  font-family: 'Courier New', monospace;
  font-size:20px;
  font-weight:300;
  position:absolute;
  top:-5px;
  left:-20px;
  transform:rotate(90deg);
  color:var(--primary);
  text-decoration: none;
  display:inline;
}



.content h3{
  font-weight: bold;
  margin-top:50px;
}

@media(max-width:1000px){
  .active .content .diptych{
    flex-flow:column nowrap;
  }
  .content .diptych,.active .content .diptych{
    max-width:590px;
  }

  .active figure{
    padding:0px;
    padding-bottom:20px;
  }
}




@media(max-width:900px){

  :root{
    --expandedwidth:calc(100vw - 49px);
    --shrunkwidth:50px;
  }
  span[data-which="center"]{
    pointer-events: none;
  }

  body.center article{
    --w:auto;
  }

  body.center nav h2{
    width:auto;
  }


  .centerline{
    top:-50px;
  }

  nav{
    height:60px;
    padding:15px 0px;
  }
  nav h2{
    padding:0px 20px;
  }

  body.theory .right span {
      transform:rotate(90deg) translate(-10px, -55px)
  }

  .content :where(ul,ol){
    list-style-position: inside !important;
  }

  .content{
    padding:20px;
  }

  body.practice .left {
      width: calc(100vh - 20px);
      transform: rotate(90deg) translate(-25px, -26px);
  }

  div[data-trigger="scale"]{
    top:0;
  }


  h1,h2{

    height:20px;
    /* font-family: 'pitch-sans',monospace; */
    font-size: 30px;
    line-height: 20px;
  }

  nav h2{
    white-space: nowrap;
  }

  header{
    max-height:180px;
  }

  h1{
    line-height:35px;
    padding:0px 20px;
    height:auto;
  }

  .footnote{
    margin-top:20px;
  }
  .footnote .return-top{
    top: -17px;
    left: 0px;
  }

  .content blockquote{
    font-size: 22px;
    line-height: 28px;
  }


}

@media(max-width:490px){

  .content p>img{
    max-width:100%;
  }

  .content .diptych[data-name="cooker"] figure{
    padding:0px;
  }



  .content.charter,.content.charter p{
    -webkit-text-size-adjust: 100%;
    font-size: 16px;
    line-height: 22px;
  }

  .content h3{
    margin-top:25px;
  }


}



@font-face {
  font-family: 'Charter';
  src: url('../assets/purpose/charter-regular.woff2') format('woff2');
  font-weight:400;
}
@font-face {
  font-family: 'Charter';
  src: url('../assets/purpose/charter-italic.woff2') format('woff2');
  font-weight:400;
  font-style: italic;
}

@font-face {
  font-family: 'Charter';
  src: url('../assets/purpose/charter-bold.woff2') format('woff2');
  font-weight:600;
}
@font-face {
  font-family: 'Charter';
  src: url('../assets/purpose/charter-bold-italic.woff2') format('woff2');
  font-weight:600;
  font-style: italic;
}
