:root {
    --academic-bg: #f4efe6;
    --academic-surface: #fffaf1;
    --academic-panel: #eadfcf;
    --academic-line: rgba(92, 73, 49, 0.18);
    --academic-line-strong: rgba(92, 73, 49, 0.32);
    --academic-text: #2e261d;
    --academic-muted: #62584b;
    --academic-dim: #857969;
    --academic-accent: #2f6f4e;
    --academic-accent-soft: rgba(47, 111, 78, 0.11);
    --academic-action: #6b4d33;
    --academic-action-hover: #543b27;
    --academic-action-soft: rgba(107, 77, 51, 0.14);
    --academic-serif: Georgia, "Times New Roman", serif;
    --academic-sans: Inter, Arial, sans-serif;
}

html {
    scroll-behavior: smooth;
    background: var(--academic-bg) !important;
}

body,
body.dark,
.dark {
    background: var(--academic-bg) !important;
    color: var(--academic-text) !important;
    font-family: var(--academic-sans) !important;
}

body {
    background-image: linear-gradient(180deg, #fbf7ee 0%, #f4efe6 48%, #eee2d0 100%);
}

::selection {
    color: #fffaf1;
    background: var(--academic-accent);
}

a {
    color: var(--academic-accent) !important;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.18em;
}

a:hover,
a:focus {
    color: #214f38 !important;
}

p,
li,
dd {
    color: var(--academic-muted);
}

h1,
h2,
h3,
h4,
h5,
h6,
.primary-font,
#primary-font {
    font-family: var(--academic-sans) !important;
    letter-spacing: 0;
}

#content {
    padding-top: 74px;
}

header,
.navbar {
    background: rgba(244, 239, 230, 0.96) !important;
    border-bottom: 1px solid var(--academic-line);
    box-shadow: none !important;
}

header .navbar {
    padding: 0.72rem 0 !important;
}

.navbar-brand {
    display: flex;
    flex-direction: column;
    gap: 0.16rem;
    color: var(--academic-text) !important;
    line-height: 1.1;
}

.navbar-brand strong {
    font-size: 1rem;
    font-weight: 650;
}

.navbar-brand span {
    color: var(--academic-dim);
    font-size: 0.76rem;
}

header .navbar .nav-link {
    padding: 0.55rem 0.58rem !important;
    color: var(--academic-muted) !important;
    font-size: 0.9rem;
    font-weight: 500;
}

header .navbar .nav-link:hover,
header .navbar .nav-link:focus {
    color: var(--academic-text) !important;
}

header .navbar .nav-link::after {
    display: none !important;
}

.navbar-toggler {
    border: 1px solid var(--academic-line-strong) !important;
    border-radius: 4px !important;
    background: var(--academic-surface) !important;
}

.navbar-toggler svg {
    fill: var(--academic-text);
}

.academic-hero {
    padding: 4.5rem 0 3.75rem;
    border-bottom: 1px solid var(--academic-line);
}

.profile-photo {
    max-width: 230px;
    margin: 1.65rem 0 0;
    border: 1px solid var(--academic-line-strong);
    background: var(--academic-surface);
}

.profile-photo img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    object-position: center 24%;
    filter: saturate(0.92) contrast(1.02);
}

.eyebrow {
    margin-bottom: 0.7rem;
    color: var(--academic-accent) !important;
    font-size: 0.82rem;
    font-weight: 650;
    text-transform: uppercase;
}

#hero h1 {
    margin: 0;
    color: var(--academic-text) !important;
    font-family: var(--academic-serif) !important;
    font-size: clamp(1.95rem, 3.6vw, 3.05rem);
    font-weight: 700;
    line-height: 1;
}

#hero h2 {
    max-width: 820px;
    margin: 1rem 0 1rem;
    color: #4d4236 !important;
    font-size: clamp(1.2rem, 2.2vw, 1.65rem);
    font-weight: 500;
    line-height: 1.35;
}

.hero-content {
    max-width: 790px;
    color: var(--academic-muted) !important;
    font-size: 1.02rem;
    line-height: 1.8;
}

.profile-facts {
    display: grid;
    max-width: 850px;
    margin: 1.8rem 0 0;
    border-top: 1px solid var(--academic-line);
}

