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

body {
    font-family: 'Roboto Mono', monospace;
    font-size: 14px;
    line-height: 1.6;
    color: #000;
    background-color: #f8f9fa;
    font-weight: 300;
    display: flex;
    min-height: 100vh;
}

.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: 200px;
    height: 100vh;
    background-color: #fff;
    border-right: 1px solid #e0e0e0;
    padding: 30px 20px;
    overflow-y: auto;
}

.sidebar-section {
    margin-bottom: 25px;
}

.sidebar-section h3 {
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
    color: #666;
}

.sidebar-links {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sidebar-links li {
    margin-bottom: 8px;
}

.sidebar-links a {
    color: #000;
    text-decoration: none;
    font-weight: 400;
    display: block;
    padding: 2px 0;
}

.sidebar-links a:hover {
    text-decoration: underline;
}

.main-content {
    margin-left: 200px;
    flex: 1;
}

.container {
    max-width: 700px;
    margin: 0 auto;
    padding: 40px 20px;
}

.navigation {
    margin-bottom: 30px;
}

.navigation a {
    color: #000;
    text-decoration: none;
    margin-right: 15px;
    font-weight: 400;
}

.navigation a:hover {
    text-decoration: underline;
}

.navigation a::before {
    content: '[';
}

.navigation a::after {
    content: ']';
}

.social {
    margin-bottom: 30px;
}

.social a {
    display: inline-block;
    margin-right: 15px;
    color: #000;
    text-decoration: none;
    font-weight: 400;
}

.social a:hover {
    text-decoration: underline;
}

.content {
    max-width: 100%;
}

h1 {
    font-size: 24px;
    font-weight: 500;
    margin-bottom: 20px;
    line-height: 1.2;
}

h2 {
    font-size: 18px;
    font-weight: 500;
    margin: 30px 0 15px 0;
    line-height: 1.2;
}

h3 {
    font-size: 16px;
    font-weight: 500;
    margin: 25px 0 10px 0;
    line-height: 1.2;
}

p {
    margin-bottom: 15px;
}

ul, ol {
    margin-bottom: 15px;
    padding-left: 20px;
}

li {
    margin-bottom: 5px;
}

hr {
    border: none;
    border-top: 1px solid #000;
    margin: 30px 0;
}

strong {
    font-weight: 500;
}

a {
    color: #000;
    text-decoration: underline;
}

a:hover {
    text-decoration: none;
}

.profile-image {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    display: inline;
    vertical-align: middle;
    margin-left: 8px;
}

.main-profile-image {
    width: 100%;
    max-width: 700px;
    height: 280px;
    object-fit: cover;
    object-position: center 55%;
    display: block;
    margin: 0 auto 30px auto;
    border-radius: 8px;
    border: 2px solid #e0e0e0;
}

@media (max-width: 768px) {
    .main-profile-image {
        max-width: 100%;
        height: 200px;
    }
}

.project-item {
    margin-bottom: 25px;
}

.project-meta {
    margin-bottom: 8px;
    font-weight: 400;
}

.project-links {
    margin-top: 8px;
}

.project-links a {
    margin-right: 10px;
}

/* Pokemon Trainer Sprite */
.pokemon-trainer {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) scale(3.5);
    width: 8px;
    height: 8px;
    opacity: 0;
    transition: opacity 0.3s ease;
    image-rendering: pixelated;
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;
}

