* {
  box-shadow: 0 0 0 0 transparent;
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  padding-bottom: 8rem;
}

/***************
  TYPOGRAPHY
***************/

/* font-size */

h1 {
  font-size: 30px;
}

h2 {
  font-size: 20px;
}

html,
h3,
h4,
.carousel a.list-group-item,
.steppers button {
  font-size: 15px;
}

h5,
figcaption,
.figactions,
.figdetails,
.metadata li,
nav,
img,
.note {
  font-size: 12px;
}

small,
 {
  font-size: 10px;
}

@media (min-width: 360px) {

  h1 {
    font-size: calc(100vw * 1 / 12);
  }

  h2 {
    font-size: calc(100vw * 1 / 36 + 10px);
  }

  html,
  h3,
  h4,
  .carousel a.list-group-item,
  .steppers button,
  nav {
    font-size: calc(100vw * 1 / 72 + 10px);
  }

  h5,
  figcaption,
  .figactions,
  .figdetails,
  .metadata li,
  nav,
  img,
  .note {
    font-size: calc(100vw * 1 / 120 + 9px);
  }

  small {
    font-size: calc(100vw * 1 / 180 + 8px)
  }

}

@media (min-width: 720px) {

  h1 {
    font-size: 60px;
  }
  
  h2 {
    font-size: 30px;
  }
  
  html,
  h3,
  h4,
  .carousel a.list-group-item,
  .steppers button {
    font-size: 20px;
  }
  
  h5,
  figcaption,
  .figactions,
  .figdetails,
  .metadata li,
  nav,
  img,
  .note {
    font-size: 15px;
  }
  
  small {
    font-size: 12px;
  }

}

/* font-face */

/* Semilight */
/* @font-face{ 
  font-family:"Real Head";
  src:url("../fonts/5510689/c273bb0f-fb6c-47d8-8dd6-286a419c53a6.eot?#iefix");
  src:url("../fonts/5510689/c273bb0f-fb6c-47d8-8dd6-286a419c53a6.eot?#iefix") format("eot"),url("../fonts/5510689/e3ee4052-f113-4c53-83d4-3007c7178588.woff2") format("woff2"),url("../fonts/5510689/6b7f288f-940b-4adb-b4a3-64f33ec46637.woff") format("woff"),url("../fonts/5510689/e49db914-3e6f-45aa-908d-2cbc4efad920.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
} */

/* Demibold */
/* @font-face{ 
  font-family:"Real Head";
  src:url("../fonts/5510721/7d728cfc-4847-43f9-845d-0635ccdd81de.eot?#iefix");
  src:url("../fonts/5510721/7d728cfc-4847-43f9-845d-0635ccdd81de.eot?#iefix") format("eot"),url("../fonts/5510721/15ebbb58-758b-44cf-8fea-6849aeb44443.woff2") format("woff2"),url("../fonts/5510721/9fb82e72-9de6-4a42-94fd-1665d054979d.woff") format("woff"),url("../fonts/5510721/158ae7b5-36a4-46b7-96bc-7f34e10463cf.ttf") format("truetype");
  font-style: normal;
  font-weight: 700;
} */

/* Semilight */
/* @font-face{ 
  font-family:"Real Text";
  src:url("../fonts/5510783/dea90c28-fb0a-45f7-b642-4654696b3b5f.eot?#iefix");
  src:url("../fonts/5510783/dea90c28-fb0a-45f7-b642-4654696b3b5f.eot?#iefix") format("eot"),url("../fonts/5510783/fd0b720f-5903-454d-82fb-47d50003aa73.woff2") format("woff2"),url("../fonts/5510783/aec254d3-3c18-453b-97b5-f42cfadf8b16.woff") format("woff"),url("../fonts/5510783/cbc1b58b-0d79-458c-9d23-b05ea9b38893.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
} */

