@font-face {
  font-family: "Plex";
  src: url("/fonts/IBM-Plex-Sans-Variable.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 700;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --g0: #000;
  --g1: #0c0c0c;
  --g2: #242424;
  --g3: #777;
  --g4: #bdbdbd;
  --g5: #fff;
  --font: "Plex", sans-serif;
  --mono: Consolas, monospace;
  --t-xs: .8rem;
  --t-sm: 1rem;
  --t-md: 1.25rem;
  --t-lg: 1.5625rem;
  --t-xl: 1.953rem;
  --t-2xl: 2.441rem;
  --t-3xl: 3.052rem;
  --t-4xl: 3.815rem;
  --t-5xl: 4.768rem;
  --s1: .25rem;
  --s2: .5rem;
  --s3: 1rem;
  --s4: 1.5rem;
  --s5: 2.5rem;
  --s6: 4rem;
  --s7: 6rem;
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-inout: cubic-bezier(.76, 0, .24, 1);
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 0;
  overflow-x: hidden;
  background: var(--g0);
  color: var(--g5);
  font: 400 var(--t-sm)/1.5 var(--font);
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

button, input, select, textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

[hidden] {
  display: none !important;
}

::selection {
  background: var(--g5);
  color: var(--g0);
}

:where(a, button, input, select, textarea):focus-visible {
  outline: 2px solid var(--g5);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: -5rem;
  left: var(--s3);
  padding: var(--s2) var(--s3);
  background: var(--g5);
  color: var(--g0);
}

.skip-link:focus {
  top: var(--s3);
}

.site-header {
  position: fixed;
  z-index: 30;
  inset: 0 0 auto;
  height: 4.5rem;
  display: flex;
  align-items: center;
  gap: var(--s5);
  padding-inline: clamp(var(--s4), 4vw, var(--s6));
  border-bottom: 1px solid #ffffff33;
  transition: background .3s var(--ease-out), border-color .3s var(--ease-out);
}

.site-header.scrolled, .site-header.menu-open {
  background: #0c0c0cf2;
  border-color: var(--g2);
}

.brand {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  font-size: var(--t-md);
  font-weight: 700;
  letter-spacing: -.035em;
  line-height: 1;
}

.brand:hover {
  color: var(--g4);
}

.brand:active {
  color: var(--g3);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: var(--s4);
  margin-inline: auto;
}

.main-nav a, .header-actions a {
  font-size: var(--t-xs);
  font-weight: 600;
}

.site-header[data-auth-pending] .guest-only {
  visibility: hidden;
}

.main-nav a {
  color: var(--g4);
  padding-block: var(--s2);
  border-bottom: 1px solid transparent;
}

.main-nav a:hover, .main-nav a:focus-visible {
  color: var(--g5);
  border-color: var(--g5);
}

.main-nav a:active {
  color: var(--g3);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--s4);
  white-space: nowrap;
}

.header-register {
  color: var(--g4);
}

.header-register:hover {
  color: var(--g5);
  text-decoration: underline;
  text-underline-offset: .3rem;
}

.header-register:active {
  color: var(--g3);
}

.header-login {
  display: inline-flex;
  justify-content: center;
  min-width: 5.5rem;
  padding: .55rem .9rem;
  border: 1px solid var(--g4);
  transition: background .22s var(--ease-out), color .22s var(--ease-out);
}

.header-login:hover, .header-login:active {
  background: var(--g5);
  color: var(--g0);
}

.header-profile {
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
  min-height: 2.75rem;
  color: var(--g5);
  font-size: var(--t-xs);
  font-weight: 600;
}

.header-profile img {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  object-fit: cover;
  filter: grayscale(1);
}

.header-profile span {
  max-width: 12rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.locale-switch {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.75rem;
  min-height: 2.5rem;
  padding: var(--s2);
  border: 1px solid var(--g5);
  background: var(--g0);
  color: var(--g5);
  font: 650 var(--t-sm)/1 var(--font);
  cursor: pointer;
}

.locale-switch:hover {
  background: var(--g5);
  color: var(--g0);
}

.locale-switch:active {
  background: var(--g4);
  color: var(--g0);
}

.header-profile:hover span {
  text-decoration: underline;
  text-underline-offset: .3rem;
}

.header-profile:active {
  color: var(--g4);
}

.menu-toggle {
  display: none;
}

.menu-toggle:active {
  background: var(--g2);
}

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: var(--g0);
}

.hero-image {
  position: absolute;
  inset: 0;
  background: url("/media/hero-monochrome.webp") center/cover no-repeat;
  filter: grayscale(1) brightness(.85) contrast(1.06);
  transform: scale(1.01);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(61rem, calc(100% - 5rem));
  padding-block: 7rem 5rem;
}

.wordmark {
  display: flex;
  align-items: baseline;
  width: max-content;
  max-width: 100%;
  margin: 0;
  font-size: clamp(5.9rem, 11vw, 11.5rem);
  font-weight: 700;
  line-height: .95;
  white-space: nowrap;
  font-variation-settings: "wdth" 94;
}

.wordmark span + span {
  margin-left: -.055em;
}

.wordmark span:nth-child(2), .wordmark span:nth-child(3) {
  margin-left: -.095em;
}

.wordmark span:nth-child(5) {
  margin-left: -.07em;
}

.wordmark span:nth-child(6) {
  margin-left: -.04em;
}

.hero-lead {
  width: min(36ch, 100%);
  margin: var(--s5) 0 0 clamp(0rem, 5vw, 4rem);
  font-size: var(--t-md);
  line-height: 1.48;
  text-wrap: pretty;
}

.hero-actions {
  display: flex;
  gap: var(--s3);
  margin: var(--s5) 0 0 clamp(0rem, 5vw, 4rem);
}

.button {
  min-height: 3.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .7rem var(--s4);
  font-size: var(--t-sm);
  font-weight: 600;
  line-height: 1.2;
  border: 1px solid currentColor;
  transition: background .22s var(--ease-out), color .22s var(--ease-out), border-color .22s var(--ease-out);
}

.button-primary {
  min-width: 12.5rem;
  background: var(--g5);
  color: var(--g0);
}

.button-primary:hover {
  background: var(--g4);
  border-color: var(--g4);
}

.button-primary:active {
  background: var(--g3);
  border-color: var(--g3);
}

.button-secondary {
  min-width: 12.5rem;
  background: #00000055;
  color: var(--g5);
  border-color: var(--g4);
}

.button-secondary:hover {
  background: var(--g5);
  color: var(--g0);
}

.button-secondary:active {
  background: var(--g4);
  color: var(--g0);
}

@keyframes hero-sequence {
  from {
    opacity: 0;
    transform: translateY(1.5rem);
    clip-path: inset(0 0 100% 0);
  }

  to {
    opacity: 1;
    transform: translateY(0);
    clip-path: inset(0 0 0 0);
  }

}

.hero .wordmark {
  animation: hero-sequence .65s var(--ease-out) both;
}

.hero .hero-lead {
  animation: hero-sequence .65s var(--ease-out) .23s both;
}

.hero .hero-actions {
  animation: hero-sequence .65s var(--ease-out) .46s both;
}

@media (max-width: 800px) {
  .site-header {
    height: 4.25rem;
    padding-inline: var(--s4);
    gap: var(--s3);
  }

  .menu-toggle {
    flex: none;
    margin-left: auto;
    width: 2.5rem;
    height: 2.5rem;
    display: grid;
    align-content: center;
    gap: .35rem;
    padding: .5rem;
    background: none;
    border: 0;
  }

  .menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--g5);
    transition: transform .25s var(--ease-out);
  }

  .site-header.menu-open .menu-toggle span:first-child {
    transform: translateY(.2rem) rotate(45deg);
  }

  .site-header.menu-open .menu-toggle span:last-child {
    transform: translateY(-.2rem) rotate(-45deg);
  }

  .main-nav {
    position: absolute;
    inset: 4.25rem 0 auto;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin: 0;
    padding: var(--s3) var(--s4) var(--s4);
    background: var(--g1);
    border-bottom: 1px solid var(--g2);
  }

  .site-header.menu-open .main-nav {
    display: flex;
  }

  .main-nav a {
    padding: .8rem 0;
    border-bottom: 1px solid var(--g2);
    font-size: var(--t-sm);
  }

  .header-register {
    display: none;
  }

  .header-login {
    min-width: 4.5rem;
  }

  .header-profile span {
    max-width: 6rem;
  }

  .hero-image {
    background-position: 31% center;
    filter: grayscale(1) brightness(.65) contrast(1.05);
  }

  .hero-content {
    width: calc(100% - 3rem);
    padding-block: 7rem 4rem;
  }

  .wordmark {
    font-size: clamp(3.8rem, 12.5vw, 6rem);
  }

  .hero-lead, .hero-actions {
    margin-left: 0;
  }

  .hero-lead {
    max-width: 32ch;
  }

}

@media (min-width: 521px) and (max-width: 800px) {
  .hero-image {
    background-position: 16% center;
    filter: grayscale(1) brightness(.58) contrast(1.05);
  }

  .hero-content {
    padding-left: var(--s6);
  }
}

@media (max-width: 520px) {
  .brand {
    font-size: 1.1rem;
  }

  .hero-image {
    background-position: 11% center;
  }

  .hero-content {
    width: calc(100% - 2.5rem);
    padding-block: 6rem 3rem;
  }

  .wordmark {
    font-size: clamp(3.4rem, 17vw, 4.5rem);
  }

  .hero-lead {
    margin-top: var(--s4);
    font-size: var(--t-sm);
  }

  .hero-actions {
    display: grid;
    gap: var(--s2);
    margin-top: var(--s5);
  }

  .button {
    width: 100%;
  }

}

@media (max-width: 360px) {
  .site-header {
    padding-inline: var(--s3);
    gap: var(--s2);
  }

  .header-actions {
    gap: var(--s2);
  }

  .hero-content {
    width: calc(100% - 2rem);
  }

  .wordmark {
    font-size: 17vw;
  }

}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *, *::before, *::after {
    animation-duration: 0s !important;
    transition-duration: 0s !important;
  }

}
