/*
 * What a score is, before anybody plays it: what it is called, who wrote it,
 * what it is for, and the one button that matters.
 */

.topbar {
    position: sticky;
    top: 0;
    z-index: 10;
    background-color: var(--surface-2);
    border-bottom: 1px solid var(--border);
}

.topbar-inner {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding-block: var(--space-2);
}

.topbar-title {
    font-weight: 600;
    color: var(--text-2);
}

/* THE SCORE ITSELF */

/* The title and the way into the music, which is what the page is for. Given
   the room to be read across a room, since that is where a phone on a stand
   is. */
.hero {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: var(--space-4);
}

.hero-title {
    min-width: 0;
}

.hero h1 {
    overflow-wrap: break-word;
}

.hero-movement {
    color: var(--text-2);
    font-size: var(--text-lg);
}

.hero .button--primary {
    flex: 0 0 auto;
    padding-inline: var(--space-5);
}

/* WHAT IS KNOWN ABOUT IT */

/* Label above value rather than beside it: the values are lists of names that
   wrap, and a two-column table of them turns into a staircase on a phone. */
.facts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
    gap: var(--space-4);
}

.fact {
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
    min-width: 0;
}

.fact-value {
    overflow-wrap: break-word;
}

.fact-value--quiet {
    color: var(--text-3);
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
}

/* WHERE IT IS PLAYED */

.set-links {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
}

.set-link {
    text-decoration: none;
}

/* CHANGING THE FILE */

.file-field {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-3);
}

.file-field input[type="file"] {
    flex: 1 1 14rem;
    min-width: 0;
    font-size: var(--text-sm);
    color: var(--text-2);
}

.file-field input[type="file"]::file-selector-button {
    min-height: 2.25rem;
    margin-right: var(--space-3);
    padding: 0 var(--space-3);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-2);
    background-color: var(--surface-2);
    color: var(--text-1);
    font: inherit;
    font-size: var(--text-sm);
    cursor: pointer;
}

.section-title {
    color: var(--text-2);
    font-size: var(--text-sm);
    font-weight: 650;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
