@font-face {
    font-family: 'UnifrakturCook';
    src: url('/assets/fonts/UnifrakturCook-Bold.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
}

@font-face {
    font-family: 'Crimson Text';
    src: url('/assets/fonts/CrimsonText-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Crimson Text';
    src: url('/assets/fonts/CrimsonText-Italic.ttf') format('truetype');
    font-weight: 400;
    font-style: italic;
}

@font-face {
    font-family: 'Crimson Text';
    src: url('/assets/fonts/CrimsonText-SemiBold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
}

@font-face {
    font-family: 'Crimson Text';
    src: url('/assets/fonts/CrimsonText-SemiBoldItalic.ttf') format('truetype');
    font-weight: 600;
    font-style: italic;
}

@font-face {
    font-family: 'Crimson Text';
    src: url('/assets/fonts/CrimsonText-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
}

@font-face {
    font-family: 'Crimson Text';
    src: url('/assets/fonts/CrimsonText-BoldItalic.ttf') format('truetype');
    font-weight: 700;
    font-style: italic;
}


:root {
    --bg: #f4f1ea;
    --text: #2c2c2c;
    --accent: #4834d4;
    --accent2: #10ac84;
    --accent3: #e0dcd3;
    --border: #b2bec3;
    --font-body: 'Crimson Text', Verdana, Arial;
    --font-title: 'UnifrakturCook';
}


body {
    background: var(--bg);
    background-image: url('/assets/images/ditherlight.png');
    background-size: contain;
    background-position: top;
    background-repeat: no-repeat;
    image-rendering: pixelated;
    color: var(--text);
    text-shadow: 0px 0px 0px var(--accent);
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.4;
    letter-spacing: 1px;
    margin: 0;
    text-align: justify;
    text-justify: inter-character;
}

a {
    color: var(--accent2);
    text-decoration: none;
}

a:hover {
    background: var(--accent);
    color: var(--accent3);
}

b {
    color: var(--accent);
}

strong {
    color: var(--accent);
}

blockquote {
    border-left: 4px solid var(--accent);
    padding-left: 10px;
    margin: 10px 40px;
}

body::-webkit-scrollbar {
    width: 6px;
}

body::-webkit-scrollbar-track {
    background: var(--bg);
}

body::-webkit-scrollbar-thumb {
    background-color: var(--accent);
    border-radius: 3px;
}

#container {
    max-width: 1100px;
    margin: 20px auto;
    padding: 0 10px;
}

header {
    text-align: center;
    padding: 16px 8px;
}

header img {
    max-width: 100%;
    height: auto;
    image-rendering: pixelated;
}

img {
    image-rendering: pixelated;
}

.site-name {
    margin-top: 10px;
    font: 50px var(--font-title);
    letter-spacing: 3px;
    color: var(--text);
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3);
}


.slogan {
    font: italic 14px var(--font-body);
    margin-top: 5px;
    color: var(--text);
    text-shadow: 5px 0px 10px var(--bg);
}



nav {
    text-align: center;
    padding: 6px 4px;
    margin-bottom: 10px;
}

nav a {
    text-transform: lowercase;
    letter-spacing: 2px;
    background: var(--bg);
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    margin: 0 4px 8px;
    font: italic 14px var(--font-body);
    color: var(--text);
    border-radius: 5px;
    border: 1px solid var(--accent3);
    box-shadow: 1px 1px 2px rgba(0, 0, 0, 0.05);
}

nav a img {
    vertical-align: middle;
    margin-right: 4px;
}

#content {
    display: flex;
    gap: 10px;
    border-top: 1px dotted var(--border);
    border: 0px solid;
    border-radius: 5px;
    padding: 10px;
    padding-top: 20px;
    background: var(--bg);
    border: 0px solid var(--accent);
}

.sidebar {
    width: 160px;
    padding: 4px;
    /* compact padding */
}

.sidebar>div {
    margin-bottom: 8px;
    /* compact spacing */
}



.title {
    font: 18px var(--font-title);
    margin-bottom: 4px;
    color: var(--accent);
    border-bottom: 1px solid var(--accent);
    background: var(--accent3);
    align-items: center;
    padding: 2px 8px;
    color: var(--text);
    border-radius: 5px;
    position: relative;
}

/* Left Sidebar Connection */
.sidebar:first-of-type .title {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    margin-right: -10px;
    padding-right: 15px;
    text-align: right;
    justify-content: flex-end;
}

.sidebar:first-of-type .title::after {
    content: "";
    position: absolute;
    top: 100%;
    right: 0;
    width: 10px;
    height: 10px;
    background: var(--accent3);
    clip-path: polygon(0 0, 100% 0, 100% 100%);
}

/* Right Sidebar Connection */
.sidebar:last-of-type .title {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    margin-left: -10px;
    padding-left: 15px;
    text-align: left;
    justify-content: flex-start;
}

.sidebar:last-of-type .title::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 0;
    width: 10px;
    height: 10px;
    background: var(--accent3);
    clip-path: polygon(0 0, 100% 0, 0 100%);
}

