:root {
    /* Color Palette - Oriental / Traditional */
    --color-bg: #F7F4ED;
    /* Rice Paper White */
    --color-text-main: #2B2B2B;
    /* Ink Black */
    --color-text-sec: #5F5850;
    /* Dark Brown */
    --color-accent: #8E2E21;
    /* Vermilion/Seal Red */
    --color-accent-sub: #4A5D75;
    /* Indigo */
    --color-border: #E0DBD0;

    /* Typography */
    --font-serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "SimSun", serif;
    --font-sans: "Helvetica Neue", "Arial", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;

    /* Spacing */
    --spacing-xs: 8px;
    --spacing-sm: 16px;
    --spacing-md: 32px;
    --spacing-lg: 64px;
    --spacing-xl: 120px;

    /* Transitions */
    --trans-slow: 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
    --trans-med: 0.4s ease-out;
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--color-bg);
    color: var(--color-text-main);
    font-family: var(--font-serif);
    line-height: 1.8;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--trans-med);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.text-vertical {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    letter-spacing: 0.2em;
}

.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity var(--trans-slow), transform var(--trans-slow);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Navigation */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: var(--spacing-md) var(--spacing-lg);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    color: var(--color-text-main);
    /* Fallback */
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    letter-spacing: 0.1em;
    border: 2px solid currentColor;
    padding: 4px 12px;
    font-family: var(--font-serif);
}

.nav-links {
    display: flex;
    gap: var(--spacing-lg);
}

.nav-links a {
    font-size: 1.15rem;
    letter-spacing: 0.1em;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: currentColor;
    transition: width var(--trans-med);
}

.nav-links a:hover::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    cursor: pointer;
}

/* Sections */
section {
    padding: var(--spacing-xl) 0;
    min-height: 80vh;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    /* Placeholder for aesthetic background */
    background: radial-gradient(circle at 50% 50%, #fcfbf8 0%, #ebe7de 100%);
}

.hero-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-md);
}

.hero-title {
    font-size: 4rem;
    font-weight: normal;
    margin-bottom: var(--spacing-sm);
    color: var(--color-text-main);
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--color-text-sec);
    letter-spacing: 0.3em;
    font-family: var(--font-sans);
    font-weight: 300;
}

.seal {
    width: 60px;
    height: 60px;
    background-color: var(--color-accent);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    font-size: 0.8rem;
    writing-mode: vertical-rl;
    margin-top: var(--spacing-md);
    opacity: 0.9;
}

/* Intro Section */
.intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.section-title {
    font-size: 2rem;
    margin-bottom: var(--spacing-lg);
    position: relative;
    display: inline-block;
    padding-bottom: var(--spacing-sm);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 2px;
    background-color: var(--color-accent);
}

.intro-text {
    font-size: 1.1rem;
    color: var(--color-text-sec);
    line-height: 2.2;
    margin-bottom: var(--spacing-md);
}

/* Projects Grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, min-max(300px, 1fr));
    gap: var(--spacing-md);
}

.project-card {
    background-color: #fff;
    border: 1px solid var(--color-border);
    padding: var(--spacing-md);
    transition: transform var(--trans-med), box-shadow var(--trans-med);
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.project-image {
    width: 100%;
    height: auto;
    background-color: #eee;
    margin-bottom: var(--spacing-sm);
    overflow: hidden;
    border-radius: 2px;
    /* Slight softening */
}

.project-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform var(--trans-slow);
}

.project-card:hover .project-image img {
    transform: scale(1.05);
}

.project-cat {
    font-size: 0.8rem;
    color: var(--color-accent);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: var(--spacing-xs);
}

.project-title {
    font-size: 1.4rem;
    margin-bottom: var(--spacing-sm);
    font-weight: normal;
}

.project-desc {
    font-size: 0.95rem;
    color: var(--color-text-sec);
    line-height: 1.6;
}

/* Footer */
footer {
    background-color: #2e2a25;
    color: #bcb6ad;
    padding: var(--spacing-lg) 0;
    text-align: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-md);
}

.footer-links a {
    margin: 0 var(--spacing-sm);
    font-size: 0.9rem;
}

.copyright {
    font-size: 0.8rem;
    opacity: 0.6;
}

/* Responsive */
@media (max-width: 768px) {
    :root {
        --spacing-md: 20px;
        --spacing-lg: 40px;
        --spacing-xl: 60px;
    }

    .site-header {
        padding: var(--spacing-sm) var(--spacing-md);
    }

    .nav-links {
        display: none;
        /* Hide for now, simple toggle in JS */
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        background-color: var(--color-bg);
        flex-direction: column;
        padding: var(--spacing-md);
        border-bottom: 1px solid var(--color-border);
        text-align: center;
    }

    .nav-links.active {
        display: flex;
    }

    .mobile-menu-btn {
        display: block;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .text-vertical {
        writing-mode: horizontal-tb;
    }
}