/* Base trainer sprite - standing position */
.pokemon-trainer::before {
    content: '';
    position: absolute;
    width: 1px;
    height: 1px;
    background: transparent;
    box-shadow:
        /* Hat */
        1px 0px 0 #ff0000, 2px 0px 0 #ff0000, 3px 0px 0 #ff0000, 4px 0px 0 #ff0000, 5px 0px 0 #ff0000, 6px 0px 0 #ff0000,
        1px 1px 0 #ff0000, 2px 1px 0 #ff0000, 3px 1px 0 #ff0000, 4px 1px 0 #ff0000, 5px 1px 0 #ff0000, 6px 1px 0 #ff0000,

        /* Face with smile */
        2px 2px 0 #fdbcb4, 3px 2px 0 #fdbcb4, 4px 2px 0 #fdbcb4, 5px 2px 0 #fdbcb4,
        2px 3px 0 #fdbcb4, 3px 3px 0 #000, 4px 3px 0 #fdbcb4, 5px 3px 0 #000,
        2px 4px 0 #fdbcb4, 3px 4px 0 #fdbcb4, 4px 4px 0 #fdbcb4, 5px 4px 0 #fdbcb4,

        /* Body/Shirt */
        2px 5px 0 #0066cc, 3px 5px 0 #0066cc, 4px 5px 0 #0066cc, 5px 5px 0 #0066cc,
        1px 6px 0 #fdbcb4, 2px 6px 0 #0066cc, 3px 6px 0 #0066cc, 4px 6px 0 #0066cc, 5px 6px 0 #0066cc, 6px 6px 0 #fdbcb4,

        /* Legs - standing */
        2px 7px 0 #fdbcb4, 3px 7px 0 #fdbcb4, 4px 7px 0 #fdbcb4, 5px 7px 0 #fdbcb4,

        /* Better shoes - not hooves */
        1px 8px 0 #000, 2px 8px 0 #000, 4px 8px 0 #000, 5px 8px 0 #000, 6px 8px 0 #000;
}

/* Walking animation frame 1 - left foot forward */
.pokemon-trainer.walking.frame1::before {
    box-shadow:
        /* Hat */
        1px 0px 0 #ff0000, 2px 0px 0 #ff0000, 3px 0px 0 #ff0000, 4px 0px 0 #ff0000, 5px 0px 0 #ff0000, 6px 0px 0 #ff0000,
        1px 1px 0 #ff0000, 2px 1px 0 #ff0000, 3px 1px 0 #ff0000, 4px 1px 0 #ff0000, 5px 1px 0 #ff0000, 6px 1px 0 #ff0000,

        /* Face with smile */
        2px 2px 0 #fdbcb4, 3px 2px 0 #fdbcb4, 4px 2px 0 #fdbcb4, 5px 2px 0 #fdbcb4,
        2px 3px 0 #fdbcb4, 3px 3px 0 #000, 4px 3px 0 #fdbcb4, 5px 3px 0 #000,
        2px 4px 0 #fdbcb4, 3px 4px 0 #fdbcb4, 4px 4px 0 #fdbcb4, 5px 4px 0 #fdbcb4,

        /* Body/Shirt */
        2px 5px 0 #0066cc, 3px 5px 0 #0066cc, 4px 5px 0 #0066cc, 5px 5px 0 #0066cc,
        1px 6px 0 #fdbcb4, 2px 6px 0 #0066cc, 3px 6px 0 #0066cc, 4px 6px 0 #0066cc, 5px 6px 0 #0066cc, 6px 6px 0 #fdbcb4,

        /* Legs - left foot forward */
        1px 7px 0 #fdbcb4, 3px 7px 0 #fdbcb4, 4px 7px 0 #fdbcb4, 5px 7px 0 #fdbcb4,

        /* Better shoes - left foot forward */
        0px 8px 0 #000, 1px 8px 0 #000, 3px 8px 0 #000, 4px 8px 0 #000, 5px 8px 0 #000, 6px 8px 0 #000;
}

