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

:root {
    --ship-bg: #ffffff;
    --ship-fg: #000000;
    --ship-muted: rgba(0, 0, 0, 0.52);
    --ship-border: rgba(0, 0, 0, 0.10);
    --font-sans: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono: 'Geist Mono', ui-monospace, 'SF Mono', Menlo, monospace;
}

html,
body {
    width: 100%;
    min-width: 320px;
    height: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
    background: var(--ship-bg);
    color: var(--ship-fg);
    font-family: var(--font-sans);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

::selection {
    background: #000000;
    color: #ffffff;
}

a {
    color: inherit;
}

.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;
}

.effect-stage {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100dvh;
    overflow: hidden;
    background: #ffffff;
}

.logo-particle-canvas {
    display: block;
    width: 100vw;
    height: 100dvh;
    image-rendering: pixelated;
    touch-action: none;
    cursor: crosshair;
}

.effect-back,
.effect-lang {
    position: fixed;
    z-index: 2;
    top: clamp(18px, 3vw, 34px);
}

.effect-back {
    left: clamp(18px, 4vw, 56px);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 35px;
    text-decoration: none;
    opacity: 0.46;
    transition: opacity 180ms ease;
}

.effect-back:hover,
.effect-back:focus-visible {
    opacity: 1;
}

.effect-back canvas {
    display: block;
}

.effect-lang {
    right: clamp(18px, 4vw, 56px);
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 500;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    color: var(--ship-muted);
}

.effect-lang a,
.effect-lang span {
    text-decoration: none;
}

.effect-lang a,
.effect-lang .sep {
    color: rgba(0, 0, 0, 0.42);
    transition: color 180ms ease;
}

.effect-lang a:hover,
.effect-lang a:focus-visible,
.effect-lang .active {
    color: #000000;
}

.effect-lang a {
    display: inline-flex;
    align-items: center;
    min-width: 32px;
    min-height: 32px;
    justify-content: center;
    margin: -10px -7px;
}

.effect-lang a:focus-visible,
.effect-back:focus-visible {
    outline: 1px solid #000000;
    outline-offset: 4px;
}

.noscript-logo {
    position: fixed;
    inset: 0;
    display: grid;
    place-items: center;
    background: #ffffff;
}

.noscript-logo img {
    width: min(42vmin, 360px);
    height: auto;
    filter: invert(1);
}

@media (max-width: 640px) {
    .effect-back,
    .effect-lang {
        top: 16px;
    }

    .effect-back {
        left: 14px;
    }

    .effect-lang {
        right: 14px;
        font-size: 13px;
        gap: 5px;
    }
}

@media (hover: none) {
    .logo-particle-canvas {
        cursor: default;
    }
}

@media (prefers-reduced-motion: reduce) {
    .effect-back,
    .effect-lang a {
        transition: none;
    }
}
