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

:root {
    --bg: #ffffff;
    --text: #111;
    --text-secondary: #666;
    --accent: #0066cc;
    --accent-hover: #0052a3;
    --border: #eee;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    font-size: 16px;
    min-height: 100vh;
}

.container {
    max-width: 680px;
    margin: 0 auto;
    padding: 64px 24px;
}

/* Header */
header {
    margin-bottom: 24px;
}

h1 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--text);
}

.tagline {
    color: var(--text-secondary);
    font-size: 1.125rem;
    font-weight: 400;
}

/* Intro */
.intro {
    margin-bottom: 24px;
    padding-bottom: 24px;
}

.intro p {
    font-size: 1.125rem;
    color: var(--text);
    line-height: 1.7;
}

.intro a {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.intro a:hover {
    color: var(--accent-hover);
}

/* Section headers */
section > h2 {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-secondary);
    margin-bottom: 16px;
    border: none;
    padding: 0;
}

section {
    margin-bottom: 24px;
}

/* Links */
a {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.15s ease;
}

a:hover {
    color: var(--accent-hover);
}

/* Icons */
svg {
    display: inline-block;
    vertical-align: middle;
    margin-right: 8px;
}

section > h2 svg {
    margin-right: 6px;
}

footer svg {
    margin-right: 4px;
}

/* Links section */
.links {
    padding-bottom: 24px;
}

.links h2 {
    margin-bottom: 24px;
}

.links ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.links li a {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--accent);
    border: 1px solid var(--border);
    transition: all 0.15s ease;
}

.links li a:hover {
    border-color: var(--accent);
    background: rgba(0, 102, 204, 0.05);
}

/* Writing & Projects sections */
.writing ul,
.projects ul {
    list-style: none;
}

.writing li,
.projects li {
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
}

.writing li:last-child,
.projects li:last-child {
    border-bottom: none;
}

.writing li a,
.projects li a {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text);
}

.writing li a:hover,
.projects li a:hover {
    color: var(--accent);
}

.writing .desc,
.projects .desc {
    display: block;
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-top: 4px;
}

/* Contact */
.contact {
    margin-bottom: 0;
}

.contact p {
    color: var(--text-secondary);
    font-size: 0.9375rem;
}

.contact a {
    color: var(--text);
}

.contact a:hover {
    color: var(--accent);
}

/* Footer */
footer {
    margin-top: 64px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

footer p {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

footer a {
    color: var(--text-secondary);
}

footer a:hover {
    color: var(--accent);
}

/* Back link */
.back-link {
    display: inline-flex;
    align-items: center;
    margin-bottom: 24px;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.back-link:hover {
    color: var(--accent);
}

/* Resume page styles */
.resume-header {
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border);
}

.resume-header .meta {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-top: 12px;
}

.resume-header .meta a {
    color: var(--text-secondary);
}

.resume-header .meta a:hover {
    color: var(--accent);
}

/* Resume content */
h2 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text);
    margin-top: 24px;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
}

h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
    margin-top: 24px;
    margin-bottom: 4px;
}

h3 + p {
    color: var(--accent);
    font-weight: 500;
    font-size: 0.9375rem;
    margin-bottom: 2px;
}

h3 + p + p {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-bottom: 12px;
}

p {
    margin-bottom: 12px;
}

ul {
    margin-left: 20px;
    margin-bottom: 16px;
}

li {
    margin-bottom: 6px;
    font-size: 0.9375rem;
    color: var(--text);
}

.tech {
    font-size: 0.8125rem;
    color: var(--text-secondary);
}

hr {
    border: none;
    border-top: 1px solid var(--border);
    margin: 24px 0;
}

p strong {
    color: var(--text);
    font-weight: 600;
}

/* Blog styles */
.posts {
    margin-top: 24px;
}

.post-preview {
    padding: 20px 0;
    border-bottom: 1px solid var(--border);
}

.post-preview:last-child {
    border-bottom: none;
}

.post-preview a {
    display: block;
    color: var(--text);
}

.post-preview h2 {
    font-size: 1.125rem;
    font-weight: 600;
    margin: 0 0 4px 0;
    padding: 0;
    border: none;
    color: var(--text);
}

.post-preview:hover h2 {
    color: var(--accent);
}

.post-meta {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-bottom: 4px;
}

.post-excerpt {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    margin: 0;
}

.empty-state {
    color: var(--text-secondary);
    padding: 24px 0;
}

/* Single post */
.post-header {
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border);
}

.post-header h1 {
    margin-bottom: 8px;
}

.post-header .post-meta {
    margin: 0;
}

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

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

.post-content h2 {
    margin-top: 2.5rem;
}

.post-content a {
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* Responsive */
@media (max-width: 600px) {
    .container {
        padding: 24px 20px;
    }

    h1 {
        font-size: 1.75rem;
    }

    .tagline {
        font-size: 1rem;
    }

    .links ul {
        flex-direction: column;
        gap: 8px;
    }

    .links li a {
        width: 100%;
        justify-content: flex-start;
    }
}
