@font-face {
    font-family: "Romanian League Gothic";
    src: url("/static/fonts/RoLeagueGothic-Regular.woff2") format("woff2");
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: "Romanian League Gothic Condensed";
    src: url("/static/fonts/RoLeagueGothic-Condensed.woff2") format("woff2");
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: "Source Serif";
    src: url("/static/fonts/SourceSerif4Variable-Roman.otf.woff2") format("woff2-variations");
}

@font-face {
    font-family: "Source Serif";
    src: url("/static/fonts/SourceSerif4Variable-Italic.otf.woff2") format("woff2-variations");
    font-style: italic;
}

@font-face {
    font-family: "Source Sans";
    src: url("/static/fonts/SourceSans3VF-Upright.otf.woff2") format("woff2-variations");
}

@font-face {
    font-family: "Source Sans";
    src: url("/static/fonts/SourceSans3VF-Italic.otf.woff2") format("woff2-variations");
    font-style: italic;
}

@font-face {
    font-family: "Source Code";
    src: url("/static/fonts/SourceCodeVF-Upright.otf.woff2") format("woff2-variations");
}

@font-face {
    font-family: "Source Code";
    src: url("/static/fonts/SourceCodeVF-Italic.otf.woff2") format("woff2-variations");
    font-style: italic;
}

body {
    line-height: 1.5rem;
    font-family: "Source Serif", serif;
    font-weight: 375;
    font-size: 1.125rem;

    min-height: 100vh;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #eceff1;
    font-variation-settings: "opsz" 14;
}

:is(a:link, a:visited):not(nav a) {
    color: #009688;
    text-decoration-thickness: 0.0625em;
    text-underline-offset: 0.125em;
    font-weight: 550;
}

a:is(:hover, :focus):not(nav a) {
    background: #B2DFDB;
    color: #00796B;
    border-radius: 0.25rem;
    text-decoration: none;
    outline: none;
}

header {
    width: 100%;
    font-family: "Source Sans", sans-serif;
    position: sticky;
    top: 0;
    background: #eceff1;
    display: flex;
    justify-content: center;
    z-index: 2;
}

nav {
    width: min(800px, 100%);
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-sizing: border-box;
    min-height: 4rem;
    padding: 1rem 0;
    margin: 0 0.5rem;
}

nav > ul {
    font-family: "Romanian League Gothic", sans-serif;
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    align-items: center;
    gap: 1rem;
    font-weight: normal;
    font-size: 1.75rem;
    line-height: 2rem;
    text-transform: uppercase;
}

@media (max-width: 576px) {
    nav > ul {
        flex-flow: row wrap;
        justify-content: center;
        row-gap: 0.5rem;
    }
    nav {
        flex-direction: column;
        gap: 1rem;
    }
    header {
        position: static;
    }
}

@media (max-width: 720px) {
    nav {
        flex-direction: column;
        padding: 0.5rem;
        gap: 0.5rem;
    }
}

nav > ul > li > a {
    font-weight: normal;
    text-decoration: none;
    color: #000000;
    text-decoration-thickness: 0.125em;
    text-shadow: none !important;
}

nav > ul > li > a:is(:hover, :focus) {
    text-decoration: underline;
    outline: none;
}

#skip-link {
    font-size: 1.75rem;
    line-height: 2rem;
    text-transform: uppercase;
    font-family: "Romanian League Gothic", sans-serif;
    font-weight: normal;
    text-decoration: none;
    text-shadow: none !important;
    text-decoration-thickness: 0.125em;
    position: absolute;
    transform: scaleY(0);
    transform-origin: top;
    background: #009688;
    color: #ffffff;
    padding: 0.5rem;
    border-radius: 0;
}

@media (prefers-reduced-motion: no-preference) {
    #skip-link {
        transition: transform 200ms;
    }
}

#skip-link:focus {
    transform: scaleY(1);
    z-index: 3;
}

footer {
    width: min(800px, 100%);
    padding: 1rem;
    box-sizing: border-box;
    font-family: "Source Sans", sans-serif;
}

main {
    width: min(800px, 100%);
    flex: 1 0 auto;
    gap: 1rem;
    display: flex;
    flex-direction: column;
}

.content-area {
    box-shadow: 0 0 1px #00000028,
                0 0 2px #00000020,
                0 2px 4px #00000010,
                0 2px 18px -6px #00000010;
    padding: 1rem;
    box-sizing: border-box;
    background: #ffffff;
}

h1 {
    font-family: "Romanian League Gothic Condensed", sans-serif;
    font-weight: normal;
    font-size: 4rem;
    line-height: 5rem;
    margin: 0;
    text-align: center;
    border-bottom: 0.5px solid #000000;
}

h2 {
     font-family: "Romanian League Gothic", sans-serif;
     font-weight: normal;
     font-size: 2.75rem;
     line-height: 3rem;
     margin: 0;
}

