:root {
  --text-small: 1rem;
  --text-medium: 1.3rem;
  --text-large: 1.6rem;
  --headline-small: 1.3rem;
  --headline-medium: 2rem;
  --headline-large: 2.4rem;
  --strokewidth: 2px;
  --shadowblur: 1px;
  --shift-taupe: #ca9caf;
  --shift-deepred: #cc0033;
  --shift-salmon: #ffc3a5;
  --shift-magenta: #ff007f;
  --shift-orangered: #ff0000;
  --shift-lightochre: #cb5616;
  --shift-yellow: #ffcc00;
  --shift-olive: #595c36;
  --shift-stoneblue: #005763;
  --shift-darkblue: #1e2143;
  --shift-purple: #7a3e9d;
  --shift-lavender: #aa8cff;
  --shift-darkred: #7c1324;
  --text-color: black;
  --background-color: #1e2143;
  --scrollbar-height: 0.5rem;
  --border-radius: 0.5rem;
  --text-stroke-xtrathin: .05rem;
  --text-stroke-thin: .1rem;
  --text-stroke-normal: .15rem;
  --text-stroke-thick: .2rem;
  --nav-height: 0px;
  --highlight: var(--shift-magenta);
  --basics-text: var(--text-color);
}

/* TYPEFACES */

/* @font-face {
  font-family: "authentic";
  src:
    url("./cssassets/AUTHENTICSans-Condensed-150.woff") format("woff");
} */

@font-face {
  font-family: "shifted-authentic-cond";
  src:
    url("../typefaces/Shifted-AUTHENTICSans-Condensed150.woff2") format("woff2");
}

@font-face {
  font-family: "shifted-authentic";
  src:
    url("../typefaces/AUTHENTICSans-150-Shifted.woff") format("woff");
}

@font-face {
  font-family: "adelphe";
  src:
    url("../typefaces/Adelphe-GerminalBoldItalic.woff") format("woff");
}

@font-face {
  font-family: "anthony";
  src:
    url("../typefaces/Anthony.woff") format("woff");
}

@font-face {
  font-family: "banana";
  src:
    url("../typefaces/Banana-Outline-Regular.woff") format("woff");
}

@font-face {
  font-family: "dindong";
  src:
    url("../typefaces/DINdong.woff") format("woff");
}

@font-face {
  font-family: "courgette";
  src:
    url("../typefaces/Courgette-Regular.ttf") format("truetype");
}

@font-face {
  font-family: "cirruscumulus";
  src:
    url("../typefaces/CirrusCumulus.woff") format("woff");
}

@font-face {
  font-family: "nudles";
  src:
    url("../typefaces/Nudles-Bold.woff") format("woff");
}

@font-face {
  font-family: "euripides";
  src:
    url("../typefaces/Euripides-SemiBold_web.woff") format("woff");
}

@font-face {
  font-family: "kottaOne";
  src:
    url("../typefaces/KottaOne-Regular.ttf") format("truetype");
}

@font-face {
  font-family: "fredokaOne";
  src:
    url("../typefaces/FredokaOne-Regular.ttf") format("truetype");
}

@font-face {
  font-family: "astloch";
  src:
    url("../typefaces/Astloch-Bold.ttf") format("truetype");
}

/* RESETS ---------------------------------------- */

* {
  box-sizing: border-box;
}

html,
body,
div,
span,
applet,
object,
iframe,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
a,
abbr,
acronym,
address,
big,
cite,
code,
del,
dfn,
em,
img,
ins,
kbd,
q,
s,
samp,
small,
strike,
strong,
sub,
sup,
tt,
var,
b,
u,
i,
center,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
label,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td,
article,
aside,
canvas,
details,
embed,
figure,
figcaption,
footer,
header,
hgroup,
menu,
nav,
output,
ruby,
section,
summary,
time,
mark,
audio,
video {
  margin: 0;
  padding: 0;
  border: 0;
  margin-block-end: 0;
  margin-block-start: 0;
}

