/**
*  Old Kowloon Club
*  Copyright (c) Old Kowloon Club 2024
*  MIT license, see LICENSE file for details
*/

/* MARK: Globals and Variables */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;

    --primary-font-family: "Times New Roman", serif;
    --site-name-font-family: Papyrus, serif;
    --tag-font-family: Georgia, serif;
    --primary-font-size: 18px;
    --light-mode-text-color: #c8c8a0;
    --dark-mode-text-color: #ffffb4;
    --link-color: teal;
    --light-mode-bg-color: #3c4343;
    --dark-mode-bg-color: #2f3333;
    --light-mode-bg-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 56 28' width='56' height='28'%3E%3Cpath fill='%23333333' fill-opacity='1' d='M56 26v2h-7.75c2.3-1.27 4.94-2 7.75-2zm-26 2a2 2 0 1 0-4 0h-4.09A25.98 25.98 0 0 0 0 16v-2c.67 0 1.34.02 2 .07V14a2 2 0 0 0-2-2v-2a4 4 0 0 1 3.98 3.6 28.09 28.09 0 0 1 2.8-3.86A8 8 0 0 0 0 6V4a9.99 9.99 0 0 1 8.17 4.23c.94-.95 1.96-1.83 3.03-2.63A13.98 13.98 0 0 0 0 0h7.75c2 1.1 3.73 2.63 5.1 4.45 1.12-.72 2.3-1.37 3.53-1.93A20.1 20.1 0 0 0 14.28 0h2.7c.45.56.88 1.14 1.29 1.74 1.3-.48 2.63-.87 4-1.15-.11-.2-.23-.4-.36-.59H26v.07a28.4 28.4 0 0 1 4 0V0h4.09l-.37.59c1.38.28 2.72.67 4.01 1.15.4-.6.84-1.18 1.3-1.74h2.69a20.1 20.1 0 0 0-2.1 2.52c1.23.56 2.41 1.2 3.54 1.93A16.08 16.08 0 0 1 48.25 0H56c-4.58 0-8.65 2.2-11.2 5.6 1.07.8 2.09 1.68 3.03 2.63A9.99 9.99 0 0 1 56 4v2a8 8 0 0 0-6.77 3.74c1.03 1.2 1.97 2.5 2.79 3.86A4 4 0 0 1 56 10v2a2 2 0 0 0-2 2.07 28.4 28.4 0 0 1 2-.07v2c-9.2 0-17.3 4.78-21.91 12H30zM7.75 28H0v-2c2.81 0 5.46.73 7.75 2zM56 20v2c-5.6 0-10.65 2.3-14.28 6h-2.7c4.04-4.89 10.15-8 16.98-8zm-39.03 8h-2.69C10.65 24.3 5.6 22 0 22v-2c6.83 0 12.94 3.11 16.97 8zm15.01-.4a28.09 28.09 0 0 1 2.8-3.86 8 8 0 0 0-13.55 0c1.03 1.2 1.97 2.5 2.79 3.86a4 4 0 0 1 7.96 0zm14.29-11.86c1.3-.48 2.63-.87 4-1.15a25.99 25.99 0 0 0-44.55 0c1.38.28 2.72.67 4.01 1.15a21.98 21.98 0 0 1 36.54 0zm-5.43 2.71c1.13-.72 2.3-1.37 3.54-1.93a19.98 19.98 0 0 0-32.76 0c1.23.56 2.41 1.2 3.54 1.93a15.98 15.98 0 0 1 25.68 0zm-4.67 3.78c.94-.95 1.96-1.83 3.03-2.63a13.98 13.98 0 0 0-22.4 0c1.07.8 2.09 1.68 3.03 2.63a9.99 9.99 0 0 1 16.34 0z'%3E%3C/path%3E%3C/svg%3E");
    --dark-mode-bg-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 56 28' width='56' height='28'%3E%3Cpath fill='%23424242' fill-opacity='1' d='M56 26v2h-7.75c2.3-1.27 4.94-2 7.75-2zm-26 2a2 2 0 1 0-4 0h-4.09A25.98 25.98 0 0 0 0 16v-2c.67 0 1.34.02 2 .07V14a2 2 0 0 0-2-2v-2a4 4 0 0 1 3.98 3.6 28.09 28.09 0 0 1 2.8-3.86A8 8 0 0 0 0 6V4a9.99 9.99 0 0 1 8.17 4.23c.94-.95 1.96-1.83 3.03-2.63A13.98 13.98 0 0 0 0 0h7.75c2 1.1 3.73 2.63 5.1 4.45 1.12-.72 2.3-1.37 3.53-1.93A20.1 20.1 0 0 0 14.28 0h2.7c.45.56.88 1.14 1.29 1.74 1.3-.48 2.63-.87 4-1.15-.11-.2-.23-.4-.36-.59H26v.07a28.4 28.4 0 0 1 4 0V0h4.09l-.37.59c1.38.28 2.72.67 4.01 1.15.4-.6.84-1.18 1.3-1.74h2.69a20.1 20.1 0 0 0-2.1 2.52c1.23.56 2.41 1.2 3.54 1.93A16.08 16.08 0 0 1 48.25 0H56c-4.58 0-8.65 2.2-11.2 5.6 1.07.8 2.09 1.68 3.03 2.63A9.99 9.99 0 0 1 56 4v2a8 8 0 0 0-6.77 3.74c1.03 1.2 1.97 2.5 2.79 3.86A4 4 0 0 1 56 10v2a2 2 0 0 0-2 2.07 28.4 28.4 0 0 1 2-.07v2c-9.2 0-17.3 4.78-21.91 12H30zM7.75 28H0v-2c2.81 0 5.46.73 7.75 2zM56 20v2c-5.6 0-10.65 2.3-14.28 6h-2.7c4.04-4.89 10.15-8 16.98-8zm-39.03 8h-2.69C10.65 24.3 5.6 22 0 22v-2c6.83 0 12.94 3.11 16.97 8zm15.01-.4a28.09 28.09 0 0 1 2.8-3.86 8 8 0 0 0-13.55 0c1.03 1.2 1.97 2.5 2.79 3.86a4 4 0 0 1 7.96 0zm14.29-11.86c1.3-.48 2.63-.87 4-1.15a25.99 25.99 0 0 0-44.55 0c1.38.28 2.72.67 4.01 1.15a21.98 21.98 0 0 1 36.54 0zm-5.43 2.71c1.13-.72 2.3-1.37 3.54-1.93a19.98 19.98 0 0 0-32.76 0c1.23.56 2.41 1.2 3.54 1.93a15.98 15.98 0 0 1 25.68 0zm-4.67 3.78c.94-.95 1.96-1.83 3.03-2.63a13.98 13.98 0 0 0-22.4 0c1.07.8 2.09 1.68 3.03 2.63a9.99 9.99 0 0 1 16.34 0z'%3E%3C/path%3E%3C/svg%3E");
    --light-mode-header-image-left: url("/images/coffee.png");
    --dark-mode-header-image-left: url("/images/pipe.png");
    --light-mode-header-image-right: url("/images/newspaper.png");
    --dark-mode-header-image-right: url("/images/book.png");
}

