@font-face {
    font-family: "PP Editorial New";
    src: url("/fonts/PPEditorialNew-Bold.woff2") format("woff2");
    font-weight: bold;
    font-display: swap;
}

@font-face {
    font-family: "PP Object Sans";
    src: url("/fonts/PPObjectSans-Regular.woff2") format("woff2");
    font-display: swap;
}

@font-face {
    font-family: "PP Object Sans";
    src: url("/fonts/PPObjectSans-Bold.woff2") format("woff2");
    font-weight: bold;
    font-display: swap;
}

@font-face {
    font-family: "PP Object Sans";
    src: url("/fonts/PPObjectSans-Slanted.woff2") format("woff2");
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: "PP Object Sans";
    src: url("/fonts/PPObjectSans-BoldSlanted.woff2") format("woff2");
    font-style: italic;
    font-weight: bold;
    font-display: swap;
}

@font-face {
    font-family: "Ultra Hi-Gloss";
    src: url("/fonts/UltraHi-GlossFinal-UltraBoldItalic.woff2") format("woff2");
    font-display: swap;
}

/* set the font family */
body {
    font-family: "PP Object Sans", ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
}

h1 {
    font-family: "PP Editorial New", ui-serif, Georgia, Cambria, "Times New Roman", Times, serif;
}

/* root */
.gavide--root-main {
    margin: auto;
    grid-area: main;
    padding: 0;
    width: 100%;
    margin-top: 3rem;
    min-height: 70vh;
    max-width: 95%;
}

.gavide--root-section {
    display: grid;
    grid-template-columns: max-content 64px minmax(0, 1fr);
    grid-template-rows: 1fr min-content;
    grid-template-areas:
        "header divider main  "
        "header divider footer";
    max-width: 80rem;
    margin-inline: auto;
    align-items: flex-start;
    min-height: 100vh;
    overflow: hidden;
}


:root {
    --latex-color: #000000;
    --accent-color: #79a184;
    --logo-color: var(--accent-color);

    /* Olive Theme Palette */
    --olive-bg-main: #cbe6d1; /* Main light green background */
    --olive-bg-secondary: #dffce7; /* Lighter green for elements */
    --olive-bg-tertiary: #b8d8c0; /* Slightly darker green */
    --olive-text-main: #222222; /* Dark text for contrast */
    --olive-text-secondary: #4a4a4a; /* Muted text */
    --olive-accent-primary: #79a184; /* Main olive accent */
    --olive-accent-secondary: #62856c; /* Darker olive accent */
    --olive-accent-highlight: #9bc0a7; /* Lighter olive for highlights */

    /* RGB versions for alpha */
    --olive-accent-primary-rgb: 121, 161, 132;
    --olive-accent-secondary-rgb: 98, 133, 108;
    --olive-text-secondary-rgb: 74, 74, 74;

    /* Generic Semantic Variables */
    --font-family-sans-serif: "PP Object Sans", ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    --font-family-monospace: "Fira Code", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;

    --text-color: var(--olive-text-main);
    --text-color-secondary: var(--olive-text-secondary);
    --text-color-muted: var(--olive-text-secondary);
    --text-color-on-accent: #ffffff; /* White text on olive accents */

    --background-primary: var(--olive-bg-main);
    --background-secondary: var(--olive-bg-secondary);
    --background-tertiary: var(--olive-bg-tertiary);

    --border-color: var(--olive-accent-secondary);
    --border-color-soft: rgba(var(--olive-accent-secondary-rgb), 0.3);
    --border-color-muted: var(--olive-accent-secondary);
    --border-color-secondary: var(--olive-accent-secondary);

    --shadow-color: rgba(0, 0, 0, 0.1); /* Generic shadow */

    --heading-color: var(--olive-accent-secondary);

    --button-background-primary: var(--olive-accent-primary);
    --button-text-primary: var(--text-color-on-accent);
    --button-background-disabled: var(--olive-bg-tertiary);
    --button-text-disabled: var(--olive-text-secondary);

    --input-background: var(--olive-bg-secondary);
    --input-text-color: var(--olive-text-main);
    --input-border-color: var(--olive-accent-secondary);
    --input-background-disabled: var(--olive-bg-main);
    --input-text-color-disabled: var(--olive-text-secondary);

    --pre-background: var(--olive-bg-secondary);
    --pre-text-color: var(--olive-text-main);

    --accent-color-primary: var(--olive-accent-primary);
    --accent-color-primary-translucent: rgba(var(--olive-accent-primary-rgb), 0.5);
    --accent-color-primary-strong: var(--olive-accent-primary);

    --accent-color-secondary: var(--olive-accent-secondary);
    
    /* For demo graph - using Olive palette */
    --accent-color-success: #62856c; /* Darker olive as success */
    --accent-color-success-translucent: rgba(98, 133, 108, 0.5);
    --accent-color-warning: #b08a51; /* Brownish-orange for warning */
    --accent-color-warning-translucent: rgba(176, 138, 81, 0.5);
    --accent-color-danger: #a35b5b; /* Muted red for danger */
    --accent-color-danger-translucent: rgba(163, 91, 91, 0.5);
    --accent-color-danger-strong: #a35b5b;
    --accent-color-info: var(--olive-accent-highlight);
    --accent-color-info-strong: var(--olive-accent-highlight);

    --canvas-background: var(--olive-bg-secondary);

    letter-spacing: 0.03rem;
    background-color: var(--background-primary);
    color: var(--text-color);
    transition: 1s ease-out;
}

