/* Site by Jonas Pelzer, http://jonaspelzer.com */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-size: 100%;
  font: inherit;
}

html {
}

@font-face {
  src: url('../fonts/BurrowSerif12GX.ttf') format("truetype-variations");
  font-family: 'Burrow Serif';
  font-weight: normal;
}

@font-face {
  src: url('../fonts/BurrowBeta07GX.ttf') format("truetype-variations");
  font-family: 'Burrow Sans';
  font-weight: normal;
}

@font-face {
  src: url('../fonts/BurrowSerif12-RegularItalic.woff2') format("woff2");
  font-family: 'Burrow Serif';
  font-style: italic;
}

body {
  font-family: 'Burrow Serif', serif;
  font-variation-settings: 'wght' 400;

  font-size: 2.5vw;
  line-height: 1.4em;
  overflow: hidden;
  background: #f8f6f1;
}

.sans {
  font-family: 'Burrow Sans';
  font-variation-settings: 'wght' 50;
}

.small {
  font-size: 1.6vw;
  line-height: 1.4em;
}

em {
  font-style: italic;
}

a {
  color: inherit;
  text-decoration: none;

  font-variation-settings: 'wght' 100;
  transition: all .3s cubic-bezier(0.215, 0.61, 0.355, 1);
}

.sans a:link {
  font-variation-settings: 'wght' 50;
}

a:hover {
  text-decoration: none;
  font-variation-settings: 'wght' 700;
}

.sans a:hover {
  font-variation-settings: 'wght' 135;
}

::selection {
  background: rgba(255,69,0,.99);
  color: #fff;
}

*:focus {
  outline: none;
}

.body--focusEnabled *:focus {
  outline: solid 4px rgba(0,0,0,.2);
}




/* COVER */
.cover * {
}

.cover {
  background: #FF4500;
  color: #fff;
  -webkit-font-smoothing: antialiased;
  position: fixed;
  top: 0; right: 0; bottom: 0; left: 0;
  z-index: 1000;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: all .3s cubic-bezier(0.215, 0.61, 0.355, 1)
}

.cover--notransition {
  transition: none;
}

.cover--visible {
  opacity: 1;
  pointer-events: auto;
}