.profile-facts div {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 1rem;
    padding: 0.72rem 0;
    border-bottom: 1px solid var(--academic-line);
}

.profile-facts dt {
    color: var(--academic-text);
    font-weight: 650;
}

.profile-facts dd {
    margin: 0;
}

.hero-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    align-items: center;
    margin-top: 1.35rem;
}

.hero-links > span {
    display: inline-flex;
    gap: 0.45rem;
    align-items: center;
}

.hero-links .px-1 {
    padding-right: 0 !important;
    padding-left: 0 !important;
}

.btn,
.academic-btn,
#hero a.btn {
    border-radius: 4px !important;
    box-shadow: none !important;
    transition: background-color 140ms ease, border-color 140ms ease, color 140ms ease;
}

.academic-btn {
    display: inline-flex;
    height: 38px;
    align-items: center;
    margin-top: 0 !important;
    padding: 0 0.9rem !important;
    border: 1px solid var(--academic-action) !important;
    color: #fffaf1 !important;
    background: var(--academic-action) !important;
    font-weight: 650;
    line-height: 1;
}

#hero .hero-links a.btn {
    margin-top: 0 !important;
}

#hero .hero-links a.academic-btn {
    color: #fffaf1 !important;
}

.academic-btn:hover,
.academic-btn:focus {
    color: #fffaf1 !important;
    border-color: var(--academic-action-hover) !important;
    background: var(--academic-action-hover) !important;
}

#hero a.btn.social-icon {
    display: inline-grid;
    width: 38px;
    height: 38px;
    margin: 0 !important;
    padding: 0 !important;
    place-items: center;
    border: 1px solid var(--academic-action) !important;
    border-radius: 4px !important;
    color: #fffaf1 !important;
    background: var(--academic-action) !important;
    line-height: 1;
}

#hero a.btn.social-icon:hover,
#hero a.btn.social-icon:focus {
    border-color: var(--academic-action-hover) !important;
    color: #fffaf1 !important;
    background: var(--academic-action-hover) !important;
}

#hero a.btn.social-icon img {
    width: 17px;
    height: 17px;
    filter: none !important;
}

.academic-section {
    padding: 4rem 0;
    border-bottom: 1px solid var(--academic-line);
}

.academic-section:nth-of-type(odd) {
    background: rgba(234, 223, 207, 0.42) !important;
}

.section-heading {
    display: grid;
    grid-template-columns: minmax(180px, 260px) minmax(0, 1fr);
    gap: 2rem;
    align-items: baseline;
    margin-bottom: 2rem;
}

.section-heading h3 {
    margin: 0;
    color: var(--academic-text) !important;
    font-family: var(--academic-serif) !important;
    font-size: clamp(1.65rem, 3vw, 2.2rem);
    font-weight: 700;
}

.section-heading h3::before {
    display: none !important;
}

.section-heading p {
    max-width: 760px;
    margin: 0;
    color: var(--academic-dim) !important;
    line-height: 1.7;
}

.academic-prose {
    max-width: 920px;
}

.academic-prose p {
    margin-bottom: 1.1rem;
    color: var(--academic-muted) !important;
    font-size: 1rem;
    line-height: 1.85;
}

.research-keywords {
    max-width: 920px;
    margin-top: 1.8rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--academic-line);
}

.research-keywords h4 {
    margin-bottom: 0.9rem;
    color: var(--academic-text);
    font-size: 1rem;
    font-weight: 650;
}

.research-keywords ul,
.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0;
    margin: 0;
    list-style: none;
}

.research-keywords li,
.project-tags li {
    padding: 0.32rem 0.58rem;
    border: 1px solid var(--academic-line);
    border-radius: 4px;
    color: #315840 !important;
    background: var(--academic-accent-soft);
    font-size: 0.84rem;
}

.publication-list {
    display: grid;
    gap: 0;
    padding: 0;
    margin: 0;
    list-style: none;
    counter-reset: publications;
    border-top: 1px solid var(--academic-line);
}

.publication-item {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 1.4rem;
    padding: 1.3rem 0;
    border-bottom: 1px solid var(--academic-line);
    background: transparent !important;
    box-shadow: none !important;
}

.publication-year {
    color: var(--academic-accent);
    font-weight: 700;
}