::-webkit-scrollbar {
    width: 12px;
    height: 12px;
    background-color: #dffce7;
}

::-webkit-scrollbar-track {
    background-color: #dffce7;
}

::-webkit-scrollbar-corner {
    background-color: #dffce7;
}

::-webkit-scrollbar-thumb {
    background-color: #79a184;
}

::-webkit-scrollbar-thumb:hover {
    background-color: #62856c;
}

::-webkit-scrollbar-thumb:active {
    background-color: #4b6f5c;
}

/* ------------------ */
/*  page post (not blog) */

@media (min-width: 991.98px) {
    .gavide--pagepost {
        max-width: 70%;
    }
}

.gavide--pagepost {
    max-width: 95%;
}

.gavide--pagepost h1 {
    font-size: 2rem;
    font-weight: normal;
    margin-bottom: 1rem;
    margin-top: 1rem;
}

.gavide--pagepost h3 {
    font-size: 1.5rem;
    font-weight: bold;
    padding-left: 0.5rem;
    margin: 1.25rem 0px;
}

.gavide--pagepost h4 {
    font-size: 1.1rem;
    font-weight: bold;
    padding-left: 0.5rem;
    margin: 1.25rem 0px;
}

.gavide--pagepost h5 {
    font-size: 1rem;
    font-weight: bold;
    padding-left: 0.5rem;
    margin: 1.25rem 0px;
}

.gavide--pagepost a,
.gavide--blog-article ol li a {
    cursor: pointer;
    /* text-decoration: underline; */
    line-height: 1.2;
    transition: 0.25s ease-out;
}

.gavide--pagepost a {
    text-decoration: underline;
}

.gavide--pagepost p {
    font-size: 1.1rem;
    margin-top: 1rem;
    line-height: 1.2;
}

.gavide--pagepost hr {
    box-sizing: content-box;
    height: 0;
    overflow: visible;
    border-top-width: 1px;
    margin: 0;
    clear: both;
    color: #454138;
    border-color: #454138;
}

