:root {
    --pad-1: 0.25rem;
    --pad-2: 0.5rem;
    --pad-3: 0.75rem;
    --pad-4: 1rem;
}

* {
    line-height: 1.5;
    letter-spacing: 0.85px;
    margin: 0;
    padding: 0;
    min-width: 0;
    box-sizing: border-box;
    font-size: 14px;
    font-family: DepartureMono, monospace;
}

*::selection {
    background: white;
    color: black;
}

html,
body {
    background: black;
    color: white;
    letter-spacing: 0.9px;
    height: 100dvh;
}

.cursor {
    background: white;
    color: black;
}

.cursor.blink {
    background: black;
    color: white;
}

ul,
ol {
    margin: 0.5rem 0 0.5rem 2rem;

    & li::marker {
        content: "- ";
    }
}

main,
.container {
    width: 80ch;
    max-width: 100dvw;
    padding: 1rem;
    min-height: 100%;
}

@media screen and (min-width: 901px) {
    main {
        border-right: solid 1px #1e1e1e;
    }
}

p:not(:last-child) {
    margin-bottom: 1rem;
}

a {
    color: inherit;
    font-weight: 600;
}

a:hover,
a:active,
a:focus {
    background: white;
    color: black;
}

:is(h1, h2, h3, h4, h5, h6) {
    margin: 1rem 0;
    text-decoration: underline solid 1px currentColor;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2.25rem;
}

h3 {
    font-size: 2rem;
}

h4 {
    font-size: 1.75rem;
}

h5 {
    font-size: 1.5rem;
}

h6 {
    font-size: 1.25rem;
}

button,
.button {
    appearance: none;
    border: none;
    outline: none;
    background: #1e1e1e;
    color: white;
    font: inherit;
    padding: 0 0.75rem;
    cursor: pointer;
}

button:hover,
.button:hover {
    background: white;
    color: black;
}

input,
textarea,
select {
    appearance: none;
    outline: none;
    padding: 0 0.75rem;
    border: solid 1px #1e1e1e;
    font: inherit;
    background: inherit;
    color: inherit;
}
