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

:root {
    --bg: #ebe9e4;
    --bg-strong: #e1ddd5;
    --surface: rgba(255, 255, 255, 0.52);
    --surface-strong: rgba(255, 255, 255, 0.72);
    --text: #2b2c2a;
    --muted: rgba(43, 44, 42, 0.72);
    --border: rgba(43, 44, 42, 0.12);
    --accent: #c69a4a;
    --accent-deep: #ab8034;
    --accent-soft: rgba(198, 154, 74, 0.18);
    --shadow: 0 18px 44px rgba(43, 44, 42, 0.08);
    --content-width: 1140px;
    --profile-size: clamp(170px, 17vw, 230px);
    --profile-zoom: 1.5;
    --profile-shift-x: 0px;
    --profile-shift-y: 10px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Manrope", sans-serif;
    line-height: 1.7;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(255, 255, 255, 0.72), transparent 34%),
        radial-gradient(circle at top right, rgba(198, 154, 74, 0.13), transparent 28%),
        linear-gradient(180deg, #f3f1ec 0%, var(--bg) 38%, #e7e3db 100%);
    min-height: 100vh;
    margin: 0;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
}

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

.presentation,
.news,
.publications {
    position: relative;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 28px;
    box-shadow: var(--shadow);
    backdrop-filter: blur(10px);
}

.presentation {
    padding: 2.5rem;
}

.presentation::before,
.news::before,
.publications::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.3), transparent 46%);
}

.presentation-content {
    display: flex;
    gap: 3rem;
    align-items: center;
}

.image-container {
    flex: 0 0 auto;
    text-align: center;
}

.profile-frame {
    width: var(--profile-size);
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 1.15rem;
    border: 3px solid rgba(255, 255, 255, 0.72);
    box-shadow:
        0 18px 34px rgba(43, 44, 42, 0.14),
        0 0 0 10px rgba(198, 154, 74, 0.1);
    background-color: var(--bg-strong);
}

.profile-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: translate(var(--profile-shift-x), var(--profile-shift-y)) scale(var(--profile-zoom));
    transform-origin: center;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 0.65rem;
    margin-top: 1rem;
}

.social-link {
    width: 2.7rem;
    height: 2.7rem;
    border-radius: 999px;
    border: 1px solid rgba(43, 44, 42, 0.1);
    background: var(--surface-strong);
    color: var(--text);
    font-size: 1.15rem;
    transition:
        transform 0.25s ease,
        background-color 0.25s ease,
        border-color 0.25s ease,
        color 0.25s ease,
        box-shadow 0.25s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 8px 18px rgba(43, 44, 42, 0.06);
}

.social-link:hover {
    transform: translateY(-2px);
    background-color: var(--accent);
    border-color: var(--accent);
    color: #fffdf8;
    box-shadow: 0 10px 20px rgba(198, 154, 74, 0.26);
}

.social-link .in-text {
    font-family: "Manrope", sans-serif;
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 0.01em;
}

.social-link.mail i,
.social-link.github i,
.social-link.scholar i {
    font-size: 1.15rem;
}

.presentation-text {
    flex: 1;
    max-width: 700px;
}

.presentation-text h1,
.news h2,
.publications h2,
.publication-title {
    font-family: "Fraunces", serif;
    color: var(--text);
    letter-spacing: -0.03em;
}

.presentation-text h1 {
    font-size: clamp(2.8rem, 6vw, 4.7rem);
    line-height: 0.95;
    margin-bottom: 0.7rem;
}

.presentation-text h2 {
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--accent-deep);
    margin-bottom: 1.25rem;
}

.presentation-text p {
    font-size: 1.08rem;
    color: var(--muted);
    max-width: 62ch;
    text-align: justify;
}

.presentation-text p a,
.copyright a {
    color: var(--accent-deep);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition:
        color 0.25s ease,
        border-color 0.25s ease;
}

.presentation-text p a:hover,
.copyright a:hover {
    color: var(--accent);
    border-color: rgba(198, 154, 74, 0.45);
}

.news,
.publications {
    margin-top: 1.6rem;
    padding: 2rem 2.2rem;
}

.news h2,
.publications h2 {
    font-size: 2rem;
    margin-bottom: 1.4rem;
}

.news-list,
.publications-list {
    display: flex;
    flex-direction: column;
}

.news-list {
    gap: 0.45rem;
}

.news-archive[hidden] {
    display: none;
}

.news-archive {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.news-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 0.2rem 0;
}

.news-list > .news-item:first-child {
    padding-top: 0;
}

.date-box {
    flex: 0 0 92px;
    padding: 0.35rem 0.55rem;
    border-radius: 999px;
    text-align: center;
    font-weight: 700;
    background: var(--accent-soft);
    color: var(--accent-deep);
    border: 1px solid rgba(198, 154, 74, 0.28);
}

