﻿/*:root {
    --background: #f6f7f9;
    --surface: #ffffff;
    --text: #1f2933;
    --muted: #5f6c7b;
    --accent: #1f5f8b;
    --accent-dark: #164867;
    --border: #dde3ea;
}*/

:root {
    --background: #f6f7f9;
    --surface: #ffffff;
    --text: #1f2933;
    --muted: #5f6c7b;
    --accent: #b83a42;
    --accent-dark: #8f2b32;
    --border: #dde3ea;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: var(--background);
    color: var(--text);
    line-height: 1.6;
}

a {
    color: var(--accent);
    text-decoration: none;
}

    a:hover {
        text-decoration: underline;
    }

.container {
    width: min(1150px, calc(100% - 40px));
    margin: 0 auto;
}

.topbar {
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 10;
}

.nav {
    min-height: 68px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.site-name {
    font-weight: 700;
    letter-spacing: 0.02em;
}

nav {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

    nav a {
        color: var(--muted);
        font-size: 0.95rem;
    }

        nav a:hover {
            color: var(--accent);
        }

.hero {
    display: grid;
    grid-template-columns: 1fr 260px;
    gap: 48px;
    align-items: center;
    padding: 72px 0 48px;
}

.eyebrow {
    color: var(--accent);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.8rem;
    margin-bottom: 12px;
}

h1 {
    font-size: clamp(2.4rem, 6vw, 4.5rem);
    line-height: 1.05;
    margin: 0 0 16px;
}

.subtitle {
    font-size: 1.15rem;
    color: var(--muted);
    margin: 0 0 24px;
    white-space: nowrap;
}

.intro {
    font-size: 1.05rem;
    max-width: 700px;
    text-align: justify;
    hyphens: none;
}

.hero-links {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 28px;
}

.button {
    display: inline-block;
    background: var(--accent);
    color: white;
    padding: 11px 18px;
    border-radius: 999px;
    font-weight: 700;
}

    .button:hover {
        background: var(--accent-dark);
        text-decoration: none;
    }

    .button.secondary {
        background: transparent;
        color: var(--accent);
        border: 1px solid var(--accent);
    }

    .button.secondary:hover {
        background: var(--surface);
    }

.section {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 36px;
    margin: 28px 0;
    box-shadow: 0 10px 28px rgba(31, 41, 51, 0.05);
    scroll-margin-top: 40px;
}

    .section h2 {
        font-size: 1.8rem;
        margin-top: 0;
        margin-bottom: 16px;
    }

.cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-top: 24px;
}

    .cards.two {
        grid-template-columns: repeat(2, 1fr);
    }

.card {
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 22px;
    background: #fbfcfd;
}

    .card h3 {
        margin-top: 0;
        margin-bottom: 10px;
    }

    .card p {
        margin-bottom: 0;
        color: var(--muted);
        text-align: justify;
        hyphens: none;
    }

.clean-list {
    padding-left: 22px;
}

    .clean-list li {
        margin-bottom: 8px;
    }

.interest-list {
    list-style: none;
    padding-left: 0;
}

.interest-list li {
    margin-bottom: 10px;
}

.interest-list a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 400;
    text-decoration: none;
    transition: font-weight 0.15s ease, color 0.15s ease;
}

.interest-list a:hover {
    font-weight: 600;
    text-decoration: none;
}

