:root {
    --bg-color: #fafafa;
    --fg-color: #1a1a1a;
    --accent-color: #059669;
    --secondary-color: #666;
    --border-color: rgba(0, 0, 0, 0.1);
    --font-family: 'Kanit', sans-serif;
}

[data-theme='dark'] {
    --bg-color: #0a0a0a;
    --fg-color: #ededed;
    --accent-color: #a7f3d0;
    --secondary-color: #a0a0a0;
    --border-color: rgba(255, 255, 255, 0.1);
}

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

body {
    background-color: var(--bg-color);
    color: var(--fg-color);
    font-family: var(--font-family);
    line-height: 1.6;
    transition: background-color 0.3s, color 0.3s;
    -webkit-font-smoothing: antialiased;
}

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

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}

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

/* Profile Photo Styles */
.profile-header {
    display: flex;
    justify-content: center;
    padding-top: 4rem;
    margin-bottom: -1rem;
}

.profile-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--accent-color);
    transition: transform 0.3s ease;
    display: block;
}

.profile-photo:hover {
    transform: scale(1.05);
}

.profile-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Header Styles */
header.split-nav {
    padding: 2rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 4rem;
}

.nav-left, .nav-right {
    display: flex;
    gap: 2rem;
    flex: 1;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.nav-right {
    justify-content: flex-end;
    align-items: center;
}

.brand {
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    text-align: center;
    flex: 0 0 auto;
    color: var(--fg-color);
}

.brand span {
    color: var(--accent-color);
}

#theme-toggle {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--fg-color);
    display: flex;
    padding: 5px;
}

#theme-toggle:hover {
    color: var(--accent-color);
}

/* Main Content */
main {
    min-height: 60vh;
}

h1, h2, h3 {
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero {
    text-align: center;
    margin-bottom: 6rem;
    padding: 2rem 0;
}

.hero h1 {
    font-size: 3.5rem;
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
}

.hero p {
    font-size: 1.4rem;
    color: var(--secondary-color);
    max-width: 600px;
    margin: 0 auto;
}

.section-title {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    color: var(--accent-color);
    margin-bottom: 3rem;
    font-weight: 800;
}

/* Post Items */
.post-item {
    margin-bottom: 4rem;
}

.post-meta {
    font-size: 0.75rem;
    color: var(--secondary-color);
    margin-bottom: 0.75rem;
    font-weight: 500;
}

.post-item h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: -0.01em;
}

.post-excerpt {
    color: var(--secondary-color);
    font-size: 1rem;
    max-width: 800px;
}

/* Experience */
.experience-item {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 2.5rem;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid var(--border-color);
}

.experience-info h3 {
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
}

.experience-info p {
    font-size: 0.95rem;
    color: var(--secondary-color);
}

.experience-date {
    font-size: 0.9rem;
    color: var(--accent-color);
    font-weight: 600;
}

/* Timeline */
.timeline {
    border-left: 2px solid var(--border-color);
    padding-left: 3rem;
}

.timeline-item {
    position: relative;
    margin-bottom: 4rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: calc(-3rem - 6px);
    top: 0.5rem;
    width: 10px;
    height: 10px;
    background-color: var(--bg-color);
    border: 3px solid var(--accent-color);
    border-radius: 50%;
}

.timeline-date {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--accent-color);
    font-weight: 700;
    margin-bottom: 0.75rem;
}

/* Footer */
.footer {
    padding: 6rem 0;
    margin-top: 4rem;
    border-top: 1px solid var(--border-color);
    text-align: left;
    font-size: 0.85rem;
    color: var(--secondary-color);
}

/* Buy Coffee Button */
.buy-coffee {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background-color: var(--fg-color);
    color: var(--bg-color);
    padding: 0.75rem 1.25rem;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    z-index: 100;
    transition: transform 0.2s, background-color 0.2s;
}

.buy-coffee:hover {
    transform: translateY(-3px);
    background-color: var(--accent-color);
    color: #000;
}

.buy-coffee svg {
    width: 18px;
    height: 18px;
}

/* Post Content */
.content {
    font-size: 1.15rem;
    line-height: 1.8;
}

.content h2 { margin-top: 4rem; }
.content p { margin-bottom: 2rem; }

@media (max-width: 768px) {
    header.split-nav {
        flex-direction: column;
        gap: 2rem;
        padding: 2rem 0;
    }
    
    .nav-left, .nav-right {
        justify-content: center;
        width: 100%;
    }
    
    .hero h1 { font-size: 2.5rem; }
    .buy-coffee span { display: none; }
    .buy-coffee { padding: 0.75rem; border-radius: 50%; }
}