button {
  all: unset
}

ol,
ul {
  list-style: none;
}

details>summary {
  list-style: none;
  cursor: pointer;
}

details>summary::-webkit-details-marker {
  display: none;
}

dialog {
  inset: unset;
}

/* GENERAL STYLING ---------------------------------------- */

html,
body {
  height: 100%;
  width: 100%;
  position: relative;
  overflow-x: hidden;
  overflow-y: hidden;
  font-family: 'shifted-authentic', sans-serif;
  font-feature-settings: "calt" on;
  font-variant-ligatures: discretionary-ligatures;
  padding: 0;
  margin: 0;

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: background-image 0.3s ease;
}

body {
  display: flex;
  flex-direction: column;
}

img {
  display: block;
  width: auto;
}

h1,
h2,
h3,
h4,
h5 {
  padding: .2rem .5rem;
  color: var(--text-color);
  line-height: 110%;
}

h3 {
  padding-top: 0;
}

p {
  margin-block-start: .3rem;
  margin-block-end: .3rem;
  color: var(--text-color);
  font-size: var(--text-medium);
}

main {
  overflow-y: hidden;
  overflow-x: auto;
  height: 100%;
  width: 100%;
}

/* GLOBAL SCROLLBAR STYLE ---------------------------------------- */

.styled-scrollbars {
  --scrollbar-foreground: black;
  --scrollbar-background: transparent;
  scrollbar-color: var(--scrollbar-foreground) var(--scrollbar-background);
  scrollbar-width: thin;
  border-radius: 0px;
}

.styled-scrollbars::-webkit-scrollbar {
  width: var(--scrollbar-height);
  /* Mostly for vertical scrollbars */
  height: var(--scrollbar-height);
  scrollbar-width: thin;
  /* Mostly for horizontal scrollbars */
}

.styled-scrollbars::-webkit-scrollbar-thumb {
  /* Foreground */
  background: var(--scrollbar-foreground);
  border-radius: 0px;
  
}

.styled-scrollbars::-webkit-scrollbar-track {
  /* Background */
  background: var(--scrollbar-background);
  border-radius: 0px;
  scrollbar-width: thin;

}

/* UTILITY CLASSES ---------------------------------------- */

.under-construction {
  background-image: linear-gradient(45deg, var(--shift-orangered) 25%, var(--shift-yellow) 25%, var(--shift-yellow) 50%, var(--shift-orangered) 50%, var(--shift-orangered) 75%, var(--shift-yellow) 75%, var(--shift-yellow) 100%);
  background-size: 100%;
}

.non-breaking {
  white-space: nowrap;
}

.hide {
  display: none !important;
}

.hidden {
  display: none !important;
}

.invisible {
  visibility: hidden !important;
}

.absolute-center {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: fit-content;
  height: fit-content;
}

.link-inactive {
  color: darkgrey;
  pointer-events: none;
}

.pointer {
  cursor: pointer;
}

.underline {
  text-decoration: underline;
}

.underline-thick {
  text-decoration-thickness: var(--text-stroke-thick);
  text-decoration: underline;
  text-underline-offset: .5rem;
}

.inlineshading {
  text-decoration: underline;
  text-decoration-thickness: 2rem;
  text-decoration-color: var(--shift-magenta);
  text-underline-offset: -1.2rem;
  text-decoration-skip-ink: none;
}

.padding-left {
  padding-left: 1rem;
}

.padding-bottom {
  padding-bottom: 1rem;
}

.mail-dialog {
  display: none;
}

.authenticsans {
  font-family: 'shifted-authentic', sans-serif;
}

.clickable {
  text-decoration: underline;
  text-decoration-style: dotted;
}

.low-opacity {
  opacity: .5;
}

/* SPECIFIC STYLING ------------------------------------------------------------------------------------------------------------------------ */

/* HEADER / NAVIGATION ---------------------------------------- */

.header {
  width: 100%;
  position: absolute;
}

