@font-face {
  font-family: 'PP Radio Grotesk';
  src: url(/assets/fonts/PP_Radio_Grotesk/PPRadioGrotesk-Regular.otf);
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: 'PP Neue Machina';
  src: url(/assets/fonts/PP_Neue_Machina/PPNeueMachina-PlainRegular.otf);
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: 'Martian Mono';
  src: url(/assets/fonts/Martian_Mono/MartianMono-Bold.ttf);
  font-weight: 700;
  font-style: normal;
}

@font-face {
  font-family: 'Martian Mono';
  src: url(/assets/fonts/Martian_Mono/MartianMono-SemiBold.ttf);
  font-weight: 600;
  font-style: normal;
}

@font-face {
  font-family: 'Martian Mono';
  src: url(/assets/fonts/Martian_Mono/MartianMono-Medium.ttf);
  font-weight: 500;
  font-style: normal;
}

@font-face {
  font-family: 'Martian Mono';
  src: url(/assets/fonts/Martian_Mono/MartianMono-Regular.ttf);
  font-weight: 400;
  font-style: normal;
}




/* ———————————————————— PAGE ———————————————————— */

:root {
  --color--invert: 0;
  --color--background: hsl(0, 0%, 95%);
  --color--title: black;
  --color--text: hsl(0, 0%, 35%);
  --color--text-light: hsl(0, 0%, 65%);
  --color--gray: hsl(0, 0%, 85%);
  --color--overlay: rgba(240, 240, 240, 0.75);
  --color--svg: hsl(0, 0%, 85%);
  --color--input: white;

  --tag--width: 5rem;
  --ani--duration: 200ms;
  font-size: 18px;
}

:root[data-theme="dark"] {
  --color--invert: 1;
  --color--background: hsl(0, 0%, 5%);
  --color--title: white;
  --color--text: hsl(0, 0%, 70%);
  --color--text-light: hsl(0, 0%, 50%);
  --color--gray: hsl(0, 0%, 15%);
  --color--overlay: rgba(18, 18, 18, 0.75);
  --color--svg: hsl(0, 0%, 2.5%);
  --color--input: black;
}

* {
  box-sizing: border-box;
}

*::selection {
  background-color: var(--color--gray);
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100dvh;
  font-family: 'PP Radio Grotesk', sans-serif;
  font-weight: 400;
  text-rendering: optimizeLegibility;
  margin: 0;
  color: var(--color--text);
  background-color: var(--color--background);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

html {
  overflow-y: scroll;
}

p,
a {
  margin: 0;
  flex-direction: row;
  gap: 0.5rem;
  align-items: center;
  text-decoration: none;
  color: var(--color--text);
}

a {
  display: inline-flex;
}

a:hover {
  color: var(--color--title);
}

p,
h1 {
  cursor: default;
}

img {
  width: 100%;
}

button {
  all: unset;
  cursor: pointer;
}

input,
textarea {
  all: unset;
  background-color: var(--color--input);
}



/* ———————————————————— MAIN ———————————————————— */

main {
  width: calc(70ch + var(--tag--width) * 2);
  max-width: calc(100vw - 2rem);
  padding: 2rem calc(var(--tag--width) + 2rem) 8rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 6rem;
}

h1 {
  --h1--title: calc(7rem - max(960px - 100dvw, 0px) * 0.1666);
  padding-left: calc(var(--tag--width) * 0.925);
  font-family: 'PP Neue Machina';
  font-weight: 600;
  font-size: var(--h1--title);
  font-synthesis-weight: auto;
  letter-spacing: -0.2rem;
  line-height: calc(var(--h1--title) * 0.9);
  margin: 0;
  color: var(--color--title);
}

.content {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.paragraph {
  display: flex;
  flex-direction: row;
}

.paragraph--text {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  font-family: 'PP Radio Grotesk', sans-serif;
  font-weight: 400;
  line-height: 1.25rem;
  letter-spacing: 0.2px;
}

.paragraph--text a {
  text-decoration: underline;
  color: var(--color--title);
}

.label {
  min-width: var(--tag--width);
  max-width: var(--tag--width);
  font-family: 'Martian Mono';
  font-weight: 500;
  font-size: 0.75rem;
  pointer-events: none;
  user-select: none;
}

.label p {
  color: var(--color--text);
}

.paragraph .label {
  padding-top: 0.133rem;
}

.disabled {
  opacity: 0.5;
  pointer-events: none;
}

.return {
  width: 100%;
  padding-left: var(--tag--width);
  display: flex;
  justify-content: center;
}



/* ———————————————————— ENTRIES ———————————————————— */

.content.entries {
  margin-bottom: 3.5rem;
  gap: 2.5rem;
}

.entry {
  display: flex;
  flex-direction: row;
}

.entry--content {
  display: flex;
  flex-direction: column;
}

.entry a {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  cursor: pointer;
}

.entry a * {
  width: 100%;
}

.entry h2 {
  font-family: 'PP Neue Machina';
  font-weight: 600;
  font-size: 3.5rem;
  letter-spacing: -0.15rem;
  line-height: calc(var(--h1--title) * 0.9);
  margin: 0;
  padding: 0;
  color: var(--color--title);
  cursor: pointer;
  position: relative;
}

.entry h2:hover::after {
  content: '↗';
  padding-left: 0.75rem;
  position: absolute;
}



/* ———————————————————— NAV ———————————————————— */

nav {
  display: flex;
  flex-direction: row;
  align-items: center;
}

.nav--content {
  display: flex;
  flex-direction: row;
  align-items: center;
  width: 100%;
}

.nav--content div {
  flex: 1;
  font-family: 'Martian Mono';
  font-weight: 600;
  font-size: 0.75rem;
  color: var(--color--text);
  display: flex;
  justify-content: center;
  user-select: none;
}

.nav--content div:first-child {
  display: flex;
  justify-content: start;
}

.nav--content div:last-child {
  display: flex;
  justify-content: end;
  user-select: none;
}

#nav--title {
  color: var(--color--title);
}

#nav--button-container {
  display: flex;
  flex-direction: row;
  gap: 0.75rem;
}

