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

html,
body {
    width: 100%;
    overflow-x: hidden;
}

body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    display: flex;
    min-height: 100vh;
    background-color: #ffffff;
    color: #000000;
}

.sidebar {
    width: 170px;
    padding: 40px 20px;
    border-right: none;
    position: fixed;
    left: 0;
    top: 0;
    height: 100vh;
}

.menu-toggle {
    display: none;
    position: fixed;
    top: 18px;
    left: 16px;
    z-index: 1001;
    width: 42px;
    height: 42px;
    border: 1px solid #000000;
    background-color: #ffffff;
    color: #000000;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
}

.sidebar ul {
    list-style: none;
}

.sidebar li {
    margin-bottom: 20px;
}

.sidebar a {
    color: #000000;
    text-decoration: none;
    font-size: 16px;
    letter-spacing: 1px;
    transition: opacity 0.2s;
    text-transform: lowercase;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

.sidebar a:hover {
    opacity: 0.6;
}

.content {
    margin-left: 170px;
    flex: 1;
    padding: 60px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
}

.text-container {
    position: fixed;
    top: 60px;
    left: 170px;
    right: 40px;
    text-align: center;
    font-size: 24px;
    line-height: 1.6;
    letter-spacing: 1px;
    text-transform: lowercase;
    z-index: 10;
    pointer-events: none;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

#rotating-text {
    display: inline;
}

.ascii-container {
    font-family: 'Courier New', monospace;
    font-size: 7px;
    line-height: 1;
    white-space: pre;
    text-align: center;
    color: #000000;
    max-width: 100%;
    overflow: hidden;
    padding: 20px 60px 20px 60px;
    margin-top: 60px;
    min-height: 400px;
}

/* Writing page styles */
.writing-content {
    padding: 60px 36px;
    max-width: 1200px;
    width: 100%;
}

.writing-index {
    width: 100%;
    max-width: 820px;
}

.writing-index-title {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 20px;
    font-weight: normal;
    text-transform: lowercase;
    letter-spacing: 1px;
    margin-bottom: 24px;
}

.writing-card {
    display: block;
    border: 1px solid #000000;
    padding: 18px 20px;
    text-decoration: none;
    color: #000000;
    margin-bottom: 18px;
    transition: opacity 0.2s;
}

.writing-card:hover {
    opacity: 0.7;
}

.writing-card-title {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 16px;
    font-weight: normal;
    letter-spacing: 1px;
    text-transform: lowercase;
    margin-bottom: 8px;
}

.writing-card-meta {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 14px;
    line-height: 1.5;
}

.writing-article-page {
    align-items: flex-start;
}

.writing-page-nav {
    width: 100%;
    max-width: 820px;
    display: flex;
    justify-content: flex-start;
    margin-bottom: 24px;
}

.icon-link {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 16px;
    letter-spacing: 1px;
    text-transform: lowercase;
    color: #000000;
    text-decoration: none;
    transition: opacity 0.2s;
}

.icon-link:hover {
    opacity: 0.7;
}

.article {
    margin-bottom: 80px;
    width: 100%;
    max-width: 820px;
    overflow: hidden; /* Clear floats */
}

.article-line {
    width: 100%;
    height: 1px;
    background-color: #000000;
    margin: 40px 0;
}

.article-line-top {
    margin-top: 0;
}

.article-line-bottom {
    margin-bottom: 0;
}

.article-header {
    text-align: center;
    margin-bottom: 30px;
}

.article-title {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 30px;
    font-weight: normal;
    margin-bottom: 12px;
    line-height: 1.2;
    letter-spacing: 1px;
    text-transform: lowercase;
}

.article-meta {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 14px;
    color: #000000;
}

.article-image-box {
    float: right;
    width: 300px;
    height: 300px;
    margin: -80px 0 20px 30px;
    border: 1px solid #000000;
    background-color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
    box-sizing: border-box;
    padding: 0;
}

/* Square box (default) */
.article-image-box.square {
    width: 300px;
    height: 300px;
}

/* Rectangular box options */
.article-image-box.rectangular {
    width: 300px;
    height: 400px;
}

.article-image-box.rectangular-wide {
    width: 400px;
    height: 300px;
}

.article-image-box img,
.article-image-box video {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    margin: 0;
}

.article-cover-image {
    display: block;
    width: min(100%, 300px);
    aspect-ratio: 1 / 1;
    margin: 0 auto 28px auto;
    border: 1px solid #000000;
    background-color: #ffffff;
    overflow: hidden;
}

.article-cover-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.article-text {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    text-align: left;
    margin-bottom: 40px;
}

.article-text p {
    margin-bottom: 1.5em;
}

/* Blog page styles */
.blog-content {
    align-items: flex-start;
}

.blog-feed {
    width: 100%;
    max-width: 760px;
}

.blog-title {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 20px;
    font-weight: normal;
    text-transform: lowercase;
    letter-spacing: 1px;
    margin-bottom: 6px;
}

.blog-subtitle {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 14px;
    color: #000000;
    margin-bottom: 18px;
    text-transform: lowercase;
}

.blog-post {
    border: 1px solid #000000;
    padding: 14px 16px;
    margin-bottom: 12px;
    background-color: #ffffff;
}

.blog-post-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 10px;
}

