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

body {
    background-color: #fff;
    color: #000;
    font-family: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-weight: 300;
    min-height: 100vh;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

main {
    width: 100%;
    max-width: 1400px;
    padding: 4rem;
}

h1 {
    font-weight: 700;
    font-size: 3rem;
    letter-spacing: -0.02em;
    margin-bottom: 0;
}

.contact {
    font-style: italic;
    font-size: 1rem;
    font-weight: 300;
    color: #333;
    margin-bottom: 2.5rem;
}

.links {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.links a {
    color: #000;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 300;
    letter-spacing: 0.02em;
    padding-bottom: 2px;
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s ease;
}

.links a:hover {
    border-bottom-color: #000;
}

.bio-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 4rem;
}

.bio {
    flex: 1;
    max-width: 50%;
    font-size: 1rem;
    font-weight: 300;
    color: #333;
    letter-spacing: 0.01em;
}

.bio p {
    margin-bottom: 1rem;
}

.bio p:last-child {
    margin-bottom: 0;
}

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

.headshot {
    flex: 1;
    max-width: 50%;
}

.headshot img {
    width: 100%;
    max-width: 350px;
    height: auto;
    object-fit: cover;
}

@media (max-width: 700px) {
    main {
        padding: 2rem;
    }
    
    h1 {
        font-size: 1.5rem;
    }
    
    .bio-section {
        flex-direction: column-reverse;
        gap: 2rem;
    }
    
    .headshot img {
        width: 300px;
    }
    
    .links {
        gap: 1rem;
    }
}

/* Blog styles */
.post-list {
    list-style: none;
    margin-top: 2rem;
}

.post-list li {
    margin-bottom: 0.75rem;
    font-size: 1rem;
}

.post-list .post-date {
    color: #666;
    font-size: 0.9rem;
    margin-right: 3rem;
    font-variant-numeric: tabular-nums;
}

.post-list a {
    color: #000;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s ease;
}

.post-list a:hover {
    border-bottom-color: #000;
}

.no-posts {
    color: #666;
    font-style: italic;
    margin-top: 2rem;
}

/* Individual post styles */
.post-header {
    margin-bottom: 2rem;
}

.post-header h1 {
    margin-top: 0.5rem;
}

.post-meta {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 0;
}

.post-content {
    max-width: 100%;
    font-size: 1rem;
    color: #333;
    line-height: 1.7;
}

.post-content h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.post-content h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

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

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

.post-content ul,
.post-content ol {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    list-style-position: outside;
}

.post-content ul ul,
.post-content ol ol,
.post-content ul ol,
.post-content ol ul {
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

.post-content li {
    margin-bottom: 0.5rem;
}

.post-content blockquote {
    border-left: 3px solid #000;
    padding-left: 1rem;
    margin: 1.5rem 0;
    color: #555;
    font-style: italic;
}

.post-content img {
    max-width: 650px;
    width: 100%;
    height: auto;
    display: block;
    margin: 1.5rem 0;
}

.post-content figure {
    margin: 1.5rem 0;
}

.post-content figure img {
    margin-bottom: 0.5rem;
}

.post-content figcaption {
    font-style: italic;
    font-size: 0.85rem;
    color: #666;
}

.post-content code {
    background: #f5f5f5;
    padding: 0.2em 0.4em;
    font-size: 0.9em;
    border-radius: 3px;
}

.post-content pre {
    background: #f5f5f5;
    padding: 1rem;
    overflow-x: auto;
    margin-bottom: 1rem;
    border-radius: 3px;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.post-content pre code {
    background: none;
    padding: 0;
}

.post-footer {
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid #eee;
}

.post-footer a {
    color: #000;
    text-decoration: none;
    font-size: 0.9rem;
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s ease;
}

.post-footer a:hover {
    border-bottom-color: #000;
}

.post-nav-top {
    margin-bottom: 4rem;
}

.post-nav-top a {
    color: #000;
    text-decoration: none;
    font-size: 0.9rem;
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s ease;
}

.post-nav-top a:hover {
    border-bottom-color: #000;
}

/* Blog subtext */
.blog-subtext {
    font-style: italic;
    color: #666;
    font-size: 0.9rem;
    margin-top: 0.5rem;
    margin-bottom: 0;
}

.blog-subtext + .blog-subtext {
    margin-top: 0.25rem;
}

.blog-subtext a {
    color: #666;
    text-decoration: underline;
}

.post-list {
    list-style: none;
    margin-top: 4rem;
}

/* Site footer */
.site-footer {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid #eee;
    color: #666;
    font-size: 0.9rem;
}