.date {
    font-size: 0.86rem;
    letter-spacing: 0.05em;
}

.news-description {
    flex: 1;
    color: var(--muted);
    padding-top: 0.15rem;
}

.news-toggle {
    margin-top: 1rem;
    padding: 0.55rem 0.95rem;
    border: 1px solid rgba(198, 154, 74, 0.28);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.5);
    color: var(--accent-deep);
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    transition:
        background-color 0.25s ease,
        color 0.25s ease,
        border-color 0.25s ease,
        transform 0.25s ease;
}

.news-toggle:hover {
    background-color: var(--accent);
    border-color: var(--accent);
    color: #fffdf8;
    transform: translateY(-1px);
}

.publication-item {
    width: 100%;
}

.publication-content {
    display: flex;
    gap: 1.6rem;
    align-items: flex-start;
    padding: 1.15rem;
    background: rgba(255, 255, 255, 0.42);
    border: 1px solid rgba(43, 44, 42, 0.08);
    border-radius: 22px;
}

.publication-image {
    width: 280px;
    height: 170px;
    border-radius: 16px;
    object-fit: cover;
    object-position: center;
    flex: 0 0 280px;
    box-shadow: 0 14px 28px rgba(43, 44, 42, 0.08);
}

.publication-text {
    flex: 1;
}

.publication-title {
    font-size: 1.45rem;
    line-height: 1.18;
    margin-bottom: 0.55rem;
}

.publication-authors,
.publication-description {
    color: var(--muted);
    line-height: 1.65;
}

.publication-conference {
    margin-top: 0.45rem;
    color: var(--text);
    font-size: 1rem;
    font-weight: 700;
}

.publication-tags {
    display: flex;
    gap: 0.55rem;
    margin-bottom: 0.6rem;
    flex-wrap: wrap;
}

.tag {
    color: var(--accent-deep);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 0.28rem 0.55rem;
    border: 1px solid rgba(198, 154, 74, 0.28);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.48);
}

.publication-links {
    display: flex;
    gap: 0.65rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.publication-link {
    background-color: var(--accent);
    color: #fffdf8;
    padding: 0.55rem 0.9rem;
    border-radius: 999px;
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition:
        transform 0.25s ease,
        background-color 0.25s ease,
        box-shadow 0.25s ease;
    box-shadow: 0 10px 20px rgba(198, 154, 74, 0.2);
}

.publication-link:hover {
    transform: translateY(-1px);
    background-color: var(--accent-deep);
    box-shadow: 0 14px 24px rgba(198, 154, 74, 0.28);
}

.publication-link i {
    font-size: 0.9rem;
}

.publication-link-disabled {
    background-color: rgba(43, 44, 42, 0.12);
    color: rgba(43, 44, 42, 0.55);
    box-shadow: none;
    cursor: not-allowed;
}

.publication-link-disabled:hover {
    transform: none;
    background-color: rgba(43, 44, 42, 0.12);
    box-shadow: none;
}

.publication-link-logo {
    width: 0.95rem;
    height: 0.95rem;
    object-fit: contain;
}

.social-link:focus-visible,
.publication-link:focus-visible,
.news-toggle:focus-visible,
.presentation-text p a:focus-visible,
.copyright a:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

.copyright {
    max-width: var(--content-width);
    margin: 0 auto;
    padding: 1.5rem 1.5rem 2.5rem;
    color: var(--muted);
    font-size: 0.92rem;
    text-align: center;
}

.footer-note {
    margin-top: 0.45rem;
    font-size: 0.84rem;
}

@media (max-width: 900px) {
    .presentation-content {
        gap: 2rem;
    }

    .presentation,
    .news,
    .publications {
        border-radius: 24px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 1.25rem 1rem 1rem;
    }

    .presentation {
        padding: 1.8rem 1.25rem;
    }

    .presentation-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .presentation-text p {
        max-width: none;
    }

    .news,
    .publications {
        padding: 1.5rem 1.25rem;
    }

    .news-item {
        flex-direction: column;
        gap: 0.6rem;
    }

    .date-box {
        flex: 0 0 auto;
    }

    .publication-content {
        flex-direction: column;
        padding: 1rem;
    }

    .publication-image {
        width: 100%;
        max-width: 320px;
        height: auto;
        aspect-ratio: 16 / 9;
        flex-basis: auto;
    }

    .profile-frame {
        width: 200px;
    }
}

@media (max-width: 480px) {
    .presentation-text h1 {
        font-size: 2.4rem;
    }

    .news h2,
    .publications h2 {
        font-size: 1.7rem;
    }

    .social-links,
    .publication-links,
    .publication-tags {
        justify-content: center;
    }
}