.gavide--pagepost ul {
    list-style-type: disc;
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.gavide--pagepost blockquote {
    position: relative;
    margin: 1rem 0px;
    padding: 0 1.5rem;
    box-sizing: border-box;
    font-style: italic;
}

.gavide--pagepost blockquote cite {
    display: block;
    margin-top: 0.5rem;
    text-align: right;
    font-style: normal;
    font-size: 0.9rem;
    color: var(--text-color-secondary);
}

.gavide--pagepost blockquote cite::before {
    content: "— ";
}

.gavide--pagepost blockquote::before {
    content: "";
    position: absolute;
    top: 0px;
    left: 0px;
    bottom: 0px;
    height: 100%;
    width: 0.3rem;
    padding: 0.15rem;
    border-style: solid;
    border-color: rgb(186, 181, 161);
    border-image: none;
    border-width: 0px 0.2rem 0px 0.6rem;
}

.gavide--url-path {
    list-style-type: none;
    display: flex;
    margin: 0;
    padding: 0;
}

.gavide--url-path li.bef::after {
    content: ">";
    margin: 0 0.5rem;
}

/* ------------------ */
/*  blog post */

.gavide--sidebar {
    display: none;
}

@media (min-width: 991.98px) {
    .gavide--sidebar {
        display: block;
    }

    .gavide--blog-article.sidebar-expanded {
        width: 75%;
    }
}

.gavide--blog-article {
    max-width: 100%;
}

.gavide--blog-article>ol {
    list-style-type: none;
    display: flex;
    margin: 0;
    padding: 0;
}

.gavide--blog-article>ol li.bef::after {
    content: ">";
    margin: 0 0.5rem;
}

.gavide--blog-article h1 {
    font-size: 2rem;
    font-weight: normal;
    margin-bottom: 1rem;
    margin-top: 1rem;
}

.gavide--blog-article hr {
    box-sizing: content-box;
    height: 0;
    overflow: visible;
    border-top-width: 1px;
    margin: 0;
    clear: both;
    color: #454138;
    border-color: #454138;
}

.gavide--blog-section {
    display: flex;
}

.gavide--sidebar {
    padding: 1rem 0 0 1rem;
    width: 25%;
}

.gavide--blog-article>figure {
    margin-top: 1rem !important;
}

.gavide--blog-article>figure,
.gavide--sidebar>figure {
    display: flex;
    flex-direction: column;
    margin: 0px 0px 1rem;
    background-color: #dffce7;
    padding: 0.5rem;
    animation: 0.5s ease-in-out slidein;
}

.gavide--blog-article>figure>figcaption,
.gavide--sidebar>figure>figcaption {
    order: -1;
    margin: -0.5rem -0.5rem 0.5rem;
    padding: 0.5rem 1rem;
    font-size: 1.2rem;
    background-color: #79a184;
    color: #FFFFFF;
}

.gavide--blog-article>figure>ul>li,
.gavide--sidebar>figure>ul>li {
    color: rgb(69, 65, 56);
    position: relative;
    display: inline-block;
    margin: 0.25rem;
    padding: 0;
    line-height: 1;
    text-decoration: none;
    font-size: 1rem;
    background-color: transparent;
    border: 0.03rem solid #222;
    transition: 0.1s ease-in;
}

.gavide--blog-article>figure>ul>li>a,
.gavide--sidebar>figure>ul>li>a {
    display: block;
    padding: 0.25rem 0.5rem;
    color: inherit;
    text-decoration: none;
}

.gavide--blog-article>figure>ul>li:hover,
.gavide--sidebar>figure>ul>li:hover {
    color: #dffce7;
    background-color: #222;
}

.gavide--blog-tof {
    position: relative;
    flex-direction: column;
    margin: 1rem 0px;
    background-color: #dffce7;
    padding: 0.5rem 0.5rem 0.5rem 1.5rem;
    box-shadow: #88988b 0.2em 0.2em;
    animation: 0.5s ease-in-out slidein;
}


.gavide--blog-tof::before {
    content: "";
    position: absolute;
    top: 0px;
    left: 0px;
    bottom: 0px;
    width: 0.3rem;
    padding: 0.15rem;
    border-style: solid;
    border-color: #79a184;
    border-image: none;
    border-width: 0px 0px 0px 0.6rem;
}

.gavide--blog-tof>ol {
    list-style-type: decimal;
    margin: 1rem 0px;
    padding-left: 1.5rem;
}

.gavide--blog-tof>ol>li>a {
    text-decoration: underline;
    cursor: pointer;
    line-height: 1.2;
    transition: 0.25s ease-out;
}

.gavide--blog-post h1,
.gavide--tag-section h1 {
    font-size: 2rem;
    font-weight: normal;
    margin-bottom: 1rem;
    margin-top: 1rem;
}

.gavide--blog-post h2 {
    font-family: "PP Editorial New", ui-serif, Georgia, Cambria, "Times New Roman", Times, serif;
    font-size: 1.5rem;
    border-style: solid;
    border-color: rgb(69, 65, 56);
    border-image: none;
    border-width: 0px 0px 0.1rem 0px;
    padding: 0.1rem 0px;
    margin: 1rem 0;
}

.gavide--blog-post h3 {
    font-size: 1.25rem;
    border-style: solid;
    border-color: rgb(69, 65, 56);
    border-image: none;
    border-width: 0.1rem 0px;
    padding: 0.1rem 1rem;
    margin: 1rem 0;
}

.gavide--blog-post h4 {
    font-size: 1.1rem;
    border-style: solid;
    border-color: rgb(69, 65, 56);
    border-image: none;
    border-width: 0.1rem 0px;
    padding: 0.1rem 1rem;
    margin: 1rem 0;
}

.gavide--blog-post h5 {
    font-size: 1rem;
    border-style: solid;
    border-color: rgb(69, 65, 56);
    border-image: none;
    border-width: 0.1rem 0px;
    padding: 0.1rem 1rem;
    margin: 1rem 0;
}

.gavide--blog-post a {
    text-decoration: none;
    cursor: pointer;
    border-bottom: 1px solid;
    line-height: 1.2;
    word-break: break-word;
}

.gavide--blog-post a:hover {
    border-bottom: 1.5px solid;
}

.gavide--blog-post p {
    font-size: 1.1rem;
    margin-top: 1rem;
    line-height: 1.2;
    word-break: break-word;
}

.gavide--blog-post hr {
    box-sizing: content-box;
    height: 0;
    overflow: visible;
    border-top-width: 1px;
    margin: 0;
    clear: both;
    color: #454138;
    border-color: #454138;
}

.gavide--blog-post ul {
    list-style-type: disc;
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.gavide--blog-post blockquote {
    position: relative;
    margin: 1rem 0px;
    padding: 0 1.5rem;
    box-sizing: border-box;
    font-style: italic;
}

.gavide--blog-post blockquote cite {
    display: block;
    margin-top: 0.5rem;
    text-align: right;
    font-style: normal;
    font-size: 0.9rem;
    color: var(--text-color-secondary);
}

.gavide--blog-post blockquote cite::before {
    content: "— ";
}

.gavide--blog-post blockquote::before {
    content: "";
    position: absolute;
    top: 0px;
    left: 0px;
    bottom: 0px;
    height: 100%;
    width: 0.3rem;
    padding: 0.15rem;
    border-style: solid;
    border-color: #79a184;
    border-image: none;
    border-width: 0px 0px 0px 0.6rem;
}

/* ------------------ */
/* post preview */

.gavide--post-preview {
    text-decoration: none;
}

.gavide--post-preview h2 {
    margin: 0 0;
    text-decoration: underline;
    text-decoration-thickness: 0.1rem;
}

.gavide--post-preview h2:hover {
    text-decoration-thickness: 0.2rem;
    text-decoration-style: solid;
    text-underline-offset: 0.2rem;
}

.gavide--post-preview p {
    font-size: 1.1rem;
    margin-top: 0px;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

/* .gavide--post-preview>* {
    text-decoration: none !important;
} */

.gavide--post-preview ul {
    padding: 0;
    margin: 0.5rem 0;
}

.gavide--post-preview {
    text-decoration: none;
    display: block;
    position: relative;
    flex-direction: column;
    margin: 2rem 0px;
    /* background-color: #dffce7; */
    /* box-shadow: #88988b 0.2em 0.2em; */
    animation: 0.5s ease-in-out slidein;
}

.gavide--post-preview h2 {
    /*PP Object Sans bold sans serif*/
    font-family: "PP Object Sans", ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    font-weight: bold;
    font-size: 2rem;
    font-size: 1.5rem;
}

.gavide--post-preview p time {
    font-size: 1.1rem;
    margin-top: 1rem;
    line-height: 1.2;
}

.gavide--post-preview ul li {
    color: rgb(69, 65, 56);
    position: relative;
    display: inline-block;
    margin: 0.25rem;
    padding: 0;
    line-height: 1;
    text-decoration: none;
    font-size: 1rem;
    color: #222;
    border: 0.03rem solid #222;
    transition: 0.1s ease-in;
}

.gavide--post-preview ul li a {
    display: block;
    padding: 0.25rem 0.5rem;
    color: inherit;
    text-decoration: none;
}

.gavide--post-preview ul li:hover {
    color: #dffce7;
    background-color: #222;
}

/* ------------------ */
/* nav */

.gavide--header {
    grid-area: header;
    height: 100%;
}

.gavide--header menu {
    width: 100%;
    padding-right: 1rem;
}

.gavide--nav-title {
    font-size: 1.5rem;
    font-weight: bold;
    border-bottom: 1px dotted;
    font-family: "PP Editorial New", ui-serif, Georgia, Cambria, "Times New Roman", Times, serif;
}

/* ------------------ */
/* nav links */

.gavide--root-bg-1 {
    display: none;
}

.gavide--root-bg-2 {
    display: none;
}

.gavide--nav-link-li {
    list-style-type: circle;
}

.gavide--nav-link {
    display: block;
    width: 100%;
}

.gavide--nav-link:hover {
    box-shadow: inset 0 -1px 0 0;
    border-bottom-style: solid;
    text-decoration-line: none;
}

.gavide--header-extra {
    width: 64px;
    grid-area: divider;
    height: 100%;
    background-position: 4rem 4rem;
    background-size:64px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='18' viewBox='0 0 100 18'%3E%3Cpath fill='%23222222' fill-opacity='0.4' d='M61.82 18c3.47-1.45 6.86-3.78 11.3-7.34C78 6.76 80.34 5.1 83.87 3.42 88.56 1.16 93.75 0 100 0v6.16C98.76 6.05 97.43 6 96 6c-9.59 0-14.23 2.23-23.13 9.34-1.28 1.03-2.39 1.9-3.4 2.66h-7.65zm-23.64 0H22.52c-1-.76-2.1-1.63-3.4-2.66C11.57 9.3 7.08 6.78 0 6.16V0c6.25 0 11.44 1.16 16.14 3.42 3.53 1.7 5.87 3.35 10.73 7.24 4.45 3.56 7.84 5.9 11.31 7.34zM61.82 0h7.66a39.57 39.57 0 0 1-7.34 4.58C57.44 6.84 52.25 8 46 8S34.56 6.84 29.86 4.58A39.57 39.57 0 0 1 22.52 0h15.66C41.65 1.44 45.21 2 50 2c4.8 0 8.35-.56 11.82-2z'%3E%3C/path%3E%3C/svg%3E");
}
.gavide--nav-link span {
    padding: 0.5rem;
    text-decoration-line: none;
    border-bottom: 1px dotted;
    border-radius: 0;
    padding-inline: 0;
    display: block;
}

.gavide--navigation-button {
    display: none;
}

.gavide--nav-title.sub {
    margin-top: 2rem;

    margin-bottom: 2rem;
    padding-right: 1rem;
}

@media screen and (max-width: 1300px) {
    
    .gavide--root-main {
        margin-top: 0;
        max-width: 100%;
        padding: 0 1rem;
    }

    .gavide--navigation-button {
        display: block;
    }

    .gavide--root-section {
        display: flex;
    }

    .gavide--header menu {
        display: block !important;
        position: absolute;
        top: -90px;
        left: 0;
        width: 100%;
        height: 0vh;
        background-color: #dffce7;
        z-index: -5;
        padding: 2rem;
        overflow: hidden;
        transition: 0.5s;
    }

    .gavide--header.show menu {
        height: 100vh;
        top: 0px;
        z-index: 999;
    }

    .gavide--header-extra {
        display: none;
    }
    
}


/* ------------------ */
/* footer */

.gavide--footer {
    margin-top: 2rem;
    margin-bottom: 2rem;
    border-top: 1px solid #454138;
}

.gavide--footer section div {
    margin: 0 auto;
    padding-top: 20px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.gavide--footer section {
    position: relative;
}

.gavide--footer-copyright-text,
.gavide--footer-links {
    text-align: center;
}

.gavide--footer section::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 20px;
    background-repeat: repeat-x;
    background-image: url("/images/dotsline.svg");
}

/* ------------------ */
/* Tags */

.gavide--tags li {
    color: rgb(69, 65, 56);
    position: relative;
    display: inline-block;
    margin: 0.25rem;
    padding: 0;
    line-height: 1;
    text-decoration: none;
    font-size: 1rem;
    background-color: rgb(186, 181, 161);
    border-left: 0.25rem solid rgb(69, 65, 56);
}

.gavide--tags li a {
    display: block;
    padding: 0.25rem 0.5rem;
    text-decoration: none !important;
    color: inherit;
}

.gavide--tags {
    padding: 0;
    margin: 0;
}

/* ------------------ */
/* Selector (for language and search) */

.gavide--search-input {
    padding: 0.5rem;
    font-size: 1em;
    border: none;
    outline: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    -ms-appearance: none;
    appearance: none;
    border-radius: 0;
    background-color: #dffce7;
    color: inherit;
    font-family: inherit;
    letter-spacing: inherit;
    font-weight: inherit;
}

#lang-show {
    display: none;
}

.gavide--selector ul {
    display: none;
}

#lang-show:checked+ul {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 2rem;
    background-color: #dffce7;
    z-index: 999;
    list-style-type: none;
    margin: 0;
    padding: 1rem;
    gap: 0.5rem;
    border: 1px solid #79a184;
}

.gavide--selector {
    display: flex;
    margin-top: 1rem;
    position: relative;
}

label[for="lang-show"] {
    display: inline-block;
    padding: 0.5rem;
    font-size: 1em;
    border: none;
    outline: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    -ms-appearance: none;
    appearance: none;
    border-radius: 0;
    background-color: #79a184;
    color: #FFFFFF;
    font-family: inherit;
    letter-spacing: inherit;
    font-weight: inherit;
    cursor: pointer;
}



.gavide--loading {
    background-color: #cbe6d1;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    transition: 1s ease-out;
}

.gavide--loading-spinner {
    border: 0.5rem solid #f3f3f3;
    border-top: 0.5rem solid #454138;
    border-radius: 50%;
    width: 3rem;
    height: 3rem;
    animation: spin 2s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* KaTeX styling */
.latex-container .katex,
.katex-math .katex,
.katex {
    color: var(--latex-color) !important;
    font-size: 1.1em;
}

.logo-skeleton {
    width: 8em;
    height: 8em;
    transition: transform .5s ease-in-out;
    /* clip-path: circle(50%); */
    will-change: transform;
}
.logo-skeleton:hover {
    transform: rotate(360deg);
}

.social-icon {
    fill: var(--logo-color, white);
    display: inline-block;
    width: 2rem;
    height: 2rem;
    transition: filter 0.25s ease-out, transform 0.25s ease-out;
}
.social-icon:hover {
    filter: brightness(0.5);
    transform: scale(1.2);
}

@font-face {
    font-family: "Source Serif 4";
    src: url("/fonts/SourceSerif4-Regular.woff2") format("woff2");
    font-display: swap;
    font-weight: 400;
}

@font-face {
    font-family: "Source Serif 4";
    src: url("/fonts/SourceSerif4-Italic.woff2") format("woff2");
    font-display: swap;
    font-style: italic;
    font-weight: 400;
}

@font-face {
    font-family: "Source Serif 4";
    src: url("/fonts/SourceSerif4-SemiBold.woff2") format("woff2");
    font-display: swap;
    font-weight: 600;
}

@font-face {
    font-family: "Source Sans 3";
    src: url("/fonts/SourceSans3-Regular.woff2") format("woff2");
    font-display: swap;
    font-weight: 400;
}

@font-face {
    font-family: "Source Sans 3";
    src: url("/fonts/SourceSans3-SemiBold.woff2") format("woff2");
    font-display: swap;
    font-weight: 600;
}

:root {
    --accent-color: #4d4032;
    --logo-color: var(--accent-color);

    --olive-bg-main: #f4ecdf;
    --olive-bg-secondary: #fbf6ed;
    --olive-bg-tertiary: #e6daca;
    --olive-text-main: #15100b;
    --olive-text-secondary: #473d31;
    --olive-accent-primary: #725f49;
    --olive-accent-secondary: #43372a;
    --olive-accent-highlight: #ddd1bf;

    --olive-accent-primary-rgb: 114, 95, 73;
    --olive-accent-secondary-rgb: 67, 55, 42;
    --olive-text-secondary-rgb: 71, 61, 49;

    --font-family-sans-serif: "Source Serif 4", Georgia, "Times New Roman", serif;
    --font-family-ui: "Source Sans 3", "Helvetica Neue", Arial, sans-serif;
    --font-family-monospace: "Fira Code", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    --home-box-padding: 0.35rem 0.45rem;
    --home-box-border-width: 1px;
    --home-box-border-style: solid;
    --home-box-border-color: rgba(71, 61, 49, 0.24);
    --home-box-background: rgba(255, 255, 255, 0.22);

    letter-spacing: 0;
    background-image:
        radial-gradient(circle at top, rgba(255, 255, 255, 0.65), rgba(255, 255, 255, 0) 44%),
        linear-gradient(to bottom, rgba(84, 73, 58, 0.035), rgba(84, 73, 58, 0));
    background-size: auto;
}

body {
    font-family: "Source Serif 4", Georgia, "Times New Roman", serif;
    font-size: 1.11rem;
    line-height: 1.92;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    letter-spacing: 0;
    color: var(--olive-text-main);
    font-feature-settings: "kern" 1, "liga" 1, "clig" 1, "onum" 1;
    font-kerning: normal;
}

*,
*::before,
*::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
}

h1,
h2,
h3,
h4,
h5,
.gavide--nav-title,
.gavide--post-preview h2,
.gavide--blog-post h1,
.gavide--blog-post h2,
.gavide--pagepost h1 {
    font-family: "Source Serif 4", Georgia, "Times New Roman", serif;
    font-weight: 600;
    letter-spacing: -0.015em;
}

.gavide--root-bg-1,
.gavide--root-bg-2 {
    display: none;
}

.gavide--root-section {
    display: block;
    max-width: 90rem;
    overflow: visible;
}

.gavide--root-main {
    max-width: 96ch;
    padding: 0 1.5rem;
    margin: 0 auto;
}

@media (min-width: 991.98px) {
    .gavide--root-main {
        width: min(100%, 96ch);
    }
}

.gavide--header {
    position: static;
    z-index: 40;
    margin-bottom: 1.25rem;
    margin-inline: calc(50% - 50vw);
}

.gavide--header menu {
    box-sizing: border-box;
    width: 100%;
    max-width: 100vw;
    margin: 0;
    padding: 0.9rem max(1.25rem, calc(50vw - 46rem));
    border-bottom: 1px solid rgba(71, 61, 49, 0.18);
    backdrop-filter: blur(10px);
}

.gavide--header menu nav {
    display: flex;
    align-items: center;
    gap: 0.75rem 1rem;
    flex-wrap: wrap;
}

.gavide--nav-title {
    font-family: var(--font-family-ui);
    font-weight: 600;
    border-bottom: none;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--olive-text-secondary);
}

