@import url('assets/css/fonts.css');

:root {
    --title-size: 128px;
    --item-size: 36px;
    --image-height: 60vh;
    --nav-width: 12rem;
    --nav-item-size: 2em;
    --nav-bar-height: 0px;
}

.coming-soon h1 {
    font-family: "Sabbath Black";
    font-size: var(--title-size);
}

* {
    margin: 0;
    padding: 0;
    font-family: 'Warbler';
    color: rgb(241, 218, 168);
}

body {
    min-height: 100vh;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-image: url('assets/img/forest-floor-texture.webp');
    background-size: 35%;
    background-color:rgb(14, 56, 2);
    background-blend-mode: darken;
    
}

p, li {
    letter-spacing: 2px;
}

.home-container {
    align-self: center;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
}

.home-container * {
    font-family: 'Sabbath Black';
    text-align: left;
}

.home-directory {
    display: flex;
    flex-direction: column;
}

.home-directory-list {
    display: flex;
    flex-direction: column;
}

.home-directory-col {
    display: flex;
    flex-direction: column;
}

.home-title {
    font-weight: bold;
    font-size: var(--title-size);
}

.home-directory-item {
    margin: 0.5vh 0;
    font-size: var(--item-size);
}

.home-directory-item a {
    text-decoration: none;
}

.home-directory-item::before {
    content: '';
    position: absolute;
    left: -1.8em;
    top: 50%;
    transform: translateY(-10%);
    width: 1.5em;
    height: 1.5em;
    background-image: url('./assets/img/selector.png');
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0;
}

.home-image {
    padding-right: 5vw;
    height: var(--image-height);
    align-self: center;
    transition: filter 3s ease-in-out;
}

.home-image:hover {
    filter: drop-shadow(0 0 10px rgb(241, 218, 168));
}

.page-content {
    width: fit-content;
    max-width: 70vw;
    margin: 5vh auto;
    padding: 5vh;
    background-color: rgba(0, 0, 0, 0.95);
    border: 1px solid rgb(241, 218, 168);
}

.small-caps {
    font-weight: bold;
    font-variant: small-caps;
}

.about-content h1,
.contact-content h1 {
    font-family: 'Sabbath Black';
    text-align: right;
    font-size: 10vh;
    width: 50vw;
}

.page-content p {
    text-align: left;
    font-size: 1.5em;
    width: 50vw;
    margin-top: 2vh;
}

.page-content ul,
.page-content ol {
    font-size: 1em;
}

.page-content li {
    margin: 3vh 0;
}

/* ============ Side Navigation ============ */

main {
    margin-left: var(--nav-width);
    margin-top: var(--nav-bar-height);
}

/* ============ Blog ============ */


.blog-post {
    display: flex;
    flex-direction: column;
    align-items: center;
    border-bottom: 1px solid rgba(241, 218, 168, 0.3);
    padding-bottom: 3vh;
    gap: var(--blog-spacing);
}

.blog-post-full {
    border-bottom: none;
    --blog-content-width: min(50vw, 58rem);
    --blog-spacing: clamp(0.75rem, 2vw, 1.5rem);
}

.blog-back-link {
    display: inline-block;
    align-self: flex-start;
    font-size: 2em;
    text-decoration: none
}

.blog-back-link:hover {
    text-decoration: underline;
}

.page-content .blog-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--blog-spacing);
    width: var(--blog-content-width);
    --blog-content-width: min(50vw, 58rem);
    --blog-spacing: clamp(0.75rem, 2vw, 1.5rem);
}

.blog-list-item:last-child {
    border-bottom: none;
}

.blog-list-item {
    display: flex;
    flex-direction: column;
    gap: 0.5em;
    border-bottom: 1px solid rgba(241, 218, 168, 0.3);
    padding-bottom: var(--blog-spacing);
}

.blog-list-title {
    font-family: 'Sabbath Black';
    font-size: clamp(1.75rem, 6vh, 5rem);
    text-decoration: none;
    text-align: right;
    width: 100%;
}

.blog-list-title:hover {
    text-decoration: underline;
}

.page-content .blog-list-preview {
    font-size: 1.2em;
    opacity: 0.85;
    width: 100%;
    margin: 0;
}

.blog-post-title {
    font-size: 5em;
    text-align: right;
    font-family: 'Sabbath Black';
    width: var(--blog-content-width);
    margin: 0;
}

.blog-post-date {
    display: block;
    font-size: 1.2em;
    text-align: right;
    opacity: 0.7;
    width: var(--blog-content-width);
    margin: 0;
}

.blog-post-body {
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--blog-spacing);
    width: var(--blog-content-width);
}

.blog-post-body img {
    display: block;
    max-width: 100%;
    height: auto;
    margin-inline: auto;
}

.blog-post-body hr {
    width: 100%;
    height: 0;
    border: 0;
    border-top: 3px solid rgba(241, 218, 168, 0.45);
    margin: 0;
}

