@font-face {
    font-family: 'AmigaRounded';
    src: url('fonts/AmigaRounded.ttf') format('truetype');
    font-display: block;
}

@font-face {
    font-family: 'BlockCraft';
    src: url('fonts/BlockCraft.otf') format('opentype');
    font-display: block;
}

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

html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: #fff;
    color: #000;
    touch-action: none;
}

body {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100dvh;
    cursor: crosshair;
    font-family: 'AmigaRounded', monospace;
}

#main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0 1rem;
}

h1#logo {
    font-family: 'AmigaRounded', monospace;
    font-size: clamp(3.5rem, 22vw, 14rem);
    letter-spacing: -0.01em;
    line-height: 0.95;
    font-weight: 400;
    color: #000;
    user-select: none;
    text-align: center;
    position: relative;
}

#logo-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
}

#tagline {
    font-family: 'BlockCraft', monospace;
    font-size: clamp(0.55rem, 2vw, 0.95rem);
    letter-spacing: 0.15em;
    color: #000;
    text-align: center;
    margin-top: 0.75rem;
    user-select: none;
}

.char {
    display: inline-block;
    position: relative;
    letter-spacing: inherit;
}

.detail-size {
    position: absolute;
    bottom: 0;
    left: 0;
    font-size: 9px;
    font-family: monospace;
    pointer-events: none;
    white-space: nowrap;
    line-height: 1;
}

#footer {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.2rem 1.5rem;
    font-family: 'AmigaRounded', monospace;
    font-size: clamp(0.55rem, 2.5vw, 0.72rem);
    letter-spacing: 0.06em;
}

#instagram-link {
    display: flex;
    align-items: center;
    text-decoration: none;
}

#ig-canvas {
    display: block;
    image-rendering: pixelated;
}
