/* ---------------------------------------------------------
   1. BASE / GLOBAL
   --------------------------------------------------------- */

html {
    scroll-behavior: smooth;
}

body {
    background: #fefcf9;
    color: #68625a;
    text-shadow: 0px 0px 0px #bbb;
    font-family: 'Crimson Text', Verdana, Arial, sans-serif;
    font-size: 13px;
    line-height: 1.4;
    letter-spacing: 1px;
    margin: 0;
    text-align: left;
}


/* ---------------------------------------------------------
   2. LINKS
   --------------------------------------------------------- */

a {
    color: #333;
    text-decoration: none;
}

a:hover {
    background: #ddd;
}


/* ---------------------------------------------------------
   3. SCROLLBAR
   --------------------------------------------------------- */

body::-webkit-scrollbar {
    width: 6px;
}

body::-webkit-scrollbar-track {
    background: #f8f8f8;
}

body::-webkit-scrollbar-thumb {
    background-color: #666;
    border-radius: 3px;
}


/* ---------------------------------------------------------
   4. MAIN SITE CONTAINER
   --------------------------------------------------------- */

#container {
    max-width: 660px;
    margin: 20px auto;
    padding: 0 10px;
}


/* ---------------------------------------------------------
   5. HEADER
   --------------------------------------------------------- */

header {
    text-align: center;
    padding: 16px 0;
}

header img {
    max-width: 100%;
    height: auto;
    filter: grayscale(50%);
    opacity: 0.9;
}

.site-name {
    margin-top: 2px;
    font: 28px 'UnifrakturCook';
    letter-spacing: 3px;
    color: #927a72;
}

.slogan {
    font: italic 12px Georgia, Arial, sans-serif;
    margin-top: 5px;
    color: #999;
}


/* ---------------------------------------------------------
   6. NAVIGATION
   --------------------------------------------------------- */

nav {
    text-align: center;
    padding: 6px 4px;
    margin-bottom: 10px;
}

nav a {
    text-transform: lowercase;
    letter-spacing: 2px;
    background: #fff;
    display: inline-flex;
    align-items: center;
    padding: 4px 6px;
    margin-right: 4px;
    font: italic 12px Georgia, Arial, sans-serif;
    color: #333;
    border-radius: 5px;
}

nav a img {
    vertical-align: middle;
    margin-right: 4px;
}


/* Desktop navigation */

.desktop-nav {
    text-align: center;
    padding: 6px 4px;
    margin-bottom: 10px;
}


/* Mobile navigation */

.mobile-nav {
    margin-bottom: 10px;
}

.mobile-nav summary {
    display: none;
}


/* ---------------------------------------------------------
   7. PAGE CONTENT LAYOUT
   --------------------------------------------------------- */

#content {
    display: flex;
    gap: 10px;
    border-top: 1px dotted #999;
    padding-top: 10px;
    align-items: flex-start;
}

main {
    flex: 1;
    min-width: 0;
    padding: 8px;
}


/* ---------------------------------------------------------
   8. SIDEBAR
   --------------------------------------------------------- */

.sidebar {
    width: 160px;
    padding: 4px;
    flex-shrink: 0;
}

.sidebar > div {
    margin-bottom: 8px;
}

.title {
    font: 16px 'UnifrakturCook';
    margin-bottom: 4px;
    color: #b9a588;
}

.divider {
    height: 0;
    border-bottom: 1px dotted #999;
    margin: 6px 0;
}


/* ---------------------------------------------------------
   9. PAGE TITLES
   --------------------------------------------------------- */

.main-title {
    color: #777;
    font: 20px 'UnifrakturCook';
    text-transform: lowercase;
    margin: 0 0 6px;
    letter-spacing: 2px;
    line-height: 18px;
    text-align: center;
}

.main-title-2 {
    color: #777;
    font: 20px 'UnifrakturCook';
    text-transform: lowercase;
    margin: 0 0 6px;
    letter-spacing: 2px;
    line-height: 18px;
    text-align: left;
}


/* ---------------------------------------------------------
   10. FOOTER
   --------------------------------------------------------- */

footer {
    border-top: 1px dotted #999;
    text-align: center;
    padding: 22px 8px;
    font-size: 12px;
}


/* =========================================================
   INDEX / BLOG PAGE
   ========================================================= */


/* Back-to-top button */

html {
    container-type: scroll-state;
    container-name: scroller;
}

.to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    translate: 80px 0;
    transition: all 0.4s ease, border-color 0.4s ease;

    display: flex;
    justify-content: center;
    align-items: center;

    height: 50px;
    width: 50px;

    background: white;
    border: 1px dotted;
    cursor: pointer;
}

.to-top img {
    width: 30px;
}

@container scroller scroll-state(scrollable: top) {
    .to-top {
        translate: 0 0;
    }
}


/* Blog feed */

.blog-feed {
    flex: 1;
    padding: 8px;
    border-left: 0 dotted #999;
    border-right: 0 dotted #999;
}


/* Status boxes and blog posts */

.status-box,
.blog-post {
    background: #fff;
    border: 1px dotted #c7bdb7;
    padding: 12px;
    margin-bottom: 12px;
    border-radius: 6px;
}

.status-box {
    background: #faf7f3;
}


/* Blog headings */

.status-title,
.post-header {
    color: #927a72;
    font: 18px 'UnifrakturCook';
    margin-bottom: 8px;
}