.gavide--nav-title.sub {
    margin: 0 0.9rem 0 0;
    font-family: var(--font-family-ui);
    font-size: 1.06rem;
    text-transform: none;
    letter-spacing: 0.04em;
    color: var(--olive-text-main);
}

.gavide--nav-ul {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-left: auto;
    padding: 0;
    flex-wrap: wrap;
}

.gavide--nav-link-li {
    list-style: none;
}

.gavide--nav-link span {
    font-family: var(--font-family-ui);
    display: block;
    border: 1px solid rgba(71, 61, 49, 0.2);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.34);
    padding: 0.75rem 1.15rem;
    font-size: 1.02rem;
    line-height: 1;
}

.gavide--nav-link:hover {
    box-shadow: none;
}

.gavide--nav-link[aria-current="page"] span,
.gavide--nav-link-li[aria-current="page"] .gavide--nav-link span {
    background: var(--olive-text-main);
    border-color: var(--olive-text-main);
    color: var(--olive-bg-secondary);
}

.gavide--header-extra {
    display: none;
}

.gavide--header menu,
.gavide--footer section,
.gavide--blog-tof,
.gavide--sidebar > figure,
.gavide--blog-article > figure,
.gavide--search-input,
.gavide--selector ul {
    background: color-mix(in srgb, var(--background-secondary) 97%, white 3%);
    box-shadow: none;
}

