@font-face {
  font-family: "Inter Local";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("./fonts/InterVariable.woff2") format("woff2");
}

:root {
  color-scheme: dark;
  --ink: #f8faff;
  --muted: #aeb8cd;
  --ice: #75dcff;
  --ice-bright: #d8f8ff;
  --pink: #ff54b8;
  --pink-bright: #ffbce4;
  --night: #0b0b24;
  --night-deep: #050513;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 20rem;
  background: var(--night-deep);
}

body {
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  color: var(--ink);
  background: var(--night-deep);
  font-family:
    "Inter Local", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  font-feature-settings: "liga" 1, "calt" 1;
}

.home-page {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 20%, rgb(113 200 255 / 9%), transparent 26rem),
    radial-gradient(circle at 84% 78%, rgb(255 75 146 / 8%), transparent 24rem),
    linear-gradient(145deg, #0a0b20 0%, var(--night-deep) 74%);
}

.home-page::before {
  position: fixed;
  z-index: -1;
  inset: 0;
  background-image: radial-gradient(rgb(255 255 255 / 16%) 0.5px, transparent 0.7px);
  background-size: 4px 4px;
  content: "";
  mask-image: linear-gradient(120deg, transparent 5%, black 48%, transparent 96%);
  opacity: 0.13;
}

.home {
  display: grid;
  min-height: 100vh;
  min-height: 100svh;
  place-items: center;
  padding: clamp(2rem, 7vw, 6rem) 1rem;
}

.identity {
  position: relative;
  width: min(100%, 76rem);
  text-align: center;
}

.wordmark {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0 0.2em;
  margin: 0;
  font-size: clamp(4.25rem, 13vw, 10.5rem);
  font-weight: 900;
  letter-spacing: -0.075em;
  line-height: 0.84;
}