/* Filter tags */

.tag-filters {
    margin-top: 8px;
}

.filter-tag {
    display: inline-block;
    background: #f3efea;
    padding: 2px 6px;
    margin-right: 4px;
    margin-bottom: 4px;
    border-radius: 3px;
    font-size: 11px;
    transition: all 0.2s ease;
}

.filter-tag:hover {
    background: #e7dfd8;
}

.filter-tag.active {
    background: #927a72;
    color: #fff;
}


/* Blog metadata */

.post-meta {
    font-size: 11px;
    color: #999;
    font-style: italic;
    margin-bottom: 10px;
    letter-spacing: 1px;
}


/* Blog images */

.blog-post img {
    max-width: 100%;
    display: block;
    margin: 10px auto;
    border-radius: 4px;
}


/* Blog tags */

.post-tags {
    border-top: 1px dotted #ccc;
    margin-top: 10px;
    padding-top: 8px;
    font-size: 11px;
}

.post-tags a {
    background: #f3efea;
    padding: 2px 6px;
    margin-right: 4px;
    border-radius: 3px;
}


/* Read-more sections */

.read-more {
    margin-top: 10px;
}

.read-more summary {
    cursor: pointer;
    color: #927a72;
    font-style: italic;
}


/* =========================================================
   ABOUT / LINKS
   ========================================================= */


/* Link cards */

.link-card {
    display: block;
    padding: 12px;
    margin-bottom: 10px;
    background: #fff;
    border: 1px dotted #cbb9aa;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.link-card:hover {
    background: #f8f4ef;
    transform: translateY(-2px);
}

.link-title {
    font: 18px 'UnifrakturCook';
    color: #927a72;
    margin-bottom: 4px;
}

.link-desc {
    font-size: 12px;
    color: #777;
    letter-spacing: 0.5px;
}


/* About-page image */

.about-image {
    width: 100%;
    max-width: 450px;
    display: block;
    margin: 0 0 15px;
}


/* About-page decorative symbols */

.about-symbols {
    text-align: left;
    letter-spacing: 2px;
    opacity: 0.7;
}


/* =========================================================
   ILLUSTRATION PAGE
   ========================================================= */


/* Gallery */

.row {
    display: flex;
    flex-wrap: wrap;
    padding: 0 2px;
}

.column {
    flex: 24%;
    max-width: 24%;
    padding: 0 2px;
}

.column img {
    margin-top: 4px;
    vertical-align: middle;
    width: 100%;
    transition: filter 0.3s ease;
}

.column img:hover {
    filter: brightness(75%);
}


/* ---------------------------------------------------------
   Illustration lightbox / modal
   --------------------------------------------------------- */

.modal {
    display: none;
    position: fixed;
    z-index: 1;
    padding-top: 100px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: white;
}

.modal-content {
    position: relative;
    background-color: #fefefe;
    margin: auto;
    padding: 0;
    width: 90%;
    max-width: 600px;
}

.close {
    color: black;
    position: absolute;
    top: 10px;
    right: 25px;
    font-size: 35px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: #999;
    text-decoration: none;
    cursor: pointer;
}

.mySlides {
    display: none;
}

.prev,
.next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -50px;
    color: white;
    font-weight: bold;
    font-size: 20px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
    -webkit-user-select: none;
}

.next {
    right: 0;
    border-radius: 3px 0 0 3px;
}

.prev:hover,
.next:hover {
    background-color: rgba(0, 0, 0, 0.8);
}


/* =========================================================
   GUESTBOOK
   ========================================================= */

.guestbook-frame {
    border: 1px dotted #cbb9aa;
    border-radius: 8px;
    padding: 10px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .05);
}

.guestbook-frame iframe {
    width: 100%;
    height: 700px;
    border: none;
    border-radius: 4px;
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 800px) {

    .column {
        flex: 49%;
        max-width: 49%;
    }
}


@media (max-width: 600px) {

    /* Desktop/mobile navigation */

    .desktop-nav {
        display: none;
    }

    .mobile-nav {
        display: block;
    }

    .mobile-nav summary {
        display: block;
        cursor: pointer;
        text-align: center;
        padding: 8px;
        background: #faf7f3;
        border: 1px dotted #c7bdb7;
        border-radius: 6px;
        color: #927a72;
        font: italic 13px Georgia, serif;
        list-style: none;
    }

    .mobile-nav summary::-webkit-details-marker {
        display: none;
    }

    .mobile-nav nav {
        display: none;
        flex-direction: column;
        margin-top: 8px;
    }

    .mobile-nav[open] nav {
        display: flex;
    }

    .mobile-nav nav a {
        margin: 2px 0;
        justify-content: center;
    }

    .arrow {
        display: inline-block;
        transition: transform 0.3s ease;
    }

    .mobile-nav[open] .arrow {
        transform: rotate(180deg);
    }


    /* Blog */

    .blog-feed {
        border-left: none;
        border-right: none;
    }


    /* Gallery */

    .column {
        flex: 100%;
        max-width: 100%;
    }


    /* Sidebar */

    .sidebar {
        width: 150px;
    }
}


@media (min-width: 601px) {

    .mobile-nav {
        display: block;
    }

    .mobile-nav summary {
        display: none;
    }

    .mobile-nav nav {
        display: block;
    }
}