.nav-extralarge {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  justify-content: center;
}


.nav-extralarge .navlist>* {
  font-size: 5rem;
  line-height: 110%;
  filter: none;
  text-underline-offset: .6rem;
  text-decoration-thickness: .6rem;
  font-feature-settings: "calt" on !important;
  justify-content: center;

}

nav {
  position: relative;
  width: 100%;
}

.navlist {
  padding: .5rem .5rem;
  display: flex;
  flex-direction: row;
  justify-content: left;
  margin: 0;
  z-index: 2;
  font-weight: bold;
  flex-wrap: wrap;
  width: 100%;
  position: relative;
  font-size: var(--text-medium);
  line-height: 115%;
  transition: transform 500ms;
  pointer-events: none;
}

.navlist>span {
  height: fit-content;
  display: inline;
  paint-order: stroke fill;
}

.navlist>a {
  height: fit-content;
  display: inline;
  pointer-events: all;
  -webkit-text-stroke-width: var(--text-stroke-thin);

}

.navlist>a:hover,
button:hover {
  -webkit-text-stroke-width: .3rem;
}

.navlist>button,
a {
  width: fit-content;
  font-family: 'shifted-authentic', sans-serif;
  cursor: pointer;
  transition: all 500ms;
  height: fit-content;
  flex-shrink: 0;
  text-decoration: underline;
  text-underline-offset: .2rem;
  text-decoration-thickness: var(--text-stroke-thick);
  pointer-events: all;
  paint-order: stroke fill;
  font-feature-settings: "calt" on !important;
}

.navlist > * {
  background-color: white;
  /* filter: blur(.1px); */
  color: black;
  -webkit-text-stroke-color: black;
  transition: all 300ms;
  white-space: pre;
  /* padding: .1rem; */
  margin: .05rem;
}

.nav-bottom {
  position: relative;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 10;
}

.nav_low-opacity {
  opacity: .5;
}

.nav_low-opacity:hover {
  opacity: 1;
}

.menuButtonActive {
  -webkit-text-stroke-color: var(--shift-orangered) !important;
}

/* MANIFESTO ---------------------------------------- */

.manifesto-container {
  padding-top: calc(var(--nav-height) + .5rem);
  /* padding-bottom: calc(var(--navigation-bottom-upperbound) + 0.5rem); */
  padding-bottom: calc(var(--nav-height) + .5rem);
  /* background-color: var(--shift-lavender); */
}

/* FRONTPAGE ---------------------------------------- */

#frontpage {
  width: 100%;
  height: 100%;
  position: relative;
}

.frontpage-image {
  height: 100%;
  width: 100%;
  object-fit: cover;
}

.frontpage-headline {
  position: absolute;
  font-family: 'banana';
  width: 100%;
  text-align: center;
  bottom: 2rem;
  color: var(--shift-orangered);
  -webkit-text-stroke-color: var(--shift-stoneblue);
  -webkit-text-stroke-width: var(--text-stroke-thick);
  paint-order: stroke fill;
  font-size: var(--headline-large);
  padding: .3rem;
  line-height: 2rem;
  z-index: 10;
}

/* CALENDAR ---------------------------------------- */

#calendar {
  height: 100%;
  width: 100%;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  overflow-x: hidden;
  overflow-y: hidden;
  gap: .2rem;
  justify-content: center;
}

.calendar_card {
  padding-top: var(--nav-height);
  padding-bottom: var(--nav-height);
  width: calc(100dvw / 3);
  height: 100%;
  max-width: 60%;
  position: relative;
  flex-shrink: 0;
  overflow: auto;
  background-color: white ! important;
  border-right: 3px solid grey;
  border-left: 3px solid grey;
  transform: rotate(-.2deg);
  overflow-x: hidden;
  white-space: wrap;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  flex-shrink: 1;
  transition: width 500ms;
}

.calendar_card-expanded {
  width: 50dvw;
}

.calendar_dateline {
  font-size: var(--headline-small);
  text-align: left;
  padding: .2rem;
}

