@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,500;0,600;0,700;1,500&family=Libre+Baskerville:ital,wght@0,400;0,700;1,400&family=Source+Serif+4:ital,opsz,wght@0,8..60,400;0,8..60,600;0,8..60,700;1,8..60,400&display=swap');

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --text-color: #3a312a;
    --bg-color: #f9f3e7;
    --bg-paper: #fdf9f1;
    --border-color: #ddccae;
    --link-color: #2f5d4a;
    --link-hover: #d05a16;
    --secondary-text: #877a64;
    --accent-color: #d05a16;
    --accent-warm: #b08a3c;
    --halftone-dot: rgba(58, 49, 42, 0.07);
    --halftone-dot-strong: rgba(58, 49, 42, 0.11);
    --paper-grain: rgba(58, 49, 42, 0.02);
    --shadow-ink: rgba(58, 49, 42, 0.06);
    --max-width: 1180px;
    --spacing-unit: 1rem;
    --font-family: 'Source Serif 4', 'Libre Baskerville', 'Iowan Old Style', 'Palatino Linotype', 'Book Antiqua', Georgia, serif;
    --font-family-heading: 'Cormorant Garamond', 'Libre Baskerville', 'Source Serif 4', Georgia, 'Times New Roman', serif;
    --halftone-size: 5px;
    --halftone-size-fine: 3px;
    --image-paper-wash: rgba(244, 236, 220, 0.22);
    --image-tone-filter: sepia(0.14) saturate(0.82) contrast(0.93) brightness(1.04);
}
 
@media (prefers-color-scheme: dark) {
    :root {
        --text-color: #ece2d2;
        --bg-color: #17130d;
        --bg-paper: #201a13;
        --border-color: #4a3e2c;
        --link-color: #7fae97;
        --link-hover: #e87a2f;
        --secondary-text: #c2b39c;
        --accent-color: #e87a2f;
        --accent-warm: #cba24f;
        --halftone-dot: rgba(236, 226, 210, 0.05);
        --halftone-dot-strong: rgba(236, 226, 210, 0.09);
        --paper-grain: rgba(255, 255, 255, 0.025);
        --shadow-ink: rgba(0, 0, 0, 0.45);
        --image-paper-wash: rgba(23, 19, 13, 0.2);
        --image-tone-filter: sepia(0.08) saturate(0.86) contrast(0.94) brightness(0.99);
    }

    h1 {
        text-shadow: 0 1px 0 rgba(0, 0, 0, 0.35);
    }

    .profile-image img {
        box-shadow: none;
    }
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    line-height: 1.75;
    color: var(--text-color);
    background-color: var(--bg-color);
    font-size: 18px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    position: relative;
    min-height: 100vh;
}

/* Halftone + aged-paper texture (fixed, non-interactive) */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -2;
    pointer-events: none;
    background-color: var(--bg-color);
    background-image:
        radial-gradient(circle at 50% 50%, var(--halftone-dot) 0.75px, transparent 0.76px),
        radial-gradient(ellipse 120% 80% at 50% 0%, rgba(255, 250, 240, 0.45) 0%, transparent 55%),
        radial-gradient(ellipse 90% 60% at 100% 100%, rgba(208, 90, 22, 0.035) 0%, transparent 50%);
    background-size: var(--halftone-size) var(--halftone-size), 100% 100%, 100% 100%;
}

body::after {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    opacity: 0.32;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.45'/%3E%3C/svg%3E");
    mix-blend-mode: multiply;
}

@media (prefers-color-scheme: dark) {
    body::before {
        background-image:
            radial-gradient(circle at 50% 50%, var(--halftone-dot) 0.75px, transparent 0.76px),
            radial-gradient(ellipse 100% 70% at 50% 0%, rgba(232, 122, 47, 0.06) 0%, transparent 45%);
    }

    body::after {
        mix-blend-mode: soft-light;
        opacity: 0.35;
    }
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* Main Content */
main {
    margin-top: 2.5rem;
    margin-bottom: 5rem;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-family-heading);
}

