@font-face {
  font-family: "IletisimLab Gothic";
  src: url("/assets/fonts/iletisimlab-gothic.otf") format("opentype");
  font-style: normal;
  font-weight: 600;
  font-display: block;
}

:root {
  color-scheme: dark;
  --black: #000000;
  --white: #f5f5f2;
}

* {
  box-sizing: border-box;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

html,
body {
  min-height: 100%;
  margin: 0;
  background: var(--black);
}

body {
  overflow: hidden;
  color: var(--white);
  font-family: "IletisimLab Gothic", "Arial Black", Arial, Helvetica, sans-serif;
}

.stage,
.about-stage {
  position: relative;
  display: grid;
  min-height: 100vh;
  min-height: 100svh;
  width: 100%;
  place-items: center;
  overflow: hidden;
  background: var(--black);
}

.brand-link {
  position: absolute;
  bottom: clamp(1.75rem, 4.5vh, 3rem);
  left: 50%;
  display: block;
  width: clamp(4.5rem, 6vw, 5.625rem);
  opacity: 0.9;
  line-height: 0;
  outline: none;
  transform: translateX(-50%);
  transition: opacity 180ms ease;
}

.brand-link:hover,
.brand-link:focus-visible {
  opacity: 0.58;
}

.brand-link:focus-visible {
  border-radius: 0.1rem;
  box-shadow: 0 0 0 1px var(--white);
}

.brand-logo {
  display: block;
  width: 100%;
  height: auto;
  pointer-events: none;
  user-select: none;
}

.type-link {
  display: grid;
  min-width: min(88vw, 80rem);
  min-height: 3em;
  place-items: center;
  padding: 2rem;
  color: var(--white);
  text-decoration: none;
  cursor: pointer;
  outline: none;
}

.type-line {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  font-size: clamp(2.5rem, 7.5vw, 7rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 0.92;
  opacity: 0;
  white-space: nowrap;
  transition: opacity 180ms ease;
}

.type-line.is-ready {
  opacity: 1;
}

.typed-text {
  display: inline-block;
}

.cursor {
  display: inline-block;
  width: 0.055em;
  height: 0.88em;
  margin-inline-start: 0.075em;
  background: currentColor;
  animation: blink 720ms steps(1, end) infinite;
}

.type-link:hover .type-line.is-ready {
  opacity: 0.72;
}

.type-link:focus-visible {
  box-shadow: inset 0 0 0 1px rgba(245, 245, 242, 0.72);
}

.home-link {
  position: absolute;
  top: clamp(1.5rem, 4.5vh, 3rem);
  left: clamp(1.5rem, 4.5vw, 4rem);
  display: grid;
  width: 1.5rem;
  height: 1.5rem;
  place-items: center;
  color: var(--white);
  opacity: 0.3;
  outline: none;
  transition: opacity 180ms ease;
}

.home-link svg {
  display: block;
  width: 1rem;
  height: 1rem;
}

.home-link:hover,
.home-link:focus-visible {
  opacity: 1;
}

.home-link:focus-visible {
  outline: 1px solid var(--white);
  outline-offset: 0.25rem;
}

.language-switch {
  position: absolute;
  top: clamp(1.5rem, 4.5vh, 3rem);
  right: clamp(1.5rem, 4.5vw, 4rem);
  display: flex;
  gap: 0.85rem;
}

.language-switch button {
  padding: 0.25rem 0;
  border: 0;
  background: transparent;
  color: var(--white);
  font: inherit;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  opacity: 0.3;
  cursor: pointer;
  transition: opacity 180ms ease;
}

.language-switch button:hover,
.language-switch button:focus-visible,
.language-switch button.is-active {
  opacity: 1;
}

.language-switch button:focus-visible {
  outline: 1px solid var(--white);
  outline-offset: 0.3rem;
}

.about-copy {
  width: min(calc(100% - 3rem), 40rem);
  font-family: "Elms Sans", "IletisimLab Gothic", Arial, Helvetica, sans-serif;
  text-align: center;
  opacity: 0;
  transform: translateY(0.35rem);
  transition: opacity 240ms ease, transform 400ms cubic-bezier(0.16, 1, 0.3, 1);
}

.about-copy.is-ready {
  opacity: 1;
  transform: translateY(0);
}

.about-copy p {
  margin: 0;
  font-size: clamp(0.95rem, 1.25vw, 1.2rem);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.35;
}

.about-copy p + p {
  margin-top: 1em;
  color: rgba(245, 245, 242, 0.58);
}

@keyframes blink {
  0%,
  46% {
    opacity: 1;
  }

  47%,
  100% {
    opacity: 0;
  }
}

@media (max-width: 640px) {
  .brand-link {
    bottom: 1.5rem;
    width: 4.5rem;
  }

  .language-switch {
    top: 1.5rem;
    right: 1.5rem;
  }

  .home-link {
    top: 1.5rem;
    left: 1.5rem;
  }

  .about-copy {
    width: calc(100% - 3rem);
  }

  .about-copy p {
    font-size: clamp(0.9rem, 4vw, 1.05rem);
    line-height: 1.38;
  }

  .type-link {
    min-width: 100%;
    padding: 1.25rem;
  }

  .type-line {
    font-size: clamp(2.35rem, 12vw, 4.75rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  .cursor {
    animation-duration: 1100ms;
  }
}