.divider {
    height: 0;
    border-bottom: 0px dotted var(--border);
    margin: 6px 0;
}

hr {
    border: 0;
    border-bottom: 2px solid var(--accent);
    margin: 40px;
}

main {
    flex: 1;
    padding: 20px;
    margin: 10px;
    background: var(--bg);
    color: var(--text);
    border: 20px solid transparent;
    border-image-source: url('/assets/images/frame.svg');
    border-image-slice: 16;
    border-image-repeat: stretch;
    border-image-outset: 2px;
    image-rendering: pixelated;
    position: relative;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.main-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px double var(--accent);
    position: relative;
}

.main-header::after {
    content: "🙥♦🙧";
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--bg);
    padding: 0 10px;
    color: var(--accent);
    font-size: 20px;
}


main a {
    color: var(--accent2);
    text-decoration: none;
}

main a:hover {
    background: var(--accent);
    color: var(--text);
}

main .main-title {
    color: var(--accent);
    font: 36px var(--font-title);
    text-transform: lowercase;
    margin: 0;
    letter-spacing: 4px;
    line-height: 1;
    display: inline-block;
}

main .divider {
    height: 0;
    border-bottom: 0px dotted var(--border);
    margin: 6px 0;
}

main strong,
main b {
    color: var(--accent);
}

main blockquote {
    border-left: 4px solid var(--accent);
    padding-left: 10px;
    margin: 10px 40px;
}


.main-title {
    color: var(--accent);
    font: 22px var(--font-title);
    text-transform: lowercase;
    margin: 0 0 6px;
    padding-bottom: 4px;
    letter-spacing: 2px;
    line-height: 18px;
    border-bottom: 1px solid var(--accent);
    border-radius: 5px;
}

footer {
    border-top: 1px dotted var(--border);
    text-align: center;
    padding: 22px 8px;
    font-size: 12px;
    color: #666;
}

/* BOOK */
.book {
    width: 100%;
    height: 400px;
    border: 0px solid var(--border);
    margin-top: 10px;
    margin-bottom: 10px;
}

.couch {
    width: 100%;
    height: 100px;
    background: url('/assets/images/birby2.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    margin-top: 10px;
    margin-bottom: 10px;
    border-radius: 5px;
}

/* .couch:active {
    background: url('/assets/images/couch2.png');
    background-size: cover;
    background-position: center;
} */



@media(max-width: 770px) {
    #content {
        flex-direction: column;
        gap: 12px;
    }

    /* Reorder: Main first, then sidebars */
    main {
        order: 1;
        border-left: none;
        border-right: none;
        padding: 12px;
        margin: 0px;
    }

    #content>.sidebar:first-of-type {
        order: 2;
    }

    #content>.sidebar:last-of-type {
        order: 3;
    }

    .sidebar {
        width: auto;
        padding: 4px;
    }

    nav {
        font-size: 11px;
        padding: 10px 0;
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 5px;
        width: 100%;
        margin: 0 auto;
    }

    nav a {
        margin: 2px;
        flex: 1 1 40%;
        /* 2 columns roughly */
        text-align: center;
        justify-content: center;
        padding: 8px 5px;
    }
}

/* Music Player Component */
.player-case {
    width: 130px;
    background: var(--bg);
    border: 1px solid var(--accent);
    padding: 10px;
    text-align: center;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
    margin: 10px 0;
    border-radius: 8px;
}

.player-cd {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    background: url('/assets/images/ditherlight.png');
    background-size: cover;
    background-position: center;
    border: 1px solid var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    image-rendering: pixelated;
    margin: 0 auto;
}

.player-btn {
    width: 35px;
    height: 35px;
    background: var(--accent);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    color: var(--accent2);
    font: inherit;
    outline: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.player-btn:hover {
    background: var(--accent2);
    color: var(--accent3);
    transform: scale(1.1);
}

.player-info {
    margin-top: 15px;
    font-size: 0.7rem;
    text-align: center;
}

.player-track {
    color: var(--accent);
    margin-bottom: 5px;
    text-transform: lowercase;
    font-weight: bold;
}

.player-progress {
    width: 100%;
    height: 4px;
    background: #eee;
    margin-top: 10px;
    cursor: pointer;
    border-radius: 2px;
}

.player-fill {
    height: 100%;
    background: var(--accent);
    width: 0%;
    border-radius: 2px;
}