/* MARK: Theme and Media */
body {
    /* Global Text Style */
    font-family: var(--primary-font-family);
    font-size: var(--primary-font-size);
    /* Make the body a flex container with min-height */
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    margin: 0;
}

p {
    margin-bottom: 20px;
}

h3 {
    margin-bottom: 5px;
}

a {
    color: var(--link-color);
}

@media (prefers-color-scheme: light) {
    /* Light Mode Theme */
    body {
        background-color: var(--light-mode-bg-color);
        background-image: var(--light-mode-bg-image);
        color: var(--light-mode-text-color);
    }
    
    .header__site-name {
        color: var(--light-mode-text-color);
    }
    
    .navigation-item__link {
        color: var(--light-mode-text-color);
        text-decoration: none;
    }
    
    .navigation-item__link.active {
        text-decoration: underline;
    }
    
    .header__bookend-image-left {
        content: var(--light-mode-header-image-left);
    }
    
    .header__bookend-image-right {
        content: var(--light-mode-header-image-right);
    }
    
    .a__subtle-link-color {
        color: var(--light-mode-text-color);
    }
}

@media (prefers-color-scheme: dark) {
    /* Dark Mode Theme */
    body {
        background-color: var(--dark-mode-bg-color);
        background-image: var(--dark-mode-bg-image);
        color: var(--dark-mode-text-color);
    }
    
    .header__site-name {
        color: var(--dark-mode-text-color);
    }
    
    .navigation-item__link {
        color: var(--dark-mode-text-color);
        text-decoration: none;
    }
    
    .navigation-item__link.active {
        text-decoration: underline;
    }
    
    .header__bookend-image-left {
        content: var(--dark-mode-header-image-left);
    }
    
    .header__bookend-image-right {
        content: var(--dark-mode-header-image-right);
    }
    
    .a__subtle-link-color {
        color: var(--dark-mode-text-color);
        text-decoration: none;
    }
}

