@font-face {
    font-family: "JetBrains Mono";
    font-style: normal;
    font-weight: 100 800;
    font-display: swap;
    src: url("/fonts/cyrillic-ext.woff2") format("woff2");
    unicode-range: U+460-52F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}

@font-face {
    font-family: "JetBrains Mono";
    font-style: normal;
    font-weight: 100 800;
    font-display: swap;
    src: url("/fonts/cyrillic.woff2") format("woff2");
    unicode-range: U+301, U+400-45F, U+490-491, U+4B0-4B1, U+2116;
}

@font-face {
    font-family: "JetBrains Mono";
    font-style: normal;
    font-weight: 100 800;
    font-display: swap;
    src: url("/fonts/greek.woff2") format("woff2");
    unicode-range: U+370-377, U+37A-37F, U+384-38A, U+38C, U+38E-3A1, U+3A3-3FF;
}

@font-face {
    font-family: "JetBrains Mono";
    font-style: normal;
    font-weight: 100 800;
    font-display: swap;
    src: url("/fonts/vietnamese.woff2") format("woff2");
    unicode-range: U+102-103, U+110-111, U+128-129, U+168-169, U+1A0-1A1, U+1AF-1B0, U+300-301, U+303-304, U+308-309, U+323, U+329, U+1EA0-1EF9, U+20AB;
}

@font-face {
    font-family: "JetBrains Mono";
    font-style: normal;
    font-weight: 100 800;
    font-display: swap;
    src: url("/fonts/latin-ext.woff2") format("woff2");
    unicode-range: U+100-2BA, U+2BD-2C5, U+2C7-2CC, U+2CE-2D7, U+2DD-2FF, U+304, U+308, U+329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: "JetBrains Mono";
    font-style: normal;
    font-weight: 100 800;
    font-display: swap;
    src: url("/fonts/latin.woff2") format("woff2");
    unicode-range: U+??, U+131, U+152-153, U+2BB-2BC, U+2C6, U+2DA, U+2DC, U+304, U+308, U+329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: "JetBrains Mono Fallback";
    src: local("Arial");
    ascent-override: 75.79%;
    descent-override: 22.29%;
    line-gap-override: 0.0%;
    size-adjust: 134.59%;
}

*,
::before,
::after {
    box-sizing: border-box;
    border: 0 solid;
    margin: 0;
    padding: 0;
}

html {
    -webkit-text-size-adjust: 100%;
    tab-size: 4;
    line-height: 1.5;
    font-family: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    -webkit-tap-highlight-color: transparent;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-size: inherit;
    font-weight: inherit;
}

a {
    color: inherit;
    text-decoration: inherit;
}

b,
strong {
    font-weight: bolder;
}

code,
kbd,
samp,
pre {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 1em;
}

small {
    font-size: 80%;
}

sub,
sup {
    vertical-align: baseline;
    font-size: 75%;
    line-height: 0;
    position: relative;
}

sub {
    bottom: -0.25em;
}

sup {
    top: -0.5em;
}

table {
    text-indent: 0;
    border-color: inherit;
    border-collapse: collapse;
}

ol,
ul,
menu {
    list-style: none;
}

img,
svg,
video,
canvas,
audio,
iframe,
embed,
object {
    vertical-align: middle;
    display: block;
}

img,
video {
    max-width: 100%;
    height: auto;
}

button,
input,
select,
optgroup,
textarea {
    font: inherit;
    font-feature-settings: inherit;
    font-variation-settings: inherit;
    letter-spacing: inherit;
    color: inherit;
    opacity: 1;
    background-color: transparent;
    border-radius: 0;
}

button {
    appearance: button;
}

textarea {
    resize: vertical;
}

[hidden] {
    display: none !important;
}