.blog-post-body p,
.blog-post-body ul,
.blog-post-body ol,
.blog-post-body pre,
.blog-post-body h1,
.blog-post-body h2,
.blog-post-body h3 {
    width: 100%;
    margin: 0;
}

.blog-post-body h1 {
    font-family: 'Sabbath Black';
}

.blog-post-body h2,
.blog-post-body h3 {
    font-family: 'Warbler';
    font-size: var(--item-size);
    font-variant: small-caps;
}

.blog-post-body a {
    color: rgb(241, 218, 168);
}

.blog-post-body code {
    font-family: monospace;
    background-color: rgba(0, 0, 0, 0.3);
    padding: 0.1em 0.3em;
    border-radius: 3px;
    overflow-wrap: anywhere;
}

.blog-post-body pre {
    font-family: monospace;
    background-color: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(241, 218, 168, 0.3);
    padding: 1em;
    box-sizing: border-box;
    overflow-wrap: anywhere;
    white-space: pre-wrap;
    border-radius: 5px;
    line-height: 1.5;
}

.blog-post-body pre code {
    background-color: transparent;
    padding: 0;
    border-radius: 0;
}

.blog-post-body pre code * {
    font-family: monospace;
    font-size: inherit;
}

.blog-table {
    border-collapse: collapse;
    width: 100%;
    overflow-x: auto;
    display: block;
}

.blog-table th,
.blog-table td {
    border: 1px solid rgba(241, 218, 168, 0.3);
    padding: 0.5em 0.8em;
    text-align: left;
}

.blog-table thead th {
    background-color: rgba(241, 218, 168, 0.1);
    font-family: 'Sabbath Black';
}

.blog-table tbody tr:nth-child(even) {
    background-color: rgba(0, 0, 0, 0.2);
}

.blog-post-body ul,
.blog-post-body ol {
    font-size: 1.5em;
    padding-left: 1.5em;
}

.blog-post-body li p {
    font-size: inherit;
}

.blog-post-body ol {
    list-style-type: disc;
}

/* ============ Art ============ */

.art-empty {
    font-size: 1.5em;
}

.art-post {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--art-spacing);
    --art-content-width: min(50vw, 58rem);
    --art-spacing: clamp(0.75rem, 2vw, 1.5rem);
}

.art-back-link {
    display: inline-block;
    align-self: flex-start;
    font-size: 2em;
    text-decoration: none;
}

.art-back-link:hover {
    text-decoration: underline;
}

.page-content .art-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--art-spacing);
    width: var(--art-content-width);
    --art-content-width: min(50vw, 58rem);
    --art-spacing: clamp(0.75rem, 2vw, 1.5rem);
}

.art-list-item {
    display: flex;
    flex-direction: column;
    gap: 0.5em;
    border-bottom: 1px solid rgba(241, 218, 168, 0.3);
    padding-bottom: var(--art-spacing);
}

.art-list-item:last-child {
    border-bottom: none;
}

.art-list-title {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.5em;
    font-family: 'Sabbath Black';
    font-size: clamp(1.75rem, 6vh, 5rem);
    text-decoration: none;
    text-align: right;
    width: 100%;
}

.art-list-title:hover {
    text-decoration: underline;
}

.art-list-icon {
    height: 0.65em;
    width: auto;
    flex-shrink: 0;
}

.page-content .art-list-preview {
    font-size: 1.2em;
    opacity: 0.85;
    width: 100%;
    margin: 0;
}

.art-post-title {
    font-size: 5em;
    text-align: right;
    font-family: 'Sabbath Black';
    width: var(--art-content-width);
    margin: 0;
}

.art-post-date {
    display: block;
    font-size: 1.2em;
    text-align: right;
    opacity: 0.7;
    width: var(--art-content-width);
    margin: 0;
}

.art-post-summary {
    font-size: 1.5em;
    width: var(--art-content-width);
    text-align: left;
    margin: 0;
}

.art-post-summary > *:first-child,
.art-track-summary > *:first-child,
.art-carousel-summary > *:first-child {
    margin-top: 0;
}

.art-post-summary > *:last-child,
.art-track-summary > *:last-child,
.art-carousel-summary > *:last-child {
    margin-bottom: 0;
}

.art-post-summary p,
.art-track-summary p,
.art-carousel-summary p {
    margin: 0.75em 0;
}

.art-post-summary img,
.art-track-summary img,
.art-carousel-summary img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 0.75em auto;
}

.art-post-summary a,
.art-track-summary a,
.art-carousel-summary a {
    color: rgb(241, 218, 168);
}

.art-player {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1em;
    width: var(--art-content-width);
    padding: 1.5em;
    box-sizing: border-box;
    border: 1px solid rgba(241, 218, 168, 0.3);
    border-radius: 5px;
}

.art-player-track-title {
    font-size: 1.5em;
    text-align: center;
}