.gavide--blog-tof,
.gavide--sidebar > figure,
.gavide--blog-article > figure,
.gavide--selector ul,
.gavide--search-input {
    border: 1px solid rgba(101, 90, 75, 0.12);
}

.gavide--blog-section {
    display: block !important;
}

.gavide--blog-article,
.gavide--pagepost {
    max-width: 96ch;
    margin-inline: auto;
}

.gavide--blog-article.sidebar-expanded {
    width: 100% !important;
}

.gavide--sidebar {
    display: block;
    width: auto;
    max-width: 96ch;
    margin: 1.75rem auto 0;
    padding: 0 1.5rem 2rem;
}

.gavide--blog-article > ol,
.gavide--url-path {
    font-family: var(--font-family-ui);
    font-size: 0.94rem;
    color: var(--text-color-secondary);
    gap: 0.25rem;
    flex-wrap: wrap;
}

.gavide--blog-article h1,
.gavide--pagepost h1 {
    font-size: clamp(2.35rem, 4vw, 3rem);
    line-height: 1.05;
    letter-spacing: -0.02em;
    margin-bottom: 0.8rem;
}

.gavide--blog-article > time,
.gavide--post-preview p time,
.gavide--blog-post time {
    font-family: var(--font-family-ui);
    color: var(--text-color-secondary);
}