:root {
    --background: #ffffff;
    --foreground: #171717;
    --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

@media (prefers-color-scheme: dark) {
    :root {
        --background: #0a0a0a;
        --foreground: #ededed;
    }
}

body {
    background: var(--background);
    color: var(--foreground);
    font-family: "JetBrains Mono", "JetBrains Mono Fallback";
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.theme-main {
    --accent: #bd4954;
    --accent-soft: rgba(189, 73, 84, 0.5);
    --accent-faint: rgba(189, 73, 84, 0.2);
    --accent-selection: rgba(189, 73, 84, 0.7);
    --avatar-border: #bd4954;
    --founder-hover: #bd4954;
}

.theme-pride {
    --accent: #5bcefa;
    --accent-soft: rgba(91, 206, 250, 0.5);
    --accent-faint: rgba(91, 206, 250, 0.2);
    --accent-selection: rgba(91, 206, 250, 0.7);
    --avatar-border: #f5a9b8;
    --founder-hover: #f5a9b8;
}

.ascii-line-1,
.ascii-line-2,
.ascii-line-6 {
    color: var(--accent);
}

.theme-main .ascii-line-3,
.theme-main .ascii-line-4,
.theme-main .ascii-line-5 {
    color: var(--accent);
}

.theme-pride .ascii-line-3,
.theme-pride .ascii-line-5 {
    color: #f5a9b8;
}

.theme-pride .ascii-line-4 {
    color: #ffffff;
}

.site {
    position: relative;
    min-height: 100vh;
    background: #050505;
    color: #d4d4d8;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow-x: hidden;
}

@media (min-width: 40rem) {
    .site {
        padding: 2rem;
    }
}

@media (min-width: 64rem) {
    .site {
        padding: 3rem;
    }
}

@media (min-width: 80rem) {
    .site {
        padding: 4rem;
    }
}

.site ::selection,
.site::selection {
    background: var(--accent-selection);
    color: #000000;
}

.backdrop {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.backdrop-nebula {
    opacity: 0.4;
    background-image: url("/nebula.jpg");
    background-size: cover;
    background-position: center;
}

.backdrop-dark {
    background: rgba(0, 0, 0, 0.8);
}

.backdrop-scanlines {
    opacity: 0.2;
    background-image: linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 100% 4px;
}

.clippy {
    display: none;
    position: fixed;
    bottom: 1rem;
    right: 1rem;
    z-index: 20;
}

@media (min-width: 64rem) {
    .clippy {
        display: block;
    }
}

.clippy img {
    image-rendering: pixelated;
}

.main {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 64rem;
    margin-top: 2rem;
    flex: 1;
}

@media (min-width: 40rem) {
    .main {
        margin-top: 3rem;
    }
}

.layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1.5rem;
    align-items: start;
    position: relative;
}

@media (min-width: 64rem) {
    .layout {
        grid-template-columns: repeat(12, minmax(0, 1fr));
        gap: 2rem;
    }
}

.column {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    position: relative;
}

@media (min-width: 64rem) {
    .column {
        grid-column: span 6 / span 6;
    }

    .column-right {
        margin-top: 6rem;
    }
}

.window {
    display: flex;
    flex-direction: column;
    background: #0a0a0a;
    border: 1px solid #27272a;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    transition: border-color 0.3s;
    position: relative;
}

@media (hover: hover) {
    .window:hover {
        border-color: var(--accent-soft);
    }
}

.window-socials,
.window-badge {
    z-index: 10;
}

@media (min-width: 64rem) {
    .window-about {
        translate: -2rem -1rem;
    }

    .window-socials {
        translate: 1.5rem 0.5rem;
    }

    .window-pgp {
        translate: -1rem -1rem;
    }

    .window-badge {
        translate: 1rem 0;
    }
}

.window-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #27272a;
    padding: 0.375rem 0.75rem;
    font-size: 0.75rem;
    line-height: 1.333333;
    color: #71717b;
    font-family: var(--font-mono);
    background: rgba(24, 24, 27, 0.4);
}

.prompt-user {
    color: var(--accent);
    font-weight: 700;
}

.prompt-sep {
    color: #71717b;
}

.prompt-cmd {
    color: #f4f4f5;
    font-weight: 600;
}

.window-close {
    color: var(--accent);
    padding: 0.125rem 0.5rem;
    border-radius: 0.25rem;
    cursor: pointer;
    transition: background-color 0.15s;
    display: none;
}

html.js .window-close {
    display: inline-block;
}

@media (hover: hover) {
    .window-close:hover {
        background: var(--accent-faint);
    }
}

.window-body {
    padding: 1rem;
    position: relative;
}

@media (min-width: 40rem) {
    .window-body {
        padding: 1.5rem;
    }
}

.window-closed {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    text-align: center;
    min-height: 150px;
}

.window.is-closed .window-bar,
.window.is-closed .window-body {
    display: none;
}

.window.is-closed .window-closed {
    display: flex;
}

.window-badge.is-closed .window-closed {
    padding: 0;
}

.window-closed-message {
    color: #9f9fa9;
    margin-bottom: 1rem;
    font-family: var(--font-mono);
    font-size: 0.875rem;
    line-height: 1.428571;
}

.window-restore {
    padding: 0.375rem 0.75rem;
    background: #18181b;
    color: #9f9fa9;
    border: 1px solid #27272a;
    transition: all 0.15s;
    cursor: pointer;
    font-size: 0.75rem;
    line-height: 1.333333;
    font-family: var(--font-mono);
    text-transform: uppercase;
}

@media (hover: hover) {
    .window-restore:hover {
        border-color: var(--accent);
        color: var(--accent);
    }
}

.flag {
    position: absolute;
    top: -2rem;
    right: -0.25rem;
    width: 5.75rem;
    height: 5.75rem;
    z-index: 20;
    rotate: 12deg;
    image-rendering: pixelated;
}

@media (min-width: 40rem) {
    .flag {
        top: -3rem;
        right: -1.25rem;
        width: 90px;
        height: 90px;
    }
}

.click-me {
    position: absolute;
    width: 28rem;
    rotate: 80deg;
    top: 17.5rem;
    right: -14.25rem;
    color: #ffffff;
    z-index: 20;
}

@media (min-width: 64rem) {
    .click-me {
        top: -5.75rem;
        right: -31.25rem;
        rotate: 348deg;
    }
}

.ascii {
    display: none;
    font-weight: 700;
    font-size: 10px;
    line-height: 1.25;
    margin-bottom: 2rem;
    text-align: left;
    white-space: pre;
    overflow: hidden;
    width: 100%;
}

@media (min-width: 40rem) {
    .ascii {
        display: block;
    }
}

@media (min-width: 64rem) {
    .ascii {
        font-size: 11px;
    }
}

@media (min-width: 80rem) {
    .ascii {
        font-size: 0.75rem;
        line-height: 1.333333;
    }
}

.profile {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: flex-start;
    width: 100%;
}

@media (min-width: 40rem) {
    .profile {
        flex-direction: row;
    }
}

.avatar-frame {
    width: 8rem;
    height: 8rem;
    border: 1px solid var(--avatar-border);
    padding: 0.25rem;
    flex-shrink: 0;
    position: relative;
}

.avatar-frame img {
    object-fit: cover;
    width: 100%;
    height: 100%;
}

.profile-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
}

