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

body {
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 20px;
    line-height: 1.6;
    background-color: #ffffff;
    padding: 2em;
    max-width: 1000px;
    margin: 0 auto;
    color: #000;
    padding-bottom: 0;
}

article {
    margin-bottom: 1.2em;
}

.main-header {
    padding: 1.5rem 0;
    border-bottom: 1px solid #e0e0e0;
    margin-bottom: 2rem;
}

.site-nav {
    display: flex;
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 1rem;
}

a[href^="http"]:not([href*="manitofigh.com"])::after {
    content: "↗";
    font-size: 0.8em;
    line-height: 1;
    vertical-align: text-top;
}

.site-nav a {
    color: #1A1A1A;
    text-decoration: none;
    font-size: 0.95rem;
}

.site-nav a:hover {
    text-decoration: underline;
}

h2 {
    max-width: 900px;
    margin: 0 auto 2rem;
    padding: 0 1rem;
    font-size: 1.8rem;
}

.profile-row {
    max-width: 900px;
    margin: 0 auto 2rem;
    padding: 0 1rem;
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

#profile-pic {
    flex-shrink: 0;
    width: 200px;
    height: 250px;
    object-fit: cover;
    border-radius: 0.25rem;
    display: block;
}

.contact-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    min-width: 0;
}

.icon-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #1A1A1A;
    text-decoration: none;
}

.icon-link:hover {
    text-decoration: underline;
}

.icon-img {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.link-text {
    flex: 1;
    line-height: 1.4;
    font-size: 0.9rem;
}

.intro-text {
    max-width: 900px;
    margin: 0 auto 2rem;
    padding: 0 1rem;
}

.intro-text p {
    margin-bottom: 1rem;
    line-height: 1.7;
    font-size: 0.95rem;
}

.intro-text a {
    color: #1A1A1A;
}

.intro-divider {
    width: 100%;
    border: none;
    border-top: 1px solid #d0d0d0;
    margin: 1.5rem 0;
}

.posts-list {
    list-style: none;
    padding-left: 0;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 1rem;
}

.posts-list li {
    margin-bottom: 0.9em;
}

.post-link {
    color: #1A1A1A;
    text-decoration: none;
    font-size: 1.05rem;
}

.post-link:visited {
    color: #1A1A1A;
}

.post-link:hover {
    text-decoration: underline;
}

main {
    max-width: 900px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.lead {
    font-size: 1rem;
    line-height: 1.7;
}

.post-content {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #111;
}

.post-content p {
    margin-bottom: 1.1em;
}

#o {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    background-color: #ffffff;
    overflow: hidden;
    font-family: monospace;
    font-size: 14px;
    line-height: 1.2;
    margin-bottom: 0;
    padding: 0;
    min-height: 400px;
}

pre {
    background: #f5f5f5;
    padding: 0.8em;
    overflow-x: auto;
    border-radius: 4px;
    margin: 1em 0;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, "Roboto Mono", "Courier New", monospace;
    font-size: 0.8rem;
    line-height: 1.35;
}

pre[class*="language-"] {
    background: #f5f5f5;
    padding: 0.8em;
    overflow-x: auto;
    border-radius: 4px;
    margin: 1em 0;
}

code {
    font-family: inherit;
    white-space: pre;
}

code[class*="language-"] {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, "Roboto Mono", "Courier New", monospace;
    font-size: 0.8rem;
    line-height: 1.35;
}

.post-title {
    max-width: 900px;
    margin: 2rem auto 2rem;
    padding: 0 1rem;
    font-size: 2rem;
    line-height: 1.3;
}

@media (max-width: 768px) {
    body {
        padding: 1.5em;
    }

    .profile-row {
        flex-direction: column;
        gap: 1.5rem;
        align-items: flex-start;
    }

    #profile-pic {
        width: 180px;
        height: 225px;
    }

    .contact-info {
        width: 100%;
        gap: 1.2rem;
    }

    .link-text {
        font-size: 0.85rem;
    }

    .icon-img {
        width: 20px;
        height: 20px;
    }

    .post-title {
        font-size: 1.5rem;
    }

    #o {
        font-size: 12px;
        min-height: 350px;
        padding: 1.5rem 0;
    }
}

@media (max-width: 480px) {
    body {
        padding: 1em;
        font-size: 18px;
    }

    .profile-row {
        flex-direction: column;
        gap: 1rem;
        padding: 0 0.75rem;
        align-items: flex-start;
    }

    #profile-pic {
        width: 160px;
        height: 200px;
    }

    .contact-info {
        width: 100%;
        gap: 1rem;
    }

    .link-text {
        font-size: 0.75rem;
        word-break: break-word;
    }

    .icon-img {
        width: 18px;
        height: 18px;
    }

    .icon-link {
        gap: 0.5rem;
    }

    .intro-text {
        padding: 0 0.75rem;
    }

    .intro-text p {
        font-size: 0.9rem;
    }

    h2 {
        font-size: 1.3rem;
        padding: 0 0.75rem;
    }

    .site-nav {
        gap: 1rem;
        font-size: 0.85rem;
        padding: 0 0.75rem;
    }

    .posts-list {
        padding: 0 0.75rem;
    }

    .post-title {
        font-size: 1.2rem;
        padding: 0 0.75rem;
    }

    main {
        padding: 0 0.75rem;
    }

    #o {
        font-size: 10px;
        min-height: 300px;
        padding: 1rem 0;
        margin-top: 1.5rem;
    }

    pre {
        font-size: 0.85rem;
        padding: 0.6em;
    }
}