.cover-content {
  grid-column: 2 / span 1;
  padding: 10px;
  pointer-events: none !important;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  width: 79%;
  height: 100%;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.cover-author {
  margin-bottom: 10px;
  font-size: 2.5vw;
  font-variation-settings: 'wght' 600;
  opacity: 0;
}

.cover-title {
  font-size: 9vw;
  line-height: .78em;
  font-variation-settings: 'wght' 500;
  text-transform: uppercase;
  opacity: 0;
}

.cover-info, .cover-author {
  padding-left: .4vw;
}

.cover-info {
  position: absolute;
  bottom: 15px;
  font-size: 1.9vw;
  line-height: 1em;
  font-variation-settings: 'wght' 500;
  opacity: 0;
}

.cover--animateparts .cover-title {
  transition: opacity 1s 0s cubic-bezier(0.25, 0.46, 0.45, 0.94), font-variation-settings 1.5s 0s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.cover--animateparts .cover-author {
  transition: opacity 1.5s 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.cover--animateparts .cover-info {
  transition: opacity 1.5s 2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.cover--visible .cover-title, .cover--visible .cover-author, .cover--visible .cover-info {
  opacity: 1;
}

.cover--visible .cover-title {
  font-variation-settings: 'wght' 900;
}



/* PAGINATION */
.pagination {
  position: fixed;
  bottom: 0;
  background: inherit;
  background: linear-gradient(180deg, rgba(248,246,241,0) 0%, rgba(248,246,241,1) 50%);
  pointer-events: none;
  left: 0;
  right: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 4vw 4vw 2vw 12vw;
  z-index: 700;
}

.pagination-link {
  display: block;
  pointer-events: auto;
  margin-bottom: -2vw;
  transition: all .2s cubic-bezier(0.215, 0.61, 0.355, 1);
  position: relative;
  bottom: 0;
}

.pagination-link a {
  display: block;
  padding: 2vw 0;
}

.pagination-link--invisible {
  position: relative;
  bottom: -8vw;
}

.pagination-prev {
  grid-column: 1 / span 1;
  margin-left: -2.2vw;
}

.pagination-prev a:before {
  content: '← ';
}

.pagination-next {
  grid-column: 2 / span 1;
}

.pagination-next a:after {
  content: ' →';
}



/* toc */
.toc {
  position: fixed;
  width: 70vw;
  background: #fff;
  border-right: solid 1px #999;
  z-index: 900;
  height: 100%;
  left: calc(-70vw + 40px);
  transition: all .4s cubic-bezier(0.215, 0.61, 0.355, 1);
  cursor: pointer;
  overflow: hidden;
  padding: 4vw 4vw 6vw 4vw;
}

.toc a {
  pointer-events: none;
}

.toc a:hover {
}

.toc ul {
  list-style-type: none;
}

.toc--open {
  left: 0;
  cursor: auto;
  overflow: auto;
}

.toc--open a {
  pointer-events: auto;
}

.toc:not(.toc--open):hover {
  left: calc(-70vw + 80px);
}

.masterclose {
  position: fixed;
  z-index: 800;
  top: 0; right: 0; bottom: 0; left: 0;
  display: none;
  cursor: pointer;
}

.masterclose--open {
  display: block;
}

.toc li:nth-last-of-type(2) {
}

.toc li:nth-last-of-type(2):before {
  content: '\A';
  display: block;
  white-space: pre;
}

.toc-poem--current {
  position: relative;
  left: -2.1vw;
  font-variation-settings: 'wght' 700;
}

.sans .toc-poem--current {
  font-variation-settings: 'wght' 135 !important;
}

.toc-poem--current:before {
  content: '● ';
  border-bottom: solid 4px #fff;
  color: #FF4500;
}

.toc-head {
  margin-bottom: 1.4em;
}

.toc-head-subtitle {
  margin-bottom: -.7em;
}

h1 {
  text-transform: uppercase;
  letter-spacing: .1vw;
  margin-bottom: 2.8em;
}

h1 a {
  border-bottom: solid .5px #FF4500;
}

.toc-btn {
  /* outline: solid 1px red; */
  background: none;
  border: none;
  position: fixed;
  left: 12px;
  cursor: pointer;
  color: #666564;
  color: #aaa;
  width: 17px;
  height: 17px;
  padding: 0 !important;
  top: 50%;
  transform: translateY(-50%);
  transform-origin: 90;
  margin-top: -10px;
  pointer-events: none;
  transition: all .4s cubic-bezier(0.215, 0.61, 0.355, 1);
}

.toc-btn svg {
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
}

.toc--open .toc-btn {
  transform: rotate(-180deg);
  pointer-events: auto;
  left: calc(70vw - 35px);
}

.toc:not(.toc--open):hover .toc-btn {
  left: 45px;
}



/* poems */

.poems {
}

.poem {
  line-height: 1.4em;
  padding: 4vw 12vw 8vw 12vw;
  width: 100vw;
  height: 100vh;
  overflow: auto;
  position: fixed;
  opacity: 0;
  z-index: 0;
  transition: all .1s cubic-bezier(0.215, 0.61, 0.355, 1);
}

.poem--active {
  display: block !important;
  opacity: 1;
  z-index: 600;
}

@supports (-moz-appearance:none) {
  .poem:after {
    content:'';
    display:block;
    padding-bottom: 8vw !important;
  }
}

.poem h2, .poem p, .poem ul, .poem li, .poem blockquote {
  margin-bottom: .7em;
}

.poem h2 {
  font-style: italic;
  margin-bottom: 1.4em;
}

.poem h3 {
  text-transform: uppercase;
  letter-spacing: .1vw;
}

.poem cite {
  display: block;
}

.poem blockquote {
  margin-left: 4vw;
}

.disengaged {
  text-indent: -2vw;
}

.disengagedspan {
  display: block;
  text-indent: -1.2vw;
}

.poem a {
  border-bottom: solid 1px #666564;
  font-variation-settings: inherit;
}

.poem a:hover {
  border-bottom: solid 1px #FF4500;
  font-variation-settings: inherit;
}



/* INDIVIDUAL CHANGES FOR POEMS */
#this-space-available-poem {
}

#this-space-available-poem textarea {
  height: 6.6em;
  padding: .4em;
  margin-left: -.4em;
  margin-right: -.4em;
  width: calc(100% + .8em);
  appearance: none;
  -webkit-appearance: none;
  border-radius: 0;
  border: solid 1px #999;
}

#supersized-poem {
  overflow: auto;
  padding-right: 0 !important;
  cursor: move;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

#supersized-poem p {
  margin-top: -15vw;
  white-space: pre;
  margin-bottom: 0 !important;
  transform: scale(26);
  transform-origin: 0% 0%;
  width: 18vw;
}

#nanopoem {
}