.gavide--blog-article > figure,
.gavide--sidebar > figure,
.gavide--blog-tof {
    background: rgba(255, 255, 255, 0.14) !important;
    border: 1px solid rgba(71, 61, 49, 0.18) !important;
    box-shadow: none !important;
    animation: none !important;
    padding: 1rem 1.1rem;
}

.gavide--blog-article > figure > figcaption,
.gavide--sidebar > figure > figcaption {
    margin: 0 0 0.8rem;
    padding: 0;
    background: none;
    color: var(--text-color-secondary);
    font-family: var(--font-family-ui);
    font-size: 0.83rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.gavide--blog-article > figure > ul > li,
.gavide--sidebar > figure > ul > li {
    margin: 0.2rem 0.35rem 0.2rem 0;
    padding: 0;
    border: 1px solid rgba(71, 61, 49, 0.2);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.22);
    font-family: var(--font-family-ui);
    font-size: 0.9rem;
}

.gavide--blog-article > figure > ul > li > a,
.gavide--sidebar > figure > ul > li > a {
    display: block;
    padding: 0.32rem 0.72rem;
    color: inherit;
    text-decoration: none;
}

.gavide--blog-article > figure > ul > li:hover,
.gavide--sidebar > figure > ul > li:hover {
    color: var(--text-color);
    background: rgba(255, 255, 255, 0.28);
}

