@import url("https://unpkg.com/@catppuccin/palette/css/catppuccin.css");
@import url("https://fonts.googleapis.com/css2?family=JetBrains+Mono:ital,wght@0,100..800;1,100..800&display=swap");

* {
    font-size: 1em;
    margin: 0;
}

html {
    background-color: var(--ctp-frappe-base);
    color: var(--ctp-frappe-text);
    font-family: "JetBrains Mono", monospace;
    height: 100%;
}

body {
    display: flex;
    flex-direction: column;
    height: 100%;
    max-width: 75ch;
    margin: auto;
    word-wrap: break-word;
}

header,
p {
    margin-bottom: 1lh;
}

header,
footer {
    display: flex;
    justify-content: space-between;
}

header > *,
footer > * {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

header > *:nth-child(2),
footer > *:nth-child(2) {
    text-overflow: "";
}

h2 ~ *,
h3 ~ * {
    margin-left: 7ch;
}

ul {
    list-style: none;
    padding: 0;
}

a {
    color: inherit;
    text-decoration: inherit;
}

a:hover {
    text-decoration: underline;
}

#prompt {
    background-color: var(--ctp-frappe-base);
    margin-top: auto;
    position: sticky;
    bottom: 0;
}

#prompt > span {
    background-color: var(--ctp-frappe-text);
    color: var(--ctp-frappe-base);
}
