:root {
    --bg-color: #fdfbf7; /* Creamy white */
    --text-color: #4a4036; /* Dark brown */
    --accent-color: #8c7b70; /* Warm taupe */
    --primary-color: #a67c52; /* Leather brown */
    --secondary-color: #e0d8cf; /* Light beige */
    --font-serif: 'Playfair Display', 'Noto Serif SC', 'Songti SC', 'SimSun', serif;
    --font-sans: 'Lato', 'Microsoft YaHei', 'SimHei', 'PingFang SC', sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-sans);
    margin: 0;
    line-height: 1.6;
}

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

/* Header */
header {
    padding: 20px 0;
    /* Transparent header logic or just simpler */
    background-color: var(--bg-color); /* Ensure it has bg if we scroll, but here it is top */
    margin-bottom: 0;
}

header .header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header h1 {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    margin: 0;
    color: var(--text-color);
}

header h1 a {
    text-decoration: none;
    color: inherit;
}

nav {
    margin-top: 0;
}

nav a {
    margin-left: 20px; /* Right aligned */
    margin-right: 0;
    text-decoration: none;
    color: var(--text-color); /* Darker for better visibility */
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
    transition: color 0.3s;
}

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

/* Typography & Sections */
h2, h3, h4 {
    font-family: var(--font-serif);
    color: var(--text-color);
}

h2 { font-size: 3rem; margin-bottom: 10px; }
h3 { font-size: 2rem; border-bottom: 2px solid var(--secondary-color); padding-bottom: 10px; margin-top: 60px; }
p { font-size: 1.1rem; }

/* Hero Section */
.hero-section {
    position: relative;
    width: 100%;
    /* min-height: 80vh;  Large hero */
    height: 600px;
    display: flex;
    align-items: flex-end; /* Align content to bottom */
    margin-bottom: 60px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/header_source.png');
    background-size: cover;
    background-position: center;
    /* Dystopia Vibe Filters */
    filter: sepia(0.4) grayscale(0.2) brightness(0.6) contrast(1.1);
    z-index: 1;
}

.hero-overlay-content {
    position: relative;
    z-index: 2;
    width: 100%;
    padding-bottom: 40px; /* Space from bottom */
    pointer-events: none; /* Let clicks pass through if needed, but we have links inside */
}

.intro-card {
    background: rgba(253, 251, 247, 0.95); /* Creamy white with opacity */
    padding: 40px 50px;
    max-width: 800px;
    width: 90%;
    margin: 0 auto;
    text-align: center;
    border-radius: 4px; /* Slight rounding or none */
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    pointer-events: auto;
}

.intro-card h2 {
    font-size: 3rem;
    margin-top: 0;
    margin-bottom: 10px;
    line-height: 1.1;
    color: var(--text-color);
}

.intro-section { /* Legacy cleanup if needed, but keeping just in case */
    text-align: center;
    padding: 60px 0;
}

.subheadline {
    font-size: 1.5rem;
    color: var(--accent-color);
    margin-bottom: 20px;
}

.bio {
    font-style: italic;
    color: var(--accent-color);
    font-size: 1.3rem;
}

.intro {
    font-family: var(--font-serif); /* Serif font for warmth */
    font-size: 1.2rem;
    color: var(--text-color);
    max-width: 700px;
    margin: 0 auto 30px auto;
    line-height: 1.8;
}

/* Buttons */
.btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    font-family: var(--font-sans);
    transition: background 0.3s;
    margin-top: 20px;
}

.btn:hover {
    background-color: #8a6642;
}

/* Portfolio Grid */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.card {
    background: white;
    padding: 20px;
    border: 1px solid var(--secondary-color);
    border-radius: 8px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

.card h4 { margin-top: 0; }

.link-arrow {
    display: block;
    margin-top: 15px;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
}

/* Schedule */
.schedule-list {
    margin-top: 30px;
}

.schedule-item {
    display: flex;
    justify-content: space-between;
    padding: 15px 0;
    border-bottom: 1px dashed var(--secondary-color);
}

.schedule-item .date {
    font-weight: bold;
    color: var(--primary-color);
    min-width: 120px;
}

.schedule-item .details {
    flex-grow: 1;
    display: flex;
    justify-content: space-between;
}

.schedule-item .location {
    font-style: italic;
    color: var(--accent-color);
}

/* Admin Styles */
.admin-section {
    background: white;
    padding: 25px;
    margin-bottom: 30px;
    border: 1px solid var(--secondary-color);
    border-radius: 8px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.form-group input[type="text"],
.form-group input[type="file"],
.form-group textarea,
.item-row input {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
    box-sizing: border-box; /* Fix padding issue */
}

.item-row {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.flashes {
    list-style: none;
    padding: 10px;
    background: #e6f4ea;
    color: #1e8e3e;
    border-radius: 4px;
    margin-bottom: 20px;
}

footer {
    text-align: center;
    padding: 40px 0;
    color: #888888; /* Subtle grey */
    font-size: 0.8rem;
    margin-top: 60px;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }

    header {
        padding: 10px 0;
    }

    header .header-container {
        flex-direction: column;
        text-align: center;
    }

    header h1 {
        margin-bottom: 10px;
        font-size: 1.5rem;
    }

    nav {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }

    nav a {
        margin: 0;
        font-size: 0.75rem;
    }

    .hero-section {
        height: 500px; /* Smaller height for mobile */
        align-items: center; /* Center content vertically if possible, or keep bottom */
        margin-bottom: 40px;
    }

    .intro-card {
        padding: 30px 20px;
        width: 85%; /* Slightly narrower */
        margin: 0 auto;
    }

    .intro-card h2 {
        font-size: 2rem; /* Smaller headline */
    }

    .subheadline {
        font-size: 1.1rem;
    }

    .intro {
        font-size: 1rem;
    }

    h3 {
        font-size: 1.5rem;
        margin-top: 40px;
    }

    .schedule-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .schedule-item .date {
        margin-bottom: 5px;
    }

    .schedule-item .details {
        width: 100%;
        flex-direction: column;
    }

    .schedule-item .location {
        margin-top: 5px;
    }
}
