
/*
// =====================================================================================================================
//   CONSTANTS
// =====================================================================================================================
*/

:root {
    /* Colours */
    --background-colour:   #1C1C1D;
    --text-colour:         #e8e8e8;
    --title-colour:        #58A6FF;
    --link-colour:         #38BDF8;
    --link-hover-colour:   #8bd9fe;

    /* Content */
    --max-width: 75rem;
    --x-padding: 10%;
}

/*
// =====================================================================================================================
//   IMPORT FONT FACE
// =====================================================================================================================
*/

@font-face {
    font-family: hermit;
    font-weight: normal;
    src: url("../assets/fonts/hermit/Hermit-Regular.otf");
}

@font-face {
    font-family: hermit;
    font-weight: bold;
    src: url("../assets/fonts/hermit/Hermit-Bold.otf");
}

@font-face {
    font-family: hermit;
    font-weight: normal;
    font-style:  italic;
    src: url("../assets/fonts/hermit/Hermit-Italic.otf");
}

@font-face {
    font-family: hermit;
    font-weight: bold;
    font-style:  italic;
    src: url("../assets/fonts/hermit/Hermit-BoldItalic.otf");
}


@font-face {
    font-family: spacemono;
    font-weight: normal;
    src: url("../assets/fonts/spacemono/SpaceMono-Regular.ttf");
}

@font-face {
    font-family: spacemono;
    font-weight: bold;
    src: url("../assets/fonts/spacemono/SpaceMono-Bold.ttf");
}

@font-face {
    font-family: spacemono;
    font-weight: normal;
    font-style:  italic;
    src: url("../assets/fonts/spacemono/SpaceMono-Italic.ttf");
}

@font-face {
    font-family: spacemono;
    font-weight: bold;
    font-style:  italic;
    src: url("../assets/fonts/spacemono/SpaceMono-BoldItalic.ttf");
}

/*
// =====================================================================================================================
//   STYLE
// =====================================================================================================================
*/

:root {
    /* === BEHAVIOUR === */
    -moz-osx-font-smoothing: grayscale;
    -webkit-font-smoothing:  antialiased;
    overflow-x:              hidden;
    scrollbar-width:         thin;
    scroll-behavior:         smooth;

    /* === COLOUR === */
    background-color:        var(--background-colour);
    color:                   var(--text-colour);

    /* === PADDING === */
    padding-top:             3rem;
    padding-bottom:          3rem;
    padding-left:            var(--x-padding);
    padding-right:           var(--x-padding);
    max-width:               var(--max-width);
    margin-left:             auto;
    margin-right:            auto;
    margin-top:              auto;
    margin-bottom:           auto;

    /* === FONT === */
    font-family:             spacemono;
    font-weight:             normal;

    strong {
        font-weight: bold;
        i { font-style: italic; }
    }

    i {
        font-style: italic;
        strong { font-weight: bold; }
    }
}

a {
    color:              var(--link-colour);
    text-decoration:    none;
    font-weight:        bold;
    font-style:         italic;

    -moz-transition:    all 0.25s ease-in-out;
    -o-transition:      all 0.25s ease-in-out;
    -webkit-transition: all 0.25s ease-in-out;
    transition:         all 0.25s ease-in-out;
}
a:hover {
    color:       var(--link-hover-colour);
    font-weight: bold;
    font-style:  italic;
}

.hidden-link {
    color: var(--text-colour);
}

summary {
    color:              var(--link-colour);
    text-decoration:    none;
    font-weight:        bold;
    font-style:         italic;
    cursor:             pointer;

    -moz-transition:    all 0.25s ease-in-out;
    -o-transition:      all 0.25s ease-in-out;
    -webkit-transition: all 0.25s ease-in-out;
    transition:         all 0.25s ease-in-out;
}
summary:hover {
    color:       var(--link-hover-colour);
    font-weight: bold;
    font-style:  italic;
    cursor:      pointer;
}

hr {
    color:       #2c3237;
    margin-top:    2rem;
    margin-bottom: 2rem;
}

br {
    margin-bottom: 0.85rem;
}

iframe {
    width:        100%;
    height:       100%;
    aspect-ratio: 16 / 9;
}