/* Demibold */
/* @font-face{ 
  font-family:"Real Text";
  src:url("../fonts/5510807/e8dca282-0511-426a-b1ab-3ddcf289a494.eot?#iefix");
  src:url("../fonts/5510807/e8dca282-0511-426a-b1ab-3ddcf289a494.eot?#iefix") format("eot"),url("../fonts/5510807/579da65c-f33b-4204-9835-5f6996111906.woff2") format("woff2"),url("../fonts/5510807/d226824b-db98-4db3-831b-63446b91c191.woff") format("woff"),url("../fonts/5510807/08d3aac8-79cc-449b-9e8b-16011a97e67e.ttf") format("truetype");
  font-style: normal;
  font-weight: 700;
} */

/* font-family */

html {
  font-family: "Real Text";
  font-weight: 400;
}

h1 {
  font-family: "Real Head";
  font-weight: 700;
  /* font-feature-settings: "smcp"; */
  /* text-transform: lowercase; */
}

h2 {
  font-family: "Real Head";
  font-weight: 700;
}

h3 {
  font-family: "Real Head";
  font-weight: 700;
}

h4,
.carousel a.list-group-item,
.steppers button {
  font-family: "Real Head";
  font-feature-settings: "smcp";
  font-weight: 400;
  text-transform: lowercase;
}

h5 {
  font-family: "Real Head";
  font-feature-settings: "smcp";
  font-weight: 700;
}

/* .subtitle {
  font-family: "Real Head";
  font-weight: 700;
} */

small,
.note {
  font-family: "Real Text";
  font-weight: 400;
}

.metadata h3 {
  font-feature-settings: "smcp";
  font-weight: 400;
}

.metadata li {
  font-weight: 400;
}

nav p,
nav li {
  font-family: "Real Head";
  font-feature-settings: "smcp";
}

#logo {
  font-feature-settings: "smcp" off;
}

img {
  font-family: "Real Head";
  font-weight: 700;
}

.listgrid p {
  font-family: "Real Head";
  font-weight: 700;
}

/* layout */

article,
.seealso {
  width: 100%;
  max-width: 60rem;
  margin: 0 auto;
}

article,
.seealso {
  display: grid;
  grid-template-columns: 1rem 1fr 1rem;
  align-items: start;
}

.seealso a {
  grid-column-start: 2;
}

article > *:not(figure) {
  grid-column-start: 2;
  max-width: 30rem;
}

article > .fullwidth {
  width: 100%;
  grid-column-start: 1;
  grid-column-end: span 5;
  max-width: 100%;
}

article > figure {
  grid-column-start: 2;
  grid-row-end: span 1;
  max-height: none;
  margin-top: 1rem;
  margin-bottom: 1rem;
}

/* TODO: fix figure span rows */

article > figure img {
  max-width: 100%;
  max-height: 40vh;
}

article h2,
article h3 {
  grid-column-end: span 3;
}

@media (min-width: 480px) {
  article,
  .seealso {
    grid-template-columns: 2rem 1fr 2rem;
  }
}

@media (min-width: 720px) {
  article > figure {
    max-width: 36rem;
  }
}

@media (min-width: 960px) {
  article,
  .seealso {
    grid-template-columns: 2rem calc(100% / 2) 2rem calc(100% - 6rem - (100% / 2)) 2rem;
    grid-auto-flow: row;
  }

  article > *:not(figure) {
    max-width: none;
  }

  article > .fullwidth {
    max-width: none;
  }

  article > figure {
    grid-column-start: 4;
    grid-row-end: span 1;
  }

  article > figure {
    max-width: none;
    max-height: 80vh;
    margin-top: 0.55rem;
    margin-bottom: 0;
  }
}

/* spacing */

main {
  /* padding-top: 1rem; */
  padding-bottom: 3rem;
}

@media (min-width: 720px) {
  main {
    padding-top: 4rem;
    padding-bottom: 1rem;
  }
}

h1 {
  margin-top: 0.5em;
}

h2 {
  margin-top: 4em;
}