.link-list {
    list-style: none;
    padding: 0;
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

    .link-list a {
        display: inline-block;
        border: 1px solid var(--border);
        padding: 8px 14px;
        border-radius: 999px;
        background: #fbfcfd;
    }

.contact p {
    margin-bottom: 10px;
}

.footer {
    color: var(--muted);
    padding: 36px 0 48px;
    font-size: 0.9rem;
}

.note {
    color: var(--muted);
    font-size: 0.95rem;
}

.contact-line {
    display: flex;
    align-items: center;
    gap: 8px;
}

.icon-inline {
    width: 18px;
    height: 18px;
    display: block;
    flex: 0 0 auto;
}

.portrait-card {
    width: 260px;
    max-width: 100%;
    background: transparent;
    border: none;
    padding: 0;
    box-shadow: 0 16px 40px rgba(31, 41, 51, 0.10);
    border-radius: 24px;
    overflow: hidden;
    justify-self: end;
}

.portrait-image {
    width: 100%;
    height: 280px;
    display: block;
    object-fit: cover;
    object-position: center top;
    border-radius: 24px;
}

@media (max-width: 800px) {
    .subtitle {
        white-space: normal;
    }

    .nav {
        align-items: flex-start;
        flex-direction: column;
        padding: 16px 0;
    }

    .hero {
        grid-template-columns: 1fr;
        padding-top: 44px;
    }

    .portrait-card {
        justify-self: start;
    }

    .cards,
    .cards.two {
        grid-template-columns: 1fr;
    }

    .section {
        padding: 26px;
    }

    .topic-hero {
        align-items: flex-start;
    }

    .topic-content {
        padding-top: 44px;
    }

    .topic-visual {
        position: relative;
        width: 100%;
        height: 320px;
        margin-top: 20px;
        order: 2;
    }

    .topic-visual img {
        object-position: center;
        opacity: 0.55;
        -webkit-mask-image: linear-gradient( to bottom, black 0%, rgba(0, 0, 0, 0.6) 65%, transparent 100% );
        mask-image: linear-gradient( to bottom, black 0%, rgba(0, 0, 0, 0.6) 65%, transparent 100% );
    }

    .topic-subtitle {
        white-space: normal;
    }
}



.topic-page {
    min-height: calc(100vh - 68px);
    overflow: hidden;
}

.topic-hero {
    position: relative;
    min-height: calc(100vh - 68px);
    display: flex;
    align-items: center;
    overflow: hidden;
}

.topic-content {
    position: relative;
    z-index: 2;
    max-width: 720px;
    padding-top: 64px;
    padding-bottom: 64px;
}

.back-link {
    display: inline-block;
    margin-bottom: 28px;
    color: var(--muted);
    font-size: 0.95rem;
    text-decoration: none;
}

    .back-link:hover {
        color: var(--accent);
        text-decoration: none;
    }

.topic-subtitle {
    font-size: 1.15rem;
    color: var(--muted);
    margin: 0 0 24px;
}

.topic-intro {
    font-size: 1.08rem;
    max-width: 650px;
    text-align: justify;
    hyphens: none;
}

.topic-keywords {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 28px;
}

    .topic-keywords span {
        border: 1px solid var(--border);
        background: rgba(255, 255, 255, 0.72);
        padding: 7px 12px;
        border-radius: 999px;
        color: var(--muted);
        font-size: 0.92rem;
    }

.topic-visual {
    position: absolute;
    top: 0;
    right: 0;
    width: 62vw;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

    .topic-visual img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center right;
        opacity: 0.9;
        -webkit-mask-image: linear-gradient( to right, transparent 0%, transparent 18%, rgba(0, 0, 0, 0.20) 32%, rgba(0, 0, 0, 0.70) 52%, black 68% );
        mask-image: linear-gradient( to right, transparent 0%, transparent 18%, rgba(0, 0, 0, 0.20) 32%, rgba(0, 0, 0, 0.70) 52%, black 68% );
    }

.topic-links h2 {
    font-size: 1.05rem;
    margin: 0 0 12px;
    color: var(--text);
}

.topic-links {
    margin-top: 32px;
}

    .topic-links a {
        display: block;
        max-width: none;
        margin-bottom: 8px;
        color: var(--accent);
        text-decoration: none;
    }

.topic-links a:hover {
    font-weight: 600;
    text-decoration: none;
}

.acceleration-page .topic-content {
    transform: translateX(-130px);
}

@media (max-width: 800px) {
    .acceleration-page .topic-content {
        padding-left: 0;
    }
}

.topic-links a {
    white-space: nowrap;
    width: max-content;
    max-width: none;
}

@media (max-width: 800px) {
    .topic-links a {
        white-space: normal;
        width: auto;
    }
}

.topic-note {
    margin-top: 22px;
    font-size: 1.02rem;
}

.topic-orcid-link {
    margin-top: 30px;
}

@media (max-width: 800px) {
    .container {
        width: min(100% - 28px, 1150px);
    }

    .nav {
        flex-direction: column;
        align-items: flex-start;
        padding: 16px 0;
        gap: 12px;
    }

    nav {
        flex-wrap: wrap;
        gap: 12px;
    }

    .hero {
        grid-template-columns: 1fr;
        gap: 32px;
        padding-top: 48px;
    }

    .portrait-card {
        justify-self: start;
        width: 220px;
    }

    .portrait-image {
        height: 245px;
    }

    .subtitle {
        white-space: normal;
    }

    .cards,
    .cards.two {
        grid-template-columns: 1fr;
    }

    .section {
        padding: 26px;
    }

    .topic-page {
        min-height: auto;
        overflow: visible;
    }

    .topic-hero {
        min-height: auto;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        overflow: visible;
    }

    .topic-content {
        order: 1;
        max-width: 100%;
        padding-top: 40px;
        padding-bottom: 32px;
    }

    .acceleration-page .topic-content {
        transform: none;
    }

    .topic-visual {
        order: 2;
        position: relative;
        width: 100%;
        height: 240px;
        margin-top: 8px;
        opacity: 0.35;
    }

        .topic-visual img {
            object-fit: cover;
            object-position: center;
            mask-image: none;
            -webkit-mask-image: none;
        }

    .topic-links a {
        white-space: normal;
        width: auto;
    }
}