.calendar_heroimage {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.calendar_card:last-child {
  border-bottom: none;
}

/* .calendar_headline-wrapper {
  width: calc(100% - .6rem);
  height: fit-content;
  aspect-ratio: 7/5;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: white;
  margin: .3rem; 
} */

.calendar_headline-wrapper > h2 {
  /* font-family: attr(data-typeface), 'authentic'; */
  font-size: var(--headline-small);
  line-height: 120%;
  text-decoration: underline;
  text-decoration-thickness: var(--text-stroke-thick);
  text-decoration-color: black;
  /* rotate: -35deg; */
  text-align: left;
  cursor: pointer;
}

.calendar_production-description > * {
  font-size: var(--text-small);
  line-height: 120%;
  padding: .5rem;
  text-justify: inter-word;
  color: var(--text-color);
}

/* EDITORIAL ---------------------------------------- */

.stories {
  height: 100%;
  width: 100%;
  position: relative;
  padding: 0.5rem 1rem;
  overflow-y: auto;
  overflow-x: hidden;
}

.editorial>li {
  font-size: var(--headline-medium);
}

.editorial-index_container {
  height: fit-content;
  width: fit-content;
  max-height: 80%;
  position: fixed;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  text-align: center;
  overflow-y: auto;
  overflow-x: hidden;
  display: flex;
  flex-direction: row;
    align-items: center;
  justify-content: center;
  gap: .5rem;
  padding-left: .5rem;
  z-index: 10;
}

.editorial-index {
  height: fit-content;
  width: 50dvw;
  display: flex;
  flex-direction: column;
  gap: .5rem;
  align-items: center;
  justify-content: center;
}

#editorial-index_toggle {
  text-align: center;
  font-size: var(--text-medium);
  writing-mode: vertical-rl;
  font-family: 'shifted-authentic', sans-serif;
  text-decoration: underline;
  cursor: pointer;
  letter-spacing: 1px;
  background-color: white;
}

.editorial-index_item {
  font-size: var(--text-medium);
  text-decoration: underline;
  text-decoration-thickness: var(--text-stroke-thick);
  text-decoration-color: black;
  cursor: pointer;
}

.editorial-index_item a {
  background: white;
}

.editorial-index_item:hover {
  letter-spacing: 1px;
}

.story {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overflow-x: hidden;
  padding: var(--nav-height) 4rem;
  background-color: yellow;
}

.story-wrapper img {
  width: 100%;
  height: auto;
}

    /* BASIC STYLES FOR THE STORIES */

.section-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);

}

.column {
  grid-column: span var(--span);
}

.blocks:has(h1, h2, h3) {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 1rem;
}

.blocks h1, .blocks h2, .blocks h3 {
  margin: 0;
  padding: 0;
  rotate: -25deg;
  width: fit-content;
  height: fit-content;
}

.blocks img {
  width: 100%;
  height: auto;
}

/* ARCHIVE ---------------------------- */

#archive {
  padding: 0;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  height: 100%;
}

.archive-entry {
  position: relative;
  height: 100%;
  flex-shrink: 0;
}

.archive-entry:last-child {
  width: 100%;
}
.archive-entry:last-child .hero-image {
  margin: 0;
}

.archive-entry_popover-button {
  max-width: 50vh;
  text-align: center;
  font-size: var(--text-medium);
  line-height: 130%;
  position: absolute;
  top: 50%;
  left: .6rem;
  transform: translateY(-50%);
  writing-mode: vertical-rl;
  color: black;
  /* -webkit-text-stroke-color: black;
  -webkit-text-stroke-width: var(--text-stroke-normal);
  paint-order: stroke fill; */
  font-family: 'shifted-authentic', sans-serif;
  /* font-family: attr(data-typeface), 'authentic'; */
  text-decoration: underline;
  text-decoration-thickness: var(--text-stroke-thick);
  text-decoration-color: black;
  cursor: pointer;
  letter-spacing: 5px;
}

