@font-face {
  font-family: "Forma DJR Mono";
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  src: url("/fonts/FormaDJRMono.woff2") format("woff2");
}

html {
  --color-text: #fff;
  --color-background: #000;
  --color-magenta: #ec008b;
  --color-cyan: #00adef;
  --color-yellow: #fff100;
  --color-black: #000000;
  --color-darkgrey: #111111;
}

::selection {
  background-color: hsla(0, 0%, 0%, 50%);
}
body {
  font-family: var(--font-text);
  overflow-x: hidden;
  max-width: 100vw;
  color: var(--color-text);
  background-color: #e61a3d;
  background-color: #ec008b;

  --font-text: "Forma DJR Mono", monospace;
}

p {
  line-height: 1.4;
  max-width: 60ch;
  margin-bottom: 1em;
}

p,
figcaption {
  font-size: 1.4rem;
}

a {
  transition: 0.3s;
  color: #ffff00;
  text-decoration: none;
}
a:hover {
  font-weight: bold;
}

.djr-nav {
  background: #000;
}
.page-nav {
  /* background: var(--color-yellow); */
  display: grid;
  grid-auto-flow: column;
  padding: 0;
  justify-content: space-between;
  /* gap: 3vw; */
  /* margin-top: -1.5rem; */
  margin-inline: 0.75rem;
  transform: translateY(-50%);
  margin-bottom: -1.5rem;
  position: sticky;
  top: 0;
  z-index: 3;
  /* height: 0 */
}
.page-nav a {
  color: var(--color-white);
  background: var(--color-black);
  padding: 0.75rem 1rem 0.5rem 1rem;
  border: none;
  border-radius: 0.3rem;
}
@media (min-width: 72rem) {
  .page-nav {
    gap: 3vw;
    justify-content: center;
  }
}
.section-content figure {
  margin: 3rem 0 3rem 0;
}
.section-content figure img {
  width: 100%;
}
.page-nav__link {
  font-size: 1.5rem;
  font-weight: 700;
  text-decoration: none;
  color: inherit;
}

.section {
  padding: 3rem;

  padding-inline: 1rem;

  + .section-timetable {
    max-width: none;
  }
}
.section-hero {
  padding: 5rem 2rem;
  margin-left: auto;
  margin-right: auto;
  background: var(--color-cyan);

  .solari-title {
    margin-bottom: 3rem;
  }
}
.section-timetable {
  padding-inline: 0;
  background: #000;
  overflow: hidden;
}

#credits {
  background: var(--color-cyan);
}

@media (min-width: 72rem) {
  .section {
    padding: 6rem;
  }
  .page-nav {
    padding-inline: 5rem;
  }
  .section-hero {
    padding: 2rem;
  }
  .section-timetable {
    padding-inline: 1rem;
  }
}
@media (min-width: 1480px) {
  .section,
  nav {
    margin-inline: auto;
    padding-inline: 0;
    padding: 6rem;
  }
}
.to-right {
  margin-left: auto;
}

figcaption {
  font-weight: 700;
}

