@import "./styles.css";

:root {
    --page-bg: #eee8f3;
    --paper: #ffffff;
    --paper-soft: #fbf8fe;
    --ink: #222222;
    --ink-muted: #5f5868;
    --accent: #6b4f8a;
    --accent-strong: #4f2a72;
    --accent-soft: #f1eaf8;
    --accent-line: #d8c8ed;
    --shadow: rgba(55, 36, 76, 0.17);
    --font-serif: Georgia, "Times New Roman", Times, serif;
    --font-sans: Mulish, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

html {
    background: var(--page-bg);
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--page-bg);
    font-family: var(--font-serif);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.45;
}

a {
    color: var(--accent);
    text-decoration: none;
}

a:hover {
    color: var(--accent-strong);
    border-bottom: 1px dotted var(--accent-strong);
}

.site-page {
    position: relative;
    max-width: 960px;
    margin: 30px auto;
    padding: 26px 50px 30px;
    background: var(--paper);
    box-shadow: 0 18px 55px var(--shadow);
}

.github-corner {
    position: absolute;
    top: 0;
    right: 0;
    display: grid;
    width: 76px;
    height: 76px;
    place-items: start end;
    padding: 10px 10px 0 0;
    color: #ffffff;
    background: linear-gradient(135deg, transparent 0 49%, #8b6aae 50% 100%);
    font-size: 24px;
    z-index: 4;
}

.github-corner:hover {
    color: #ffffff;
    border-bottom: 0;
}

.site-nav {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 24px;
    padding: 0 44px 14px 0;
    margin-bottom: 24px;
    border-bottom: 1px solid #aaaaaa;
}

.site-brand {
    color: var(--accent-strong);
    font-family: var(--font-serif);
    font-size: 1.05rem;
    font-weight: 700;
    white-space: nowrap;
}

.site-brand:empty {
    display: none;
}

.site-links {
    margin-left: auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px 18px;
    font-family: var(--font-sans);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.site-links .nav-link {
    padding: 0;
    color: #7b5ea7;
}

.site-shell {
    display: grid;
    gap: 22px;
}

.profile-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 260px;
    gap: 34px;
    align-items: start;
    margin-bottom: 8px;
}

.profile-kicker,
.section-kicker {
    margin: 0 0 6px;
    color: #8b45b0;
    font-family: var(--font-sans);
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.profile-copy h1 {
    margin: 0 0 8px;
    padding: 0 0 8px;
    color: var(--accent);
    border-bottom: 0;
    font-family: var(--font-serif);
    font-size: 2.05rem;
    line-height: 1.1;
}

.profile-copy h1 span {
    color: var(--ink-muted);
    font-size: 1.25rem;
    font-weight: 500;
}

.profile-role {
    max-width: 560px;
    margin: 0 0 12px;
    color: #2f2439;
    font-size: 1.05rem;
}

.profile-line {
    max-width: 590px;
    margin: 0 0 16px;
    color: var(--ink-muted);
}

.profile-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    font-family: var(--font-sans);
}

.profile-actions a,
.profile-actions span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 34px;
    padding: 6px 10px;
    color: var(--accent-strong);
    background: var(--accent-soft);
    border: 1px solid var(--accent-line);
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 700;
}

.profile-actions a:hover {
    background: #eadff4;
    border-bottom: 1px solid var(--accent-line);
}

.profile-actions span[aria-disabled="true"] {
    color: #9a8aaa;
    cursor: default;
}

.portrait-panel {
    width: 260px;
    margin: 0;
}

.portrait-panel img {
    display: block;
    width: 100%;
    aspect-ratio: 978 / 944;
    object-fit: cover;
    object-position: center;
    border-radius: 10px;
    box-shadow: 4px 4px 12px rgba(75, 62, 84, 0.4);
}

.content-section {
    scroll-margin-top: 24px;
}

.section-heading {
    margin: 0 0 12px;
}

.section-heading h2,
section header h2 {
    margin: 0;
    padding: 0.35em 0 0.22em;
    color: var(--accent);
    border-bottom: 1px solid #aaaaaa;
    font-family: var(--font-serif) !important;
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1.15;
}

.main-body {
    color: var(--ink);
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.45;
}

.main-body h1,
.main-body h2,
.main-body h3,
.main-body h4 {
    color: var(--accent);
    font-family: var(--font-serif);
}

.main-body h4 {
    margin: 1em 0 0.45em;
    font-size: 1.02rem;
}

.main-body p {
    margin: 0 0 0.8em;
}

.main-body strong,
.timeline-row strong {
    color: #3f2858;
}

.main-body blockquote {
    margin: 0.2em 0 1em;
    padding: 0.6em 0.8em;
    color: #5d4a69;
    background: var(--paper-soft);
    border-left: 3px solid #b599cf;
}

.main-body ul {
    padding-left: 1.2rem;
    list-style-type: square;
}

.main-body li {
    margin-top: 0.7em;
}

.main-body img {
    max-width: 100%;
}

.main-body .badge,
.main-body img[src*="shields.io"] {
    display: none;
}

.compact-list ul {
    display: grid;
    gap: 8px;
    max-height: 210px;
    margin: 0;
    padding: 0;
    overflow: auto;
    list-style: none;
}

.compact-list li,
.news-item {
    margin: 0;
    padding: 9px 12px;
    background: #fbf8fe;
    border: 1px solid #ece2f4;
    border-radius: 8px;
}

