@font-face {
    font-family: "Cityburn";
    src: url("/cityburn.ttf") format("truetype");
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: "OCR-A";
    src: url("/OCRAEXT.TTF") format("truetype");
    font-weight: normal;
    font-style: normal;
}

:root {
    --character-color: #F3AEBE;
    --white: #FFFFFF;
    --brown: #23110A;
    --cursor: url("/cursors/angel%20wings%20by%20Pi-House/01.cur");
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    width: 100%;
    height: 100%;
}

html {
    background: var(--character-color);
}

body {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    background: var(--character-color);
    cursor: var(--cursor), auto;
}

a {
    cursor: var(--cursor), pointer;
}

.page-fade,
.page-transition {
    position: fixed;
    inset: 0;
    background: var(--white);
    pointer-events: none;
}

.page-fade {
    z-index: 10000;
    animation:
        pageReveal
        0.9s
        cubic-bezier(.22, 1, .36, 1)
        80ms
        forwards;
}

.page-transition {
    z-index: 20000;
    opacity: 0;
    transition:
        opacity
        450ms
        cubic-bezier(.22, 1, .36, 1);
}

body.is-leaving .page-transition {
    opacity: 1;
    pointer-events: all;
}

@keyframes pageReveal {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
    }
}

.character-landing {
    position: relative;
    width: 100vw;
    height: 100vh;
    min-height: 100vh;
    overflow: hidden;
    background: var(--character-color);
}

.silhouette-panel {
    position: absolute;
    inset: 0;
    z-index: 1;
    overflow: hidden;
}

:root {
    --character-color: #F3AEBE;
    --white: #FFFFFF;
    --brown: #23110A;
    --cursor: url("/cursors/angel%20wings%20by%20Pi-House/01.cur");
    --silhouette-position: center 12%;
}

.silhouette {
    position: absolute;
    inset: 0;

    display: block;

    width: 100vw;
    height: 100vh;

    object-fit: cover;
    object-position: var(--silhouette-position);

    user-select: none;
    pointer-events: none;
}

.landing-copy {
    position: absolute;
    inset: 0;
    z-index: 5;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    width: 100%;
    height: 100%;

    padding: clamp(28px, 5vw, 80px);

    color: var(--character-color);
    text-align: center;

    pointer-events: none;
}

.file-label,
.character-name,
.release-note,
.social-note {
    font-family: "OCR-A", "OCR A Std", monospace;
}

.file-label {
    margin-bottom: 18px;

    font-size: clamp(0.52rem, 0.75vw, 0.72rem);
    line-height: 1;
    letter-spacing: 0.14em;
}

.character-name {
    margin-bottom: 18px;

    font-size: clamp(0.72rem, 1vw, 0.95rem);
    line-height: 1;
    letter-spacing: 0.18em;

    text-transform: uppercase;
}

.character-line {
    width: min(1100px, 92vw);

    margin: 0;

    color: var(--character-color);

    font-family: "Cityburn", serif;
    font-size: clamp(5rem, 11vw, 12rem);
    font-weight: normal;
    line-height: 0.78;
    letter-spacing: -0.04em;

    text-wrap: balance;
}

.release-note {
    width: min(620px, 88vw);

    margin-top: clamp(28px, 4vw, 46px);

    font-size: clamp(0.52rem, 0.7vw, 0.68rem);
    line-height: 1.6;
    letter-spacing: 0.06em;
}

.release-note strong {
    display: block;
    margin-bottom: 6px;
    font-weight: normal;
    letter-spacing: 0.12em;
}

.social-note {
    width: min(700px, 90vw);

    margin-top: 14px;

    font-size: clamp(0.48rem, 0.62vw, 0.62rem);
    line-height: 1.6;
    letter-spacing: 0.04em;
}

.social-note strong {
    font-weight: normal;
    letter-spacing: 0.1em;
}

.back-link {
    position: fixed;
    z-index: 100;
    top: 22px;
    left: 22px;

    display: inline-block;

    padding: 8px 10px;

    background: var(--white);
    color: var(--character-color);

    font-family: "OCR-A", "OCR A Std", monospace;
    font-size: 0.54rem;
    line-height: 1;
    letter-spacing: 0.08em;

    text-decoration: none;
    text-transform: uppercase;

    transition:
        transform
        180ms
        ease;
}

.back-link:hover,
.back-link:focus-visible {
    transform: translateY(-2px);
    outline: none;
}

@media (max-width: 700px) {
    .silhouette {
        object-position: center top;
    }

    .landing-copy {
        padding: 28px 20px;
    }

    .character-line {
        width: 94vw;
        font-size: clamp(4.2rem, 18vw, 7.8rem);
    }

    .release-note {
        margin-top: 24px;
    }
}

@media (max-width: 430px) {
    .back-link {
        top: 14px;
        left: 14px;
        padding: 7px 8px;
        font-size: 0.48rem;
    }

    .file-label {
        margin-bottom: 13px;
    }

    .character-name {
        margin-bottom: 14px;
    }

    .character-line {
        font-size: clamp(3.7rem, 19vw, 6rem);
    }

    .release-note {
        width: 92vw;
        font-size: 0.48rem;
    }

    .social-note {
        width: 92vw;
        font-size: 0.45rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-delay: 0ms !important;
        transition-duration: 0.01ms !important;
    }
}
