@font-face {
    font-family: 'JetBrains Mono';
    src: url('/static/webfonts/JetBrainsMono-Light.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'JetBrains Mono';
    src: url('/static/webfonts/JetBrainsMono-ExtraBold.woff2') format('woff2');
    font-weight: bold;
    font-style: normal;
}

@font-face {
    font-family: 'JetBrains Mono';
    src: url('/static/webfonts/JetBrainsMono-LightItalic.woff2') format('woff2');
    font-weight: bold;
    font-style: italic;
}

body,
html {
    height: 100%;
    margin: 0;
    font-family: 'JetBrains Mono', monospace;
    background-color: #282828;
    color: #ebdbb2;
    line-height: 1.6;
}

.container {
    max-width: 2000px;
    margin: 0 auto;
    display: flex;
    width: 100%;
    min-height: 100vh;
    font-size: 15px;
    overflow: visible;
}

.sidebar {
    background-color: #282828;
    padding: 20px;
    width: 250px;
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    max-height: 100vh;
    overflow-y: auto;
    font-family: et-book, Palatino, "Palatino Linotype", "Palatino LT STD", "Book Antiqua", Georgia, serif;
}

.main-content {
    flex-grow: 1;
    padding: 40px;
    background-color: #282828;
    color: #ebdbb2;
    overflow-x: visible;
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    max-width: 60%;
    margin: 0 auto;
}

.main-content h1 {
    color: #fabd2f;
}

.main-content p,
.main-content li {
    color: #ebdbb2;
    text-align: justify;
}

.main-content blockquote {
    border-left: 3px solid #d65d0e;
    margin-left: 0;
    padding-left: 20px;
    color: #ebdbb2;
}

.main-content strong,
.main-content b {
    font-weight: bold;
}

.main-content h2 {
    position: relative;
    margin-top: 50px;
}

.main-content h2::before {
    content: '';
    position: absolute;
    left: -25px;
    top: 0;
    bottom: 0;
    width: 6px;
    background-color: #83a598;
}

.sidebar h1,
.sidebar p {
    color: #ebdbb2;
    margin: 0;
}

.sidebar p {
    font-size: 14px !important;
    margin-bottom: 16px;
}

.sidebar ul {
    list-style: none;
    padding: 0;
    margin-top: -15px;
    line-height: 1.6 !important;
}

.sidebar li {
    font-size: 14px !important;
    padding: 8px 0;
    line-height: 1.6 !important;
}

.repost-subtext {
    display: block;
    margin-top: 1px;
    font-size: 11px;
    color: #a89984;
}

a {
    color: #fe8019;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.3s ease;
}

.sidebar a:hover,
.right-sidebar a:hover {
    color: #fabd2f;
}

.right-sidebar {
    background-color: #282828;
    padding: 20px;
    flex-grow: 0;
    flex-shrink: 0;
    flex-basis: 250px;
    font-size: 14px;
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    max-height: 100vh;

}

.toc {
    background-color: #282828;
    padding: 15px;
    border-radius: 4px;
}

.toc h3 {
    color: #fabd2f;
}

.toc ul {
    list-style: none;
    padding: 0;
}

.toc li {
    margin: 10px 0;
}

a {
    color: #fe8019;
    text-decoration: none;
    transition: color 0.3s ease;
}

.description {
    color: gray;
    font-style: italic;
    margin-bottom: -3px;
    ;
}

.repost-note {
    margin-top: 8px;
    color: #a89984;
    font-size: 13px;
}

.sidebar h2 {
    font-size: 16px !important;
    color: #a89984;
    font-style: italic;
    font-weight: normal;
    line-height: 1.6 !important;
}

.left-sidebar {
    flex-grow: 0;
    flex-shrink: 0;
    flex-basis: 250px;
    margin-left: 30px;
}

.sidebar a {
    font-size: 14px !important;
}

.sidebar li.active a {
    color: #fabd2f;
}

.main-content img {
    max-width: 55%;
    height: auto;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.main-content pre {
    max-width: 100%;
    overflow-x: auto;
}

.left-sidebar img {
    max-width: 80%;
    margin-left: auto;
    margin-right: auto;
    border-radius: 100px;
}

.info-box {
    margin: 20px 0;
    padding: 10px 30px;
    background-color: #3c3836;
    border-left: 4px solid #458588;
    color: #ebdbb2;
    border-radius: 8px;
}

.info-box p {
    margin: 10px 0;
    color: #ebdbb2;
}

.quote-box {
    position: relative;
    margin: 20px 0;
    padding: 10px 30px;
    background-color: #3c3836;
    border-left: 4px solid #a89984;
    color: #ebdbb2;
    font-style: italic;
    border-radius: 8px;
}

img.wide-img {
    max-width: 100% !important;
}

@media (min-width: 1023px) {
    #mob-side-section {
        display: none;
    }

    aside.right-sidebar {
        display: flex;
    }
}

@media only screen and (min-width: 768px) and (max-width: 1022px) {
    .left-sidebar {
        margin-left: 0;
        flex-basis: 220px;
        width: 220px;
        padding: 20px 16px;
    }

    .main-content {
        max-width: none;
        width: calc(100% - 220px);
        margin: 0;
        padding: 28px 24px;
    }

    aside.right-sidebar {
        display: none;
    }

    #mob-side-section {
        display: none;
    }

}