.publication-body h4 {
    margin: 0 0 0.45rem;
    color: var(--academic-text);
    font-size: 1.05rem;
    font-weight: 650;
    line-height: 1.45;
}

.publication-body h4 a {
    color: var(--academic-text) !important;
    text-decoration: none;
}

.publication-body h4 a:hover,
.publication-body h4 a:focus {
    color: var(--academic-accent) !important;
}

.publication-authors,
.publication-venue {
    margin: 0.22rem 0;
    color: var(--academic-muted) !important;
    font-size: 0.92rem;
    line-height: 1.55;
}

.academic-timeline {
    border-top: 1px solid var(--academic-line);
}

.timeline-item {
    display: grid;
    grid-template-columns: 190px minmax(0, 1fr);
    gap: 1.6rem;
    padding: 1.35rem 0;
    border-bottom: 1px solid var(--academic-line);
}

.timeline-date,
.education-item > span {
    color: var(--academic-dim);
    font-size: 0.9rem;
    font-weight: 600;
}

.timeline-body h4,
.education-item h4,
.project-item h4 {
    margin: 0;
    color: var(--academic-text);
    font-size: 1.05rem;
    font-weight: 650;
    line-height: 1.45;
}

.timeline-affiliation,
.education-item p {
    margin: 0.25rem 0 0.55rem;
    color: var(--academic-dim) !important;
}

.timeline-content p,
.timeline-content li,
.education-content p,
.education-content li,
.project-item p,
.contact-panel p {
    color: var(--academic-muted) !important;
    line-height: 1.75;
}

.timeline-content ul {
    padding-left: 1.1rem;
}

.education-list,
.project-list {
    border-top: 1px solid var(--academic-line);
}

.education-item,
.project-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 160px;
    gap: 1.5rem;
    padding: 1.25rem 0;
    border-bottom: 1px solid var(--academic-line);
}

.project-item {
    grid-template-columns: minmax(0, 1fr) 130px;
}

.project-body p {
    margin: 0.55rem 0 0.9rem;
}

.project-links {
    display: flex;
    gap: 0.65rem;
    align-items: flex-start;
    justify-content: flex-end;
}

.project-links a {
    text-decoration: none;
}

.project-links .text-link {
    font-weight: 650;
}

.contact-panel {
    display: flex;
    max-width: 920px;
    gap: 1.25rem;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 0;
    border-top: 1px solid var(--academic-line);
    border-bottom: 1px solid var(--academic-line);
}

.contact-panel p {
    margin: 0;
}

footer {
    border-top: 1px solid var(--academic-line);
    color: var(--academic-dim);
    background: #eee2d0 !important;
}

footer .card,
.card {
    border-radius: 4px !important;
    box-shadow: none !important;
}

@media (max-width: 991px) {
    #content {
        padding-top: 66px;
    }

    .academic-hero {
        padding: 3rem 0 3.25rem;
    }

    .profile-photo {
        max-width: 180px;
        margin-top: 1.15rem;
    }

    .navbar-collapse {
        margin-top: 0.8rem;
        padding-top: 0.75rem;
        border-top: 1px solid var(--academic-line);
    }

    .section-heading,
    .timeline-item,
    .education-item,
    .project-item {
        grid-template-columns: 1fr;
        gap: 0.55rem;
    }

    .project-links {
        justify-content: flex-start;
    }
}