.name {
    font-size: 1.25rem;
    line-height: 1.4;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.25rem;
}

.muted {
    color: #9f9fa9;
}

.muted-flex {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.arrow-icon {
    display: inline-block;
    margin-left: 0.25rem;
    transform: translateY(-2px);
}

.founder-link {
    text-decoration: underline;
    font-size: 15px;
    transition: color 0.15s;
}

@media (min-width: 48rem) {
    .founder-link {
        font-size: 1rem;
    }
}

@media (hover: hover) {
    .founder-link:hover {
        color: var(--founder-hover);
    }
}

.location {
    color: #71717b;
    font-size: 0.875rem;
    line-height: 1.428571;
    margin-top: 0.25rem;
}

.socials {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    font-family: var(--font-mono);
    font-size: 0.875rem;
    line-height: 1.428571;
}

@media (min-width: 40rem) {
    .socials {
        font-size: 1rem;
        line-height: 1.5;
    }
}

.social-link {
    transition: color 0.15s;
}

@media (hover: hover) {
    .social-link:hover {
        color: var(--accent);
    }
}

.social-label {
    color: #71717b;
    margin-right: 1rem;
}

.discord-card {
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
    border: 1px solid #27272a;
    background: #0a0a0a;
    padding: 0.75rem;
    width: 100%;
    transition: border-color 0.15s;
    gap: 1rem;
}

@media (min-width: 40rem) {
    .discord-card {
        flex-direction: row;
        align-items: center;
    }
}

@media (hover: hover) {
    .discord-card:hover {
        border-color: #3f3f46;
    }
}

.discord-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.discord-icon {
    width: 3.5rem;
    height: 3.5rem;
    flex-shrink: 0;
    position: relative;
    border: 1px solid #27272a;
    background: #18181b;
}

@media (min-width: 40rem) {
    .discord-icon {
        width: 4rem;
        height: 4rem;
    }
}

.discord-icon img {
    object-fit: cover;
    width: 100%;
    height: 100%;
}

.discord-details {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.discord-title-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.discord-logo {
    color: #ffffff;
    flex-shrink: 0;
    width: 16px;
    height: 16px;
}

.discord-title {
    font-weight: 700;
    color: #ffffff;
    font-family: var(--font-mono);
    font-size: 0.875rem;
    line-height: 1.428571;
    letter-spacing: 0.025em;
}

@media (min-width: 40rem) {
    .discord-title {
        font-size: 1rem;
        line-height: 1.5;
    }
}

.discord-counts {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #9f9fa9;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    line-height: 1.333333;
}

@media (min-width: 40rem) {
    .discord-counts {
        font-size: 0.875rem;
        line-height: 1.428571;
    }
}

.discord-count {
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.dot {
    display: inline-block;
    width: 0.625rem;
    height: 0.625rem;
    border-radius: 9999px;
}

.dot-online {
    background: #23a559;
}

.dot-members {
    background: #52525c;
}

.discord-join {
    width: 100%;
    text-align: center;
    flex-shrink: 0;
    padding: 0.5rem 1.25rem;
    border: 1px solid #23a559;
    color: #23a559;
    transition: background-color 0.15s;
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 0.875rem;
    line-height: 1.428571;
}

@media (min-width: 40rem) {
    .discord-join {
        width: auto;
    }
}

@media (hover: hover) {
    .discord-join:hover {
        background: rgba(35, 165, 89, 0.1);
    }
}

.pgp-row {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
}

@media (min-width: 40rem) {
    .pgp-row {
        flex-direction: row;
        align-items: center;
    }
}

.pgp-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
}

.pgp-icon {
    width: 1.5rem;
    height: 1.5rem;
    flex-shrink: 0;
    fill: none;
    stroke: var(--accent);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.pgp-icon circle {
    fill: var(--accent);
}

.pgp-text {
    min-width: 0;
    flex: 1;
}

.pgp-name {
    color: #f4f4f5;
    font-family: var(--font-mono);
    font-size: 0.875rem;
    line-height: 1.428571;
    display: block;
}

.pgp-fingerprint {
    color: #71717b;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    word-break: break-all;
    display: block;
}

@media (min-width: 40rem) {
    .pgp-fingerprint {
        font-size: 0.75rem;
        line-height: 1.333333;
    }
}

.pgp-download {
    margin-top: 1rem;
    display: flex;
    flex-shrink: 0;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    line-height: 1.333333;
    font-weight: 700;
    background: #18181b;
    color: #9f9fa9;
    border: 1px solid #27272a;
    padding: 0.375rem 0.75rem;
    transition: all 0.15s;
}

@media (min-width: 40rem) {
    .pgp-download {
        margin-top: 0;
    }
}

@media (hover: hover) {
    .pgp-download:hover {
        border-color: var(--accent);
        color: var(--accent);
    }
}

.badge-head {
    padding: 0.75rem;
    border-bottom: 1px solid #27272a;
    background: rgba(24, 24, 27, 0.5);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.badge-title {
    font-size: 0.75rem;
    line-height: 1.333333;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #9f9fa9;
}

.badge-size {
    font-size: 10px;
    line-height: 1.5;
    font-family: var(--font-mono);
    color: #52525c;
}

.badge-content {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
}

@media (min-width: 40rem) {
    .badge-content {
        flex-direction: row;
        align-items: center;
    }
}

.badge-image-wrap {
    flex-shrink: 0;
}

.badge-image-wrap img {
    image-rendering: pixelated;
}

.badge-code-wrap {
    flex: 1;
    width: 100%;
    min-width: 0;
}

.badge-code {
    background: #000000;
    padding: 0.75rem;
    font-size: 9px;
    line-height: 1.625;
    color: #71717b;
    border: 1px solid #18181b;
    overflow: hidden;
    font-family: var(--font-mono);
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (min-width: 40rem) {
    .badge-code {
        font-size: 10px;
    }
}

.badge-copy {
    flex-shrink: 0;
    padding: 0.375rem 0.75rem;
    font-size: 10px;
    line-height: 1.5;
    text-transform: uppercase;
    font-weight: 700;
    transition: all 0.15s;
    border: 1px solid #27272a;
    height: fit-content;
    width: 100%;
    background: #18181b;
    color: #9f9fa9;
    cursor: pointer;
    display: none;
}

html.js .badge-copy {
    display: block;
}

@media (min-width: 40rem) {
    .badge-copy {
        padding-block: 0.25rem;
        width: auto;
    }
}

@media (hover: hover) {
    .badge-copy:hover {
        border-color: var(--accent);
        color: var(--accent);
    }
}

.badge-copy.is-copied {
    background: var(--accent);
    color: #000000;
    border-color: var(--accent);
}

@media (hover: hover) {
    .badge-copy.is-copied:hover {
        color: #000000;
        border-color: var(--accent);
    }
}

.badges {
    position: relative;
    z-index: 10;
    margin-top: 6rem;
    margin-bottom: 3rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    max-width: 56rem;
}

.badges img {
    image-rendering: pixelated;
}

@keyframes jitter {
    0% {
        transform: translate(0, 0);
    }
    25% {
        transform: translate(1px, -2px);
    }
    50% {
        transform: translate(-1px, 2px);
    }
    75% {
        transform: translate(1px, 1px);
    }
    100% {
        transform: translate(0, 0);
    }
}

.jitter-text {
    display: inline;
}

.jitter-word {
    display: inline-block;
    white-space: nowrap;
}

.jitter-char {
    display: inline-block;
    animation: jitter 1.4s infinite;
}

@keyframes wobble {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

.wavy {
    display: inline-flex;
}

.wavy-char {
    display: inline-block;
    animation: wobble 1.2s ease-in-out infinite;
}
