:root {
    --primary-color: #2563eb;
    --primary-light: #3b82f6;
    --primary-dark: #1d4ed8;
    --accent-color: #60a5fa;
    --text-color: #1e293b;
    --text-muted: #475569;
    --bg-color: #f8fafc;
    --section-bg: #ffffff;
    --mono-font: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
}

/* Navigation */
nav {
    padding: 1.5rem 2rem;
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    gap: 1.5rem;
}

nav a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: color 0.2s;
}

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

nav a.active {
    color: var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
}

/* Layout */
.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
}

section {
    background-color: var(--section-bg);
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    box-shadow: 0 2px 15px rgba(37, 99, 235, 0.05);
    border: 1px solid rgba(37, 99, 235, 0.1);
    transition: transform 0.3s ease;
}

section:hover {
    transform: translateY(-2px);
}

/* Typography */
h1 {
    color: var(--text-color);
    margin-bottom: 0.5rem;
    font-size: 2.2rem;
}

h2 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background-color: var(--accent-color);
}

h3 {
    color: var(--primary-dark);
    margin: 1rem 0 0.5rem 0;
}

/* Header (Home specific) */
header.home-header {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    padding: 3rem 2rem;
    text-align: center;
    box-shadow: 0 4px 6px rgba(37, 99, 235, 0.1);
    color: white;
}

header.home-header h1 {
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.profile-img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    margin-bottom: 1rem;
    object-fit: cover;
    border: 4px solid var(--accent-color);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Tags & Links */
.skills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-bottom: 1.5rem;
}

.skill-tag {
    background-color: var(--primary-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

/* Journal Items */
.journal-item {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(37, 99, 235, 0.1);
}

.journal-item:last-child {
    border-bottom: none;
}

.journal-meta {
    font-family: var(--mono-font);
    font-size: 0.85rem;
    color: var(--primary-color);
    display: block;
    margin-bottom: 0.2rem;
}

.journal-title {
    font-weight: 600;
    font-size: 1.1rem;
    display: block;
    color: var(--text-color);
    text-decoration: none;
}

.journal-excerpt {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-top: 0.3rem;
}

/* Footer */
footer {
    text-align: center;
    padding: 4rem 0;
    font-size: 0.8rem;
    color: var(--text-muted);
}

@media (max-width: 768px) {
    .container { padding: 1rem; }
    section { padding: 1.5rem; }
    h1 { font-size: 1.8rem; }
}
