@import url('https://fonts.googleapis.com/css2?family=EB+Garamond:ital,wght@0,400..800;1,400..800&family=Instrument+Serif:ital@0;1&display=swap');

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

body {
    font-family: "EB Garamond", serif;
    font-weight: 400;
    line-height: 1.6;
    color: #333;
    background-color: #FEF9F4;
    padding: 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    gap: 40px;
}

header {
    width: 30%;
    text-align: left;
    padding: 20px 0;
}

h1 {
    font-family: "Instrument Serif", serif;
    font-size: 2.5em;
    margin-bottom: 5px;
    color: #2E7675;
    display: inline-block;
    cursor: default;
}

.header-favicon {
    width: 40px;
    height: 40px;
    margin-left: 10px;
    vertical-align: middle;
    opacity: 0;
    display: inline-block;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

h1:hover .header-favicon,
header:hover .header-favicon {
    opacity: 1;
}

.subtitle {
    color: #DC7C57;
    font-size: 1.1em;
}

main {
    width: 70%;
    margin-bottom: 40px;
    padding-top: 40px;
}

.project {
    background: white;
    margin-bottom: 30px;
    box-shadow: 0 2px 4px rgba(201, 131, 106, 0.1);
    overflow: hidden;
}

.project-header {
    width: 100%;
    background-color: #FEF9F4;
    border: none;
    padding: 30px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.project-header h2 {
    font-family: "Instrument Serif", serif;
    font-size: 1.8em;
    margin: 0;
    color: #2E7675;
    flex: 1;
    text-align: left;
}

.toggle-icon {
    font-size: 1.5em;
    color: #666;
}

.project.active .toggle-icon {
    transform: rotate(45deg);
}

.project-video {
    width: 100%;
    max-width: 100%;
    height: auto;
    margin-bottom: 20px;
    display: block;
    border: none;
}

.project-image {
    width: 100%;
    max-width: 100%;
    height: auto;
    margin: 20px 0;
    display: block;
}

.project-images-row {
    display: flex;
    gap: 20px;
    margin: 20px 0;
}

.project-images-row .project-image {
    width: 50%;
    margin: 0;
}

.project-content {
    display: none;
    padding: 0 30px 30px 30px;
    text-align: left;
}

.project-content * {
    text-align: left;
}

#video-preview {
    position: fixed;
    width: 450px;
    height: 300px;
    background: #000;
    overflow: hidden;
    display: none;
    pointer-events: none;
    z-index: 1000;
    box-shadow: none;
}

#video-preview video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project.active .project-content {
    display: block;
}

.project-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 10px;
}

.tech {
    font-family: "Instrument Serif", serif;
    font-weight: 400;
    font-style: italic;
    color: #DC7C57;
    font-size: 0.9em;
}

a {
    color: #0066cc;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.project-link:hover {
    color: #0052a3;
}

.description {
    margin-bottom: 15px;
    color: #444;
    line-height: 1.7;
}

.description ul {
    margin-left: 20px;
    margin-top: 10px;
    margin-bottom: 15px;
}

.description li {
    margin-bottom: 8px;
}

.research-section {
    margin-top: 25px;
    padding-top: 25px;
    border-top: 1px solid #eee;
}

.research-section h3 {
    font-family: "Instrument Serif", serif;
    font-size: 1.3em;
    margin-bottom: 15px;
    color: #2E7675;
}

.research-section h4 {
    font-family: "Instrument Serif", serif;
    font-size: 1.1em;
    margin-top: 20px;
    margin-bottom: 10px;
    color: #2E7675;
}

code {
    background-color: #f4f4f4;
    padding: 2px 6px;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
    color: #c7254e;
}

@media (max-width: 600px) {
    body {
        padding: 15px;
    }

    .container {
        flex-direction: column;
        gap: 20px;
    }

    header {
        width: 100%;
    }

    main {
        width: 100%;
    }

    h1 {
        font-size: 2em;
    }

    .project-header {
        padding: 20px;
    }

    .project-header h2 {
        font-size: 1.5em;
    }

    .project-content {
        padding: 0 20px 20px 20px;
    }

    .project-meta {
        flex-direction: column;
        align-items: flex-start;
    }
}

