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

:root {
    --bg: #1a1a1f;
    --bg-secondary: #232329;
    --bg-card: #2a2a32;
    --text: #f5f5f5;
    --text-secondary: #b8b8c0;
    --text-muted: #78788a;
    --accent: #6b8afd;
    --accent-soft: rgba(107, 138, 253, 0.12);
    --border: #35353f;
}

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

/* Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 48px;
    max-width: 1200px;
    margin: 0 auto;
}

header .logo {
    font-weight: 600;
    font-size: 16px;
    text-decoration: none;
    color: var(--text);
}

header nav {
    display: flex;
    gap: 32px;
}

header nav a {
    font-size: 14px;
    text-decoration: none;
    color: var(--text-secondary);
    transition: color 0.15s ease;
}

header nav a:hover {
    color: var(--text);
}

/* Main Content */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 48px;
}

/* Hero Section */
.hero {
    padding: 100px 0 80px;
}

.hero-content {
    max-width: 680px;
}

.hero h1 {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.03em;
    margin-bottom: 20px;
    color: var(--text);
}

.hero-sub {
    font-size: 18px;
    color: var(--text-secondary);
    line-height: 1.7;
}

.hero-sub a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
}

.hero-sub a:hover {
    text-decoration: underline;
}

/* About Section */
.about {
    padding: 60px 0;
    border-top: 1px solid var(--border);
}

.about h2 {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.about-content {
    max-width: 640px;
}

.about-content p {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 16px;
    line-height: 1.75;
}

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

.about-content strong {
    color: var(--text);
    font-weight: 600;
}

/* Work Section */
.work {
    padding: 60px 0;
    border-top: 1px solid var(--border);
}

.work h2 {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: 32px;
}

.work-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.work-item {
    padding: 24px 0;
    border-bottom: 1px solid var(--border);
}

.work-item:first-child {
    padding-top: 0;
}

.work-item.current {
    background: var(--accent-soft);
    margin: 0 -24px 0 -24px;
    padding: 24px;
    border-radius: 12px;
    border-bottom: none;
    margin-bottom: 8px;
    border: 1px solid rgba(107, 138, 253, 0.2);
}

.work-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 4px;
}

.work-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
}

.work-date {
    font-size: 14px;
    color: var(--text-muted);
    font-variant-numeric: tabular-nums;
}

.work-company {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 8px;
    display: block;
}

.work-desc {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
}

/* Writing Section */
.writing {
    padding: 60px 0 100px;
    border-top: 1px solid var(--border);
}

.writing h2 {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: 32px;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.article-card {
    background: var(--bg-secondary);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.2s ease, background 0.2s ease;
}

.article-card:hover {
    transform: translateY(-4px);
    background: var(--bg-card);
}

.article-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.article-image {
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.article-card:hover .article-image img {
    transform: scale(1.03);
}

.article-content {
    padding: 20px;
}

.article-tag {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--accent);
    margin-bottom: 10px;
}

.article-content h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 8px;
    line-height: 1.4;
}

.article-content p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
}

/* Footer */
footer {
    border-top: 1px solid var(--border);
    max-width: 1200px;
    margin: 0 auto;
    padding: 48px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.footer-photo {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

.footer-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.footer-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
}

.footer-role {
    font-size: 13px;
    color: var(--text-muted);
}

.footer-right {
    display: flex;
    gap: 24px;
}

.footer-right a {
    font-size: 14px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.15s ease;
}

.footer-right a:hover {
    color: var(--text);
}

/* Responsive */
@media (max-width: 900px) {
    .articles-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    header {
        padding: 20px 24px;
    }

    header nav {
        gap: 20px;
    }

    main {
        padding: 0 24px;
    }

    .hero {
        padding: 60px 0 50px;
    }

    .hero h1 {
        font-size: 32px;
    }

    .hero-sub {
        font-size: 16px;
    }

    .about, .work, .writing {
        padding: 48px 0;
    }

    .work-item.current {
        margin: 0 -16px;
        padding: 20px 16px;
    }

    .work-header {
        flex-direction: column;
        gap: 2px;
    }

    .articles-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    footer {
        padding: 32px 24px;
    }

    .footer-content {
        flex-direction: column;
        gap: 24px;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 28px;
    }
}