h1 {
    font-size: 2.85rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
    line-height: 1.12;
    letter-spacing: 0.005em;
    color: var(--text-color);
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.2);
}

h2 {
    font-size: 2rem;
    margin-top: 2.5rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text-color);
    position: relative;
    padding-bottom: 0.65rem;
}

h2::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: min(12rem, 100%);
    height: 0.55rem;
    background-image: radial-gradient(circle at 50% 50%, var(--accent-warm) 0.9px, transparent 0.95px);
    background-size: 4px 4px;
    opacity: 0.35;
    mask-image: linear-gradient(to right, black 70%, transparent);
}

h2:first-child {
    margin-top: 0;
}

/* Profile Section */
.profile-section {
    display: flex;
    gap: 2.5rem;
    align-items: flex-start;
    margin-bottom: 2.5rem;
    margin-top: 2rem;
}

.profile-info {
    flex: 1;
    min-width: 0;
}

.profile-info-name {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 3.4rem;
    font-weight: 600;
    line-height: 1.08;
    letter-spacing: 0.015em;
    position: relative;
}

.profile-info-name::before {
    content: '';
    display: block;
    width: 3.5rem;
    height: 0.65rem;
    margin-bottom: 0.85rem;
    background-image: radial-gradient(circle at 50% 50%, var(--accent-warm) 1px, transparent 1.05px);
    background-size: 4px 4px;
    opacity: 0.45;
}

.profile-aside {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 280px;
    margin-top: 7.75rem;
    gap: 1.15rem;
}

.profile-social {
    list-style: none !important;
    padding: 0 !important;
    margin: 0.5rem 0 0 !important;
    display: flex !important;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
    gap: 0.52rem;
    width: 100%;
}

.profile-social li {
    list-style: none !important;
    margin: 0;
    padding: 0;
    display: inline-flex;
}

.profile-social li::before {
    content: none !important;
    display: none !important;
}

.profile-social-link {
    color: var(--link-color) !important;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.2rem;
    border: none;
    background: transparent;
    box-shadow: none;
    transition: color 0.15s ease, opacity 0.15s ease, transform 0.15s ease;
}

.profile-social-link:hover {
    color: var(--link-hover) !important;
    opacity: 0.85;
    transform: translateY(-1px);
}

.profile-social-link:focus-visible {
    outline: 2px solid var(--link-color);
    outline-offset: 3px;
}

/* Size from CSS only (no SVG width/height attrs) so updates aren’t stuck behind cached CSS or attr quirks */
.profile-section .profile-social svg.profile-social-icon {
    display: block;
    width: 38px !important;
    height: 38px !important;
    min-width: 38px;
    min-height: 38px;
    flex-shrink: 0;
}

.profile-image {
    position: relative;
    flex-shrink: 0;
    width: 100%;
    margin-top: 0;
    align-self: stretch;
    padding: 0;
    background: var(--bg-color);
    border: none;
    box-shadow: none;
}

.profile-image::after,
.hg-media::after,
.publication-thumb::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
        radial-gradient(circle at 50% 50%, rgba(74, 66, 56, 0.1) 0.55px, transparent 0.6px),
        linear-gradient(var(--image-paper-wash), var(--image-paper-wash));
    background-size: 3px 3px, 100% 100%;
    mix-blend-mode: soft-light;
    opacity: 0.52;
    z-index: 1;
}

.profile-image img,
.hg-video,
.publication-thumb img,
.publication-thumb video {
    filter: var(--image-tone-filter);
}

.profile-image img {
    width: 100%;
    height: auto;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 0;
    display: block;
    box-shadow: none;
    border: none;
    position: relative;
    z-index: 0;
}

@media (prefers-color-scheme: dark) {
    .profile-image::after,
    .hg-media::after,
    .publication-thumb::after {
        background-image:
            radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.08) 0.55px, transparent 0.6px),
            linear-gradient(var(--image-paper-wash), var(--image-paper-wash));
        mix-blend-mode: overlay;
        opacity: 0.48;
    }
}

