/* VARIABLES */

:root {
    font-size: 16px;

    --color-primary: #7287fd;
    --color-secondary: #df8e1d;
    --color-text: #4C4F69;
    --color-text-bright: color-mix(in srgb, var(--color-text), white 20%);
    --color-background: #EFF1F5;
    --color-background-darker: color-mix(in srgb, var(--color-background), black 6%);
    --color-link: var(--color-primary);
    --color-link-hover: color-mix(in srgb, var(--color-link), white 8%);

    --spacing-xs: 0.25rem;
    --spacing-sm: 0.50rem;
    --spacing-md: 1.00rem;
    --spacing-lg: 2.00rem;
    --spacing-xl: 4.00rem;

    --font-size-xs: 0.8rem;
    --font-size-sm: 1rem;
    --font-size-md: 1.1rem;
    --font-size-lg: 1.3rem;
    --font-size-xl: 1.5rem;

    --font-weight-thin: 300;
    --font-weigth-normal: 400;
    --font-weigth-medium: 500;
    --font-weigth-bold: 600;
    --font-weigth-extra-bold: 800;

    --text-font-family: "Monaspace Xenon", sans-serif;
    --text-font-size: 1rem;

    --source-font-family: "Monaspace Krypton", monospace;
    --source-font-size: 0.8rem;

    --line-heigth-base: 1.6;
}

/* RESET VALUES */

html {
    box-sizing: border-box;
}

*,
*::before,
*::after {
    box-sizing: inherit;
}

body,
h1,
h2,
h3,
h4,
h5,
h6,
p,
ul,
ol,
figure,
blockquote,
dl,
dd {
    margin: 0;
    padding: 0;
}

ul,
ol {
    list-style: none;
}

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

a:hover {
    color: var(--color-link-hover);
    text-decoration: underline;
}

img {
    max-width: 100%;
    display: block;
}

button {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
}


/* ----------------------------------------------- */

/* BASE VALUES */

body {
    font-family: var(--text-font-family);
    color: var(--color-text);
    font-weight: 400;
    font-stretch: 100%;
    font-size: var(--text-font-size);
    line-height: var(--line-heigth-base);
    /* text-align: justify; */
    /* hyphens: auto; */
    background-color: var(--color-background);
}

pre,
code {
    font-family: var(--source-font-family);
    font-weight: 500;
    font-size: var(--font-size-xs);
    background-color: var(--color-background-darker);
}



code {
    /* white-space: pre-wrap !important; */
    white-space: pre-wrap;
    word-wrap: break-word;
}


.highlight {
    margin: var(--spacing-md) 0;
    border-radius: var(--spacing-sm);
    padding: var(--spacing-md);
    background-color: var(--color-background-darker) !important;
}

.highlight table {
    background-color: var(--color-background-darker) !important;
}

.highlight pre {
    background-color: var(--color-background-darker) !important;
}

code:not(pre code) {
    padding: 0.2em 0.4em;
    border-radius: 0.4em;
    color: #4c4f69;
    background-color: var(--color-background-darker);
}

.post-tags {
    display: flex;
    align-items: baseline;
    gap: var(--spacing-sm);
    margin: var(--spacing-lg) 0;

}

.post-tags a {
    font-family: var(--source-font-family);
    font-weight: 600;
    font-size: var(--font-size-xs);
    padding: 0.2em 0.4em;
    border-radius: 0.4em;
    color: var(--color-text);
    background-color: var(--color-background-darker);
}

/* ----------------------------------------------- */

.content {
    width: min(84%, 940px);
    margin: 0 auto;
}


p {
    margin-top: var(--spacing-md);
}

::selection {
    color: var(--color-primary);
    text-shadow: 1px 1px 2px var(--color-background-darker);
}

/* For Firefox */
::-moz-selection {
    color: var(--color-primary);
    text-shadow: 1px 1px 2px var(--color-background-darker);
}

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







.languages-available {
    display: flex;
    flex-direction: column;
    margin-top: 2rem;
}

.languages-available p {
    margin: 0;
    font-size: 0.8rem;
    font-weight: 500;
}

.languages-available ul {
    margin: 0.4rem;
    font-weight: 500;
}

.languages-available a {
    font-size: 1rem;
    color: var(--color-text);

}


h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Monaspace Xenon', sans-serif;
    font-weight: 800;
}

h1 {
    font-size: 1.3rem;
    margin-top: 2rem;
}

h2 {
    font-size: 1.2em;
    margin-top: 2rem;
    font-weight: 600;
}

h3 {
    font-size: 1.1rem;
    margin-top: 1.6rem;
    font-weight: 600;
}

h4,
h5,
h6 {
    font-size: 0.9rem;
    margin-top: 2rem;
    font-weight: 700;
}

