@font-face {
  font-family: "Zetkin";
  src: url("../src/fonts/Zetkin-Wide.woff2") format("woff2"), url("../src/fonts/Zetkin-Wide.woff") format("woff");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Zetkin";
  src: url("../src/fonts/Zetkin-WideOblique.woff2") format("woff2"), url("../src/fonts/Zetkin-WideOblique.woff") format("woff");
  font-weight: normal;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "AtlantiqueMiami";
  src: url("../src/fonts/AtlantiqueMiami-Medium.woff2") format("woff2"), url("../src/fonts/AtlantiqueMiami-Medium.woff") format("woff");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "AtlantiqueMiami";
  src: url("../src/fonts/AtlantiqueMiami-MediumItalic.woff2") format("woff2"), url("../src/fonts/AtlantiqueMiami-MediumItalic.woff") format("woff");
  font-weight: normal;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Dyade";
  src: url("../src/fonts/Dyade-Regular.woff") format("woff");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "VarFont";
  src: url("../src/fonts/testvarfont.ttf");
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: rgba(230, 230, 230, 0.5);
}

html {
  font-family: "Zetkin";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  padding-bottom: 36px;
  overflow-x: hidden;
}

header {
  width: 100%;
  padding: 10px 40px 0 40px;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: auto;
  grid-template-areas: "logo menu menu menu menu menu menu menu menu menu menu dot";
  gap: 10px;
  position: sticky;
  top: 0;
  z-index: 20;
}
header h1 {
  grid-area: logo;
  font-family: "Dyade";
  font-weight: normal;
  font-size: 20px;
  line-height: 17px;
  letter-spacing: 0.05em;
  transform: translateY(-7px);
}
header h1 a {
  color: black;
  text-decoration: none;
}
header nav {
  grid-area: menu;
}

#menu-shadowwrapper {
  width: 100%;
  height: 100%;
}

#menu-innerwrapper {
  max-width: 1100px;
  margin: 0 auto;
}

#menu {
  display: flex;
  gap: 10px;
  justify-content: space-between;
}
#menu li.menu_item {
  display: block;
  width: 20%;
  max-width: 174px;
  height: 28px;
  list-style: none;
  font-family: "Zetkin";
  font-size: 11px;
  line-height: 26px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-weight: normal;
  text-align: center;
  text-transform: uppercase;
  border-radius: 14px;
  border: 1px solid black;
  background-color: white;
  transition: all 250ms ease-in-out;
  cursor: pointer !important;
}
#menu li.menu_item a {
  display: block;
  width: 100%;
  height: 100%;
  color: inherit;
  text-decoration: none;
}
#menu li.menu_item.current, #menu li.menu_item:hover {
  color: white;
  background-color: black;
  transition: all 250ms ease-in-out;
}
#menu li.menu_item.current a, #menu li.menu_item:hover a {
  color: inherit;
}

#asterisk {
  border: none;
  background: none;
  width: 1.8vw;
  height: 1.8vw;
  display: none;
}
#asterisk img {
  display: block;
  -o-object-fit: contain;
     object-fit: contain;
  -o-object-position: center;
     object-position: center;
}

#shop-buttons {
  grid-area: dot;
  justify-self: end;
}

#custom-select {
  display: none;
  width: 45px;
  height: 28px;
  position: relative;
  font-family: "Zetkin";
  font-size: 11px;
  letter-spacing: 0.05em;
}

.select-hidden {
  display: none;
  visibility: hidden;
}

.select-styled {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 7px 9px 0 0;
  text-align: right;
}
.select-styled:hover {
  cursor: pointer;
}
.select-styled svg {
  position: absolute;
  top: 42%;
  right: 0;
  width: 7px;
  fill: black;
}

.select-options {
  position: absolute;
  top: 100%;
  right: 0;
  left: 0;
  z-index: 999;
  margin: 0;
  padding: 0;
  list-style: none;
  text-align: right;
}
.select-options.hidden {
  display: none;
}
.select-options li {
  margin: 0;
  padding: 0 9px 0 0;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
  cursor: pointer;
}