.gavide--blog-tof {
    margin: 1rem 0 1.4rem;
    padding-left: 1.1rem;
}

.gavide--blog-tof::before,
.gavide--blog-post blockquote::before {
    display: none;
}

.gavide--blog-tof > ol {
    margin: 0.45rem 0 0;
    padding-left: 1.2rem;
}

.gavide--blog-tof > ol > li > a {
    font-family: var(--font-family-ui);
    text-decoration-thickness: 0.08em;
}

.gavide--blog-post h2,
.gavide--pagepost h2 {
    font-size: 2.05rem;
    border: none;
    padding: 0;
    margin: 2.1rem 0 0.9rem;
}

.gavide--blog-post h3,
.gavide--pagepost h3 {
    font-size: 1.6rem;
    border: none;
    padding: 0;
    margin: 1.8rem 0 0.8rem;
}

.gavide--blog-post h4,
.gavide--pagepost h4 {
    font-size: 1.3rem;
    border: none;
    padding: 0;
    margin: 1.45rem 0 0.7rem;
}

.gavide--blog-post h5,
.gavide--pagepost h5 {
    font-size: 1.12rem;
    border: none;
    padding: 0;
    margin: 1.3rem 0 0.65rem;
}

.gavide--post-preview {
    display: block;
    margin: 2rem 0;
    padding: 0 0 1.5rem;
    text-decoration: none;
    border-bottom: none;
    background: none;
    box-shadow: none;
}

.gavide--post-preview h2 {
    font-family: "Source Serif 4", Georgia, "Times New Roman", serif;
    font-size: 2.15rem;
    font-weight: 600;
    line-height: 1.05;
    margin-bottom: 0.5rem;
}

.gavide--post-preview h2:hover {
    color: var(--accent-color-secondary);
}

.gavide--post-preview p {
    max-width: 62ch;
    line-height: 1.8;
}

.gavide--post-preview p time {
    color: var(--text-color-secondary);
    font-size: 0.98rem;
}

.gavide--post-preview ul {
    margin: 0.85rem 0;
    padding: 0;
}

.gavide--blog-post,
.gavide--pagepost {
    color: var(--text-color);
}

.gavide--blog-post p,
.gavide--pagepost p,
.gavide--post-preview p {
    line-height: 1.92;
}

.gavide--blog-post a,
.gavide--pagepost a,
.gavide--blog-article ol li a {
    border-bottom: none;
    text-decoration: underline;
    text-decoration-thickness: 0.08em;
    text-underline-offset: 0.12em;
    color: var(--accent-color-secondary);
}