.button_highlight {
  background-color: rgb(255, 255, 255);
  padding: .3rem;
}

.button {
  text-decoration: underline;
  text-decoration-thickness: var(--text-stroke-thick);
  cursor: pointer;
}

.popover_close-button {
  position: absolute;
  top: .5rem;
  right: 1.1rem;
  font-size: var(--text-medium);
}


/* how do we position a popover */ 
.archive-entry_popover {
  top: 0;
  right: 0;
  height: 100dvh;
  width: calc(100% - (attr(data-offsetleft px) + 0.6rem));
  background-color: rgb(228, 228, 228);
  border: none;
  margin: 0;
  padding: 0;
  /* max-width: 100%; */
  max-height: 100%;
  /* mix-blend-mode: color-burn; */
}

.popover_flex-container {
  height: 100%;
  width: 100%;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  mix-blend-mode: normal;
}

.popover_text-content {
  width: 40%;
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  padding: .5rem;
}


.production_description {
  font-size: var(--text-small);
  paint-order: stroke fill;
  width: 100%;
  height: fit-content;
  align-self: flex-end;
  pointer-events: all;
}

/* .production_description-container {
  z-index: 6;
  width: 100%;
  height: fit-content;
  max-height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  border-radius: 3%;
} */

.production_description > * {
  font-size: var(--text-small);
  line-height: 120%;
}

.production_description > *:first-child {
  margin-block-start: 0;
}

.archive-entry_image-container {
  width: 100%;
  height: fit-content;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  overflow-y: hidden;
  overflow-x: auto;
  border-radius: var(--border-radius);
}

.hero-image {
  height: 100%;
  width: auto;
  max-height: 100dvh;
  max-width: 100%;
  margin: 0 auto;
  object-fit: contain;
}

.hero-placeholder {
  background-color: attr(data-backgroundcolor);
  height: 100%;
  width: 60dvw;
}

.popover_gallery {
  width: 60%;
  height: 100%;
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  position: relative;
  z-index: 0;
  overflow-y: auto;
  overflow-x: hidden;
}

.gallery_width-100 {
  width: 100%;
}

.popover_gallery > img {
  height: auto;
  width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* FOOTER */

.footerbutton {
  cursor: pointer;
  text-decoration: underline;
  text-decoration-style: dotted;
}

#footer {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: fit-content;
  z-index: 11;
}

.footer_content-container {
  padding: .5rem;
  width: 100%;
  height: fit-content;
  background-color: rgb(183, 183, 183);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto;
  gap: .5rem;

}

.footer_content-container * {
  font-size: var(--text-small) !important;
  color: rgb(0, 0, 0) !important;
}

.footer_column {
  grid-column: span 1;
  /* display: flex;
  flex-direction: column;
  align-items: bottom; */
}

/* OVERRIDE UTILS */

.zindex2 {
  z-index: 2;
}


.mobileonly {
  display: none;
}

/* MEDIA QUERIES ------------------- */

@media screen and (max-width: 900px) {
  .mobileonly {
    display: block;
  }

  .hide-on-mobile {
    display: none;
  }

  #calendar {
    padding: 0 !important;
  }

  /* .gallery-image-container {
    height: calc(97dvh - 4rem);
  } */

  .calendar-scroll-container {
    flex-direction: column;
    width: 100%;
    height: 100%;
    overflow: auto;
  }

  .calendar-card {
    width: 100%;
    min-height: 30dvh;
    height: fit-content;
  }

  .zindex2 {
    display: flex;
    flex-direction: column-reverse;
  }

  .description-background {
    display: none;
  }

  .showdescription {
    padding-top: 0;
  }

  .zindex2 .archive-entry_text-content {
    flex-direction: column;
    position: relative;
    background-color: var(--shift-deepred);
  }

  /* ARCHIVE ENTRIES */
  .archive-entry_text-content>* {
    width: 100%;
  }

  .navlist {
    z-index: 20;
  }

}