.timeline-list {
    display: grid;
    gap: 14px;
}

.timeline-row {
    display: grid;
    grid-template-columns: 128px minmax(0, 1fr);
    gap: 20px;
    padding: 12px;
    background: #fff;
    border: 1px solid transparent;
}

.timeline-row:hover {
    background: #fbf8fe;
    border-color: #ece2f4;
}

.timeline-date {
    margin: 0;
    color: #8b45b0;
    font-family: var(--font-sans);
    font-size: 0.86rem;
    font-weight: 800;
}

.timeline-row h3 {
    margin: 0 0 4px;
    color: #30213d;
    font-family: var(--font-serif);
    font-size: 1.03rem;
}

.institution-title,
.experience-title {
    display: flex;
    align-items: center;
    gap: 9px;
}

.institution-logo,
.experience-logo {
    display: inline-grid;
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
    place-items: center;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #e8deef;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(55, 36, 76, 0.16);
}

.institution-logo img,
.experience-logo img {
    display: block;
    max-width: 24px;
    max-height: 24px;
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.experience-logo.logo-wide {
    width: 58px;
    flex-basis: 58px;
}

.timeline-row p {
    margin: 0;
    color: var(--ink-muted);
}

.timeline-row.is-placeholder {
    border: 1px dashed #d8c8ed;
}

.publication-list > h4,
.publication-list > blockquote {
    max-width: 720px;
}

.publication-list > h4 {
    margin-top: 1.15em;
    padding-bottom: 0.25em;
    border-bottom: 1px solid #dfd3e8;
    font-size: 1.08rem;
}

.publication-list ul {
    display: grid;
    gap: 16px;
    margin: 0 0 26px;
    padding: 0;
    list-style: none;
}

.publication-list li {
    margin: 0;
}

.publication-item {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);
    gap: 18px;
    align-items: stretch;
    padding: 14px;
    background: #ffffff;
    border: 1px solid #e8deef;
    border-radius: 8px;
    box-shadow: 0 8px 22px rgba(55, 36, 76, 0.08);
}

.publication-cover {
    display: grid;
    min-height: 108px;
    place-items: center;
    overflow: hidden;
    color: #ffffff;
    background:
        linear-gradient(135deg, rgba(79, 42, 114, 0.86), rgba(139, 106, 174, 0.86)),
        url("../assets/img/background.jpeg") center / cover;
    border-radius: 7px;
    font-family: var(--font-sans);
    font-size: 1.15rem;
    font-weight: 800;
}

.publication-cover img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 108px;
    object-fit: contain;
    padding: 8px;
    background: #f9f6fc;
}

.publication-cover span {
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    background: rgba(255, 255, 255, 0.17);
    border: 1px solid rgba(255, 255, 255, 0.38);
    border-radius: 999px;
}

.publication-body {
    min-width: 0;
    align-self: center;
    line-height: 1.38;
}

.publication-body p,
.publication-body {
    color: #2d2632;
}

.publication-body strong {
    color: #3d2060;
}

.publication-body br {
    display: none;
}

.publication-note {
    display: block;
    margin-top: 8px;
    color: var(--ink-muted);
    font-family: var(--font-sans);
    font-size: 0.86rem;
}

.publication-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.publication-body a {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin: 0;
    padding: 3px 8px;
    color: var(--accent-strong);
    background: var(--accent-soft);
    border: 1px solid var(--accent-line);
    border-radius: 7px;
    font-family: var(--font-sans);
    font-size: 0.78rem;
    font-weight: 700;
}

.publication-body a:hover {
    background: #eadff4;
    border-bottom: 1px solid var(--accent-line);
}

.hf-icon {
    display: inline-grid;
    width: 18px;
    height: 18px;
    place-items: center;
    color: #7a4a00;
    background: #ffd66b;
    border-radius: 5px;
    font-size: 0.58rem;
    font-weight: 900;
    line-height: 1;
}

.site-footer {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 36px;
    padding-top: 10px;
    color: #8f8795;
    border-top: 1px solid #c0c0c0;
    font-family: var(--font-sans);
    font-size: 0.82rem;
}

.site-footer a {
    color: #7b5ea7;
}

.footer-divider {
    color: #c0b8c8;
}

.header,
.top-section,
#avatar,
.bg-bottom,
.bg-gradient-primary-to-secondary-light,
.bg-gradient-primary-to-secondary-gray {
    all: unset;
}

@media (max-width: 780px) {
    .site-page {
        width: calc(100% - 24px);
        margin: 12px auto;
        padding: 22px 18px 26px;
    }

    .github-corner {
        width: 58px;
        height: 58px;
        padding: 8px 8px 0 0;
        font-size: 19px;
    }

    .site-nav {
        display: block;
        padding-right: 46px;
    }

    .site-links {
        justify-content: flex-start;
        margin-top: 10px;
        gap: 8px 12px;
    }

    .profile-hero {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .portrait-panel {
        width: min(260px, 100%);
    }

    .profile-copy h1 {
        font-size: 1.82rem;
    }

    .profile-actions a {
        min-height: 32px;
    }

    .timeline-row {
        grid-template-columns: 1fr;
        gap: 6px;
        padding: 10px 0;
    }

    .publication-item {
        grid-template-columns: 1fr;
    }

    .publication-cover {
        min-height: 90px;
    }
}