#cart-preview {
  width: 27px;
  height: 27px;
  border-radius: 50%;
  border: none;
  font-family: "Zetkin";
  text-align: center;
  color: white;
  background-color: black;
  position: sticky;
  cursor: pointer;
}
#cart-preview.hidden {
  display: none;
}
#cart-preview .snipcart-items-count {
  opacity: 1;
  color: white;
}
#cart-preview .snipcart-items-count.hide {
  opacity: 0;
  color: black;
}

main.grid {
  width: 100%;
  padding: 0 40px 40px 40px;
  margin-top: 52px;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: auto;
  gap: 0 10px;
  overflow-x: hidden;
}

#title {
  grid-column: 2/6;
  grid-row: 1/2;
  padding-top: 36px;
  font-size: 30px;
  line-height: 36px;
  text-transform: uppercase;
  font-weight: normal;
}

#author {
  grid-column: 2/4;
  grid-row: 2/3;
  padding: 36px 0;
  font-size: 11px;
  line-height: 14px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-weight: normal;
}

#abstract {
  grid-column: 1/5;
  grid-row: 3/4;
  padding-bottom: 36px;
  font-family: "AtlantiqueMiami";
  font-size: 20px;
  line-height: 26px;
}
#abstract sup {
  position: relative;
  top: -0.4em;
  font-size: 75%;
  line-height: 0;
  vertical-align: baseline;
}

#animatedshape {
  grid-column: 6/-1;
  grid-row: 1/4;
  width: 100%;
  height: 100%;
  overflow: hidden;
  position: relative;
  pointer-events: none;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
}
#animatedshape #animatedshape_letter {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: -1;
  transform: translate(-50%, -50%);
  font-family: "VarFont";
  text-align: center;
  font-size: 50vw;
  font-variation-settings: "ANIM" 50;
}
#animatedshape #animatedshape_letter.animate {
  animation: 30s ease-in-out 0s infinite alternate animate_shape;
}

@keyframes animate_shape {
  from {
    font-variation-settings: "ANIM" 50;
  }
  25% {
    font-variation-settings: "ANIM" 0;
  }
  50% {
    font-variation-settings: "ANIM" 50;
  }
  75% {
    font-variation-settings: "ANIM" 100;
  }
  to {
    font-variation-settings: "ANIM" 50;
  }
}
#podcast {
  position: fixed;
  left: 0;
  bottom: 0;
  padding: 10px 40px;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: auto;
  gap: 10px;
  border-top: 1px solid black;
  background-color: white;
  font-size: 11px;
  line-height: 14px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-weight: normal;
}
#podcast #player-btn {
  grid-column: 1/2;
  width: 42px;
  height: 42px;
  align-self: center;
  border: none;
  background: none;
  padding: 3%;
  cursor: pointer;
}
#podcast #player-btn svg polygon,
#podcast #player-btn svg rect {
  fill: white;
  stroke: black;
  stroke-width: 1px;
}
#podcast #player-btn[data-state=play] #pause-shape {
  opacity: 0;
}
#podcast #player-btn[data-state=play] #play-shape {
  opacity: 1;
}
#podcast #player-btn[data-state=pause] #pause-shape {
  opacity: 1;
}
#podcast #player-btn[data-state=pause] #play-shape {
  opacity: 0;
}
#podcast #player-title {
  grid-column: 2/4;
  font-size: 11px;
  line-height: 14px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-weight: normal;
}
#podcast #player-wrapper {
  grid-column: 4/12;
  display: grid;
  grid-template-columns: 1fr 3fr 1fr;
  grid-template-rows: 1fr 1fr 1fr;
}
#podcast #player-wrapper #player_range {
  grid-column: 1/-1;
  grid-row: 1/3;
}
#podcast #player-wrapper #player_elapsed-time {
  grid-column: 1/2;
  grid-row: 3/4;
  text-align: left;
}
#podcast #player-wrapper #player_remaining-time {
  grid-column: 3/4;
  grid-row: 3/4;
  text-align: right;
}

