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

:root {
  font-size: 16px;
  --page-padding: 2rem;
  --color-text: #320065;
  --color-bg: #fff;
  --color-link: #080808;
  --color-link-hover: #fff;
  --color-list-item: #222;
  --color-title: #5b6b85;
  --color-number: #999;
  --color-bg-effect: #000;
  --blendmode-effect: difference;
  --bg-blur: 0px;
  --font-size-list-item: 18px;
  --filter-img: sepia(1) saturate(1) contrast(180%) brightness(80%)
    hue-rotate(295deg);
}

body {
  margin: 0;
  color: var(--color-text);
  background-color: var(--color-bg);
  font-family: "JetBrains Mono", monospace;
  font-weight: 400;
  font-optical-sizing: auto;
  text-transform: uppercase;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  overflow: hidden;
}

body::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background-image: repeating-linear-gradient(
    transparent,
    transparent 2px,
    #0000003d 3px
  );
  background-size: auto 100%;
  pointer-events: none;
}

main {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  max-width: 100vw;
  overflow: hidden;
  justify-content: space-between;
}

/* Links */
a {
  text-decoration: none;
  color: var(--color-link);
  outline: none;
  cursor: pointer;
}

a:hover {
  text-decoration: none;
  color: var(--color-link-hover);
  outline: none;
}

a:focus {
  outline: none;
}

a:focus-visible {
  outline: 2px solid red;
}

/* header (Navigation) */
.header {
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 1px;
  padding: var(--page-padding);
  position: relative;
  display: flex;
  align-items: start;
  pointer-events: none;
  justify-items: start;
  z-index: 1000;
  align-self: start;

  display: flex;
  flex-direction: column;
}

.header a {
  pointer-events: auto;
}

.header__title {
  grid-area: title;
  font-size: inherit;
  font-weight: inherit;
  margin: 0;
}

.header__title a {
  font-size: 1rem;
  color: #000;
}

.header__title a:hover {
  color: #fff;
}

.header__back {
  grid-area: back;
  justify-self: start;
}

/* Content */
.content {
  height: 100vh;
  overflow: hidden;
}

.content__title {
  color: var(--color-title);
  font-family: forma-djr-display, sans-serif;
  font-weight: 700;
  position: relative;
  z-index: 9999999;
  font-size: 24vw;
  mix-blend-mode: var(--blendmode-title);
  -webkit-text-stroke: 2px red;
  text-stroke: 2px red;
  -webkit-text-fill-color: transparent;
  text-fill-color: transparent;
  color: transparent;
  pointer-events: none;
  margin: 2rem;
  position: absolute;
  top: 10px;
  width: calc(100% - 4rem);
  max-width: 1400px;
}

/* List */
.list {
  margin: 0;
  padding: 2rem;
  width: 100%;
  list-style: none;
  display: flex;
  flex-direction: column;
  counter-reset: item 0;
  position: relative;
  z-index: 1000;
  margin-bottom: 60px;
}

.list__item {
  font-size: var(--font-size-list-item);

  width: 100%;
  display: grid;
  color: #000;
  grid-column-gap: 2rem;
  padding: 0.5rem 0;
  grid-template-columns: 100%;
  justify-content: space-between;
  align-items: start;
  justify-items: start;
  text-transform: uppercase;
}

.list__item:hover {
  color: #fff;
}

/* .list__item::before {
  color: var(--color-number);
  content: counter(item, decimal-leading-zero);
  counter-increment: item;
  font-weight: 400;
  padding: 3px 3px 0;
  line-height: 0.8;
} */

.list__item-col {
  flex: none;
  padding: 3px 3px 0;
  line-height: 0.8;
}

/* Hover Effects */
.hover-effect {
  font-kerning: none;
  position: relative;
  white-space: nowrap;
}

.hover-effect .word {
  white-space: nowrap;
}

.hover-effect .char {
  position: relative;
}

.hover-effect--bg {
  --anim: 0;
}

.hover-effect--bg::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: calc(100% + 3px);
  top: 0;
  background-color: var(--color-bg-effect);
  mix-blend-mode: var(--blendmode-effect);
  -webkit-backdrop-filter: blur(var(--bg-blur));
  backdrop-filter: blur(var(--bg-blur));
  transform-origin: 0% 50%;
  transform: scaleX(var(--anim));
}

/* Images */
.content__images {
  flex-direction: column;
  padding: 0 var(--page-padding) 2rem;
  justify-content: center;
  position: absolute;
  top: 0;
  height: 300px;
  display: flex;
  justify-content: center;
  align-items: center;
  isolation: isolate;
  display: none;
}

.content__img {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  will-change: transform;
  filter: var(--filter-img);
  max-width: 600px;
}

.content__logo {
  width: 100%;
  height: auto;
}

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

/* Footer */
.footer {
  position: absolute;
  bottom: 2rem;
  left: 1rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.footer__img {
  max-width: 90%;
  height: auto;
}

/* Mobile-specific styles */
@media screen and (max-width: 52.99em) {
  .content {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding-bottom: 2rem;
  }

  .list {
    margin-bottom: 200px;
  }
}

/* Responsive Design */
@media screen and (min-width: 40em) {
  .list__item {
    grid-template-columns: auto 1fr;
  }
}

.header__icon {
  width: 16px;
  height: 16px;
  position: relative;
  top: -1px;
}

.header__title a {
  display: flex;
  align-items: center;
  gap: 14px;
}

.header__subtitle {
  display: flex;
  align-items: center;
  gap: 14px;
  position: relative;
  top: -10px;
}

.header__date {
  margin: 5px 0 0 0;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 1px;

  color: #121212;
}

@media screen and (min-width: 53em) {
  :root {
    font-size: 18px;
  }

  .list {
    margin-bottom: 0;
  }

  .header {
    position: fixed;
    text-align: left;
    z-index: 999;
    bottom: 0;
    left: 0;
    width: 100%;
    max-width: none;
    padding: 2rem;
  }

  .header__title {
    margin: 0;
    font-weight: normal;
  }

  .content__title {
    top: 30%;
    margin: 2rem;
    bottom: auto;
    font-size: 27vw;
  }

  .content__images {
    display: flex;
  }

  .footer {
    position: absolute;
    bottom: 2rem;
    left: auto;
    right: 2rem;
  }
}

@media screen and (min-width: 73em) {
  .list__item {
    grid-template-columns: 50px 1fr;
  }
}