.art-player-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5em;
}

.art-player-btn {
    background: none;
    border: 1px solid rgba(241, 218, 168, 0.5);
    border-radius: 50%;
    width: 2.5em;
    height: 2.5em;
    font-size: 1.2em;
    line-height: 1;
    cursor: pointer;
}

.art-player-btn:hover:not(:disabled) {
    background-color: rgba(241, 218, 168, 0.15);
}

.art-player-btn:disabled {
    opacity: 0.3;
    cursor: default;
}

.art-player-playpause {
    width: 3.2em;
    height: 3.2em;
    font-size: 1.4em;
}

.art-player-seek-row {
    display: flex;
    align-items: center;
    gap: 0.75em;
    width: 100%;
}

.art-player-time {
    font-size: 0.9em;
    opacity: 0.8;
    min-width: 2.5em;
    text-align: center;
}

.art-player-seek {
    flex: 1;
    accent-color: rgb(241, 218, 168);
}

.art-player-volume-row {
    display: flex;
    align-items: center;
    gap: 0.75em;
    width: 60%;
    align-self: center;
}

.art-player-mute {
    width: 2em;
    height: 2em;
    font-size: 1em;
}

.art-player-volume {
    flex: 1;
    accent-color: rgb(241, 218, 168);
}

.art-player-layout {
    display: flex;
    align-items: flex-start;
    gap: 1.5em;
    width: var(--art-content-width);
}

.art-player-layout .art-player {
    flex: 1;
    width: auto;
}

.art-track-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5em;
    width: 14em;
    flex-shrink: 0;
    max-height: 20em;
    overflow-y: auto;
    border: 1px solid rgba(241, 218, 168, 0.3);
    border-radius: 5px;
    padding: 0.5em;
    box-sizing: border-box;
}

.art-track-list-btn {
    display: block;
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    border-radius: 3px;
    padding: 0.5em 0.6em;
    font-size: 0.8em;
    cursor: pointer;
}

.art-track-list-btn:hover {
    background-color: rgba(241, 218, 168, 0.15);
}

.art-track-list-item.active .art-track-list-btn {
    background-color: rgba(241, 218, 168, 0.25);
}

.art-track-summary {
    font-size: 1.2em;
    opacity: 0.85;
    width: var(--art-content-width);
    text-align: left;
    margin: 0;
    min-height: 1.5em;
}

.art-carousel {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1em;
    width: var(--art-content-width);
}

.art-carousel-image-wrap {
    flex: 1;
    display: flex;
    justify-content: center;
}

.art-carousel-image {
    display: block;
    max-width: 100%;
    max-height: 60vh;
    height: auto;
    border: 1px solid rgba(241, 218, 168, 0.3);
}

.art-carousel-arrow {
    flex-shrink: 0;
    background: none;
    border: 1px solid rgba(241, 218, 168, 0.5);
    border-radius: 50%;
    width: 2.5em;
    height: 2.5em;
    font-size: 1.2em;
    line-height: 1;
    cursor: pointer;
}

.art-carousel-arrow:hover:not(:disabled) {
    background-color: rgba(241, 218, 168, 0.15);
}

.art-carousel-arrow:disabled {
    opacity: 0.3;
    cursor: default;
}

.art-carousel-summary {
    font-size: 1.2em;
    opacity: 0.85;
    width: var(--art-content-width);
    text-align: left;
    margin: 0;
    min-height: 1.5em;
}

.side-nav {
    position: fixed;
    top: 1vh;
    left: 1vw;
    width: var(--nav-width);
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 100;
    background-color: rgba(0, 0, 0, 0.95);
    border: 1px solid rgb(241, 218, 168);
}

.side-nav > a {
    display: contents;
    font-size: var(--nav-item-size);
}

.side-nav-deco {
    margin-top: 3vh;
    margin-bottom: 2vh;
    width: 5vw;
    height: auto;
    display: block;
}

.side-nav-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5em;
    padding-left: 0.5em;
    margin-bottom: 1vh;
}

.side-nav-list a {
    font-family: 'Sabbath Black';
    font-weight: normal;
    font-size: var(--nav-item-size);
    text-decoration: none;
    white-space: nowrap;
}

.side-nav-list a:hover {
    text-decoration: underline;
    text-shadow: 0px 0px 15px rgb(241, 218, 168);
}

/* Home link is redundant with the desktop deco logo, shown only when the logo is hidden */
.home-nav-item {
    display: none;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 7px;
    width: 32px;
    height: 24px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    box-sizing: border-box;
    position: relative;
    z-index: 101;
}

.nav-toggle span {
    display: block;
    width: 100%;
    height: 4px;
    border-radius: 2px;
    background-color: rgb(241, 218, 168);
}

/* Morph the hamburger into an X when the nav is expanded */
.nav-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(11px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-11px) rotate(-45deg);
}

/* ============ About/Contact Page ============ */

.about-content .contact-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}