html,
body {
    margin: 0;
    background: #f8f8f8;
}

body {
    font-family: system-ui, sans-serif;

    --mono: 'Inconsolata', 'Menlo', 'Courier', monospace;
    --line-grey: #c7c7c7;
    --bg-grey: #b5b5b5;
    --text-grey: #8d8d8d;
}

main {
    margin: 1em auto;
    max-width: 800px;
    width: calc(100% - 32px);
}

h1, h2, h3 {
    font-size: 1em;
    font-weight: bold;
    margin-top: 2em;
}

p,
li {
    max-width: 64ch;
    line-height: 1.5em;
}

input,
textarea,
button {
    font-size: 1em;
}

ul {
    padding-left: 0;
}

li {
    margin: 16px 0;
    list-style: none;
}

p a[href],
li a[href],
.text-button {
    color: inherit;
    text-decoration: underline;
    text-decoration-color: var(--line-grey);
    transition: text-decoration-color .2s;
    text-decoration-thickness: 2px;
    text-underline-offset: 1px;
    cursor: pointer;
}

p a[href]:hover,
li a[href]:hover,
.text-button:hover {
    text-decoration-color: var(--text-grey);
}

blockquote {
    margin: 0;
    margin-left: 1em;
}

code {
    font-family: var(--mono);
}

.logo {
    height: 72px;
    margin-top: 52px;
    margin-bottom: 52px;
}

.ai-completion {
    color: var(--text-grey);
    position: relative;
}

.ai-control {
    font-style: italic;
    color: var(--text-grey);
}

.ai-control .ai-more.text-button {
    display: inline;
    padding: 0;
    border: 0;
    background: 0;
    font-size: 1em;
    font-style: italic;
    margin-right: .25em;
    color: #000;
}

.ai-control .ai-replay {
    display: inline-block;
    background-color: transparent;
    background: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiIgdmlld0JveD0iMCAwIDI0IDI0IiBmaWxsPSJub25lIiBzdHJva2U9ImN1cnJlbnRDb2xvciIgc3Ryb2tlLXdpZHRoPSIyLjUiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCIgY2xhc3M9ImZlYXRoZXIgZmVhdGhlci1yb3RhdGUtY3ciPjxwb2x5bGluZSBwb2ludHM9IjIzIDQgMjMgMTAgMTcgMTAiPjwvcG9seWxpbmU+PHBhdGggZD0iTTIwLjQ5IDE1YTkgOSAwIDEgMS0yLjEyLTkuMzZMMjMgMTAiPjwvcGF0aD48L3N2Zz4=");
    position: relative;
    top: 2px;
    height: 1em;
    width: 1em;
    border: 0;
    padding: 0;
    cursor: pointer;
    transition: transform .5s;
    color: transparent;
}

.ai-control .ai-replay:hover {
    transform: rotate(360deg);
}

.gpt2-more {
    display: none;
    background: #e7e7e7;
    padding: 6px 18px;
    border-radius: 6px;
    position: relative;
}

body.show-gpt .gpt2-more {
    display: block;
}

.gpt2-close {
    background-color: transparent;
    background-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiIgdmlld0JveD0iMCAwIDI0IDI0IiBmaWxsPSJub25lIiBzdHJva2U9ImN1cnJlbnRDb2xvciIgc3Ryb2tlLXdpZHRoPSIyLjUiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCIgY2xhc3M9ImZlYXRoZXIgZmVhdGhlci14Ij48bGluZSB4MT0iMTgiIHkxPSI2IiB4Mj0iNiIgeTI9IjE4Ij48L2xpbmU+PGxpbmUgeDE9IjYiIHkxPSI2IiB4Mj0iMTgiIHkyPSIxOCI+PC9saW5lPjwvc3ZnPg==");
    background-size: 100% 100%;
    position: absolute;
    top: 6px;
    right: 6px;
    height: 1.25em;
    width: 1.25em;
    border: 0;
    padding: 0;
    cursor: pointer;
    transition: transform .5s;
    opacity: .4;
}

.gpt2-close:hover {
    transform: rotate(90deg);
}

.sections {
    margin-bottom: 2em;
}

.project-name {
    margin-bottom: 2px;
}

.project-name.coming-soon::after {
    content: 'coming soon';
    display: inline-block;
    position: relative;
    font-size: .75em;
    top: -4px;
    color: var(--text-grey);
    line-height: 1em;
    margin-left: 6px;
    background: var(--bg-grey);
    color: #fff;
    padding: 2px 4px;
    border-radius: 3px;
}

.project-name.coming-soon a {
    cursor: no-drop;
}

.project-name.coming-soon a:hover {
    text-decoration-color: var(--line-grey);
}

.project-description {
    color: var(--text-grey);
}

a.topic-chip {
    display: block;
    float: left;
    clear: both;
}

.footer {
    color: var(--text-grey);
    margin-top: 3em;
    margin-bottom: 3em;
    font-style: italic;
}

@media (min-width: 600px) {
    .sections {
        display: flex;
        flex-direction: row;
        gap: 1ch;
    }

    .sections section {
        width: 0;
        flex-grow: 1;
    }
}