h3 {
  margin-top: 4em;
}

h4,
h5 {
  margin-top: 1.55rem;
}

h5 + p,
h5 + ul,
p + ul {
  margin-top: 0.3rem;
}

/* h1:first-child, */
h2:first-child,
h3:first-child,
h4:first-child,
h5:first-child {
  margin-top: 0;
}

p,
ul {
  margin-top: 0.55rem;
}

article li {
  margin-left: 1em;
}

.separate-v {
  margin-top: 1.55rem;
}

/* color */

html {
  background-color: #fcfcf8;
  color: #1b1b23;
}

/* links */

article a:not(.list-group-item):not(.thumblink),
article a:not(.list-group-item):not(.thumblink):visited {
  color: #7900ff;
  text-decoration: none;
}

article a:not(.list-group-item):not(.thumblink):hover,
article a:not(.list-group-item):not(.thumblink):focus {
  background-color: #7900ff;
  /* box-shadow: 0 0 0 0.3em #7900ff, 0.1em 0.2em 0.2em 0.3em rgba(0, 0, 0, 0.7); */
  box-shadow: 0 0 0 0.3em #7900ff;
  color: #fcfcf8;
}

article a:not(.list-group-item):not(.thumblink):active {
  box-shadow: 0 0 0 0.5em #7900ff;
}

/* features */

html {
  color: #1b1b23;
  font-feature-settings: "liga", "case", "frac", "lnum", "zero", "calt";
  line-height: 1.45;
  text-rendering: optimizeLegibility;
}

article li {
  list-style: square;
}

/***************
  NAVBAR
***************/

/* TODO: Make mobile easier by spacing and sizing targets, maybe making things expand on hover */

.menu {
  width: 100%;
  background-color: #1b1b23;
  position: fixed;
  bottom: 0;
  z-index: 3; /* to account for plyr controls */
}



nav {
  color: #fcfcf8;
  display: flex;
  flex-wrap: nowrap;
  justify-content: space-between;
  margin: 0 auto;
  width: 100%;
  max-width: 1200px;
  padding-left: 1rem;
  padding-right: 1rem;
}