/* Walking animation frame 2 - right foot forward */
.pokemon-trainer.walking.frame2::before {
    box-shadow:
        /* Hat */
        1px 0px 0 #ff0000, 2px 0px 0 #ff0000, 3px 0px 0 #ff0000, 4px 0px 0 #ff0000, 5px 0px 0 #ff0000, 6px 0px 0 #ff0000,
        1px 1px 0 #ff0000, 2px 1px 0 #ff0000, 3px 1px 0 #ff0000, 4px 1px 0 #ff0000, 5px 1px 0 #ff0000, 6px 1px 0 #ff0000,

        /* Face with smile */
        2px 2px 0 #fdbcb4, 3px 2px 0 #fdbcb4, 4px 2px 0 #fdbcb4, 5px 2px 0 #fdbcb4,
        2px 3px 0 #fdbcb4, 3px 3px 0 #000, 4px 3px 0 #fdbcb4, 5px 3px 0 #000,
        2px 4px 0 #fdbcb4, 3px 4px 0 #fdbcb4, 4px 4px 0 #fdbcb4, 5px 4px 0 #fdbcb4,

        /* Body/Shirt */
        2px 5px 0 #0066cc, 3px 5px 0 #0066cc, 4px 5px 0 #0066cc, 5px 5px 0 #0066cc,
        1px 6px 0 #fdbcb4, 2px 6px 0 #0066cc, 3px 6px 0 #0066cc, 4px 6px 0 #0066cc, 5px 6px 0 #0066cc, 6px 6px 0 #fdbcb4,

        /* Legs - right foot forward */
        2px 7px 0 #fdbcb4, 3px 7px 0 #fdbcb4, 5px 7px 0 #fdbcb4, 6px 7px 0 #fdbcb4,

        /* Better shoes - right foot forward */
        1px 8px 0 #000, 2px 8px 0 #000, 3px 8px 0 #000, 5px 8px 0 #000, 6px 8px 0 #000, 7px 8px 0 #000;
}

.pokemon-trainer.walking {
    opacity: 1;
    animation: walkCycle 0.6s infinite;
}

@keyframes walkCycle {
    0%, 25% {
        transform: translateX(-50%) scale(3.5);
    }
    50%, 75% {
        transform: translateX(-50%) scale(3.5);
    }
    100% {
        transform: translateX(-50%) scale(3.5);
    }
}

@keyframes fadeOut {
    to {
        opacity: 0;
    }
}

.pokemon-trainer.fading {
    animation: fadeOut 1s ease-in-out forwards;
}

/* Writing Cards */
.writing-cards {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 30px;
}

.writing-card {
    display: block;
    padding: 30px;
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    text-decoration: none;
    color: #000;
    transition: all 0.2s ease;
    min-height: 120px;
}

.writing-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
    border-color: #000;
}

.writing-card .card-title {
    font-size: 18px;
    font-weight: 500;
    margin: 0 0 8px 0;
    padding-bottom: 8px;
    border-bottom: 1px solid #e0e0e0;
}

.writing-card .card-description {
    font-size: 14px;
    color: #666;
    margin: 0;
    line-height: 1.5;
}

/* Code blocks */
code {
    background-color: #f4f4f4;
    padding: 2px 6px;
    border-radius: 3px;
    font-family: 'Roboto Mono', monospace;
    font-size: 13px;
}

pre {
    background-color: #f4f4f4;
    padding: 15px;
    border-radius: 4px;
    overflow-x: auto;
    margin: 20px 0;
    border: 1px solid #e0e0e0;
}

pre code {
    background-color: transparent;
    padding: 0;
    border-radius: 0;
    font-size: 13px;
    line-height: 1.5;
}

@media (max-width: 768px) {
    body {
        flex-direction: column;
        font-size: 13px;
    }

    .sidebar {
        position: relative;
        width: 100%;
        height: auto;
        border-right: none;
        border-bottom: 1px solid #e0e0e0;
        padding: 20px;
    }

    .sidebar-section {
        margin-bottom: 15px;
    }

    .sidebar-section h3 {
        font-size: 11px;
    }

    .pokemon-trainer {
        bottom: 10px;
    }

    .main-content {
        margin-left: 0;
    }

    .container {
        padding: 30px 15px;
    }

    h1 {
        font-size: 20px;
    }

    h2 {
        font-size: 16px;
    }

    .writing-card {
        padding: 20px;
        min-height: 100px;
    }
}