#nanopoem p {
  transform: scale(0.09);
  transform-origin: 0% 0%;
}

.social-media-poem-url {
  display: none;
}

.social-media-poem-btns {
  margin-left: -.4em;
}

.social-media-poem-btn {
  cursor: pointer;
  border: solid 1px #666564;
  padding: .2em .4em;
  display: inline-block;
  border-radius: 4px;
  background: transparent;
  transition: all .3s cubic-bezier(0.215, 0.61, 0.355, 1);
}

.social-media-poem-btn:hover {
  font-variation-settings: initial;
  background: #666564;
  background: #f3d173;
  background: #FF4500;
  color: #000;
}

.social-media-poem-btn:active {
  background: #666564;
  color: #fff;
}

button {
  color: inherit;
}

@media (max-width: 800px) {
  .small {
    font-size: inherit;
    line-height: 1.4em;
  }
}

@media (max-width: 600px) and (any-pointer: coarse) {
  body {
    font-size: 4.5vw;
  }

  .toc, .toc:not(.toc--open):hover {
    width: 100vw;
    left: 0;
    top: calc(100vh - 170px);
    border-top: solid 1px #000;
    border-right: none;
    padding: 4vw 4vw 24vw 4vw;
  }

  .toc--open {
    top: 50px;
  }

  .poem {
    padding: 4vw 4vw 72vw 4vw;
  }

  .pagination {
    top: calc(100vh - 220px);
    font-size: inherit;
    padding: 0;
    background: inherit;
  }

  .pagination-link {
    margin-bottom: 0;
    border-top: solid 1px #666564;
  }

  .pagination-link a {
    position: relative;
    padding: 3.5vw 4vw;
    overflow: hidden;
    letter-spacing: -5vw;
    color: transparent;
    display: block;
  }

  .pagination-prev {
    border-right: solid 1px #666564;
  }

  .pagination-link a:before, .pagination-next a:after {
    color: #000;
    position: absolute;
    top: 10px;
  }

  .pagination-next a:after {
    right: 10px;
    right: 30px;
    /* outline: solid 1px blue; */
  }

  .pagination-link--invisible {
    bottom: initial;
    pointer-events: none;
  }

  .pagination-link--invisible a:after, .pagination-link--invisible a:before {
    color: transparent;
  }

  .pagination-prev {
    margin-left: 0;
  }

  #social-media-poem {
    font-size: 3.5vw;
    line-height: 1.4em;
  }

  #poem-in-search-of-a-blurb {
    font-size: 3.7vw;
    line-height: 1.4em;
  }

  #homeless-poem {
    font-size: 4.2vw;
    line-height: 1.4em;
  }

  .social-media-poem-btn {
    display: block;
    width: 100%;
    text-align: center;
    font-size: 5vw;
    padding: .6em;
    margin-bottom: .7em;
  }

  #supersized-poem p {
    padding-bottom: 1vw;
    margin-top: -30vw;
  }

  .cover {
    display: block;
    border-bottom: solid 1px #FF4500;
  }

  .cover-title {
    font-size: 18vw;
    line-height: .78em;
  }

  .cover-author {
    font-size: 5.5vw;
    line-height: 1em;
  }

  .cover-info {
    font-size: 4.3vw;
    line-height: 1em;
  }

  .toc-btn {
    display: none;
  }

  .cover-content {
    width: 98%;
  }

  h1 a {
    border-bottom: solid .5px transparent;
  }

  .toc--open h1 a {
    border-bottom: solid .5px #FF4500;
  }

  #afterword ul {
    margin-left: 5vw;
  }

  .poem h2 {
    font-size: 4.5vw;
    line-height: 1.4em;
  }

  .disengagedspan {
    text-indent: -1.8vw;
  }

}
