/* MINISTRY OF MINOR THINGS — GLOBAL FOUNDATIONS AND ACCESSIBILITY */
/* Rules for each selector are grouped with its responsive variants. */

@font-face {
    font-family: "Press Start 2P";
    src: url("../fonts/PressStart2P-Regular.ttf") format("truetype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

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

button, input {
    font: inherit;
}

.skip {
    position: fixed;
    top: -100px;
    left: 12px;
    z-index: 20;
    background: var(--amber);
    color: #000;
    padding: 10px;
}

.skip:focus {
    top: 10px;
}

html {
    scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}

body {
    margin: 0;
    overflow-x: hidden;
    background: var(--void);
    color: var(--paper);
    font-family: var(--font-body);
}

* {
    box-sizing: border-box;
}

a {
    text-decoration: none;
}

button {
    font: inherit;
}

:focus-visible {
    outline: 3px dashed var(--amber);
    outline-offset: 4px;
}

::selection {
    background: var(--amber);
    color: var(--navy);
}

input {
    min-width: 0;
    flex: 1;
    background: none;
    border: 0;
    color: var(--paper);
    font-size: 13px;
    outline: none;
    padding: 5px 0;
    caret-color: var(--amber);
}

h1 {
    line-height: 1.07;
    letter-spacing: 1px;
    margin: 0;
    color: var(--paper);
    text-shadow: 4px 4px var(--brown),
        7px 7px #000;
    position: relative;
    display: inline-block;
}
