@layer reset, colorscheme, typography;

nav {
    height: 2rem;
    line-height: 2rem;
    margin: 1rem 0;
}

nav ol {
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: inline;
    height: 2rem;
    line-height: 2rem;
}

nav ol li {
    display: inline;
    margin: 0;

    &:not(:last-child)::after {
       content: "⏵";
       margin: 0 0.5rem;
    }
}

body {
    background-color: var(--background);
    color: var(--main-text);
}

body.home main {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100svh;
}

body > main, body > header, body > footer {
    max-width: 900px;
    margin: auto;
    padding-inline: 1rem;
}

header {
    margin-bottom: 2rem;
}

footer {
    margin: 2rem auto;
    line-height: 1rem;
}


ol.term_list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-flow: row wrap;
}

ol.term_list > li {
    display: inline-block;
    padding: 0 0.5rem 0 0;
    white-space: nowrap;
    line-height: 1rem;
    margin: .5rem 0;
}

ol.term_list > li > span.count {
    border-radius: 1rem;
    border: solid 1px var(--focus-color);
    width: 12;
    display: inline-block;
    padding: 0rem 0.25rem;
    background-color: var(--focus-color);
    color: var(--background);
    font-weight: 600;
    margin: 0 0.25rem;
}

div.tweets_header {
    display: grid;
    flex-flow: row nowrap;
    padding: 1rem;
    border: solid 1px var(--focus-color);
    border-radius: .5rem;
    grid-template-columns: 1fr 1fr;
}

div.tweets_header div h3 {
    margin: 0;
}

div.highlight {
    margin: 1rem 0;
    width: 100%;
    overflow-x: scroll;
    background-color: #282a36;
    line-height: 2rem;

    code {
        line-height: 2rem;
    }
}

aside {
    box-sizing: content-box;
    /* margin: calc(2rem - 2px) 0; */
    margin: 2rem 0;
    max-width: 700px;
    border: solid 2px black;
    border-color: var(--focus-color);
    border-radius: .5rem;
    padding: 0 1rem;

    p:first-child {
        margin-top: calc(2rem - 2px);
    }

    p:last-child {
        margin-bottom: calc(2rem - 2px);
    }
}

a:has(svg) {
    &:hover {
        background: none;
    }
    > svg {
        border-radius: 10px;
    }
}

img, svg {
    max-width: 100%;
}
