:root {
    --bg: #111111;
    --fg: #eeeeee;
    --fg-dim: #888888;
    --accent: rgb(130, 255, 255);
    --font-mono: ui-monospace, 'SF Mono', 'Cascadia Code', 'Fira Code', monospace;
    --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

html, * {
    cursor: url('./cursor.png'), default;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

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

html, body {
    height: 100%;
}

html {
    color-scheme: dark;
}

body {
    margin: auto;
    max-width: 900px;
    background: var(--bg);
    color: var(--fg);
    font-family: var(--font-mono);
    font-size: 1.4rem;
    line-height: 1.6;
    overflow: hidden;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

h2 {
    margin-top: 3px;
}

pre {
    flex-grow: 1;
}

/* ─── noise layer ────────────────────────────────────────────── */
.bg {
    position: fixed;
    top: -50%;
    left: -50%;
    right: -50%;
    bottom: -50%;
    width: 200%;
    height: 200vh;
    background: transparent url('./noise-transparent.png') repeat 0 0;
    background-repeat: repeat;
    animation: bg-animation .2s infinite;
    opacity: 1;
    visibility: visible;
    pointer-events: none;
    z-index: 0;
    will-change: transform;
}

/* ─── centered stage ─────────────────────────────────────────── */
.center {
    position: fixed;
    text-align: center;
    top: 44%;
    left: 50%;
    -webkit-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    padding-bottom: 50px;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
}

/* ─── logo ───────────────────────────────────────────────────── */
.artwork {
    display: block;
    margin: auto;
    width: min(880px, 95vw);
    height: auto;
    margin-bottom: -18px;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}


/* ─── links ──────────────────────────────────────────────────── */
.links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1px;
    margin-top: -8px;
}

a {
    position: relative;
    font-size: 13px;
    text-align: center;
    text-decoration: none;
    font-weight: normal;
    font-style: normal;
    text-transform: lowercase;
    letter-spacing: 0.08em;
    color: var(--fg);
    transition: color .2s var(--ease), letter-spacing .2s var(--ease);
}

.links a::before {
    content: '> ';
    opacity: 0;
    color: var(--fg-dim);
    transition: opacity .2s var(--ease), color .2s var(--ease);
}

.links a::after {
    content: ' <';
    opacity: 0;
    color: var(--fg-dim);
    transition: opacity .2s var(--ease), color .2s var(--ease);
}

.links a:hover {
    color: var(--accent);
    letter-spacing: 0.14em;
    text-decoration: underline;
}

.links a:hover::before,
.links a:hover::after {
    opacity: 1;
    color: var(--accent);
}

/* ─── buttons ────────────────────────────────────────────────── */
button {
    appearance: none;
    background: none;
    font-family: monospace;
    font-size: 0.85rem;
    border: 1px dashed var(--fg);
    color: var(--fg);
    padding: 4px 10px;
    cursor: pointer;
    transition:
        border-style .1s,
        border-color .15s var(--ease),
        color .15s var(--ease),
        background-color .15s var(--ease),
        transform .15s var(--ease);
}

button:hover {
    border-style: solid;
    color: var(--accent);
    border-color: var(--accent);
    background: rgba(130, 255, 255, 0.04);
    transform: translateY(-1px);
}

button:focus {
    outline: 0;
}

button:focus-visible {
    outline: 1px solid var(--accent);
    outline-offset: 3px;
}

/* ─── music player ───────────────────────────────────────────── */
audio {
    display: none;
}

.marqueecontainer {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    width: 35%;
    left: 50%;
    bottom: 7%;
    transform: translateX(-50%);
    white-space: nowrap;
    font-size: 14px;
    color: var(--fg-dim);
    z-index: 1;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity .2s var(--ease), color .2s var(--ease);
}

.marqueecontainer:hover {
    opacity: 1;
    color: var(--fg);
}

.marquee {
    width: 420px;
    overflow: hidden;
    display: inline-block;
    font-size: 15px;
    margin: 0;
    padding: 0;
    white-space: nowrap;
}

/* ─── fly-up text fx ─────────────────────────────────────────── */
.fade {
    position: absolute;
    animation: flyup 6s linear forwards;
    white-space: nowrap;
    pointer-events: none;
    font-size: 12px;
    color: var(--fg-dim);
    z-index: 2;
}

/* ─── framed layout ──────────────────────────────────────────── */
.framed {
    display: flex;
    align-items: center;
    justify-content: center;
}

.framed > img {
    height: 300px;
    width: auto;
    margin: 0 100px;
}

.framed > a {
    padding: 0 10px;
    text-align: center;
}

/* ─── responsive ─────────────────────────────────────────────── */
@media (max-height: 700px) {
    .framed > img {
        display: none;
    }

    .artwork {
        width: min(500px, 85vw);
        margin-bottom: 20px;
    }
}

/* ─── keyframes ──────────────────────────────────────────────── */
@keyframes flyup {
    0% { opacity: 1; transform: translateY(0); }
    100% { opacity: 0; transform: translateY(-5000%); }
}

@keyframes bg-animation {
    0% { transform: translate(0,0) }
    10% { transform: translate(-5%,-5%) }
    20% { transform: translate(-10%,5%) }
    30% { transform: translate(5%,-10%) }
    40% { transform: translate(-5%,15%) }
    50% { transform: translate(-10%,5%) }
    60% { transform: translate(15%,0) }
    70% { transform: translate(0,10%) }
    80% { transform: translate(-15%,0) }
    90% { transform: translate(10%,5%) }
    100% { transform: translate(5%,0) }
}