.strong {
    font-weight: 600;
}


header {
    padding: 1rem 0;
    margin-top: var(--spacing-md);
    margin-bottom: var(--spacing-md);
}

header h1 {
    margin-top: 0;
    margin-bottom: var(--spacing-md);
}

header a {
    color: var(--color-text);
}

header a:hover {
    color: var(--color-text);
}

.pagination {
    display: flex;
    gap: var(--spacing-lg);
}


.content>main {
    margin-top: var(--spacing-lg);

}


footer {
    margin-top: var(--spacing-xl);
    margin-bottom: var(--spacing-xl);
}

.publications ul {
    list-style-type: disc;
    margin-top: 1.4rem;
    margin-left: 1.2rem;
    margin-bottom: 1.4rem;
}

.publications li {
    margin-top: 0.8rem;
}

.publications li::marker {
    color: var(--color-text);
}

.publications a {
    color: var(--color-text);
    font-weight: 600;
}

.post-header {
    margin-top: var(--spacing-xs);
    margin-bottom: var(--spacing-lg);
}

.post-header h1 {
    margin-bottom: 0;
}

.post-header p {
    font-size: var(--font-size-xs);
    margin-top: var(--spacing-xs);
}

.post-header .author {
    font-weight: var(--font-weigth-bold);

}

.post-content ul {
    list-style-type: disc;
    margin-top: var(--spacing-lg);
    margin-left: 1.2rem;
    margin-bottom: var(--spacing-lg);
}

.post-content ul li {
    margin-top: var(--spacing-md);
}

.post-content ol {
    list-style-type: decimal;
    margin-top: var(--spacing-lg);
    margin-left: 2.2rem;
    padding-left: 0;
    margin-bottom: var(--spacing-lg);
}

.post-content ol li {
    margin-top: 0.5rem;
}


.post-content figure {
    margin: var(--spacing-lg) auto;
}

.post-content figure img {
    border-radius: var(--spacing-sm);
    width: auto;
    max-width: 96%;
    height: auto;
    max-height: clamp(250px, 50vh, 529px);
    margin: 0 auto;
    object-fit: contain;
}

@media (max-width: 500px) {
    .post-content figure img {
        max-height: clamp(250px, 50vh, 356px);
    }
}

.post-content figure figcaption {
    text-align: center;
    font-style: italic;
    font-size: var(--font-size-xs);
    color: var(--color-text-bright);
    margin-top: var(--spacing-sm);
}


.post-content p>img {
    border-radius: var(--spacing-sm);
    width: auto;
    max-width: 96%;
    height: auto;
    max-height: clamp(250px, 50vh, 529px);
    margin: var(--spacing-lg) auto;
    object-fit: contain;
}

@media (max-width: 500px) {
    .post-content p>img {
        max-height: clamp(250px, 50vh, 356px);
    }
}



.navigation {
    font-weight: 600;
    display: flex;
    gap: var(--spacing-xl);
}


@media (max-width: 940px) {
    .navigation {
        flex-direction: column;
        gap: var(--spacing-md);
    }
}


.nav-pages {
    display: flex;
    justify-content: baseline;
    margin-left: 0;
    list-style: none;
    gap: var(--spacing-md);

}

.language-switcher {
    display: flex;
    align-items: baseline;
    list-style: none;
    gap: 1em;

}

.language-swicher-active {
    font-weight: 800;
    pointer-events: none;
    cursor: default;
}

.social-links {
    display: flex;
    gap: 1.5em;
}

@media (max-width: 1200px) {
    .social-links {
        flex-direction: column;
        gap: var(--spacing-sm);
    }
}

.social-links a {
    color: var(--color-text);
    display: flex;
    align-items: baseline;
    gap: var(--spacing-sm);
}

.tag-posts ul {
    list-style-type: disc;
    margin-top: 1.4rem;
    margin-left: 1.2rem;
    margin-bottom: 1.4rem;
}

.tag-posts li {
    font-size: var(--font-size-sm);
    margin-top: 0.8rem;
}

.tag-posts li::marker {
    color: var(--color-text);
}

.tag-posts a {
    color: var(--color-text);
    font-weight: 600;
}

.tag-posts .tag {
    font-family: var(--source-font-family);
    font-weight: 600;
    font-size: var(--font-size-xs);
    padding: 0.2em 0.4em;
    border-radius: 0.4em;
    color: var(--color-text);
    background-color: var(--color-background-darker);
}


blockquote {
    color: var(--color-text-bright);
    margin-left: var(--spacing-md);
    border-left: 1px solid var(--color-text-bright) !important;
    padding-left: var(--spacing-md);
}

hr {
    border: none;
    border-top: 1px solid var(--color-text-bright);
    margin: var(--spacing-md) 0;
}