.section-subtitle {
  font-size: clamp(2rem, 6vw, 6rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1em;
}
.section-subtitle.to-right {
  max-width: 20ch;
}

.section-deck {
  font-size: clamp(1.4rem, 4vw, 4rem);
  line-height: clamp(1em, 30vw, 1.4em);
  margin-bottom: 1em;

  @media (min-width: 72rem) {
    font-weight: 350;
  }

  a {
    text-decoration: none;
    font-weight: 500;

    &:hover {
      font-weight: 700;
    }
  }
}

.solari-title {
  font-size: min(21vw, 13rem);
  line-height: 1;
  display: grid;
  gap: 0.5rem;
  justify-content: center;
  text-transform: uppercase;
}
.solari-title__row {
  display: grid;
  gap: 0.5rem;
  grid-template-columns: repeat(5, minmax(0, 13rem));
}
.solari-title__cell {
  padding-top: var(--cell-padding-top);

  --cell-background: #111;
  --cell-border-radius: max(0.25rem, 0.5vw);
}
.solari-cell {
  position: relative;
  z-index: 1;
  display: flex;
  place-content: center;

  white-space: pre;
  border-radius: var(--cell-border-radius);
  background-color: var(--color-background);

  --cell-padding-top: 2vw;
  --rotationX: 0deg;
  --cell-border-radius: max(0.25rem, 0.5vw);
}
.solari-cell.solari-title__cell {
  --cell-padding-top: 1.5vw;
}
.solari-cell:before {
  position: absolute;
  z-index: 4;
  top: calc(50% - 0.5px);
  right: 0;
  left: 0;
  display: block;
  width: 100%;
  height: 1px;
  content: "";
  background-color: var(--cell-background);
}
.solari-cell .current {
  position: absolute;
  z-index: 2;
  top: 0;
  left: 0;
  width: 100%;
  padding-top: var(--cell-padding-top);
  color: transparent;
  border-radius: var(--cell-border-radius);
}
.solari-cell .current:before,
.solari-cell .current:after {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  display: grid;
  place-content: center;
  padding-top: var(--cell-padding-top);
  content: attr(data-char);
  border-radius: var(--cell-border-radius);
  background-color: var(--cell-background);

  -webkit-transform-style: preserve-3d;
  transform-style: preserve-3d;
}
.solari-cell .current:before {
  color: var(--color-text);
  -webkit-clip-path: polygon(0 50%, 100% 50%, 100% 100%, 0 100%);
  clip-path: polygon(0 50%, 100% 50%, 100% 100%, 0 100%);
}
.solari-cell .current[data-char=" "]:before,
.solari-cell .current[data-char=" "]:after {
  content: "\00a0";
}
.solari-cell .current:after {
  z-index: 2;
  -webkit-transform: rotateY(1deg) rotateX(var(--rotationX));
  transform: rotateY(1deg) rotateX(var(--rotationX));
  color: var(--color-text);
  -webkit-clip-path: polygon(0 0, 100% 0, 100% 50%, 0 50%);
  clip-path: polygon(0 0, 100% 0, 100% 50%, 0 50%);

  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}
.solari-cell .next:before {
  position: absolute;
  z-index: 4;
  top: 0;
  right: 0;
  left: 0;
  left: 0;

  display: flex;
  place-content: center;
  padding-top: var(--cell-padding-top);
  content: attr(data-char);
  -webkit-transform: rotateY(1deg) rotateX(calc(var(--rotationX) - 180deg));
  transform: rotateY(1deg) rotateX(calc(var(--rotationX) - 180deg));
  border-radius: var(--cell-border-radius);
  background-color: var(--cell-background);
  -webkit-clip-path: polygon(0 49%, 100% 49%, 100% 100%, 0 100%);
  clip-path: polygon(0 49%, 100% 49%, 100% 100%, 0 100%);

  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  -webkit-transform-style: preserve-3d;
  transform-style: preserve-3d;
}
.content-image {
  position: relative;
  margin-bottom: max(1em, 3vw);
}
.content-image img {
  margin-bottom: max(0.5em, 1.5vw);
  background-color: var(--color-text);
}
.badge {
  font-size: 5vw;
  font-weight: 800;
  line-height: 0.9;
  position: absolute;
  display: grid;
  place-content: center;
  width: 35vw;
  aspect-ratio: 3 / 2;
  -webkit-transform: translateY(-50%) translateX(-30%) rotate(-20deg);
  transform: translateY(-50%) translateX(-30%) rotate(-20deg);
  text-align: center;
}
.badge--to-bottom-right {
  right: 0;
  bottom: 0;
  -webkit-transform: translateY(50%) translateX(30%) rotate(20deg);
  transform: translateY(50%) translateX(30%) rotate(20deg);
}
.badge span {
  position: relative;
  z-index: 1;
  max-width: 8ch;
}
.badge svg {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;

  -o-object-fit: contain;
}
.timetable {
  /* font-size: max(1rem, 7vw); */
  font-size: max(1rem, 10.5vw);
  position: relative;
  padding: max(1rem, 3vw);
  text-transform: uppercase;
  background-color: var(--color-background);

  --cell-background: hsl(0, 0%, 10%);
}
@media (min-width: 30rem) {
  .timetable {
    font-size: clamp(1rem, 3.55vw, 3.5rem);
  }
}
@media (min-width: 72rem) {
  .timetable {
  }
}
.timetable:before {
  position: absolute;
  top: -2vw;
  right: 0;
  left: 0;
  display: block;
  width: 100%;
  height: 1rem;
  content: "";
  background-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGZpbGw9Im5vbmUiIHZpZXdCb3g9IjAgMCAyMzY5IDMwIj4KICA8cGF0aCBmaWxsPSIjMDAwIiBkPSJNMjM0MiAyNy41IDIzMzAgNGgyNGwtMTIgMjMuNVpNMTg0MSAyNy41IDE4MjkgNGgyNGwtMTIgMjMuNVpNMTM1MyAyNy41IDEzNDEgNGgyNGwtMTIgMjMuNVpNMjIyIDI3LjUgMjEwIDRoMjRsLTEyIDIzLjVaTTQ3NyAxNWExNSAxNSAwIDEgMS0zMCAwIDE1IDE1IDAgMCAxIDMwIDBaIi8+Cjwvc3ZnPgo=");
  background-repeat: no-repeat;
}
.timetable__row {
  display: grid;
  gap: 0.25rem;
  grid-template-columns: 2fr 4fr;
  margin-bottom: 1px;
}
@media (min-width: 30rem) {
  .timetable__row {
    grid-template-columns: 2fr 4fr 3fr;
  }
}
@media (min-width: 41rem) {
  .timetable__row {
    grid-template-columns: 2fr 4fr 3fr 1fr;
  }
}
.timetable__row--header {
  margin-bottom: 0.5em;
  padding-bottom: 0.3em;
  border-bottom: 2px solid currentColor;
}
.timetable__row div {
  display: grid;
  grid-auto-flow: column;
  gap: 1px;
  justify-content: start;
}
.timetable__row div:after {
  display: block;
  width: 1.1ch;
  content: "";
  border-radius: max(0.25rem, 0.5vw);
  /* border: 1px solid #333; */
  background-color: var(--cell-background);
}
.timetable__row.timetable__row--header div:after {
  content: none;
}
.timetable__row div:nth-child(1) {
  display: none;
}
.timetable__row div:nth-child(3) {
  display: none;
}
@media (min-width: 30rem) {
  .timetable__row div:nth-child(1) {
    display: grid;
  }
  .timetable__row div:nth-child(3) {
    display: grid;
  }
}
.timetable__row div:nth-child(4) {
  display: none;
}
@media (min-width: 41rem) {
  .timetable__row div:nth-child(4) {
    display: grid;
  }
}

.timetable__cell {
  background-color: var(--cell-background);

  --cell-padding-top: 0;

  /* border: 1px solid #333; */
}
.section-specimens {
  background-color: var(--color-section-background);
}
.section-specimens--default {
  --color-section-content: var(--color-text);
  --color-section-background: var(--color-magenta);
  --color-section-ui: var(--color-yellow);
  --color-section-ui-text: var(--color-darkgrey);
}
.section-specimens--black {
  --color-section-content: var(--color-text);
  --color-section-background: var(--color-darkgrey);
  --color-section-ui: var(--color-text);
  --color-section-ui-text: var(--color-darkgrey);
}
.section-specimens--white {
  --color-section-content: var(--color-darkgrey);
  --color-section-background: var(--color-text);
  --color-section-ui: var(--color-darkgrey);
  --color-section-ui-text: var(--color-text);
}
.specimen-theme {
  margin-left: auto;
  background: var(--color-section-background);
  border: 1px solid currentColor;
  padding: 0.5rem 1rem;
  border-radius: 0.15em;
  cursor: pointer;
  margin-bottom: 1.5rem;
  z-index: 3;
  color: var(--color-section-ui);
  display: grid;
  grid-auto-flow: column;
  position: sticky;
  top: 2rem;
  align-items: center;
  gap: 1rem;
  text-transform: uppercase;
}
.specimen-theme svg {
  width: 2rem;
  aspect-ratio: 1;
  fill: currentColor;
  stroke: var(--color-section-background);
}
.specimen-theme path {
  transition: all 0.3s cubic-bezier(0.19, 1, 0.22, 1);
}
.specimen-theme:hover path:nth-of-type(1) {
  transform: rotate(90deg);
}
.specimen-theme:hover path:nth-of-type(2) {
  transform: rotate(45deg);
}
.specimen {
  margin-bottom: 1rem;
  overflow-x: hidden;
  min-height: calc(var(--sample-font-size) + 7.5rem);
  accent-color: var(--color-background);
  --sample-font-size: clamp(4.1rem, -0.46226415094339757rem + 18.716981132075475vw, 7.2rem);
}
@media (min-width: 41rem) {
  .specimen {
    /* Magic numbers to perfectly scale from a min of 7.2rem -> 12.9rem font-size between 656px and 1151px screen sizes */
    min-height: calc(var(--sample-font-size) + 3.6rem);
    --sample-font-size: clamp(7.2rem, -0.35393939393939355rem + 18.424242424242422vw, 12.9rem);
  }
}
@media (min-width: 72rem) {
  .specimen {
    /* Magic numbers to perfectly scale from a min of 11.1rem -> 16.2rem font-size between 652px and 1600px screen sizes */
    --sample-font-size: clamp(11.1rem, -2.0142857142857125rem + 18.21428571428571vw, 16.2rem);
  }
}
.specimen__controls {
  display: grid;
  column-gap: 1rem;
  row-gap: 0.5rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-content: center;
  justify-content: space-between;
  margin-bottom: 2rem;
  padding-top: 1px;
  z-index: 1;
  position: relative;

  -webkit-column-gap: 1rem;
  -moz-column-gap: 1rem;
}
@media (min-width: 41rem) {
  .specimen__controls {
    margin-bottom: 0;
    grid-template-columns: repeat(4, auto);
  }
}
@media (min-width: 55rem) {
  .specimen__field {
    display: flex;
    gap: 1rem;
    align-items: center;
  }
}
.specimen__action {
  background: transparent;
  border: 1px solid var(--color-section-ui);
  color: var(--color-section-ui-text);

  border-radius: 0.15em;
  cursor: pointer;
  padding: 0.25rem 1rem;
  z-index: 1;
  position: relative;
}
.specimen__action span {
  display: inline-block;
  transform: rotate(0deg);
  transition: transform 0.1s ease-in-out;
}
.specimen__action:hover,
.specimen__action:focus,
.specimen__action:active,
.specimen__action:has(~ .specimen__menu:not(.specimen__menu--collapsed)) {
  background-color: var(--color-section-ui);
  color: var(--color-section-ui-text);
  border-color: var(--color-section-ui);
}
.specimen__action:active span,
.specimen__action:has(~ .specimen__menu:not(.specimen__menu--collapsed)) span {
  transform: rotate(180deg);
}
.specimen__menu {
  position: absolute;
  display: grid;
  gap: 0.25rem;
  max-width: max-content;
  /* grid-template-columns: 1fr 1fr; */
  width: 35rem;

  margin-top: 0.25rem;
  padding: 1rem 1.25rem;
  background-color: var(--color-section-ui);
  color: var(--color-section-ui-text);
  z-index: 2;
}
.specimen__menu--collapsed {
  display: none;
}
.specimen__menu:focus,
.specimen__menu:focus-within {
  display: grid;
}
.specimen__label {
  font-weight: 375;
  display: block;
  color: var(--color-section-ui);
  text-transform: uppercase;
  z-index: 2;
}
.specimen__field--checkbox .specimen__label {
  display: inline-block;
  cursor: pointer;
}
.specimen__input {
  cursor: pointer;
}
.specimen__input--select {
  font-size: 1.2rem;
  font-weight: 500;
  width: 100%;
  padding: 0;
  color: inherit;
  border: 0;
  background-color: transparent;
}

.specimen__sample-text {
  /* Magic numbers to perfectly scale from a min of 4.1rem -> 7.2rem font-size between 390px and 655px screen sizes */
  font-size: var(--sample-font-size);
  text-align: center;
  color: var(--color-section-content);
  word-wrap: break-word;
  margin-top: -0.5rem;
  margin-bottom: -2rem;
  line-height: 1;
}

.specimen__sample-text:focus {
  outline: none;
}

.specimen__scrim {
  position: fixed;
  z-index: 0;
  inset: 0;
}
.specimen__controls:has(.specimen__menu--collapsed) ~ .specimen__scrim {
  display: none;
}

.glyphs-grid {
  font-size: 5vw;
  font-size: clamp(2rem, 5vw, 3.5rem);
  display: grid;
  gap: 0.25em;
  grid-template-columns: repeat(8, auto);
  justify-content: space-between;
  place-items: center;
}
@media (min-width: 30rem) {
  .glyphs-grid {
    grid-template-columns: repeat(13, auto);
  }
}
.glyph {
  font-variation-settings: "wght" var(--glyph-weight, 400);
}

.glyphs-container {
  background: #000;
  padding: 4rem 0;
}

.section-glyphs {
  margin-bottom: 0;
}

.ss11 {
  font-feature-settings: "ss11";
}
