@import url("https://fonts.googleapis.com/css2?family=Fira+Sans:ital,wght@0,400;0,700;1,400;1,700&family=Fira+Code&family=Montserrat:wght@700&display=swap");

* {
    box-sizing: border-box;
}

:root {
    --fg: #303030;
    --bg: #ffffff;
    --error-bg: #f08787;
}

@media screen and (prefers-color-scheme: dark) {
    :root {
        --fg: #dddddd;
        --bg: #1a1a1a;
        --error-bg: #721313;
    }
}


body {
    font-family: "Fira Sans";
    color: var(--fg);
    background: var(--bg);

    max-width: 80ch;
    margin: auto;
    padding: 0 1em;
}

h1 {
    font-family: "Montserrat";
}

a {
    color: inherit;
}

a:hover {
    text-decoration: none;
}

textarea {
    width: 100%;
    resize: none;
}

button {
    background: var(--fg);
    color: var(--bg);
    font-family: inherit;
    font-size: inherit;
    border: none;
    padding: 0.5em;
    border-radius: 0.5em;
    cursor: pointer;
}

input, textarea, select {
    padding: 0.5em;
    background: inherit;
    color: inherit;
    border: 1px solid var(--fg);
    border-radius: 0.5em;
    font-family: inherit;
    font-size: inherit;
}

progress {
    width: 100%;
}

.hide {
    display: none;
}

.outline {
    border: 1px solid var(--fg);
    border-radius: 0.5em;
    padding: 0.5em;
}

.error {
    background: var(--error-bg);
    border-radius: 0.5em;
    padding: 0.5em;
}

.gap {
    margin-bottom: 0.5em;
}

.pointer {
    cursor: pointer;
}

.flex {
    display: flex;
    gap: 0.5em;
    align-items: center;
    flex-wrap: wrap;
}

.vertical {
    flex-direction: column;
}

.stretch {
    align-items: stretch;
}

.align-top {
    align-items: flex-start;
}

.grow {
    flex: 1;
}

.wide {
    width: 100%;
}

.passthrough {
    display: contents;
}

.center {
    display: block;
    margin: auto;
}