/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-color: #1a1a1a;
    --text-color: #e0e0e0;
    --accent-color: #888;
    --border-color: #333;
    --link-color: #e0e0e0;
    --link-hover: #fff;
}

body {
    font-family: 'Calibri', 'Candara', 'Segoe', 'Segoe UI', 'Optima', 'Arial', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    font-size: 14.5px;
}

/* Navbar */
.navbar {
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    background-color: var(--bg-color);
    z-index: 100;
}

.navbar-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-left {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.navbar-left a {
    color: var(--text-color);
    transition: opacity 0.2s;
    display: flex;
    align-items: center;
}

.navbar-left a:hover {
    opacity: 0.7;
}

.navbar-right {
    display: flex;
    gap: 2rem;
}

.navbar-right a {
    color: var(--text-color);
    text-decoration: none;
    text-transform: lowercase;
    transition: opacity 0.2s;
}

.navbar-right a:hover {
    opacity: 0.7;
}

/* Main content */
main {
    max-width: 900px;
    margin: 0 auto;
    padding: 3rem 2rem;
    min-height: calc(100vh - 200px);
}

/* Home page */
.home-container {
    width: 100%;
}

.home-content {
    width: 100%;
}

.bio-section {
    display: grid;
    grid-template-columns: 1fr 260px;
    gap: 3rem;
    margin-bottom: 1.5rem;
    align-items: start;
}

.bio-text {
    font-size: 1.1rem;
    line-height: 1.8;
}

.bio-text p {
    margin-bottom: 1.5rem;
}

.bio-text a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: normal;
    transition: font-weight 0.2s;
}

.bio-text a:hover {
    font-weight: 600;
}

.bio-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.bio-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.bio-image img {
    width: 100%;
    max-width: 240px;
    height: auto;
    border-radius: 8px;
}

/* Projects section */
.projects-section {
    margin-top: 1.5rem;
}

.projects-section h2 {
    font-size: 1.2rem;
    font-weight: 400;
    margin-bottom: 2rem;
    text-transform: lowercase;
    color: var(--accent-color);
}

.projects-list {
    list-style: none;
    padding-left: 0;
}

.projects-list li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.projects-list li::before {
    content: "•";
    color: var(--accent-color);
    font-size: 1.2rem;
    position: absolute;
    left: 0;
    line-height: 1.6;
}

.projects-list a {
    color: var(--link-color);
    text-decoration: none;
    transition: color 0.2s;
}

.projects-list a:hover {
    color: var(--link-hover);
}

.projects-list strong {
    font-weight: 600;
}

/* Thoughts section */
.thoughts-section {
    margin-top: 3rem;
}

.thoughts-section h2 {
    font-size: 1.2rem;
    font-weight: 400;
    margin-bottom: 2rem;
    text-transform: lowercase;
    color: var(--accent-color);
}

.thoughts-list {
    list-style: none;
    padding-left: 0;
}

.thoughts-list li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.thoughts-list li::before {
    content: "•";
    color: var(--accent-color);
    font-size: 1.2rem;
    position: absolute;
    left: 0;
    line-height: 1.6;
}

.thoughts-list a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: normal;
    transition: font-weight 0.2s;
}

.thoughts-list a:hover {
    font-weight: 600;
}

.thoughts-list strong {
    font-weight: 600;
}

/* Post layout */
.post {
    max-width: 700px;
    margin: 0 auto;
}

.post-header {
    margin-bottom: 2rem;
}

.post-header h1 {
    font-size: 2rem;
    font-weight: 400;
    margin-bottom: 0.5rem;
}

.post-header time {
    color: var(--accent-color);
    font-size: 0.9rem;
}

.post-content {
    line-height: 1.8;
    font-size: 1.1rem;
}

.post-content p {
    margin-bottom: 1.5rem;
}

.thoughts-container {
    max-width: 900px;
    margin: 0 auto;
}

.thoughts-container h1 {
    font-size: 2rem;
    font-weight: 400;
    margin-bottom: 2rem;
    text-transform: lowercase;
}

.thoughts-container .thoughts-list li {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
}

.thoughts-container .post-date {
    color: var(--accent-color);
    font-size: 0.9rem;
    white-space: nowrap;
}

/* Footer */
.footer {
    text-align: center;
    padding: 2rem;
    color: var(--accent-color);
    font-size: 0.9rem;
    border-top: 1px solid var(--border-color);
    margin-top: 4rem;
}

/* Widgets section */
.widgets-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
}

.widget-panel {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.35rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    padding: 0.65rem 0.5rem;
    transition: background 0.2s, border-color 0.2s;
}

.widget-panel:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

.widget-icon {
    font-size: 0.95rem;
    line-height: 1;
}

.widget-body {
    width: 100%;
    min-width: 0;
}

.widget-label {
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--accent-color);
    margin-bottom: 0.2rem;
}

/* Spotify widget */
.spotify-content {
    display: flex;
    flex-direction: column;
}

.spotify-loading {
    color: var(--accent-color);
    font-size: 0.7rem;
    font-style: italic;
}

.spotify-track {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.4rem;
}

.spotify-album-art {
    width: 30px;
    height: 30px;
    border-radius: 4px;
    object-fit: cover;
    flex-shrink: 0;
}

.spotify-track-info {
    min-width: 0;
    text-align: left;
}

.spotify-track-name {
    font-weight: 500;
    font-size: 0.7rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.spotify-track-artist {
    color: var(--accent-color);
    font-size: 0.65rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.spotify-link {
    color: var(--text-color);
    text-decoration: none;
    transition: opacity 0.2s;
}

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

.spotify-error {
    color: var(--accent-color);
    font-size: 0.7rem;
    font-style: italic;
}

/* Location widget */
.location-content {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.location-place {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-color);
}

.location-time {
    font-size: 0.7rem;
    color: var(--accent-color);
    font-variant-numeric: tabular-nums;
}

/* Responsive */
@media (max-width: 768px) {
    .navbar-container {
        padding: 0 1.5rem;
    }
    
    .navbar-left {
        gap: 1rem;
    }
    
    .navbar-right {
        gap: 1.5rem;
    }
    
    main {
        padding: 2rem 1.5rem;
    }
    
    .bio-section {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .bio-sidebar {
        order: -1;
    }

    .bio-image {
        justify-content: start;
    }

    .bio-image img {
        max-width: 200px;
    }

    .projects-list li {
        flex-direction: column;
        gap: 0.5rem;
    }
}