@media (max-width: 767px) {
    .container {
        flex-direction: column;
        min-height: auto;
    }

    aside.right-sidebar {
        display: none;
    }

    #normal-menu {
        display: none;
    }

    #mob-side-section {
        display: block;
    }

    .mobile-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 10px;
        background: #282828;
        color: #ebdbb2;
    }

    .menu-button {
        background: none;
        border: none;
        color: #ebdbb2;
        font-size: 1.5em;
        display: block;
    }

    nav.mobile-menu {
        display: none;
        top: 100%;
        left: 0;
        right: 0;
        background: #282828;
        z-index: 1000;
        width: 100%;
        position: static;
        max-height: none;
        overflow-y: visible;
    }

    .mobile-menu.is-active {
        display: block;
    }

    .left-sidebar {
        flex-grow: 1;
        flex-shrink: 1;
        flex-basis: auto;
        margin-left: 0;
        width: 100%;
        order: -1;
        max-height: none;
        position: static;
        max-height: none;
        overflow-y: visible;
        padding: 14px 16px 10px;
        margin-bottom: 0;
    }

    .main-content {
        width: 100%;
        max-width: 100%;
        margin: 0;
        padding: 22px 16px 28px;
        overflow-x: hidden;
        transition: margin-top 0.3s ease;
    }

    .main-content h2::before {
        left: -14px;
        width: 4px;
    }

    .main-content img {
        max-width: 100%;
    }

    .quote-box,
    .info-box {
        max-width: 100%;
        padding-left: 16px;
        padding-right: 16px;
    }
}

/* ASCII Logo Styles */
.ascii-logo-link {
    display: block;
    text-decoration: none;
    margin-bottom: 20px;
}

.ascii-logo {
    position: relative;
    font-family: 'JetBrains Mono', monospace;
    line-height: 1.1;
    text-align: left;
    padding: 12px 8px;
    overflow: hidden;
}

.ascii-text {
    position: relative;
    margin: 0;
    font-size: 11px;
    font-weight: bold;
    white-space: pre;
    color: #fb4934;
    transition: color 0.3s ease;
}

.ascii-logo:hover .ascii-text {
    color: #83a598;
}

/* Responsive ASCII Logo */
@media (max-width: 767px) {
    .ascii-logo {
        padding: 10px 6px;
        margin-bottom: 0;
    }

    .ascii-text {
        font-size: 9px;
    }
}

/* Books Page Styles */
.reading-stats {
    margin-bottom: 40px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 20px;
}

.stat-card {
    padding: 24px;
    text-align: center;
    transition: all 0.3s ease;
}