.name-chinese {
    font-size: 1.125rem;
    color: var(--secondary-text);
    font-weight: 400;
    margin-left: 0.5rem;
}

/* Content Section */
.content-section {
    margin-top: 0;
    padding-top: 3rem;
    border-top: 1px solid var(--border-color);
    background-image: radial-gradient(circle at 50% 0%, var(--halftone-dot) 0.6px, transparent 0.65px);
    background-size: var(--halftone-size) var(--halftone-size);
    background-position: 0 0;
}

.subtitle {
    font-size: 1rem;
    color: var(--secondary-text);
    margin-bottom: 0.5rem;
    font-weight: 400;
}

.affiliation {
    margin: 0.75rem 0 0.5rem 0;
    font-size: 1rem;
    color: var(--text-color);
}

.affiliation a {
    color: var(--link-color);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
}

.affiliation a:hover {
    text-decoration: underline;
}

.contact {
    color: var(--secondary-text);
    margin: 0.5rem 0 1rem 0;
    font-size: 1.0625rem;
}

.links {
    margin-top: 1rem;
    font-size: 0.9375rem;
}

.links a {
    color: var(--link-color);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s ease;
}

.links a:hover,
.links a:focus {
    border-bottom-color: var(--link-color);
    text-decoration: none;
}

.profile-info .intro {
    font-size: 1.4rem;
    line-height: 1.85;
}

.intro {
    margin-top: 1.5rem;
    line-height: 1.7;
    color: var(--text-color);
}

.intro-block .intro em {
    text-decoration: underline;
    text-decoration-style: dashed;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.intro-block .intro a {
    color: var(--link-color);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
    transition: color 0.2s ease;
}

.intro-block .intro a:hover {
    color: var(--link-hover);
    text-decoration: underline;
}

.profile-info > .contact a {
    color: var(--link-color);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
    transition: color 0.2s ease;
}

.profile-info > .contact a:hover {
    color: var(--link-hover);
    text-decoration: underline;
}

.content-section p {
    margin: 1rem 0;
    line-height: 1.7;
    color: var(--text-color);
}

.content-section p:first-of-type {
    margin-top: -0.5rem;
}

.content-section a {
    color: var(--link-color);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
    transition: color 0.2s ease;
}

.content-section a:hover {
    color: var(--link-hover);
    text-decoration: underline;
}

.content-section ul {
    margin: 1rem 0;
    padding-left: 1.5rem;
    list-style: none;
}

.content-section ul li {
    margin: 0.5rem 0;
    position: relative;
    padding-left: 1rem;
    line-height: 1.6;
}

.content-section ul li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--link-color);
    font-weight: bold;
}

.content-section ul li strong {
    color: var(--text-color);
    font-weight: 600;
}

/* Social Icons */
.social-icons {
    margin-top: 1rem;
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    font-size: 0.9rem;
}