input[type=range] {
  position: relative;
  -webkit-appearance: none;
  width: 100%;
  margin: 0;
  padding: 0;
  height: 14px;
  border-left: 1px solid black;
  border-right: 1px solid black;
  align-self: end;
  margin-bottom: 3.5px;
  outline: none;
  --seek-before-width:0%;
  cursor: pointer !important;
}
input[type=range]::-moz-range-track {
  width: 100%;
  height: 1px;
  background-color: grey;
  cursor: pointer;
}
input[type=range]::-moz-range-progress {
  background-color: black;
  height: 1px;
}
input[type=range]::-moz-range-thumb {
  position: relative;
  box-sizing: border-box;
  border: none;
  height: 14px;
  width: 1px;
  border-radius: 0;
  background-image: url("../src/img/bar.png");
  background-position: center;
  background-size: 15px 15px;
  background-color: transparent;
  cursor: pointer;
}
input[type=range]::-moz-focus-outer {
  border: 0;
}
input[type=range]::-webkit-slider-runnable-track {
  width: 100%;
  height: 1px;
  transform: translateY(-1px);
  background-color: grey;
  cursor: pointer;
}
input[type=range]::before {
  position: absolute;
  content: "";
  top: 6px;
  left: 0;
  width: var(--seek-before-width);
  height: 1px;
  cursor: pointer;
}
input[type=range]::-webkit-slider-thumb {
  position: relative;
  -webkit-appearance: none;
  box-sizing: content-box;
  height: calc(14px - 1px);
  width: 1px;
  border-radius: 0;
  background-image: url("../src/img/bar.png");
  background-repeat: repeat-y;
  background-position: center;
  background-size: 15px 15px;
  background-color: transparent;
  cursor: pointer;
  margin: -5.5px 0 0 0;
}
input[type=range]::-ms-track {
  width: 100%;
  height: 1px;
  cursor: pointer;
  background: transparent;
  border: solid transparent;
  color: transparent;
}
input[type=range]::-ms-thumb {
  position: relative;
  box-sizing: content-box;
  padding-top: 4px;
  height: calc(14px - 4px);
  width: 1px;
  border-radius: 0;
  cursor: pointer;
}
input[type=range]::-ms-fill-lower {
  background-color: black;
  height: 1px;
}

