/* Ostrich Sans Rounded from The League of Moveable Type */
@font-face {
    font-family: 'Ostrich Sans Rounded';
    src: url('https://raw.githubusercontent.com/theleagueof/ostrich-sans/master/webfonts/ostrich-sans-rounded.woff') format('woff'),
         url('https://raw.githubusercontent.com/theleagueof/ostrich-sans/master/webfonts/ostrich-sans-rounded.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

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

body {
    min-height: 100vh;
    background: #ffffff;
    font-family: 'Ostrich Sans Rounded', sans-serif;
    overflow: hidden;
}

.mask-layer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.name {
    font-size: clamp(1.5rem, 5vw, 4rem);
    font-weight: 400;
    letter-spacing: 0.02em;
    line-height: 1;
    text-transform: uppercase;
    color: rgba(0, 0, 0, 0.8);
}

.letter {
    display: inline-block;
    transition: font-family 0.3s ease;
    /* Ensure adequate touch target on mobile */
    padding: 0.1em 0;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    user-select: none;
    -webkit-user-select: none;
}

.letter.space {
    display: inline;
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .name {
        font-size: clamp(2rem, 14vw, 4rem);
        padding: 0 1.5rem;
        text-align: center;
        line-height: 0.9;
    }

    /* Force two lines by making the space a line break */
    .letter.space {
        display: block;
        height: 0;
    }

    .letter {
        padding: 0.1em 0;
    }

    .bio {
        font-size: 0.65rem;
        bottom: 3rem;
        padding: 0 1.5rem;
        line-height: 1.25;
    }

    .mute-btn {
        bottom: 0.75rem;
        right: 0.75rem;
        width: 18px;
        height: 18px;
    }
}

@media (max-width: 480px) {
    .name {
        font-size: clamp(2rem, 15vw, 3.5rem);
    }

    .bio {
        font-size: 0.6rem;
        bottom: 2.75rem;
        padding: 0 1rem;
    }
}

/* Bio footer */
.bio {
    position: fixed;
    bottom: 3.5rem;
    left: 0;
    right: 0;
    text-align: center;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 0.75rem;
    color: rgba(0, 0, 0, 0.4);
    padding: 0 2rem;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.5;
}

.bio a {
    color: rgba(0, 0, 0, 0.4);
    text-decoration: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.2);
    transition: color 0.2s ease, border-color 0.2s ease;
}

.bio a:hover {
    color: rgba(0, 0, 0, 0.7);
    border-color: rgba(0, 0, 0, 0.4);
}

/* Mute button */
.mute-btn {
    position: fixed;
    bottom: 1rem;
    right: 1rem;
    width: 20px;
    height: 20px;
    padding: 0;
    background: none;
    border: none;
    cursor: pointer;
    opacity: 0.25;
    transition: opacity 0.2s ease;
}

.mute-btn:hover {
    opacity: 0.5;
}

.mute-btn svg {
    width: 100%;
    height: 100%;
    color: rgba(0, 0, 0, 0.8);
}

.mute-btn .icon-muted {
    display: none;
}

.mute-btn.muted .icon-sound {
    display: none;
}

.mute-btn.muted .icon-muted {
    display: block;
}

/* Mobile hint */
.mobile-hint {
    position: fixed;
    top: 1.5rem;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 0.7rem;
    color: rgba(0, 0, 0, 0.35);
    opacity: 1;
    transition: opacity 0.4s ease;
}

.mobile-hint svg {
    width: 14px;
    height: 14px;
    stroke: currentColor;
}

.mobile-hint.hidden {
    opacity: 0;
}

/* Social links */
.social-links {
    position: fixed;
    bottom: 1.25rem;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 1.25rem;
}

.social-links a {
    display: block;
    width: 18px;
    height: 18px;
    color: rgba(0, 0, 0, 0.4);
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.social-links a:hover {
    opacity: 1;
}

.social-links svg {
    width: 100%;
    height: 100%;
}

@media (max-width: 768px) {
    .social-links {
        bottom: 1rem;
    }

    .social-links a {
        width: 16px;
        height: 16px;
    }
}