.social-icons a {
    color: var(--link-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

.social-icons a:hover {
    color: var(--link-hover);
    text-decoration: underline;
}

/* Featured Video Section */
.featured {
    margin: 0 0 2rem;
}

.fv-media {
    display: grid;
    grid-template-columns: minmax(300px, 1.5fr) 1fr;
    align-items: center;
    gap: 1.5rem;
}

.fv-thumb {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 8px;
    overflow: hidden;
    background: #000;
}

.fv-thumb iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

.fv-thumb-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: var(--border-color);
    border: 2px dashed var(--secondary-text);
}

.fv-placeholder-label {
    font-size: 0.9375rem;
    color: var(--secondary-text);
    text-align: center;
    line-height: 1.45;
    max-width: 28rem;
}

.secondary-text-note {
    margin-top: 1.25rem;
    font-size: 0.9375rem;
    color: var(--secondary-text);
}

.secondary-text-note a {
    color: var(--link-color);
}

.secondary-text-note a:hover {
    color: var(--link-hover);
}

.fv-content {
    min-width: 0;
}

.fv-eyebrow {
    font-size: 0.8125rem;
    color: var(--secondary-text);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 0.25rem;
    font-weight: 500;
}

.fv-title {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 600;
    line-height: 1.3;
    color: var(--text-color);
}

.fv-meta {
    margin: 0.25rem 0 0.75rem;
    font-size: 0.9375rem;
    color: var(--secondary-text);
    line-height: 1.5;
}

.fv-links {
    margin: 0;
    font-size: 0.9375rem;
}

.fv-links a {
    color: var(--link-color);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
    transition: color 0.2s ease;
}

.fv-links a:hover {
    color: var(--link-hover);
}

@media (max-width: 900px) {
    .fv-media {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .fv-thumb {
        width: 100%;
    }
}

/* Highlight gallery (carousel — directly under intro) */
.highlight-gallery {
    margin: 0 0 2.75rem;
    padding: 2rem 1.75rem 1.75rem;
    border: 1px solid var(--border-color);
    background:
        radial-gradient(circle at 50% 50%, var(--halftone-dot) 0.65px, transparent 0.7px),
        linear-gradient(180deg, var(--bg-paper) 0%, rgba(252, 249, 243, 0.35) 100%);
    background-size: var(--halftone-size) var(--halftone-size), auto;
    box-shadow: 0 2px 10px var(--shadow-ink);
}

@media (prefers-color-scheme: dark) {
    .highlight-gallery {
        background:
            radial-gradient(circle at 50% 50%, var(--halftone-dot) 0.65px, transparent 0.7px),
            linear-gradient(180deg, var(--bg-paper) 0%, rgba(34, 30, 24, 0.6) 100%);
        background-size: var(--halftone-size) var(--halftone-size), auto;
    }
}

.highlight-gallery-heading {
    font-size: 2rem;
    font-weight: 700;
    margin: 0 0 1rem;
    letter-spacing: 0.02em;
    color: var(--text-color);
}

.hg-carousel {
    position: relative;
}

.hg-viewport {
    overflow: hidden;
    width: 100%;
    border-radius: 0;
    border: none;
    background: transparent;
    box-shadow: none;
}

.hg-track {
    display: flex;
    scroll-snap-type: x mandatory;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.hg-track::-webkit-scrollbar {
    display: none;
}

@media (prefers-reduced-motion: no-preference) {
    .hg-track {
        scroll-behavior: smooth;
    }
}

.hg-slide {
    flex-shrink: 0;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    padding: 1rem 0 1.25rem;
    box-sizing: border-box;
    transition: opacity 0.35s ease;
}

@media (prefers-reduced-motion: reduce) {
    .hg-slide {
        transition: none;
    }
}

.hg-slide:not(.hg-slide--active) {
    opacity: 0.82;
}

.hg-slide.hg-slide--active {
    opacity: 1;
}

.hg-slide-inner {
    display: grid;
    grid-template-columns: minmax(340px, 1.55fr) 1fr;
    gap: 2rem;
    align-items: center;
}

.hg-media {
    position: relative;
    border-radius: 2px;
    overflow: hidden;
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    box-shadow: 0 1px 4px var(--shadow-ink);
}

.hg-video {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.hg-media--placeholder {
    aspect-ratio: 16 / 9;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: var(--border-color);
    border: 2px dashed var(--secondary-text);
}

.hg-placeholder-label {
    font-size: 0.9375rem;
    color: var(--secondary-text);
    text-align: center;
    line-height: 1.45;
    max-width: 28rem;
}

.hg-copy {
    min-width: 0;
}

.hg-eyebrow {
    font-size: 0.9375rem;
    color: var(--secondary-text);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin: 0 0 0.35rem;
    font-weight: 500;
}

.hg-title {
    margin: 0;
    font-size: 1.375rem;
    font-weight: 600;
    line-height: 1.35;
}

.hg-title a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

.hg-title a:hover {
    color: var(--link-color);
    text-decoration: underline;
}

.hg-title--plain {
    color: var(--text-color);
}

.hg-authors {
    font-size: 1.0625rem;
    color: var(--secondary-text);
    margin: 0.65rem 0 0.5rem;
    line-height: 1.85;
}

.hg-authors a {
    color: var(--link-color);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
}

.hg-authors a:hover {
    color: var(--link-hover);
}

.hg-authors strong {
    color: var(--text-color);
}

.hg-venue {
    font-size: 1.0625rem;
    font-weight: 400;
    color: var(--secondary-text);
    font-style: italic;
    margin: 0 0 0.65rem;
}

.hg-venue strong {
    color: var(--text-color);
    font-weight: 600;
    font-style: normal;
}

.hg-meta {
    margin: 0.35rem 0 0.85rem;
    font-size: 0.9375rem;
    color: var(--secondary-text);
    line-height: 1.5;
}

.hg-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    align-items: center;
}

.hg-links a {
    font-size: 1.0625rem;
    color: var(--link-color);
    text-decoration: none;
    font-weight: 600;
    padding: 0.5rem 0.95rem;
    border-radius: 2px;
    border: 1px solid var(--border-color);
    background:
        radial-gradient(circle at 50% 50%, var(--halftone-dot) 0.55px, transparent 0.6px),
        var(--bg-paper);
    background-size: var(--halftone-size-fine) var(--halftone-size-fine), auto;
    transition: color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.hg-links a:hover {
    color: var(--link-hover);
    border-color: var(--accent-warm);
    transform: translateY(-1px);
}

.hg-links--inline {
    flex-wrap: wrap;
    gap: 0.35rem;
}

.hg-links--inline a {
    padding: 0;
    font-weight: 400;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.hg-links--inline a:hover {
    background: transparent;
}

.hg-links-sep {
    color: var(--secondary-text);
    user-select: none;
}

.hg-dots {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-top: 0.9rem;
}

.hg-dot {
    width: 0.55rem;
    height: 0.55rem;
    padding: 0;
    border: 1px solid var(--border-color);
    border-radius: 50%;
    background:
        radial-gradient(circle at 50% 50%, var(--halftone-dot-strong) 0.5px, transparent 0.55px),
        var(--bg-paper);
    background-size: 3px 3px, auto;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.hg-dot[aria-selected="true"] {
    background: var(--accent-warm);
    border-color: var(--accent-warm);
    transform: scale(1.25);
}

@media (max-width: 900px) {
    .hg-slide-inner {
        grid-template-columns: 1fr;
        gap: 1.15rem;
    }
}

/* Publications */
.publications {
    margin-top: 1.5rem;
}

.publication-year {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-color);
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.65rem;
    border-bottom: 1px solid var(--border-color);
    background-image: radial-gradient(circle at 50% 100%, var(--accent-warm) 0.8px, transparent 0.85px);
    background-size: 4px 4px;
    background-repeat: repeat-x;
    background-position: 0 100%;
}

.publication-year:first-child {
    margin-top: 0;
}

.publication-item {
    display: flex;
    gap: 2rem;
    margin-bottom: 3rem;
    padding: 0;
    border: none;
    border-radius: 0;
    transition: none;
    background: transparent;
}

.publication-item:hover {
    border-color: transparent;
    box-shadow: none;
}

.publication-item:last-child {
    margin-bottom: 0;
}

.publication-thumb {
    flex-shrink: 0;
    width: min(520px, 58vw);
    margin: 0;
    margin-top: 0.1rem;
    align-self: flex-start;
    position: relative;
    padding: 0.35rem;
    background:
        radial-gradient(circle at 50% 50%, var(--halftone-dot-strong) 0.65px, transparent 0.7px),
        var(--bg-paper);
    background-size: var(--halftone-size-fine) var(--halftone-size-fine), auto;
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 6px var(--shadow-ink);
}

.publication-thumb::after {
    inset: 0.35rem;
}

.publication-thumb img,
.publication-thumb video {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: contain;
    border-radius: 1px;
    border: none;
    background: var(--bg-color);
    position: relative;
    z-index: 0;
}

.publication-authors a {
    color: var(--link-color);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
    transition: color 0.2s ease;
}

.publication-authors a:hover {
    color: var(--link-hover);
}

.publication-equal-star {
    color: var(--accent-warm);
    font-weight: 600;
}

.publication-content {
    flex: 1;
    min-width: 0;
}

.publication-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.65rem;
    line-height: 1.35;
}

.publication-title a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

.publication-title a:hover {
    color: var(--link-color);
    text-decoration: underline;
}

.publication-authors {
    font-size: 1.125rem;
    color: var(--secondary-text);
    margin-bottom: 0.65rem;
    margin-top: 1.25rem;
    line-height: 2.2;
    max-width: 85%;
}

.publication-authors strong {
    font-weight: 700;
    color: var(--text-color);
}

.publication-venue {
    font-size: 1.0625rem;
    font-weight: 400;
    color: var(--secondary-text);
    font-style: italic;
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

.publication-venue strong {
    color: var(--text-color);
    font-weight: 600;
}

.publication-note {
    font-size: 0.8125rem;
    color: var(--secondary-text);
    margin-top: 0.25rem;
    margin-bottom: 0.5rem;
}

.publication-note code {
    font-size: 0.95em;
}

.publication-links {
    margin-top: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    align-items: center;
    font-size: 1.0625rem;
}

.publication-links a {
    font-size: 1.0625rem;
    color: var(--link-color);
    text-decoration: none;
    transition: color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.95rem;
    border-radius: 2px;
    border: 1px solid var(--border-color);
    background:
        radial-gradient(circle at 50% 50%, var(--halftone-dot) 0.55px, transparent 0.6px),
        var(--bg-paper);
    background-size: var(--halftone-size-fine) var(--halftone-size-fine), auto;
    font-weight: 600;
}

.publication-links a:hover {
    color: var(--link-hover);
    border-color: var(--accent-warm);
    transform: translateY(-1px);
    text-decoration: none;
}

.publication-links a .link-icon {
    flex-shrink: 0;
    opacity: 0.8;
}

.publication-links a:hover .link-icon {
    opacity: 1;
}

.publication-links a:not(:last-child)::after {
    content: '';
    display: none;
}

.publication-links .link-unavailable,
.hg-links .link-unavailable {
    pointer-events: none;
    cursor: default;
}

/* Footer */
footer {
    padding: 2.5rem 0;
    margin-top: 5rem;
    text-align: center;
    color: var(--secondary-text);
    font-size: 0.875rem;
    border-top: 1px solid var(--border-color);
    background-image: radial-gradient(circle at 50% 0%, var(--halftone-dot) 0.6px, transparent 0.65px);
    background-size: var(--halftone-size) var(--halftone-size);
}

footer p {
    margin: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }

    .profile-section {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
    }

    .profile-aside {
        order: -1;
        width: 250px;
        margin-top: 0;
    }

    .profile-info {
        text-align: left;
        width: 100%;
    }

    .profile-info .intro {
        font-size: 1.125rem;
    }

    .profile-info-name {
        font-size: 2.125rem;
    }

    .publication-item {
        flex-direction: column;
        gap: 1rem;
    }

    .publication-thumb {
        width: 100%;
        max-width: 100%;
        margin-top: 0;
    }

    h1 {
        font-size: 1.875rem;
    }

    h2 {
        font-size: 1.375rem;
        margin-top: 2rem;
    }

    main {
        margin-top: 2rem;
    }

}

@media (max-width: 480px) {
    .profile-aside {
        width: 230px;
    }

    .profile-social {
        gap: 0.4rem;
    }

    .profile-section .profile-social svg.profile-social-icon {
        width: 34px !important;
        height: 34px !important;
        min-width: 34px;
        min-height: 34px;
    }

    .profile-info .intro {
        font-size: 1.0625rem;
    }

    .profile-info h1,
    .profile-info-name {
        font-size: 1.75rem;
    }
}

/* MapMyVisitors: script stays for stats; hide embedded map UI */
#mapmyvisitors-widget {
    display: none !important;
}