.gavide--blog-post blockquote,
.gavide--pagepost blockquote {
    background: rgba(97, 86, 72, 0.05);
    border-inline-start: 3px solid rgba(97, 86, 72, 0.3);
    padding-left: 1rem;
}

.gavide--blog-post hr,
.gavide--pagepost hr,
.gavide--blog-article hr {
    border-color: rgba(97, 86, 72, 0.2);
}

.gavide--tags {
    padding: 0;
    margin: 0;
}

.gavide--tags li,
.gavide--post-preview ul li {
    display: inline-block;
    margin: 0.24rem 0.42rem 0.24rem 0;
    padding: 0;
    font-size: 0.9rem;
    line-height: 1;
    color: var(--text-color-secondary);
    border: 1px solid rgba(71, 61, 49, 0.2);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.22);
    font-family: var(--font-family-ui);
}

.gavide--tags li a {
    display: block;
    padding: 0.3rem 0.72rem;
    text-decoration: none !important;
}

.gavide--selector {
    display: flex;
    margin-top: 1.2rem;
    position: relative;
    gap: 0.35rem;
    align-items: stretch;
}

label[for="lang-show"],
.gavide--search-input {
    font-family: var(--font-family-ui);
    border: 1px solid rgba(71, 61, 49, 0.18);
    background: color-mix(in srgb, var(--background-secondary) 96%, white 4%);
    color: var(--text-color);
    min-height: 3rem;
    font-size: 1rem;
    padding: 0.75rem 1rem;
}

label[for="lang-show"] {
    cursor: pointer;
}

#lang-show:checked+ul {
    top: 3.3rem;
    background: var(--background-secondary);
    border: 1px solid rgba(71, 61, 49, 0.18);
    border-radius: 1rem;
    padding: 0.4rem;
    gap: 0.3rem;
}

.gavide--selector ul li a {
    font-family: var(--font-family-ui);
    display: block;
    padding: 0.72rem 0.95rem;
    border-radius: 0.75rem;
}

.gavide--search-input {
    min-width: clamp(16rem, 42vw, 22rem);
}

.gavide--footer {
    margin-top: 2rem;
    margin-bottom: 1.5rem;
    border-top: 0;
}

.gavide--footer section div {
    padding: 0.85rem 1rem;
    gap: 0.35rem;
}

.gavide--footer-copyright-text,
.gavide--footer-links {
    margin: 0;
}

.gavide--footer section {
    border: 1px solid rgba(101, 90, 75, 0.16);
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: none;
}

.gavide--footer section::before {
    display: none;
}

.social-icon {
    fill: var(--accent-color-secondary);
}

html,
body {
    max-width: 100%;
    overflow-x: clip;
    scrollbar-color: #7a6a56 #f6efe4;
}

@supports not (overflow: clip) {
    html,
    body {
        overflow-x: hidden;
    }
}

::-webkit-scrollbar {
    width: 12px;
    height: 12px;
    background-color: #f6efe4 !important;
}

::-webkit-scrollbar-track,
::-webkit-scrollbar-corner {
    background-color: #f6efe4 !important;
}

::-webkit-scrollbar-thumb {
    background-color: #7a6a56 !important;
}

::-webkit-scrollbar-thumb:hover {
    background-color: #655441 !important;
}

::-webkit-scrollbar-thumb:active {
    background-color: #534433 !important;
}

.logo-skeleton:hover,
.social-icon:hover {
    transform: none;
    filter: none;
}

@media screen and (max-width: 1300px) {
    .gavide--root-main {
        margin-top: 0;
        max-width: 100%;
        width: 100%;
        padding: 0 1rem;
    }

    .gavide--blog-article,
    .gavide--pagepost,
    .gavide--sidebar {
        max-width: 100%;
        padding-inline: 0;
    }

    .gavide--header menu {
        display: block !important;
        position: static;
        width: 100%;
        height: auto;
        padding: 0.85rem 1rem;
        overflow: visible;
        background: color-mix(in srgb, var(--background-secondary) 96%, white 4%);
        border-bottom: 1px solid rgba(101, 90, 75, 0.15);
    }

    .gavide--header.show menu {
        height: auto;
        top: auto;
        z-index: auto;
    }

    .gavide--navigation-button {
        display: none;
    }

    .gavide--nav-title.sub {
        order: 1;
        margin-right: auto;
    }

    .gavide--nav-title {
        order: 2;
    }

    .gavide--nav-title:not(.sub) {
        display: none;
    }

    .gavide--nav-ul {
        order: 3;
        width: 100%;
        margin-left: 0;
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        align-items: stretch;
        gap: 0.45rem;
        padding-top: 0.35rem;
    }

    .gavide--nav-link-li {
        flex: 1 1 calc(50% - 0.225rem);
    }

    .gavide--nav-link span {
        width: 100%;
        padding: 0.45rem 0.85rem;
        font-size: 0.96rem;
        line-height: 1.1;
        text-align: center;
    }
}

pre,
code {
    font-family: "Fira Code", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}
