:root {
    --bg-primary: #ffffff;
    --bg-secondary: #f9fafb;
    --text-primary: #111827;
    --text-secondary: #6b7280;
    --text-tertiary: #9ca3af;
    --border-color: #e5e7eb;
    --accent-color: #2563eb;
    --accent-hover: #1d4ed8;
    --transition: all 0.2s ease;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg-primary: #0a0a0a;
        --bg-secondary: #111111;
        --text-primary: #e5e5e5;
        --text-secondary: #a3a3a3;
        --text-tertiary: #737373;
        --border-color: #262626;
        --accent-color: #3b82f6;
        --accent-hover: #60a5fa;
    }
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
        'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.container {
    max-width: 680px;
    margin: 0 auto;
    padding: 0 24px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header & Navigation */
.header {
    padding: 32px 0;
    animation: fadeInDown 0.6s ease;
}

.nav {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-link:hover {
    color: var(--text-primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--text-primary);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Main Content */
.main {
    flex: 1;
    padding: 32px 0;
}

/* Hero Section */
.hero {
    margin-bottom: 64px;
    animation: fadeIn 0.8s ease;
}

.hero-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 32px;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.hero-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

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

.inline-link {
    color: var(--text-primary);
    text-decoration: none;
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
}

.inline-link:hover {
    border-bottom-color: var(--text-primary);
}

.current-activity {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 16px;
    background-color: var(--bg-secondary);
    border-radius: 8px;
    border: 1px solid var(--border-color);
    margin-top: 8px;
    animation: slideInUp 1s ease;
}

.activity-label {
    font-size: 13px;
    color: var(--text-tertiary);
    font-weight: 500;
}

.activity-value {
    font-size: 14px;
    color: var(--text-primary);
    font-weight: 500;
}

/* Writing Section */
.writing-section {
    margin-bottom: 64px;
    animation: fadeIn 1s ease 0.2s both;
}

.writing-text {
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-secondary);
}

/* Tagline Section */
.tagline-section {
    margin-bottom: 64px;
    animation: fadeIn 1.2s ease 0.4s both;
}

.tagline-text {
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-secondary);
    font-style: italic;
}

/* Location Section */
.location-section {
    margin-bottom: 64px;
    animation: fadeIn 1.4s ease 0.6s both;
}

.location-text {
    font-size: 14px;
    line-height: 1.7;
    color: var(--text-tertiary);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.location-icon {
    opacity: 0.7;
    transition: var(--transition);
}

.location-text:hover .location-icon {
    opacity: 1;
}

/* Posts List */
.posts-section {
    margin-bottom: 64px;
}

.year-group {
    margin-bottom: 64px;
}

.year-heading {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
    letter-spacing: -0.02em;
}

.posts-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding-left: 0;
}

.post-list-item {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 24px;
    align-items: baseline;
}

.post-date {
    font-size: 15px;
    color: var(--text-tertiary);
    font-weight: 400;
}

.post-list-link {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.5;
    transition: var(--transition);
    letter-spacing: -0.01em;
}

.post-list-link:hover {
    color: var(--text-secondary);
}

@media (max-width: 640px) {
    .post-list-item {
        grid-template-columns: 60px 1fr;
        gap: 16px;
    }
    
    .post-date {
        font-size: 14px;
    }
    
    .post-list-link {
        font-size: 16px;
    }
}

.post-item {
    margin-bottom: 48px;
    padding-bottom: 48px;
    border-bottom: 1px solid var(--border-color);
    animation: fadeIn 0.6s ease forwards;
    opacity: 0;
}

.post-item:nth-child(1) { animation-delay: 0.1s; }
.post-item:nth-child(2) { animation-delay: 0.2s; }
.post-item:nth-child(3) { animation-delay: 0.3s; }
.post-item:nth-child(4) { animation-delay: 0.4s; }
.post-item:nth-child(5) { animation-delay: 0.5s; }

.post-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.post-link {
    text-decoration: none;
    color: inherit;
    display: block;
    transition: var(--transition);
}

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

.post-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
    line-height: 1.3;
    transition: var(--transition);
}

.post-meta {
    font-size: 14px;
    color: var(--text-tertiary);
    margin-bottom: 12px;
}

.post-excerpt {
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-top: 12px;
}

/* Individual Blog Post */
.blog-post {
    animation: fadeIn 0.8s ease;
}

.post-header {
    margin-bottom: 48px;
}

.post-title-full {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.post-meta-full {
    font-size: 15px;
    color: var(--text-tertiary);
}

.post-content {
    font-size: 17px;
    line-height: 1.8;
    color: var(--text-secondary);
}

.post-content p {
    margin-bottom: 24px;
}

.post-content h2 {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-primary);
    margin-top: 48px;
    margin-bottom: 20px;
    line-height: 1.3;
}

.post-content h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    margin-top: 36px;
    margin-bottom: 16px;
}

.post-content ul,
.post-content ol {
    margin-bottom: 24px;
    padding-left: 24px;
}

.post-content li {
    margin-bottom: 8px;
    line-height: 1.7;
}

.post-content a {
    color: var(--text-primary);
    text-decoration: none;
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
}

.post-content a:hover {
    border-bottom-color: var(--accent-color);
    color: var(--accent-color);
}

.post-footer {
    margin-top: 64px;
    padding-top: 32px;
    border-top: 1px solid var(--border-color);
}

.back-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.back-link:hover {
    color: var(--text-primary);
    transform: translateX(-4px);
}

/* Footer */
.footer {
    padding: 48px 0 32px;
    border-top: 1px solid var(--border-color);
    animation: fadeIn 1.4s ease 0.6s both;
}

.social-links {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: var(--text-secondary);
    background-color: var(--bg-secondary);
    border-radius: 8px;
    border: 1px solid var(--border-color);
    transition: var(--transition);
    text-decoration: none;
}

.social-link:hover {
    color: var(--text-primary);
    background-color: var(--bg-primary);
    border-color: var(--text-tertiary);
    transform: translateY(-2px);
}

.copyright {
    font-size: 13px;
    color: var(--text-tertiary);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Responsive Design */
@media (max-width: 640px) {
    .container {
        padding: 0 16px;
    }

    .header {
        padding: 24px 0;
    }

    .hero-title {
        font-size: 36px;
    }

    .nav {
        gap: 16px;
    }

    .nav-link {
        font-size: 13px;
    }

    .hero-text,
    .cta-text {
        font-size: 15px;
    }

    .favorite-link {
        padding: 10px 12px;
        font-size: 14px;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Selection */
::selection {
    background-color: var(--accent-color);
    color: white;
}

::-moz-selection {
    background-color: var(--accent-color);
    color: white;
}