.wordmark span {
  display: block;
  padding-inline: 0.03em;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.wordmark__frozen {
  background-image: linear-gradient(180deg, #d8f7ff 5%, #9ee8ff 49%, #71c8ff 100%);
  text-shadow: 0 0 1.5rem rgb(113 200 255 / 10%);
}

.wordmark__yocode {
  background-image: linear-gradient(180deg, #ff7bc8 5%, #ff5aa9 49%, #ff4b92 100%);
  text-shadow: 0 0 1.5rem rgb(255 75 146 / 10%);
}

.identity__tagline {
  margin: clamp(2.5rem, 7vw, 4.5rem) 0 0;
  color: var(--muted);
  font-size: clamp(0.95rem, 2vw, 1.15rem);
  font-weight: 450;
  letter-spacing: 0.02em;
}

.home-footer {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  gap: 1.25rem;
  justify-content: center;
  padding: 1.25rem;
}

.home-footer a {
  color: rgb(216 247 255 / 48%);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}

.home-footer a:hover,
.home-footer a:focus-visible {
  color: var(--ice-bright);
  text-decoration: underline;
  text-underline-offset: 0.25em;
}

.ambient {
  position: fixed;
  z-index: -1;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.ambient i {
  position: absolute;
  display: block;
  font-style: normal;
}

.ambient__star {
  color: var(--ice-bright);
  font-size: 0.65rem;
  opacity: 0.3;
  text-shadow: 0 0 0.8rem currentColor;
}

.ambient__star--one {
  top: 20%;
  left: 16%;
}

.ambient__star--two {
  right: 13%;
  bottom: 24%;
  color: var(--pink-bright);
  font-size: 0.5rem;
}

.ambient__flake {
  color: var(--ice);
  font-size: 0.8rem;
  opacity: 0.13;
}

.ambient__flake--one {
  top: 13%;
  right: 27%;
  transform: rotate(12deg);
}

.ambient__flake--two {
  bottom: 12%;
  left: 27%;
  font-size: 0.65rem;
  transform: rotate(-18deg);
}

.ambient__pixel {
  width: 0.3rem;
  aspect-ratio: 1;
  border-radius: 1px;
  background: currentColor;
  box-shadow: 0 0 0.65rem currentColor;
  opacity: 0.27;
}

.ambient__pixel--one {
  top: 31%;
  left: 7%;
  color: #71c8ff;
}

.ambient__pixel--two {
  top: 17%;
  right: 8%;
  width: 0.22rem;
  color: #ff5aa9;
}

.ambient__pixel--three {
  right: 21%;
  bottom: 11%;
  color: #71c8ff;
}

.ambient__pixel--four {
  bottom: 27%;
  left: 12%;
  width: 0.22rem;
  color: #ff4b92;
}

@media (prefers-reduced-motion: no-preference) {
  .ambient__star,
  .ambient__flake,
  .ambient__pixel {
    animation: drift 9s ease-in-out infinite alternate;
  }

  .ambient__star--two,
  .ambient__flake--two,
  .ambient__pixel--two,
  .ambient__pixel--four {
    animation-delay: -4s;
    animation-duration: 12s;
  }

  @keyframes drift {
    from {
      translate: 0 -0.25rem;
    }

    to {
      translate: 0 0.25rem;
    }
  }
}

@media (max-width: 40rem) {
  .wordmark {
    flex-direction: column;
    gap: 0.12em;
    font-size: clamp(4.2rem, 23vw, 7rem);
  }
}

@media (forced-colors: active) {
  .wordmark span {
    color: CanvasText;
    text-shadow: none;
  }
}

.legal-page {
  color-scheme: light;
  color: #202124;
  background: #f7f7f5;
}

.document-header,
.document-footer,
.document {
  width: min(100% - 2rem, 48rem);
  margin-inline: auto;
}

.document-header {
  padding-block: 1.75rem;
}

.small-wordmark {
  color: #202124;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  text-decoration: none;
}

.small-wordmark:hover,
.small-wordmark:focus-visible {
  color: #175cd3;
  text-decoration: underline;
  text-underline-offset: 0.25em;
}

.document {
  padding-block: clamp(2rem, 7vw, 4.5rem);
}

.document-title {
  margin-bottom: 2.5rem;
}

.document-title h1 {
  max-width: 10ch;
  margin: 0.15em 0 0.35em;
  color: #161719;
  font-size: clamp(2.75rem, 9vw, 5.5rem);
  letter-spacing: -0.065em;
  line-height: 0.95;
}

.document-title > p:last-child,
.policy-meta {
  color: #686d75;
}

.eyebrow {
  margin: 0;
  color: #686d75;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.language-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: clamp(4rem, 12vw, 8rem);
}

.language-nav a {
  border: 1px solid #d8dce2;
  border-radius: 999px;
  padding: 0.6rem 0.9rem;
  color: #30343a;
  background: #ffffff;
  text-decoration: none;
}

.language-nav a:hover,
.language-nav a:focus-visible {
  border-color: #8aa9d8;
  color: #124ca7;
  background: #f2f6fc;
}

.policy {
  scroll-margin-top: 1rem;
}

.policy + .policy {
  margin-top: clamp(5rem, 15vw, 10rem);
  border-top: 1px solid #dfe2e6;
  padding-top: clamp(4rem, 10vw, 7rem);
}

.policy:target {
  border-radius: 0.75rem;
  outline: 2px solid #3978d5;
  outline-offset: 1rem;
}

.policy h2 {
  margin: 0;
  color: #181a1d;
  font-size: clamp(2rem, 6vw, 3.25rem);
  letter-spacing: -0.045em;
  line-height: 1;
}

.policy h3 {
  margin: 2.25rem 0 0.6rem;
  color: #202124;
  font-size: 1.15rem;
  line-height: 1.35;
}

.policy p {
  max-width: 70ch;
  margin-block: 0.7rem;
  color: #373b41;
  line-height: 1.75;
}

.policy a,
.document-footer a {
  color: #175cd3;
  text-underline-offset: 0.2em;
}

.policy code {
  overflow-wrap: anywhere;
  border-radius: 0.2rem;
  padding: 0.08em 0.25em;
  color: #292c31;
  background: #ebecee;
  font-size: 0.9em;
}

.legal-copy {
  display: grid;
  gap: 2.75rem;
  margin-top: clamp(3rem, 8vw, 5rem);
}

.legal-copy section {
  max-width: 42rem;
}

.legal-copy h2 {
  margin: 0 0 0.8rem;
  color: #202124;
  font-size: 1.15rem;
  line-height: 1.35;
}

.legal-copy p,
.legal-copy address {
  margin: 0;
  color: #373b41;
  font-style: normal;
  line-height: 1.75;
}

.legal-copy a {
  color: #175cd3;
  text-underline-offset: 0.2em;
}

.document-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  border-top: 1px solid #dfe2e6;
  padding-block: 2rem 3rem;
  color: #686d75;
}
