@import url("/static/styles/imports.css");

:root {
    font-family: "EbGaramond", sans-serif;
}

body {
    margin: 1rem auto;
    max-width: 650px;
    line-height: 1.6;
    font-size: var(--style-body-font);
    font-weight: 450;
    color: #444;
    padding: 0 10px
}

figure {
    margin: 0;

    &>figcaption>* {
        margin: 0;
    }
}

img {
    width: 100%;
    margin-left: auto;
    margin-right: auto;

    margin-top: 0.2rem;
    margin-bottom: 0.2rem;

    overflow: hidden;
    object-fit: cover;
    object-position: center center;
}

blockquote {
    margin: 0.5rem 0 0.5rem;
    padding: 0.05rem 1.2rem 0.05rem;
    background-color: var(--inline-code-bg);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: Inter, sans-serif;
    font-weight: 350;
    color: var(--color-primary);
    line-height: 1.2;
}

a {
    color: var(----color-text);
    text-decoration: underline;
    text-underline-offset: 4px;

    &:visited {
        color: inherit;
        text-decoration: none;
    }

}

nav>.navigations>.header-element,
nav>.navigations>.header-element-author {
    font-family: Inter;
    font-size: 1.1rem;
    font-weight: 500;
}

.image-grid {
    /* margin: 1rem 0 0rem 0; */
    column-count: 2;
    column-gap: 0.5rem;
}

.image-grid>* {
    display: inline-block;
    width: 100%;
    break-inside: avoid;
}

.image-grid>*>img {
    width: 100%;
    height: auto;
    display: block;
    margin: 0;
    border-radius: var(--style-border-radius);
    cursor: pointer;
    transition: transform 0.2s ease;
}

.post-list-element {
    list-style-type: none;

    margin-bottom: 10px;

    &>div {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
    }
}

ul:has(.post-list-element) {
    padding: 0;
    margin: 0;
}

.post-list-element>div>div>.post-list-title {
    color: var(--color-primary);
    font-weight: 480;
}

.post-list-description {
    color: var(--color-text-dim);
    padding: 0;
    margin: 0;
}

.post-list-date {
    color: var(--color-text-dim);
    min-width: 100px;
    margin-left: 10px;
}

iframe {
    margin-top: 1rem;
    margin-bottom: 1rem;
    display: block;
    margin-left: auto;
    margin-right: auto;

    border: none;
    color: var(--color-text);
    background-color: var(--color-background);
}

/* iframe stylings */
.twitter-tweet {
    margin-left: auto;
    margin-right: auto;
    width: 100%;
    height: auto;
}

pre code {
    font-family: JuliaMono, monospace;
    overflow-x: scroll;
}

pre>code {
    display: block;
    text-indent: 0;
    white-space: inherit;
}

pre code.hljs {
    font-family: JuliaMono, monospace;
    font-variant-ligatures: common-ligatures;
    font-feature-settings: "liga" on;
    background-color: var(--inline-code-bg);
    line-height: 1.3;
    font-size: 0.95rem;
    padding-top: 1rem;
    padding-bottom: 1rem;
    padding-inline: 1rem;
}

p>code,
li>code,
dd>code,
td>code,
h1>code,
h2>code,
h3>code,
h4>code,
a>code {
    font-family: JuliaMono, monospace;
    color: var(--color-heading);
    background-color: var(--inline-code-bg);
    /*border: 1px solid var(--color-text-low);*/
    word-wrap: break-word;
    /*font-size: inherit;*/
    box-decoration-break: clone;
    padding: 0.1rem;
    padding-inline: 0.4rem;
    /*border-radius: 0.35rem;*/
    /*border-radius: 4px;*/
    font-size: 1.05rem;
}

.video-container-1610 {
    position: relative;
    padding-bottom: 62.5%;
    /* 16:10 */
    height: 0;
    margin-bottom: 1rem;
}

.video-container-1610 iframe {
    margin-bottom: 1rem;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%;
    /* 16:9 */
    height: 0;
    margin-bottom: 1rem;
}

.video-container iframe {
    margin-bottom: 1rem;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