#nav--button-container button,
#nav--button-container a {
  display: flex;
  justify-content: center;
  align-items: center;
}

#button--label {
  padding-right: 0.25rem;
}

.icon {
  width: 1rem;
  opacity: 0.75;
  filter: invert(var(--color--invert));
}

button:hover .icon,
a:hover .icon {
  opacity: 1;
}



/* ———————————————————— IMAGE ———————————————————— */

.image--container {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.image--container img {
  cursor: pointer;
}

.image--container p {
  font-size: 0.75rem;
  line-height: 0.825rem;
  letter-spacing: 0.0125rem;
  color: var(--color--text-light);
}

#overlay--container {
  z-index: 20;
  position: fixed;
  top: 0;
  left: 0;
  width: 100dvw;
  height: 100dvh;
  padding: 1.25rem 2.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: var(--color--overlay);
  backdrop-filter: blur(1px);
  pointer-events: none;
  user-select: none;
  opacity: 0;
  transition: opacity var(--ani--duration) ease-in-out;
}

#overlay--container.visible {
  opacity: 1;
  pointer-events: all;
  cursor: pointer;
}

#overlay--container img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
}



/* ———————————————————— FOOTER ———————————————————— */

.footer {
  display: flex;
  align-items: center;
  margin-top: calc(8rem + max(640px - abs(100dvw - 1280px), 0px) * 0.125);
  padding: 0.5rem 1.5rem;
  width: 100dvw;
  max-width: 1920px;
  font-size: 0;
  position: relative;
}

.footer svg {
  width: 100%;
  height: auto;
  fill: var(--color--svg);
}

.footer img {
  z-index: 10;
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 100dvw;
  max-width: 1280px;
  transform: translateX(-50%);
  mix-blend-mode: multiply;
  pointer-events: none;
  user-select: none;
}



/* ———————————————————— MOBILE ———————————————————— */

.mobile {
  display: none !important;
}

@media (max-width: 768px) {

  .mobile {
    display: flex !important;
  }

  .no-mobile {
    display: none !important;
  }

  main {
    width: calc(70ch + var(--tag--width) * 2);
    max-width: calc(100vw - 2rem);
    padding: 2rem 1rem 1rem;
    gap: 3rem;
  }

  h1 {
    padding: 0;
    font-size: 3.5rem;
    line-height: 3.2rem;
    letter-spacing: -0.1rem;
    margin: 0 0;
  }

  .content {
    gap: 2.5rem;
  }

  .paragraph {
    flex-direction: column;
    gap: 1rem;
  }

  .entry {
    flex-direction: column;
    gap: 0.5rem;
  }

  .entry h2 {
    font-size: 2rem;
    letter-spacing: -0.01rem;
  }

  .label {
    min-width: fit-content;
    max-width: fit-content;
    padding-right: 1rem;
  }

  nav .label {
    display: none;
  }

  #nav--button-container {
    gap: 1rem;
  }

  #button--label {
    display: none;
  }

  #overlay--container {
    padding: 0;
  }

  #overlay--image {
    padding: 0.5rem 1rem;
  }

  .footer {
    margin-top: 5.5rem;
    padding: 0;
  }

  .footer svg {
    padding: 0.25rem 0.5rem;
  }

}