/*
 * code.css — an identifier: an order number, a serial number, a code a person reads aloud to the
 * office or types back.
 *
 * <span class="app-code">A-2026-0142</span>
 *
 * In the mono face at the size of body text, at medium weight, with tabular
 * figures and a slashed zero, so 0 and O, 1 and l are never confused. It sits on the line of the
 * text it is in and changes nothing else about it. It is for identifiers only, never to make
 * something look technical.
 */
@layer components {
    .app-code {
        font-family: var(--app-font-mono);
        font-size: var(--app-text-code-size);
        font-weight: var(--app-text-code-weight);
        font-variant-numeric: tabular-nums slashed-zero;
        /* An identifier is read and typed as one: it never breaks at its hyphens. */
        white-space: nowrap;
        letter-spacing: var(--app-text-code-tracking);
        /* The mono face sits differently on the baseline; a shorter line keeps it inside the
           line of the text around it, which stays 20 tall. */
        line-height: var(--app-text-code-leading);
    }
}
