@font-face {
    font-family: 'iA';
    src: url('../../../_fonts/iAWriterMonoV.woff2') format('woff2-variations');
}
:root {
    --foreground: #ccc;
    --background: #444;
    --control-fakeout: #808080;
    --omnipad: 6px;
    --heaven: #fff;
    --hell: #000;
}

* { box-sizing: border-box; }

body {
    font-family: 'iA', monospace;
    font-size: 18px;
    background: var(--background);
    color: var(--foreground);
    margin: 0;
    padding: 0;
    min-height: 100vh;
}

a {
    color: var(--heaven);
}
.navActive {
    background: var(--heaven);
    color: var(--background);
}

.metabar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--background);
    border-bottom: 2px solid var(--foreground);
    padding: var(--omnipad);
    display: flex;
    flex-direction: column;
    gap: var(--omnipad);
}
.mainmenu {
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    gap: var(--omnipad);
    justify-content: space-between;
    align-items: center;
}
.headerTitle {
    font-weight: bold;
    display: flex;
    flex-wrap: wrap;
    gap: 1em;
    align-items: center;
}
.headerControls {
    display: flex;
    gap: 1.5em; 
    align-items: center;
    flex-wrap: wrap;
}
.headerControls label {
    display: flex;
    gap: 0.5em;
    align-items: center;
}

.pimpload {
    padding: var(--omnipad);
    display: flex;
    flex-direction: column;
    gap: calc(var(--omnipad) * 2);
}

.swatches {
    display: flex;
    flex-wrap: wrap;
    gap: var(--omnipad);
    padding: var(--omnipad) 0;
    flex: 1 1 auto;
    min-width: 0;
}
.swatch {
    cursor: pointer;
    position: relative;
    width: 10em;
    display: flex;
    flex-direction: column;
}
.swatchStrip {
    height: 2ex;
    width: 100%;
}
.swatchStrip.isLabel {
    background: var(--background);
    color: var(--foreground);
    font-size: 11px;
    line-height: 2ex;
    text-align: center;
}
.swatchStrip.isHoverZone {
    position: relative;
}
.swatchStrip.isHoverZone::before {
    content: "click to copy";
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--background);
    opacity: 0;
    pointer-events: none;
    font-size: 10px;
}
.swatch:hover .swatchStrip.isHoverZone::before {
    opacity: 1;
}
.swatchStrip.isHoverZone.didCopy::before {
    content: "copied!";
    opacity: 1;
}

.swatches.isCableView .swatch::after {
    content: attr(data-hex);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--background);
    color: var(--foreground);
    padding: 2px 4px;
    font-size: 10px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
}
.swatches.isCableView .swatch:hover::after {
    opacity: 1;
}

@media (max-width: 760px) {
    .metabar {
        position: static;
    }
}