:root {
    --bg: #f3f2ef;
    --text: #1a1a1a;
    --text-muted: #383531;
    --heading: #250c02;
    --accent: #b24a09;
    --accent-social: #47423e;
}



body {
    background-color: var(--bg);
    color: var(--text);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-align: left;
    font-size: 109%;
    margin: 0;
    padding: 60px 0 0 0;
    font-family: 'EB Garamond', serif;
}

h1,
p,
.social-links {
    margin-top: 12px;
    margin-bottom: 0;
    line-height: 1.2;
}

h1 {
    margin-top: 0 !important;
}

.content {
    width: 90%;
    max-width: 850px;
    padding: 25px;
    margin: 0 auto;
    box-sizing: border-box;
}

.content a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 480;
}

.content img {
    max-width: 100%;
    border-radius: 6px;
}

.divider {
    height: 1px;
    background-color: #4e2605;
    margin: 35px 0 25px 0;
    opacity: 0.3;
}

.section-static {
    margin-bottom: 15px;
}

.section-header {
    font-size: 1.15em;
    font-weight: 600;
    display: flex;
    align-items: center;
    margin-top: 20px;
    margin-bottom: 10px;
    color: var(--heading);
}

.news-scroll {
    max-height: 400px;
    overflow-y: auto;
    padding-right: 10px;
}

details summary {
    cursor: pointer;
    font-size: 1.3em;
    font-weight: 600;
    display: flex;
    align-items: center;
    margin-top: 20px;
    margin-bottom: 10px;
    color: var(--heading);
    list-style: none;
}

details summary::-webkit-details-marker {
    display: none;
}

details:not([open]) summary::after {
    content: "...";
    margin-left: 5px;
    color: var(--text-muted);
    font-weight: normal;
}

details[open] summary {
    margin-bottom: 10px;
}

.section-content,
.nointend-section-content,
.news-list li,
.subtitle {
    font-size: 1em;
    color: #302f2f;
    line-height: 1.5;
}

.section-content,
.nointend-section-content {
    margin-bottom: 10px;
    margin-top: 5px;
}

.section-content {
    margin-left: 5px;
}

.nointend-section-content {
    margin-left: 0px;
}

.news-list {
    margin: 0 0 10px 0;
    padding-left: 15px;
    list-style: none;
}

.news-list li {
    margin-bottom: 10px;
    position: relative;
}

.news-list li::before {
    content: "•";
    position: absolute;
    left: -15px;
    top: 0;
    color: var(--text);
}

.news-list li:last-child {
    margin-bottom: 0;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    margin-bottom: 28px;
}

.text-content {
    display: flex;
    flex-direction: column;
    gap: 11px;
    flex: 1;
}

.name {
    font-size: 25px;
    font-weight: 550;
    margin: 0;
    line-height: 1.3;
    color: var(--heading);
}

.subtitle {
    margin: 0;
}

.subtitle a {
    color: inherit;
    font-weight: inherit;
}

.social-links {
    display: flex;
    gap: 10px;
    font-size: 14.5px;
    margin: 12px 0 0 0;
}

.social-links a {
    color: var(--accent-social) !important;
    text-decoration: none;
}

.badge1 {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 2px 6px;
    background-color: rgba(71, 66, 62, 0.06);
    color: var(--accent-social) !important;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.01em;
    text-decoration: none;
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
    margin: -2px 0;
    border: 1px solid rgba(71, 66, 62, 0.35);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}

.badge1:hover {
    background-color: rgba(71, 66, 62, 0.1);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.12);
}

.badge-container {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 6px;
    margin-left: 5px;
}

.project-wrapper {
    display: flex;
    flex-direction: row;
    gap: 5px;
    align-items: flex-start;
    margin: 2px 0;
    position: relative;
}

.project-info {
    flex: 1;
    min-width: 200px;
}

.content a.project-title,
.project-title {
    font-weight: 600;
    font-size: 16px;
    color: var(--accent);
    text-decoration: none;
    display: inline-block;
    margin-left: 5px;
}

.date {
    font-size: 14px;
    font-weight: 700;
    color: var(--heading);
    margin-right: 3px;
}

.profile-container {
    width: 100px;
    height: 100px;
    overflow: hidden;
    border-radius: 50%;
    flex-shrink: 0;
}

.profile-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.work-video {
    width: 100%;
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.content .work-image {
    width: 65%;
    max-width: 400px;
    height: auto;
    display: block;
    margin: 15px 0 5px 0;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.video-grid {
    display: flex;
    gap: 20px;
    margin: 15px 0;
    flex-wrap: wrap;
}

.video-container {
    flex: 1 1 calc(50% - 10px);
    min-width: 280px;
}

.img-caption {
    font-size: 0.9em;
    color: var(--text-muted);
    margin-top: 5px;
    width: 100%;
}

.img-caption-centered {
    width: 65%;
    max-width: 400px;
    text-align: center;
}

.video-container .img-caption {
    text-align: center;
}


@media (max-width: 768px) {
    body {
        padding: 40px 0 0 0;
        font-size: 104%;
    }

    .profile-header {
        flex-direction: column-reverse;
        align-items: center;
        gap: 16px;
    }

    .profile-container {
        width: 80px;
        height: 80px;
    }

    .profile-header .text-content {
        text-align: center;
    }

    .name {
        font-size: 21px;
    }

    .subtitle {
        font-size: 15px;
    }

    .social-links {
        justify-content: center;
    }

    .content {
        width: 95%;
        padding: 10px;
        text-align: left;
    }

    .section-content,
    .nointend-section-content,
    .news-list li {
        font-size: 1em;
    }

    .project-wrapper {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        text-align: left;
        gap: 8px;
        margin-top: 0;
    }

    .project-info {
        order: 1;
    }

    .news-scroll {
        padding-right: 0;
    }

    .video-grid {
        flex-direction: column;
        gap: 15px;
    }

    .video-container {
        width: 100%;
        min-width: unset;
    }

    .work-video,
    .content .work-image {
        width: 100%;
        max-width: 100%;
        margin: 10px 0;
    }

    .img-caption,
    .img-caption-centered {
        width: 100%;
        max-width: 100%;
        text-align: center;
    }
}

.back-link {
    display: inline-block;
    margin-bottom: 20px;
    font-size: 16px;
    color: var(--text-muted);
    text-decoration: none;
}

.back-link:hover {
    color: var(--accent);
}