img {
    border-radius: 2%;
    filter:        drop-shadow(0.2rem 0.2rem 0.2rem rgba(0,0,0,0.6));
    margin-left:   auto;
    margin-right:  auto;
    margin-top:    0.5rem;
    margin-bottom: 0.5rem;
}

figcaption {
    /* === FLEX BOX === */
    display:        flex;
    flex-direction: column;

    /* === ALIGNMENT === */
    margin-top:     auto;
    margin-bottom:  auto;
    margin-left:    auto;
    margin-right:   auto;
    text-align:     center;
    align-items:    center;

    /* === PADDING === */
    padding-bottom: 1.5rem;

    /* === FONT === */
    font-size:      0.85rem;
}

h1, h2, h3, h4, h5, h6 {
    color:       var(--title-colour);
    font-weight: normal;
    font-style:  italic;
}

h1 {
    padding-top:    1rem;
    padding-bottom: 1rem;
    font-size:      1.7rem;

    /* === FLEX BOX === */
    display:        flex;
    flex-direction: column;

    /* === ALIGNMENT === */
    margin-top:     auto;
    margin-bottom:  auto;
    margin-left:    auto;
    margin-right:   auto;
    text-align:     center;
    align-items:    center;
}

h2 {
    padding-top:    1rem;
    padding-bottom: 1rem;
    font-size:      1.2rem;

    /* === FLEX BOX === */
    display:        flex;
    flex-direction: column;

    /* === ALIGNMENT === */
    margin-top:     auto;
    margin-bottom:  auto;
    margin-left:    auto;
    margin-right:   auto;
    text-align:     center;
    align-items:    center;
}

.header {
    color:     var(--title-colour);
    font-size: 2.75rem;

    .button {
        font-size:    1.75rem;
        margin-left:  2.5rem;
        margin-right: 2.5rem;
    }
}
@media screen and (max-width: 1125px) {
    .header {
        font-size: 2rem;

        .button {
            font-size:    1.5rem;
            margin-left:  2rem;
            margin-right: 2rem;
        }
    }
}
@media screen and (max-width: 850px) {
    .header {
        font-size: 1.5rem;

        .button {
            font-size:    1.25rem;
            margin-left:  1rem;
            margin-right: 1rem;
        }
    }
}
@media screen and (max-width: 650px) {
    .header {
        font-size: 1.25rem;

        .button {
            font-size:    1.25rem;
            margin-left:  1rem;
            margin-right: 1rem;
        }
    }
}

.centered {
    /* === FLEX BOX === */
    display:        flex;
    flex-direction: column;

    /* === ALIGNMENT === */
    margin-top:     auto;
    margin-bottom:  auto;
    margin-left:    auto;
    margin-right:   auto;
    text-align:     center;
    align-items:    center;
}

.page {
    padding-bottom: 2rem;
}

ul {
    li {
        padding-top:    0.1rem;
        padding-bottom: 0.1rem;

        br {
            margin-bottom: 0.05rem;
        }
    }
}

.blog-titlebox {
    display:         flex;
    justify-content: space-between;
    align-items:     flex-start;
    gap:             1rem;
}
@media screen and (max-width: 1000px) {
    .blog-titlebox {
        display:         block;
        justify-content: left;
        align-items:     normal;
    }
}

.blog-title {
    flex:      1;
    min-width: 0;
}

.blog-tags {
    display:     flex;
    flex-shrink: 0;
    white-space: nowrap;
    overflow-x:  auto;
    gap:         0.5rem;
    /* padding:     0.3rem; */

    .tag {
        display:          inline-flex;
        align-items:      center;
        white-space:      nowrap;

        background-color: #2D3139;
        color:            var(--text-colour);
        padding:          0.2rem 0.65rem;
        border-radius:    6px;
        font-size:        0.8rem;
        font-weight:      500;
        font-style:       normal;
        border:           1px solid #3D424D;

        -moz-transition:    all 0.25s ease-in-out;
        -o-transition:      all 0.25s ease-in-out;
        -webkit-transition: all 0.25s ease-in-out;
        transition:         all 0.25s ease-in-out;
    }

    .tag:hover {
        color:       var(--link-hover-colour);
        font-weight: bold;
        font-style:  normal;
    }
}

.blog-description {

}