@media (max-width: 575px) {
    #content {
        padding-top: 60px;
    }

    header .navbar {
        padding: 0.58rem 0 !important;
    }

    .navbar-brand strong {
        font-size: 0.94rem;
    }

    .navbar-brand span {
        font-size: 0.7rem;
    }

    .navbar-toggler {
        width: 42px;
        height: 38px;
        padding: 0 !important;
    }

    .navbar-collapse {
        margin-top: 0.58rem;
        padding: 0.55rem 0 0.1rem;
    }

    header .navbar .nav-link {
        padding: 0.48rem 0 !important;
        font-size: 0.92rem;
        text-align: left;
    }

    .academic-hero,
    .academic-section {
        padding-right: 0;
        padding-left: 0;
    }

    .academic-hero {
        padding-top: 1.6rem;
        padding-bottom: 2.2rem;
    }

    .academic-hero .container,
    .academic-section .container {
        padding-right: 1.12rem;
        padding-left: 1.12rem;
    }

    .academic-hero .row {
        display: grid;
        grid-template-columns: 104px minmax(0, 1fr);
        gap: 1rem 0.95rem;
        align-items: start;
        width: 100%;
        margin-right: 0;
        margin-left: 0;
    }

    .academic-hero .col-lg-3,
    .academic-hero .col-lg-9 {
        display: contents;
    }

    .profile-photo {
        grid-column: 1;
        grid-row: 1 / span 3;
        width: 104px;
        max-width: none;
        margin-top: 1rem;
    }

    .profile-photo img {
        aspect-ratio: 4 / 5;
        object-position: center 20%;
    }

    #hero .eyebrow {
        grid-column: 2;
        grid-row: 1;
        min-width: 0;
    }

    .eyebrow {
        margin-bottom: 0.38rem;
        font-size: 0.68rem;
        line-height: 1.2;
    }

    #hero h1 {
        grid-column: 2;
        grid-row: 2;
        font-size: clamp(1.48rem, 6.6vw, 1.82rem);
        line-height: 1.08;
    }

    #hero h2 {
        grid-column: 2;
        grid-row: 3;
        margin: 0.46rem 0 0;
        font-size: 0.98rem;
        line-height: 1.38;
    }

    .hero-content {
        grid-column: 1 / -1;
        grid-row: 4;
        margin-top: 0.75rem;
        font-size: 0.96rem;
        line-height: 1.72;
    }

    .hero-content p {
        margin-bottom: 0;
    }

    .profile-facts {
        grid-column: 1 / -1;
        grid-row: 6;
        margin-top: 1.15rem;
        border-top: 0;
    }

    .profile-facts div,
    .publication-item {
        grid-template-columns: 1fr;
        gap: 0.35rem;
    }

    .profile-facts div {
        gap: 0.22rem;
        padding: 0.78rem 0;
    }

    .profile-facts dt {
        font-size: 0.8rem;
        text-transform: uppercase;
    }

    .profile-facts dd {
        font-size: 0.92rem;
        line-height: 1.45;
    }

    .hero-links {
        grid-column: 1 / -1;
        grid-row: 5;
        gap: 0.5rem;
        margin-top: 0.15rem;
        margin-bottom: 0.1rem;
    }

    .hero-links > span {
        gap: 0.38rem;
    }

    .academic-btn {
        height: 36px;
        padding: 0 0.76rem !important;
        font-size: 0.86rem;
    }

    #hero a.btn.social-icon {
        width: 36px;
        height: 36px;
    }

    .academic-section {
        padding-top: 2.55rem;
        padding-bottom: 2.55rem;
    }

    .section-heading {
        gap: 0.45rem;
        margin-bottom: 1.25rem;
    }

    .section-heading h3 {
        font-size: 1.55rem;
    }

    .section-heading p,
    .academic-prose p,
    .timeline-content p,
    .timeline-content li,
    .education-content p,
    .education-content li,
    .project-item p,
    .contact-panel p {
        font-size: 0.94rem;
        line-height: 1.68;
    }

    .research-keywords {
        margin-top: 1.2rem;
        padding-top: 1rem;
    }

    .research-keywords h4 {
        font-size: 0.95rem;
    }

    .research-keywords ul,
    .project-tags {
        gap: 0.38rem;
    }

    .research-keywords li,
    .project-tags li {
        padding: 0.28rem 0.48rem;
        font-size: 0.76rem;
    }

    .publication-list,
    .academic-timeline,
    .education-list,
    .project-list {
        border-top-color: var(--academic-line-strong);
    }

    .publication-item,
    .timeline-item,
    .education-item,
    .project-item {
        padding: 1rem 0;
    }

    .publication-year,
    .timeline-date,
    .education-item > span {
        font-size: 0.78rem;
    }

    .publication-body h4,
    .timeline-body h4,
    .education-item h4,
    .project-item h4 {
        font-size: 0.98rem;
        line-height: 1.42;
    }

    .publication-authors,
    .publication-venue,
    .timeline-affiliation,
    .education-item p {
        font-size: 0.84rem;
        line-height: 1.45;
    }

    .project-item {
        gap: 0.7rem;
    }

    .project-links {
        gap: 0.55rem;
    }

    .contact-panel {
        align-items: flex-start;
        flex-direction: column;
        gap: 0.9rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
