@font-face {
    font-family: "IBM Plex Mono";
    src: url("/fonts/IBMPlexMono-Regular.ttf") format("truetype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

:root {
    color-scheme: light dark;
    background: light-dark(#ffffff, #000000);
    font-family: "IBM Plex Mono", ui-monospace, monospace;
    font-size: clamp(0.875rem, 0.8125rem + 0.3125vw, 1.125rem);
}

html,
body {
    overflow: hidden;
    margin: 0;
}

/* index.html specific */
.scramble > * {
    position: absolute;
    width: max-content;
}

/* script.js adds .stacked to <html> when the items don't fit the viewport */
.stacked,
.stacked body {
    overflow: auto;
}

.stacked .scramble {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-top: 12px;
}

.stacked .scramble > * {
    position: static;
    width: auto;
}

.header-info {
    font-size: 1rem;
    padding: 0.5rem;
}

small {
    font-size: 0.75rem;
}

.scramble video {
    display: block;
    width: clamp(140px, 20vw, 240px);
    height: auto;
}

a,
a:visited {
    color: inherit;
}

.gohome {
    position: fixed;
    top: 0.5rem;
    right: 0.5rem;
}