/* Small screens, I think? */
@media(max-width: 600px) {
    .wrapper {
        padding: 40px 20px;
    }
}

/* MARK: Blocks */

main {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.wrapper {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    padding: 40px;
    text-align: left;
    width: 100%;
}

.header {
/*    background: linear-gradient(90deg, rgba(66,3,3,1), rgba(81,4,0,1), rgba(128,0,0,1));*/
    background-color: #451010;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cg fill='%23380d0d' fill-opacity='1'%3E%3Cpolygon fill-rule='evenodd' points='8 4 12 6 8 8 6 12 4 8 0 6 4 4 6 0 8 4'/%3E%3C/g%3E%3C/svg%3E");
    padding-top: 30px;
    padding-bottom: 10px;
    text-align: center;
}

.footer {
    padding: 10px 0 20px;
    text-align: center;
    /* Ensure the footer stays at the bottom */
    margin-top: auto;
    width: 100%;
}

.navigation-container {
    margin-top: 20px;
}

.navigation-item {
    display: inline-block;
    margin: 0 7px;
    line-height: 1.5em;
}

.blog-card {
    display: block;
    padding: 15px;
    border-radius: 15px;
    background-color: #303030;
    margin-bottom: 15px;
}

.door-door {
    display: block;
    margin-left: auto;
    margin-right: auto;
    width: 50%;
}

.a-stuff {
    margin: 20px;
    text-decoration: none;
    display: inline-block;
}

.stuff-plane {
    width: 70px;
    height: 70px;
    display: inline-block;
}

.stuff-coffee {
    width: 70px;
    height: 70px;
    display: inline-block;
}

.planes-McConaughey {
    width: 300px;
    height: 168px;
    margin: 20px;
    display: block;
}

.tag-list {
    margin-top: 4px;
    margin-bottom: 4px;
    display: inline-block;
}

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.tag-summary {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.about-profile-picture {
    width: 250px;
    height: 250px;
    margin: 20px;
    display: block;
}

.about-media-player {
    display: block;
    margin: 10px auto;
}

.miscellaneous-picture {
    width: 250px;
    height: 250px;
    margin: 20px auto;
    display: block;
}

/* MARK: Elements */

.wrapper__title {
    margin-bottom: 20px;
}

.wrapper__text {
    margin-bottom: 10px;
}

.wrapper__door-text {
    text-align: center;
}

.wrapper__coffee-marquee-text {
    font-size: 48px;
}

.wrapper__whisper {
    color: violet;
}

.header__site-name {
    margin-bottom: 20px;
    font-size: 1.5em;
    font-family: var(--site-name-font-family);
    text-decoration: none;
}

.header__bookend-image-left {
    width: 50px;
    height: 50px;
    margin-left: 20px;
    margin-right: 20px;
}

.header__bookend-image-right {
    width: 50px;
    height: 50px;
    margin-left: 20px;
    margin-right: 20px;
}

.blog-card__title {
    margin-bottom: 4px;
}

.blog-card__text {
    margin-bottom: 0;
}

.navigation-item__link {
    text-decoration: none;
}

.tag-list__tag {
    margin: 1px;
    padding: 0.3em 1em;
    color: #fff;
    background: #999;
    font-size: 60%;
    border-radius: 8px;
    text-decoration: none;
    font-family: var(--tag-font-family);
}

.tag-summary__item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tag-summary__count {
    font-size: 0.9rem;
    color: #666;
}

/* MARK: Modifiers */


.tag-list__tag--philosophy {
    background-color: darkgoldenrod;
}

.tag-list__tag--technology {
    background-color: darkblue;
}

.tag-list__tag--development {
    background-color: darkred;
}

.tag-list__tag--field-journal {
    background-color: olivedrab;
}

.tag-list__tag--void-poetry {
    background-color: indigo;
}

.tag-list__tag--res-mundi {
    background-color: teal;
}

.tag-list__tag--meta {
    background-color: skyblue;
}

.tag-list__tag--coffee {
    background-color: rgb(94, 59, 41);
}

.tag-list__tag--clear {
    background-color: #333;
    color: white;
}


    