:root {
    --bg-color: #ffffff;
    --text-primary: #1a1a1a;
    --text-secondary: #555555;
    --accent-color: #000000;
    --border-color: #eeeeee;

    /* Typography */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-serif: 'Playfair Display', serif;

    --spacing-unit: 1rem;
    --max-width: 900px;
}

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

body {
    font-family: var(--font-sans);
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

.background-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('background.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.05;
    z-index: -1;
    pointer-events: none;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
}

/* Typography Overrides */
h1,
h2,
h3 {
    font-family: var(--font-serif);
    font-weight: 400;
    color: var(--text-primary);
}

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

/* Hero Section */
.hero-section {
    padding: 6rem 0 4rem;
    text-align: left;
}

.name {
    font-size: 3.5rem;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.role {
    font-family: var(--font-sans);
    font-size: 1.1rem;
    color: var(--text-secondary);
    font-weight: 400;
    margin-bottom: 2rem;
}

.bio {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin-bottom: 2rem;
}

.hero-links {
    display: flex;
    gap: 1.5rem;
}

.hero-link {
    font-size: 0.95rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 2px;
}

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

/* Navigation */
.category-nav {
    display: flex;
    gap: 2rem;
    margin-bottom: 3rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1rem;
}

.nav-item {
    font-family: var(--font-sans);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
    cursor: pointer;
    padding-bottom: 0.5rem;
    position: relative;
}

.nav-item.active {
    color: var(--text-primary);
    font-weight: 500;
}

.nav-item.active::after {
    content: '';
    position: absolute;
    bottom: -1.1rem;
    /* Align with border-bottom of nav */
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--text-primary);
}

/* Content Area */
.content-area {
    min-height: 40vh;
}

/* List Layout (Technical / Blog) */
.list-item {
    margin-bottom: 3rem;
}

.list-title {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}

.list-meta {
    font-family: var(--font-sans);
    font-size: 0.9rem;
    color: #888;
    margin-bottom: 0.8rem;
    display: block;
}

.list-desc {
    color: var(--text-secondary);
    max-width: 700px;
}

/* Grid Layout (Arts) */
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

.grid-item {
    break-inside: avoid;
}

.grid-image {
    width: 100%;
    height: auto;
    aspect-ratio: 4/3;
    object-fit: cover;
    background-color: #f5f5f5;
    margin-bottom: 1rem;
    transition: transform 0.3s ease;
}

.grid-item:hover .grid-image {
    transform: scale(1.02);
}

.grid-title {
    font-size: 1.2rem;
    margin-bottom: 0.3rem;
}

.grid-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Footer */
footer {
    margin-top: 6rem;
    padding: 2rem 0;
    border-top: 1px solid var(--border-color);
    font-size: 0.85rem;
    color: #999;
    text-align: center;
}

/* Animations */
.fade-in {
    animation: fadeIn 0.8s ease-out forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .name {
        font-size: 2.5rem;
    }

    .grid-container {
        grid-template-columns: 1fr;
    }
}