/*
    @import url(https://fonts.bunny.net/css?alegreya-sans:400,700);
    @import url(https://fonts.bunny.net/css?alegreya-sans-sc:400,700);
    @import url(https://fonts.bunny.net/css?family=alegreya:400,700);
    @import url(https://fonts.bunny.net/css?family=alegreya-sc:400,700);
    */
@import url(https://fonts.bunny.net/css?family=atkinson-hyperlegible:400,400i,700,700i);
@import url("https://fonts.googleapis.com/css2?family=Atkinson+Hyperlegible+Mono:ital,wght@0,200..800;1,200..800&display=swap");

:root {
    --width: 800px;
    --hfooter: 40px;
    --list-space: 155px;
    --font-main: "Atkinson Hyperlegible Mono", monospace;
    --font-secondary: "Atkinson Hyperlegible Mono", monospace;
    --font-scale: 14pt;
    --accent-color-primary: #a6e3a1;
    --accent-color-secondary: #11111b;

    --text-color: #cdd6f4;
    --heading-color: #f5e0dc;
    --background-color: #181825;
    --link-color: #74c7ec;
    --visited-color: #b4befe;
    --code-background-color: #1e1e2e;
    --code-color: #bac2de;
    --blockquote-color: #313244;
}

body {
    font-family: var(--font-main);
    font-size: var(--font-scale);
    margin: auto;
    padding: 20px;
    max-width: var(--width);
    text-align: left;
    background-color: var(--background-color);
    word-wrap: break-word;
    overflow-wrap: break-word;
    line-height: 1.5;
    color: var(--text-color);
    min-height: calc(100vh - var(--hfooter));
    display: flex;
    flex-direction: column;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-main);
    color: var(--heading-color);
    font-variant: bold;
    text-decoration-line: underline;
    text-decoration-color: var(--accent-color-primary);
}

h1 {
    font-size: 1.8em;
}

h2 {
    font-size: 1.5em;
}

h3 {
    font-size: 1.3em;
}

h4 {
    font-size: 1.1em;
}

h5 {
    font-size: inherit;
    font-variant: inherit;
    font-weight: 700;
}

h6 {
    font-variant: inherit;
    font-size: inherit;
    font-style: oblique;
    font-weight: 400;
}

a.title {
    color: var(--heading-color);
    font-size: larger;
    font-weight: 700;
    text-decoration-line: overline;
    text-decoration-color: var(--accent-color-primary);
    font-variant: small-caps;
    font-family: var(--font-secondary);
    text-transform: uppercase;

    &:hover {
        text-decoration-line: none;
    }
}

a.subtitle {
    color: var(--heading-color);
    font-size: larger;
    font-weight: 700;
    font-variant: small-caps;
    font-family: var(--font-secondary);
    text-transform: uppercase;

    &:hover {
        text-decoration: overline;
        text-decoration-color: var(--accent-color-primary);
    }
}

a {
    color: var(--link-color);
    cursor: pointer;
    text-decoration: none;

    &:hover {
        text-decoration-line: underline;
    }
}

nav {
    padding-bottom: 1.5em;
}

nav a {
    margin-right: 5px;
    padding: 5px 10px;
    color: var(--text-color);

    &:hover {
        background-color: var(--accent-color-primary);
        color: var(--accent-color-secondary);
    }
}

a.webring {
    color: var(--accent-color-primary);
}

a.tag {
    font-size: 0.8em;
    text-transform: lowercase;
    color: var(--text-color);
}

div.tags {
    padding-top: 3em;
}

strong,
b {
    color: var(--text-color);
}

button {
    margin: 0;
    cursor: pointer;
}

time {
    font-family: monospace;
    font-style: normal;
    font-size: 15px;
}

main {
    flex: 1;
    line-height: 1.6;
}

table {
    width: 100%;
}

hr {
    border: 0;
    border-top: 1px dashed;
}

img {
    max-width: 100%;
}

code {
    padding: 1px;
    font-style: monospace;
    font-size: 0.8em;
    background-color: var(--code-background-color);
}

pre code {
    color: var(--code-color);
    background-color: var(--code-background-color);
    display: block;
    padding: 20px;
    white-space: pre-wrap;
    overflow-x: auto;
    border-color: var(--code-color);
    border-style: solid;
    border-width: thin;
    border-radius: 5px;
}

div.highlight pre {
    background-color: initial;
    color: initial;
    border-color: var(--code-color);
    border-style: solid;
    border-width: thin;
    border-radius: 5px;
}

div.highlight code {
    background-color: unset;
    color: unset;
    border-color: var(--code-color);
    border-style: solid;
    border-width: thin;
    border-radius: 5px;
}

blockquote {
    margin: 0px;
    padding-left: 20px;
    padding-right: 10px;
    padding-top: 0.5px;
    padding-bottom: 0.5px;
    border-left: 3px solid var(--nord15-aurora-purple);
    background-color: var(--blockquote-color);
    font-style: italic;
}

footer {
    padding-top: 25px;
    padding-bottom: 25px;
    text-align: left;
    min-height: var(--hfooter);
}

footer a {
    margin-right: 10px;
}

.title:hover {
    text-decoration: none;
}

.title h1 {
    font-size: 1.5em;
}

.inline {
    width: auto !important;
}

/* blog post list */
ul.blog-posts {
    list-style-type: none;
    padding: unset;
}

ul.blog-posts li {
    display: flex;
}

ul.blog-posts li span {
    flex: 0 0 var(--list-space);
}

ul.blog-posts li a:visited {
    color: var(--visited-color);
}

time {
    font-family: inherit;
    font-size: inherit;
    font-variant: small-caps;
}

mark {
    background-color: var(--accent-color-primary);
    padding: 0px 2px;
}

kbd {
    --kbd-color-background: var(--code-background-color);
    --kbd-color-text: var(--code-text-color);
    --kbd-color-border: grey;

    background-color: var(--kbd-color-background);
    color: var(--kbd-color-text);
    border-radius: 0.25rem;
    border: 1px solid var(--kbd-color-border);
    box-shadow: 0 2px 0 1px var(--kbd-color-border);
    cursor: default;
    font-family: monospace;
    font-size: 0.8em;
    line-height: 1;
    min-width: 0.75rem;
    display: inline-block;
    text-align: center;
    position: relative;
    padding: 2px;
    top: -1px;

    &:hover {
        box-shadow: 0 1px 0 0.5px var(--kbd-color-border);
        top: 1px;
    }
}