@media (min-width: 480px) {
  nav {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

@media (min-width: 720px) {
  .menu {
    bottom: auto;
    top: 0;
  }
}


nav li.nonimportant {
  display: none;
}

@media (min-width: 720px) {

  nav li.nonimportant {
    display: inline-block;
  }
  
}

nav a {
  color: #fcfcf8;
  display: inline-block;
  text-decoration: none;
}

nav a:hover,
nav a:focus {
  background-color: #7900ff;
  box-shadow: 0 0.075rem 0 0.425rem #7900ff;
}

nav a:active {
  box-shadow: 0 0.075rem 0 calc(0.425rem + 4px) #7900ff;
}

#logo {
  margin-right: 1rem;
}

nav p {
  padding: 0.25rem 0.25rem 0.5rem 0;
  margin-top: 0;
}

nav ul {
  display: flex;
  flex-wrap: nowrap;
  justify-content: space-between;
  margin-top: 0;
}

nav li {
  list-style: none;
  margin-left: 0.25rem;
  padding: 0.25rem 0.25rem 0.5rem;
}

nav li:last-child {
  padding-right: 0;
}

/***************
  METADATA
***************/

header,
footer{
  background-color: #f0f0f2;
}

article > h1 {
  padding-top: 1rem;
}

/* .subtitle {
  margin-top: 0;
  padding-top: 0.55rem;
} */

h1,
.subtitle {
  /* width: calc(100vw - 48px); */
  /* max-width: 1152px; */
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.metadata {
  padding-top: 1.5rem;
  padding-bottom: 2.5rem;
  display: grid;
  grid-template-columns: auto auto;
  grid-gap: 2rem;
  justify-items: start;
  justify-content: center;
}

header,
footer {
  padding-left: 1rem;
  padding-right: 1rem;
}

@media (min-width: 480px) {
  header,
  footer {
    padding-left: 2rem;
    padding-right: 2rem;
  }

}

footer {
  margin-top: 6rem;
}

.metadata div:first-child {
  grid-column-start: 1;
  grid-column-end: span 2;
}

@media (min-width: 720px) {
  .metadata {
    grid-template-columns: auto auto auto;
  }

  .metadata div:first-child {
    grid-column-start: 1;
    grid-column-end: span 1;
  }
}

/***************
  CAROUSEL
***************/

/* layout */

article > .carousel {
  margin-top: 1rem;
  margin-bottom: 1rem;
  width: 100%;
  padding: 1.5rem 1rem 2rem;
}

.carousel .list-group {
  display: flex;
  flex-direction: column;
}

.carousel .list-group.compact {
  flex-direction: row;
}

@media (min-width: 540px) {
  .carousel .list-group {
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
  }
}

.carousel .list-group,
.carousel .steppers {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.carousel-viewport {
  width: 100%;
  overflow-x: auto;
  /*max-height: 80vh;*/
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  margin-top: 0.55rem;
  margin-bottom: 1.55rem;
  margin-right: auto;
}

.carousel-items {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  margin: 0 auto;
  justify-content: center;
}

.item {
  width: calc(100vw - 2rem);
  max-width: 56rem; /* if you change this you need to change the value in polish.js */
  /* margin-left: 4rem; */
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
}

/* .item:first-child {
  margin-left: 0;
} */

.item > * {
  width: 100%;
  padding: 1rem 0; /* used to be margin when we did the scrolly thing */
}

.carousel figure {
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  margin-bottom: 1rem;
}

.carousel figure:last-child {
  width: 100%;
}

.carousel figure > .plyr {
  min-width: 18rem;
}

.carousel figure img {
  max-height: 50vw;
  max-width: 100%;
}

.carousel .figdetails {
  min-width: 18em;
  margin-top: 0.55rem;
  width: 100%;
}

.steppers {
  display: flex;
  flex-wrap: wrap;
  /* position: sticky; */
  /* bottom: 0px; */
  padding-top: 0.55rem;
}

a.list-group-item {
  text-align: center;
}

a.list-group-item,
.steppers button {
  margin-bottom: 0.55rem;
}

.steppers > button {
  width: 100%;
}

.steppers > .next {
  padding-left: 3.5ch;
}

.steppers > .prev {
  padding-right: 3.5ch;
}

@media (min-width: 480px) {

  .carousel .list-group,
  .item {
    width: calc(100% - 2rem);
  }
  
}

@media (min-width: 540px) {

  a.list-group-item,
  .steppers button {
    margin-right: 1rem;
  }

  

  .carousel figure {
    flex-wrap: nowrap;
  }

  .carousel figure img {
    max-height: 14rem;
  }

  .carousel .figdetails {
    margin-left: 2rem;
    margin-top: 0;
    width: auto;
  }
  
}


@media (min-width: 660px) {

  .steppers {
    justify-content: space-between;
    flex-direction: row-reverse;
  }

  .steppers > button {
    width: auto;
    min-width: 4rem;
  }

  .steppers > .prev {
    padding-left: 0.25rem;
    padding-right: calc(0.25rem + 1ch);
    text-align: left;
  }

  .steppers > .next {
    padding-left: calc(0.25rem + 1ch);
    padding-right: 0.25rem;
    text-align: right;
  }
}

@media (min-width: 840px) {

  .item .content {
    display: flex;
    flex-wrap: nowrap;
  }

  .carousel figure {
    display: block;
  }

  .carousel figure:last-child .plyr {
    max-width: 60%;
  }

  .carousel figure:not(:last-child) {
    margin-right: 2rem;
  }

  .carousel figure img {
    max-height: 40vh;
  }

  .carousel .figdetails {
    margin-left: 0;
    margin-top: 0.55rem;
  }

  .text {
    min-width: 18em;
    max-width: 36em;
  }

}

/* interface styles */

.carousel {
  background-color: #f0f0f2;
  /* box-shadow: 0 0 0 4px #f0f0f2 inset; */
  padding-top: 1rem;
  padding-bottom: 1rem;
}

a.list-group-item {
  /* margin-left: -0.25rem; */
  padding-left: 0.25rem;
  padding-right: 0.25rem;
}

a.list-group-item,
.steppers button {
  color: #7900ff;
  padding-top: 0.1rem;
  padding-bottom: 0.25rem;
  text-decoration: none;
}

a.list-group-item:hover,
a.list-group-item:focus,
button:hover,
button:focus {
  box-shadow: #7900ff 0 0 0 4px;
}

a.list-group-item:active,
button:active {
  box-shadow: #7900ff 0 0 0 7px;
}

a.list-group-item.active {
  box-shadow: #7900ff 0 0 0 4px;
  font-weight: 700;
}

button:hover {
  cursor: pointer;
}

/* .carousel .steppers {
  background-color: rgba(222, 222, 222, 0.8);
} */

.steppers button {
  border: none;
  background-color: transparent;
}

.steppers button.prev::before {
  color: #7900ff;
  content: "\2190";
  margin-left: 1.5ch;
  margin-right: 0.5ch;
}

.steppers button.prev:hover::before,
.steppers button.prev:focus::before {
  margin-left: 0.5ch;
  margin-right: 1.5ch;
}

.steppers button.next::after {
  color: #7900ff;
  content: "\2192";
  margin-left: 0.5ch;
  margin-right: 1.5ch;
}

.steppers button.next:hover::after,
.steppers button.next:focus::after {
  margin-left: 1.5ch;
  margin-right: 0.5ch;
}

/***************
  TRANSITIONS
***************/

a.arrow,
a.arrow::after,
nav a,
article a,
article a:visited,
button,
button:before,
button:after,
.listgrid a {
  transition: background-color 0.5s, box-shadow 0.5s, color 0.5s, margin-left 0.5s, margin-right 0.5s;
  transition-timing-function: cubic-bezier(0.445, 0.05, 0.55, 0.95);
}

a.arrow:hover,
a.arrow:focus,
a.arrow:active,
a.arrow:hover::after,
a.arrow:focus::after,
a.arrow:active::after,
nav a:hover,
nav a:focus,
nav a:active,
article a:hover,
article a:focus,
article a:active,
button:hover,
button:focus,
button:hover:before,
button:focus:before,
button:hover:after,
button:focus:after,
figure img:hover,
figure img:focus,
.listgrid a:hover,
.listgrid a:focus {
  transition: background-color 0.2s, box-shadow 0.2s, color 0.2s, margin-left 0.2s, margin-right 0.2s;
  transition-timing-function: cubic-bezier(0.175, 0.885, 0.32, 1.275);
}


a.arrow:active,
a.arrow:active::after,
nav a:active,
article a:active,
figure img:active,
.listgrid active {
  transition: background-color 0.1s, box-shadow 0.1s, color 0.1s, margin-left 0.1s, margin-right 0.1s;
  transition-timing-function: cubic-bezier(0.175, 0.885, 0.32, 1.275);
}



/***************
  ENDSIGN
***************/

div#endsign {
  height: 40vh;
  display: flex;
  align-items: center;
  justify-content: center;
  align-content: center;
}

img.endsign {
  max-width: calc(100vw / 8);
  max-height: calc(100vh / 13);
}

/***************
  INDEX LINKS
***************/

a.arrow {
  color: #1b1b23;
  display: block;
  text-decoration: none;
  margin-bottom: 1em;
  padding: 0 0;
  /* margin-left: -2px; */
}

a.arrow:hover,
a.arrow:focus {
  /* border-left-color: #7900ff; */
  background-color: #7900ff;
  /* box-shadow: 0 0 0 0.6em #7900ff, 0.1em 0.2em 0.2em 0.6em rgba(0, 0, 0, 0.7); */
  box-shadow: 0 0 0 0.6em #7900ff;
  color: #fcfcf8;
}

a.arrow::after {
  color: #7900ff;
  content: "\2192";
  margin-left: 0.5ch;
  margin-right: 1.5ch;
}

a.arrow:hover::after,
a.arrow:focus::after {
  color: #fcfcf8;
  margin-left: 1.5ch;
  margin-right: 0.5ch;
}

/***************
  MODAL FIGURE
***************/

figure img:hover {
  cursor: pointer;
}

figure img:hover,
figure img:focus {
  box-shadow: 0 0 0 4px #7900ff;
}

figure img:active {
  box-shadow: 0 0 0 7px #7900ff;
}

/* TODO: symbol over image on hover */

.modal {
  position: fixed;
  height: 100vh;
  width: 100vw;
  /* display: flex;
  justify-content: space-around;
  align-content: space-around; */
  z-index: 3;
  top: 0;
  left: 0;
}
/* 
.modal img {
  width: auto;
  height: auto;
  margin-left: 10vw;
  margin-top: 10vh;
  max-width: 80vw;
  max-height: 80vh;
  transition: width 0.2s, height 0.2s, margin-left 0.2s, margin-top 0.2s;
} */

/***************
  PLYR
***************/

/* TODO: figure out how to make plyr size responsive */

/* figure > iframe,
figure > .plyr {
  width: calc(60vmin);
  height: calc(9 / 16 * 60vmin);
} */

figure > .plyr.plyr--audio {
  height: auto;
}

figure > .plyr.plyr--audio > .plyr__controls {
  padding: 2rem 1rem;
}

.plyr--soundcloud .plyr__video-wrapper {
  background-size: contain;
  background-position: center;
}

.plyr--soundcloud .plyr__video-wrapper * {
  opacity: 0;
}

/***************
  SVG
***************/

.modal img.svg {
  background-color: #fcfcf8;
}

.carousel img.svg {
  width: calc(100vw * 3 / 16 + 100px);
  max-width: 24rem;
}

/***************
  ACCESSIBILITY
***************/

/* https://allyjs.io/tutorials/hiding-elements.html */

.visua11yhidden:not(:focus):not(:active) {
  position: absolute;

  width: 1px;
  height: 1px;
  margin: -1px;
  border: 0;
  padding: 0;

  white-space: nowrap;

  clip-path: inset(100%);
  clip: rect(0 0 0 0);
  overflow: hidden;
}

/* TODO: figure out how to avoid hidden tab things */

/***************
  DUMBNAIL
***************/

img {
  background-size: contain;
}

/***************
  object-fit
***************/

/* iframe,
video,
embed,
img,
audio,
canvas,
object,
applet {
  object-fit: contain;
} */

/***************
  listgrid
***************/

.listgrid {
  margin-top: 1.55rem;
  display: grid;
  padding-left: 1rem;
  padding-right: 1rem;
  grid-template-columns: 1fr;
  grid-gap: 2rem;
}

@media (min-width: 480px) {
  .listgrid {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

@media (min-width: 660px) {
  .listgrid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 960px) {
  .listgrid {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

.listgrid a {
  display: block;
  box-shadow: 0 0 0 4px #f0f0f2;
  text-decoration: none;
  color: #1b1b23;
}

.listgrid a:hover,
.listgrid a:focus {
  box-shadow: 0 0 0 8px #7900ff;
}

.listgrid a:active {
  box-shadow: 0 0 0 12px #7900ff;
}

.listgrid a > * {
  margin-left: auto;
  margin-right: auto;
  text-decoration: none;
}

.listgrid img {
  height: 9rem;
  width: 100%;
  object-fit: cover;
  object-position: center 40%;
  display: block;
}

.listgrid p {
  text-align: center;
  width: 100%;
  padding: 0 1rem 1rem;
}