.blog-handle {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 14px;
    letter-spacing: 1px;
    text-transform: lowercase;
}

.blog-time {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 12px;
    letter-spacing: 0.5px;
    text-transform: lowercase;
}

.blog-text {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 14px;
    line-height: 1.55;
    text-transform: lowercase;
}

/* Music page styles */
.music-content {
    align-items: flex-start;
}

.music-feed {
    width: 100%;
    max-width: 760px;
}

.music-title {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 20px;
    font-weight: normal;
    text-transform: lowercase;
    letter-spacing: 1px;
    margin-bottom: 26px;
}

.now-playing {
    width: min(100%, 520px);
    border: 1px solid #000000;
    padding: 14px 16px;
    margin-bottom: 26px;
}

.playlist-section-title {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 20px;
    font-weight: normal;
    text-transform: lowercase;
    letter-spacing: 1px;
    width: min(100%, 520px);
    margin-bottom: 26px;
}

.now-playing-main {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.now-playing-art {
    width: 72px;
    height: 72px;
    border: 1px solid #000000;
    object-fit: cover;
    flex-shrink: 0;
}

.now-playing-details {
    min-width: 0;
}

.now-playing-kicker {
    font-size: 14px;
    font-weight: normal;
    letter-spacing: 1px;
    text-transform: lowercase;
    margin-bottom: 10px;
}

.now-playing-title {
    font-size: 16px;
    font-weight: normal;
    letter-spacing: 0.8px;
    text-transform: lowercase;
    margin-bottom: 8px;
}

.now-playing-meta {
    font-size: 14px;
    letter-spacing: 0.5px;
    text-transform: lowercase;
    margin-bottom: 6px;
}

.now-playing-sep {
    margin: 0 6px;
}

.now-playing-time {
    font-size: 12px;
    text-transform: lowercase;
    margin-bottom: 8px;
}

.now-playing-link {
    font-size: 12px;
    color: #000000;
    text-transform: lowercase;
}

.playlist-embed {
    margin-bottom: 0;
}

.playlist-embed + .playlist-embed {
    margin-top: 26px;
}

.playlist-title {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 14px;
    font-weight: normal;
    text-transform: lowercase;
    letter-spacing: 1px;
    width: min(100%, 520px);
    padding-bottom: 14px;
    margin-bottom: 14px;
    border-bottom: 1px solid #000000;
}

.spotify-player {
    display: block;
    width: min(100%, 520px);
}

/* Bio page styles */
.bio-content {
    align-items: flex-start;
}

.bio-page {
    width: 100%;
    max-width: 760px;
}

.bio-header {
    margin-bottom: 24px;
}

.bio-title {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 20px;
    font-weight: normal;
    text-transform: lowercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.bio-subtitle {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 14px;
    text-transform: lowercase;
}

.bio-top {
    display: flex;
    gap: 22px;
    align-items: flex-start;
    margin-bottom: 26px;
}

.bio-photo {
    width: 210px;
    height: 280px;
    border: 1px solid #000000;
    flex-shrink: 0;
    object-fit: cover;
    object-position: center 14%;
    display: block;
}

.bio-intro {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    text-transform: lowercase;
}

.bio-intro p {
    margin-bottom: 1em;
}

.bio-section {
    margin-bottom: 22px;
}

.bio-section-title {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 14px;
    font-weight: normal;
    text-transform: lowercase;
    letter-spacing: 1px;
    width: 100%;
    padding-bottom: 10px;
    margin-bottom: 12px;
    border-bottom: 1px solid #000000;
}

.bio-list {
    list-style: none;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 14px;
    line-height: 1.65;
    text-transform: lowercase;
}

.bio-list li {
    margin-bottom: 8px;
}

.bio-links {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 14px;
    text-transform: lowercase;
}

.bio-links a {
    color: #000000;
}

@media (max-width: 768px) {
    .now-playing-main {
        gap: 10px;
    }

    .now-playing-art {
        width: 64px;
        height: 64px;
    }

    .spotify-player {
        width: 100%;
    }

    .bio-top {
        flex-direction: column;
        gap: 14px;
    }

    .bio-photo {
        width: 100%;
        max-width: 240px;
        height: 320px;
    }
}

/* Projects page styles */
.projects-content {
    align-items: flex-start;
}

.projects-page {
    width: 100%;
    max-width: 820px;
}

.projects-title {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 20px;
    font-weight: normal;
    text-transform: lowercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.project-card {
    display: block;
    width: 100%;
    border: 1px solid #000000;
    padding: 16px 20px;
    margin-bottom: 14px;
    color: #000000;
    text-decoration: none;
    transition: opacity 0.2s;
}

.project-card:hover {
    opacity: 0.7;
}

.project-card-title {
    font-size: 16px;
    font-weight: normal;
    text-transform: lowercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.project-card-meta {
    font-size: 14px;
    line-height: 1.5;
    text-transform: lowercase;
}

.project-detail-title {
    font-size: 24px;
    font-weight: normal;
    text-transform: lowercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.project-detail-copy {
    font-size: 14px;
    line-height: 1.6;
    text-transform: lowercase;
}

@media (max-width: 768px) {
    .sidebar {
        width: 220px;
        padding: 86px 20px 30px 20px;
        background-color: #ffffff;
        z-index: 1000;
        transform: translateX(-100%);
        transition: transform 0.25s ease;
    }

    body.menu-open .sidebar {
        transform: translateX(0);
    }

    body.menu-open::before {
        content: "";
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.15);
        z-index: 999;
    }
    
    .content {
        margin-left: 0;
        width: 100%;
        padding: 110px 20px 40px 20px;
    }
    
    .text-container {
        font-size: 20px;
        left: 20px;
        right: 20px;
        top: 92px;
    }

    .menu-toggle {
        display: block;
    }
    
    .ascii-container {
        font-size: 6px;
        padding: 120px 24px 40px 24px;
        margin-top: 60px;
    }
    
    .writing-content {
        padding: 110px 20px 40px 20px;
    }

    .writing-index-title {
        font-size: 18px;
    }
    
    .article-title {
        font-size: 24px;
    }
    
    .article-header {
        margin-bottom: 20px;
    }
    
    .article-image-box {
        float: none;
        width: 100%;
        height: auto;
        min-height: 300px;
        margin: 0 0 20px 0;
    }
    
    .article-image-box.rectangular,
    .article-image-box.rectangular-wide {
        height: auto;
        min-height: 300px;
    }

    .blog-post-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
}

