@import url("https://use.typekit.net/phh3sli.css");

:root {
  --color-white: #ffffff;
  --color-gray: #828d8c;
  --color-black: #000000;
  --font-primary: Acumin Pro, sans-serif;
  --font-leading: 1.2;
  --type-header: 18px;
  --type-body: 14px;
  --type-footer: 14px;
  --spacing-body: 32px;
  --type-md: 16px;
  --type-sm: 14px;
  --spacing-md: 24px;
  --spacing-sm: 18px;
  --width-novella: 770px;
  --button-novella: 52px;
  --button-play-width: 82px;
  --button-play-height: 71px;
}

@media screen and (max-width: 64em) {

  :root {
    --width-novella: 100%;
  }
}

@media screen and (max-width: 42em) {

  :root {
    --type-header: 14px;
    --type-body: 10px;
    --type-footer: 10px;
    --spacing-body: 16px;
    --button-novella: 42px;
    --button-play-width: 56px;
    --button-play-height: 49px;
  }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

html {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

*,
*:before,
*:after {
  box-sizing: inherit;
}

button {
  display: inline-block;
  border: none;
  padding: 0;
  margin: 0;
  text-decoration: none;
  background: none;
  cursor: pointer;
  text-align: center;
  transition: background 250ms ease-in-out, transform 150ms ease;
  -webkit-appearance: none;
  -moz-appearance: none;
}

h1 {
  font-size: inherit;
  font-weight: inherit;
  margin: 0;
}

a,
a:visited {
  color: var(--color-primary);
  text-decoration: underline;
}

a:hover {
  text-decoration: none;
}

ul {
  margin: 0;
  padding: 0;
  text-indent: 0;
  list-style-type: none;
}

strong {
  font-weight: 500;
}

.TheSite {
  display: flex;
  min-height: 100vh;
  flex-direction: column;
  margin: 0;
  font-family: var(--font-primary);
  line-height: var(--font-leading);
  color: var(--color-white);
  background-color: var(--color-gray);
}

.TheHeader {
  position: relative;
  display: flex;
  justify-content: space-between;
  width: 100%;
  padding-top: var(--spacing-body);
  padding-right: var(--spacing-body);
  padding-left: var(--spacing-body);
  font-style: normal;
  font-size: var(--type-header);
  font-weight: 400;
}

.TheBody {
  position: relative;
  flex: 1;
}

.NovellaContainer {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: flex-end;
  align-items: flex-start;
  margin-top: var(--spacing-body);
  padding-right: var(--spacing-body);
  padding-left: var(--spacing-body);
  user-select: none;
  pointer-events: none;
}

.NovellaContainer.Novella--active {
  user-select: auto;
  pointer-events: all;
}

.Novella {
  max-width: var(--width-novella);
  margin-right: 42px;
  padding: var(--spacing-body);
  opacity: 0;
  font-size: var(--type-body);
  color: var(--color-black);
  background-color: var(--color-white);
  transition: opacity 100ms ease;
}

.Novella.Novella--active {
  opacity: 1;
}

.NovellaButton {
  width: var(--button-novella);
  flex: none;
  transform: rotate(0);
  transform-origin: center;
  transition: transform 100ms ease;
  user-select: auto;
  pointer-events: all;
}

.NovellaButton.Novella--active {
  transform: rotate(45deg);
}

.NovellaButton-icon {
  fill: var(--color-white);
}

.TheFooter {
  padding: var(--spacing-body);
  font-size: var(--type-footer);
  font-weight: 300;
}

.Footer__list {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  text-align: left;
}

.PlayButton {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.PlayButton-icon {
  fill: var(--color-white);
  width: var(--button-play-width);
  height: var(--button-play-height);
}

.PlayButton .PlayButton-pauseIcon {
  display: none;
}

.PlayButton.is-playing .PlayButton-playIcon {
  display: none;
}

.PlayButton.is-playing .PlayButton-pauseIcon {
  display: block;
}

.PlayButton .PlayButton-playIcon {
  display: block;
}

.MarqueeContainer {
  position: relative;
  font-weight: 300;
  overflow: hidden;
  font-size: var(--type-footer);
}

.MarqueeAnimation {
  white-space: nowrap;
  width: 100%;
  transform: translateX(100%);
  animation: scroll-left 20s linear infinite;
  -webkit-animation: scroll-left 20s linear infinite;
}

.Marquee + .Marquee {
  margin-top: 4px;
}

.Marquee-list-item {
  display: inline-block;
}

.Marquee-list-item::after {
  content: "|";
}

.Marquee-list-item:last-child::after {
  content: none;
}

@media screen and (min-width: 64.1em) {

  .Marquee {
    display: none;
  }

  .NovellaContainer {
    align-items: flex-start;
    padding-right: var(--spacing-body);
    padding-left: var(--spacing-body);
  }

  .Novella {
    margin-right: 42px;
  }
}

@media screen and (max-width: 64em) {

  .desktop-only {
    display: none;
  }

  .Footer__list {
    flex-direction: column;
  }

  .Footer__list-item:last-child {
    margin-top: var(--spacing-sm);
  }

  .NovellaButton {
    margin-right: var(--spacing-body);
  }

  .NovellaContainer {
    flex-direction: column-reverse;
    align-items: flex-end;
    padding-left: 0;
    padding-right: 0;
  }

  .Novella {
    margin-top: var(--spacing-md);
    margin-right: 0;
  }
}

@-webkit-keyframes scroll-left {
  0% {
    -webkit-transform: translateX(100%);
  }

  100% {
    -webkit-transform: translateX(-200%);
  }
}

@keyframes scroll-left {
  0% {
    transform: translateX(100%);
  }

  100% {
    transform: translateX(-200%);
  }
}