h3 {
    font-family: "Source Sans", sans-serif;
    font-weight: 725;
    font-size: 1.875rem;
    line-height: 3rem;
    margin: 0;
}

h4 {
    font-family: "Source Sans", sans-serif;
    font-weight: 800;
    font-size: 1.5rem;
    line-height: 2rem;
    margin: 0;
}

h5 {
    font-family: "Source Sans", sans-serif;
    font-weight: 800;
    font-size: 1.25rem;
    line-height: 2rem;
    margin: 0;
}

h6 {
    font-family: "Source Sans", sans-serif;
    font-weight: 900;
    font-size: 1.125rem;
    line-height: 2rem;
    margin: 0;
}

.article-title, .article-title a:link, .article-title a:visited {
    text-decoration: none;
    text-align: center;
    color: #00796B;
    display: block;
    width: 100%;
    background: transparent !important;
    font-family: "Romanian League Gothic", sans-serif;
}

#mail-link {
    color: #009688;
    text-transform: none;
}

pre, code, kbd, samp, var {
    font-family: "Source Code", monospace;
    font-feature-settings: "zero" on;
}

pre {
    overflow-x: auto;
    padding: 1rem;
    background: #263238;
    color: #ffffff;
    color-scheme: dark;
    font-size: 1rem;
    line-height: 1.25rem;
}

.project-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    width: 100%;
    border: none;
}

.project-title > h1 {
    padding: 0.5rem;
    border: none;
}

.project-title > a:any-link {
    text-decoration: none;
    background: #009688;
    color: #ffffff;
    padding: 0.5rem;
    border: 4px solid #00796B;
    box-sizing: border-box;
    line-height: 1.25em;
    font-size: 1.5em;
    font-family: "Romanian League Gothic", sans-serif;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 25%;
    height: 2lh;

    transition: 400ms;
}

@media (max-width: 512px) {
    .project-title {
        flex-direction: column;
        align-items: center;
    }

    .project-title > a {
        min-height: 1.5lh;
        margin: auto;
        padding: 0 2rem;
    }
}

.project-title > a:hover {
    border-width: 8px;
}

strong, em {
    font: inherit;
}

.emphasis-1 {
    font-style: italic;
}

.emphasis-2 {
    font-weight: 625;
}

.emphasis-3 {
    font-variant: small-caps;
    font-synthesis-small-caps: none;
}

#article-date, .home-article-date {
    font-family: "Source Code", sans-serif;
    font-feature-settings: "zero" on;
    font-weight: 625;
    text-align: center;
}

blockquote {
    font-family: "Source Serif", serif;
    font-weight: 350;
    border-top: 0.5px solid #009688;
    border-bottom: 0.5px solid #009688;
    padding: 0.5rem 2rem;
    margin: 0;
}

blockquote > p:first-child {
    margin-top: 0;
}

blockquote > p:last-child {
    margin-bottom: 0;
}

img:not(.article-image) {
    max-width: 100%;
    height: auto;
}

.topic-posts {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.topic-expander > summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    text-transform: uppercase;
    user-select: none;
    align-items: center;
}

.topic-expander > summary > h2 {
    font-family: "Romanian League Gothic", sans-serif;
    font-size: 2.75rem;
}

.topic-expander > summary::after {
    content: "▶";
    transition: transform 400ms;
    font-size: 1.5rem;
}

.topic-expander[open] > summary::after {
    transform: rotate(90deg);
}

#index-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin: 0 1rem;
}

@media (max-width: 576px) {
    #index-container {
        grid-template-columns: 1fr;
    }
}

.article-image {
    width: calc(100% + 2rem) !important;
    aspect-ratio: 64/27;
    object-fit: cover;
    position: relative;
    z-index: 0;
    top: -1rem;
    left: -1rem;
}

.tags {
    margin: 0;
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    font-family: "Source Sans", sans-serif;
}

.tag::before {
    content: "#";
}

.tag {
    text-decoration: none;
}

p {
    margin: 1lh 0;
}

.content-area p:first-child {
    margin-top: 0;
}

.content-area p:last-child {
    margin-bottom: 0;
}

@media (prefers-color-scheme: dark) {
    :root {
        color-scheme: dark;
    }
    body, header {
        background: #37474F;
        color: #ffffff;
    }
    .content-area {
        background: #455A64;
        color: #ffffff;
    }
    nav > ul > li > a {
        color: #f5f5f5;
    }
    :is(a:link, a:visited):not(nav a), #mail-link {
        color: #80CBC4;
    }
    a:is(:hover, :focus):not(nav a) {
        background: #607D8B;
        color: #B2DFDB;
    }
    h1 {
        border-bottom: 0.5px solid #ffffff;
    }
    .article-title, .article-title a:link, .article-title a:visited {
        color: #4DB6AC;
    }
    blockquote {
        border-top: 0.5px solid #80CBC4;
        border-bottom: 0.5px solid #80CBC4;
    }
}
