:root {
    color-scheme: light dark;
}

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: sans-serif;
}

main {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 1rem;
}

dl {
    display: grid;
    grid-template-columns: max-content auto;
    column-gap: 1rem;
    align-items: baseline;
    max-width: 100%;
}

dt {
    font-weight: bold;
    text-align: right;
}

dd {
    margin: 0;
    min-width: 0;
}

dd > a {
    font-family: monospace;
    overflow-wrap: break-word;
}

#ydn-latest {
    display: block;
    height: 1.2em;
    font-family: sans-serif;
    font-size: 0.9em;
    white-space: nowrap;
    overflow: hidden;
    opacity: 0;
    transition: opacity 0.3s ease-in-out, height 0.3s ease-in-out;
}

#ydn-latest a {
    text-decoration: none;
    color: inherit;
}

#ydn-latest a:hover {
    text-decoration: underline;
}

.mobile-only { display: none; }

footer {
    text-align: center;
    padding: 1rem;
    font-size: 0.8rem;
    opacity: 0.6;
}

@media (max-width: 600px) {
    .desktop-only { display: none; }
    .mobile-only { display: inline; }

    dl {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    #ydn-latest {
        display: none;
    }

    .dt-label {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
        border-width: 0;
    }

    dd > a { font-family: sans-serif; }
}
