@font-face {
    font-family: "Geist Mono";
    font-weight: normal;
    src: url("GeistMono-Regular.woff2") format("woff");
}
@font-face {
    font-family: "Geist Mono";
    font-weight: bold;
    src: url("GeistMono-Bold.woff2") format("woff");
}

:root {
    @media (prefers-color-scheme: light) {
        --background: rgb(245, 245, 245);
        --foreground: rgb(10, 10, 10);
    }
    @media (prefers-color-scheme: dark) {
        --background: rgb(10, 10, 10);
        --foreground: rgb(245, 245, 245);
    }

    background: var(--background);
    color: var(--foreground);
    font-family: "Geist Mono", monospace;
    line-height: 1.5;
}

header {
    align-items: center;
    box-sizing: border-box;
    display: flex;
    gap: 16px;
    max-width: 900px;
    padding: 8px;
    margin: 0 auto;
    width: 100%;

    .fill { flex-grow: 1 }
}

main {
    box-sizing: border-box;
    padding: 0 8px;
    margin: 0 auto;
    max-width: 800px;
    width: 100%;
}

footer {
    border-top: 1px solid var(--foreground);
    box-sizing: border-box;
    font-size: .8rem;
    margin: 32px auto 16px;
    max-width: 800px;
    padding: 8px;
    width: 100%;
}


a {
    color: currentColor;
}


form {
    width: 100%;

    label {
        display: block;
        margin: 16px 0;
        width: 100%;
    }

    input, textarea {
        box-sizing: border-box;
        display: block;
        margin-top: 4px;
        resize: vertical;
        width: 100%;
    }
}

input, textarea {
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--foreground);
    color: currentColor;
    font-size: 1em;
    font-family: inherit;
    outline: none;
    padding: 4px;

    &:is(textarea) {
        border: 1px solid var(--foreground);
        min-height: 128px;
        padding: 4px;
    }
}

button {
    border: 1px solid var(--foreground);
    background: unset;
    color: currentColor;
    cursor: pointer;
    font-family: "Geist Mono", monospace;
    font-size: 1em;
    padding: 4px 8px;
}
