/*
 * icon.css
 *
 * <svg class="app-icon" data-size="16 | 20 | 24" viewBox="0 0 24 24" aria-hidden="true" focusable="false">
 *   [paths from design/icons/<name>.svg]
 * </svg>
 *
 * Icons are strokes on a 24 grid in currentColor, so they take the colour of the text around
 * them. data-size names a step of the icon scale directly; it is the contract, so this file
 * may name those primitives.
 */
@layer components {
    .app-icon {
        display: inline-block;
        flex: none;
        inline-size: var(--app-icon-size);
        block-size: var(--app-icon-size);
        fill: none;
        stroke: currentcolor;
        stroke-linecap: round;
        stroke-linejoin: round;
        stroke-width: var(--app-icon-stroke);
        vertical-align: middle;
    }

    .app-icon[data-size="16"] {
        inline-size: var(--app-icon-16);
        block-size: var(--app-icon-16);
    }

    .app-icon[data-size="20"] {
        inline-size: var(--app-icon-20);
        block-size: var(--app-icon-20);
    }

    .app-icon[data-size="24"] {
        inline-size: var(--app-icon-24);
        block-size: var(--app-icon-24);
    }
}