.stat-card:hover {
    background: rgba(255, 255, 255, 0.06);
    transform: translateY(-2px);
}

.stat-icon {
    font-size: 28px;
    margin-bottom: 12px;
}

.stat-value {
    font-size: 32px;
    font-style: italic;
    color: #fe8019;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 14px;
    color: #a89984;
}

.books-section {
    margin-top: 40px;
}

.books-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 20px;
}

.book-card {
    position: relative;
    background: linear-gradient(135deg, #3c3836 0%, #32302f 100%);
    border: none;
    border-radius: 4px 12px 12px 4px;
    padding: 24px 24px 24px 32px;
    transition: all 0.3s ease;
    overflow: hidden;
    box-shadow:
        4px 4px 12px rgba(0, 0, 0, 0.4),
        inset 0 0 0 1px rgba(235, 219, 178, 0.05);
}

/* Book spine effect */
.book-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 8px;
    background: linear-gradient(90deg,
            #fe8019 0%,
            #d65d0e 50%,
            #fe8019 100%);
    border-radius: 4px 0 0 4px;
    box-shadow: 2px 0 4px rgba(0, 0, 0, 0.2);
}

/* Page edges effect */
.book-card::after {
    content: '';
    position: absolute;
    right: 0;
    top: 8px;
    bottom: 8px;
    width: 6px;
    background: repeating-linear-gradient(180deg,
            #504945 0px,
            #3c3836 1px,
            #504945 2px);
    border-radius: 0 4px 4px 0;
    opacity: 0.6;
}

.book-card:hover {
    transform: translateY(-6px) rotateX(2deg);
    box-shadow:
        6px 12px 20px rgba(0, 0, 0, 0.5),
        inset 0 0 0 1px rgba(235, 219, 178, 0.08);
}

.book-card.currently-reading::before {
    background: linear-gradient(90deg,
            #b8bb26 0%,
            #98971a 50%,
            #b8bb26 100%);
}

.reading-indicator {
    position: absolute;
    top: 8px;
    right: 16px;
    font-size: 10px;
    color: #b8bb26;
    letter-spacing: 1px;
    opacity: 0.9;
}

.book-cover {
    margin-bottom: 16px;
    min-height: 80px;
    padding-left: 4px;
}

.book-cover {
    margin-bottom: 16px;
    min-height: 80px;
    padding-left: 4px;
}

.book-title {
    font-size: 18px;
    font-weight: bold;
    color: #ebdbb2;
    margin-bottom: 8px;
    line-height: 1.3;
}

.book-author {
    font-size: 14px;
    color: #a89984;
}

.book-hover-overlay {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, margin 0.3s ease;
}

.book-card:hover .book-hover-overlay {
    max-height: 150px;
    margin-bottom: 16px;
}

.book-description {
    font-size: 13px;
    color: #d5c4a1;
    line-height: 1.3;
    margin: 0;
}

.book-progress {
    margin-top: auto;
}

.ascii-progress {
    font-size: 12px;
    color: #a89984;
    margin-bottom: 6px;
    letter-spacing: 1px;
}

.ascii-progress .progress-filled {
    color: #fe8019;
}

.progress-text {
    font-size: 12px;
    color: #a89984;
}

/* Responsive Books Page */
@media (max-width: 767px) {
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .stat-card {
        padding: 16px;
    }

    .stat-value {
        font-size: 24px;
    }

    .books-grid {
        grid-template-columns: 1fr;
    }
}

* {
    box-sizing: border-box;
}

/* Blog Post Progress */
.post-progress {
    position: fixed;
    left: 50%;
    bottom: 24px;
    transform: translate(-50%, 12px);
    opacity: 0;
    pointer-events: none;
    width: min(480px, calc(100% - 48px));
    padding: 10px 14px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    border-radius: 14px;
    background: linear-gradient(145deg, rgba(60, 56, 54, 0.95), rgba(40, 40, 40, 0.95));
    border: 1px solid rgba(235, 219, 178, 0.08);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    transition: opacity 0.35s ease, transform 0.35s ease, box-shadow 0.35s ease;
    z-index: 20;
}

.post-progress.is-visible {
    opacity: 1;
    transform: translate(-50%, 0);
}

.post-progress.is-hidden {
    display: none;
}

.post-progress__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-size: 12px;
    letter-spacing: 0.2px;
}

.post-progress__heading {
    color: #ebdbb2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.post-progress__ring {
    position: relative;
    width: 34px;
    height: 34px;
    flex-shrink: 0;
    display: grid;
    place-items: center;
}

.post-progress__ring-svg {
    width: 34px;
    height: 34px;
    transform: rotate(-90deg);
}

.post-progress__ring-track {
    fill: none;
    stroke: rgba(235, 219, 178, 0.16);
    stroke-width: 3;
}

.post-progress__ring-fill {
    fill: none;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-dasharray: 0;
    stroke-dashoffset: 0;
    transition: stroke-dashoffset 0.35s ease;
}

.post-progress__ring-label {
    position: absolute;
    font-size: 9px;
    color: #a89984;
    letter-spacing: 0.3px;
    transform: translateY(0.5px);
}

.post-progress.is-updating .post-progress__heading {
    animation: progress-heading 0.35s ease;
}

@keyframes progress-heading {
    0% {
        opacity: 0;
        transform: translateY(4px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 767px) {
    .post-progress {
        bottom: 16px;
        padding: 8px 12px;
    }

    .post-progress__row {
        font-size: 11px;
    }

    .post-progress__ring {
        width: 30px;
        height: 30px;
    }

    .post-progress__ring-svg {
        width: 30px;
        height: 30px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .post-progress,
    .post-progress__ring-fill,
    .post-progress__heading {
        transition: none;
        animation: none;
    }
}

/* Home Link Styles */
.home-link {
    display: inline-block;
    font-size: 20px !important;
    color: #fb4934;
    text-decoration: none;
    margin-bottom: 20px;
    transition: all 0.3s ease;
    font-weight: 100;
    font-family: et-book, Palatino, "Palatino Linotype", "Palatino LT STD", "Book Antiqua", Georgia, serif;
}

/* Currently Reading Sidebar Styles */
.currently-reading-sidebar {
    margin-top: 12px;
    padding: 8px 10px;
    background: rgba(60, 56, 54, 0.5);
    border-radius: 4px;
    border-left: 3px solid #b8bb26;
}

.currently-reading-sidebar .reading-label {
    display: block;
    font-size: 10px !important;
    color: #a89984;
    text-transform: lowercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.currently-reading-sidebar .reading-title {
    display: block;
    font-size: 12px !important;
    color: #ebdbb2;
    font-style: italic;
    line-height: 1.3;
    margin-bottom: 4px;
}

.currently-reading-sidebar .reading-stats-link {
    font-size: 11px !important;
    color: #83a598;
    text-decoration: none;
    transition: color 0.3s ease;
}

.currently-reading-sidebar .reading-stats-link:hover {
    color: #8ec07c;
}

/* Socials List Styles */
.socials-list a {
    color: #fb4934;
}

.socials-list a:hover {
    color: #cc241d;
}

#footer {
    margin-top: 48px;
    padding-top: 16px;
    color: #a89984;
}

#footer hr {
    border: none;
    border-top: 1px solid #3c3836;
    margin: 0 0 14px;
}

#footer .footer-song {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 8px;
    margin: 0;
}

#footer .footer-label {
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 11px;
    color: #928374;
}

#footer .footer-track {
    color: #fabd2f;
    border-bottom: 1px solid rgba(250, 189, 47, 0.3);
    transition: color 0.3s ease, border-bottom-color 0.3s ease;
}

#footer .footer-track:hover {
    color: #fe8019;
    border-bottom-color: rgba(254, 128, 25, 0.5);
}

#footer .footer-artist {
    color: #bdae93;
}