@media screen and (orientation: portrait) and (max-width: 1149px) {
  header {
    width: 100%;
    padding: 10px 10px 0 10px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: auto;
    grid-template-areas: "logo logo dot dot";
    gap: 10px;
  }
  header h1 {
    grid-area: logo;
    font-size: 23px;
    line-height: 19px;
    letter-spacing: 0.05rem;
    transform: translateY(-5px);
  }
  header nav {
    position: fixed;
    left: 9px;
    right: 9px;
    bottom: 10px;
    height: 40px;
    z-index: 10;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: 1fr;
  }
  #menu-wrapper {
    grid-column: 1/-1;
    grid-row: 1/-1;
    width: calc(100vw - 20px);
    justify-self: end;
    align-self: center;
    opacity: 0;
    background-color: black;
    -webkit-clip-path: inset(0% 0% 0% 0% round 20px);
            clip-path: inset(0% 0% 0% 0% round 20px);
    position: relative;
    height: 100%;
  }
  #menu-wrapper.initial {
    display: block;
    width: calc(100vw - 20px);
    height: 40px;
    color: white;
    opacity: 1;
    position: relative;
  }
  #menu-wrapper.notvisible {
    position: relative;
    display: block;
    animation-name: closewrapper;
    animation-duration: 200ms;
    animation-timing-function: ease-in;
    animation-fill-mode: forwards;
    pointer-events: none;
  }
  #menu-wrapper.visible {
    display: block;
    width: calc(100vw - 20px);
    animation-name: openwrapper;
    animation-duration: 200ms;
    animation-delay: 200ms;
    animation-timing-function: ease-out;
    animation-fill-mode: forwards;
  }
  @keyframes openwrapper {
    0% {
      margin-right: 100px;
      transform-origin: center right;
      transform: scale(0, 0);
      color: black;
      opacity: 0;
    }
    5% {
      margin-right: 100px;
      border-radius: 5px;
      transform-origin: center right;
      transform: scale(0.01, 0.3);
      color: black;
      opacity: 1;
    }
    65% {
      color: white;
    }
    100% {
      margin-right: 0;
      border-radius: 20px;
      transform-origin: center right;
      transform: scale(1, 1);
      color: white;
      opacity: 1;
    }
  }
  @keyframes closewrapper {
    0% {
      margin-right: 0;
      border-radius: 20px;
      transform-origin: center right;
      transform: scale(1, 1);
      color: white;
      opacity: 1;
    }
    35% {
      color: black;
    }
    95% {
      margin-right: 100px;
      border-radius: 5px;
      transform-origin: center right;
      transform: scale(0.01, 0.3);
      color: black;
      opacity: 1;
    }
    100% {
      margin-right: 100px;
      transform-origin: center right;
      transform: scale(0, 0);
      color: black;
      opacity: 0;
    }
  }
  #menu-shadowwrapper {
    width: calc(100vw - 20px);
    height: 100%;
  }
  #menu-shadowwrapper::before {
    content: "";
    width: calc(100vw - 20px);
    height: 100%;
    position: absolute;
    z-index: 2;
    -webkit-user-select: none;
       -moz-user-select: none;
            user-select: none;
    pointer-events: none;
    box-shadow: inset -60px 0px 15px -50px black, inset 60px 0px 15px -50px black;
    border-radius: 22px;
  }
  #menu-innerwrapper {
    width: 100%;
    height: 100%;
    overflow-y: hidden;
    overflow-x: scroll;
    -ms-overflow-style: none; /* IE and Edge */
    scrollbar-width: none; /* Firefox */
  }
  #menu-innerwrapper::-webkit-scrollbar {
    display: none; /* Webkit */
  }
  #menu {
    display: grid;
    grid-template-columns: repeat(5, auto);
    gap: 20px;
    width: -moz-fit-content;
    width: fit-content;
    height: 100%;
    padding: 0 18px;
    display: block;
    width: -moz-max-content;
    width: max-content;
  }
  #menu li.menu_item {
    display: block;
    width: -moz-max-content;
    width: max-content;
    height: 100%;
    flex-grow: 0;
    flex-shrink: 1;
    font-size: 12px;
    line-height: 39px;
    text-align: center;
    border-radius: 0;
    border: none;
    color: inherit;
    background-color: transparent;
    float: left;
    margin-right: 20px;
    -webkit-tap-highlight-color: transparent;
  }
  #menu li.menu_item:last-of-type {
    margin-right: 0;
  }
  #menu a {
    display: block;
    width: 100%;
    height: 100%;
    color: inherit;
    text-decoration: none;
  }
  #asterisk {
    position: fixed;
    right: 10px;
    bottom: 10px;
    z-index: 10;
    border: none;
    background: none;
    width: 41px;
    height: 41px;
    cursor: pointer;
    display: block;
    opacity: 1;
    padding: 0;
    transition-delay: 500ms;
    transition-property: all;
    transition: all 400ms ease-in-out;
    -webkit-tap-highlight-color: rgba(255, 255, 255, 0.2);
  }
  #asterisk.hidden {
    opacity: 0;
    transform-origin: center center;
    transform: rotate(-90deg);
    pointer-events: none;
    transition-delay: 100ms;
    transition-property: all;
    transition: all 400ms ease-in-out;
    padding: 15px;
  }
  #asterisk:active {
    opacity: 0.9;
  }
  #shop-buttons {
    position: fixed;
    top: 10px;
    right: 10px;
    z-index: 20;
  }
  #custom-select {
    width: 45px;
    height: 28px;
    position: relative;
    font-family: "Zetkin";
    font-size: 12px;
    letter-spacing: 0em;
  }
  .select-hidden {
    display: none;
    visibility: hidden;
  }
  .select-styled {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    padding: 7px 9px 0 0;
    text-align: right;
  }
  .select-styled:hover {
    cursor: pointer;
  }
  .select-styled svg {
    position: absolute;
    top: 42%;
    right: 0;
    width: 7px;
    fill: black;
  }
  .select-options {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    z-index: 999;
    margin: 0;
    padding: 0;
    list-style: none;
    text-align: right;
  }
  .select-options.hidden {
    display: none;
  }
  .select-options li {
    margin: 0;
    padding: 0 9px 0 0;
    -webkit-user-select: none;
       -moz-user-select: none;
            user-select: none;
    cursor: pointer;
  }
  main.grid {
    width: 100%;
    padding: 0 10px 10px 10px;
    margin-top: 58px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: auto;
    gap: 0 10px;
  }
  #title {
    grid-column: 1/5;
    grid-row: 1/2;
    padding-top: 29px;
    font-size: 24px;
    line-height: 29px;
    text-transform: uppercase;
    font-weight: normal;
  }
  #author {
    grid-column: 1/5;
    grid-row: 2/3;
    padding: 29px 0 29px 25%;
    font-size: 12px;
    line-height: 16px;
    text-transform: uppercase;
    font-weight: normal;
  }
  #abstract {
    grid-column: 1/5;
    grid-row: 3/4;
    padding-bottom: 50vw;
    font-family: "AtlantiqueMiami";
    font-size: 20px;
    line-height: 26px;
  }
  #podcast {
    position: fixed;
    left: 1.5vw;
    right: 1.5vw;
    bottom: 14vw;
    padding: 4vw 3vw;
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    gap: 8px;
    font-size: 12px;
    line-height: 16px;
    text-transform: uppercase;
    font-weight: normal;
    color: white;
    border-radius: 3vw;
    background-color: black;
  }
  #podcast #player-btn {
    left: 3vw;
    bottom: 2vw;
    grid-column: 1/2;
    grid-row: 2/3;
    width: 40px;
    height: 40px;
    padding: 5px;
    cursor: pointer;
  }
  #podcast #player-btn svg polygon,
  #podcast #player-btn svg rect {
    fill: white;
    stroke: black;
    stroke-width: 0;
  }
  #podcast #player-btn[data-state=play] #pause-shape {
    opacity: 0;
  }
  #podcast #player-btn[data-state=play] #play-shape {
    opacity: 1;
  }
  #podcast #player-btn[data-state=pause] #pause-shape {
    opacity: 1;
  }
  #podcast #player-btn[data-state=pause] #play-shape {
    opacity: 0;
  }
  #podcast #player-title {
    grid-column: 1/-1;
    grid-row: 1/2;
    font-size: 12px;
    line-height: 16px;
    text-transform: uppercase;
    font-weight: normal;
  }
  #podcast #player-title span {
    display: inline-block;
  }
  #podcast #player-title span:first-child {
    margin-bottom: 16px;
  }
  #podcast #player-wrapper {
    padding-top: 6px;
    grid-column: 2/-1;
    grid-row: 2/3;
  }
  input[type=range] {
    position: relative;
    height: 16px;
    border-left: 1px solid white;
    border-right: 1px solid white;
    margin-bottom: 4px;
    background: transparent;
  }
  input[type=range]::-moz-range-track {
    width: 100%;
    height: 1px;
    background-color: white;
  }
  input[type=range]::-moz-range-progress {
    background-color: white;
  }
  input[type=range]::-moz-range-thumb {
    position: relative;
    box-sizing: border-box;
    border: none;
    height: 16px;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background-image: none;
    background-position: center;
    background-size: 15px 15px;
    background: white;
    cursor: pointer;
  }
  input[type=range]::-moz-focus-outer {
    border: 0;
  }
  input[type=range]::-webkit-slider-runnable-track {
    width: 100%;
    height: 1px;
    transform: translateY(-1px);
    background-color: grey;
    cursor: pointer;
  }
  input[type=range]::before {
    position: absolute;
    content: "";
    top: 6px;
    left: 0;
    width: var(--seek-before-width);
    height: 1px;
    cursor: pointer;
  }
  input[type=range]::-webkit-slider-thumb {
    position: relative;
    -webkit-appearance: none;
    box-sizing: content-box;
    height: calc(16px - 1px);
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background-image: none;
    background-position: center;
    background-size: 15px 15px;
    background: white;
    cursor: pointer;
    margin: -6px 0 0 0;
  }
  input[type=range]::-ms-track {
    width: 100%;
    height: 1px;
    cursor: pointer;
    background: transparent;
    border: solid transparent;
    color: transparent;
  }
  input[type=range]::-ms-thumb {
    position: relative;
    box-sizing: content-box;
    padding-top: 4px;
    height: calc(16px - 4px);
    width: 1px;
    border-radius: 0;
    cursor: pointer;
  }
  input[type=range]::-ms-fill-lower {
    background-color: black;
    height: 1px;
  }
}