/* Personal portfolio: shared palette, with a focused home-page layout. */
:root, html[data-theme="dark"] { color-scheme: dark; --global-bg-color: #1b191e; --global-text-color: #ede8e5; --global-link-color: #f2a3b9; --global-link-color-hover: #ffd2de; --global-link-color-visited: #f2a3b9; --global-border-color: #3a323b; --global-footer-bg-color: #211e25; --rose-accent: #f2a3b9; --rose-soft: #35252e; --rose-muted: #bdb0b9; --rose-surface: #242027; }
html { scroll-behavior: smooth; scroll-padding-top: 140px; }
body { background: var(--global-bg-color); }
a, button, summary { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--rose-accent); outline-offset: 5px; }
.masthead { background: var(--global-bg-color); border-bottom: 1px solid var(--global-border-color); }
.masthead__inner-wrap { max-width: 1200px; }
.greedy-nav { background: transparent; }
.greedy-nav a { color: var(--global-text-color); font-size: 15px; }
.greedy-nav .masthead__menu-item--lg a { font-family: Georgia, serif; font-size: 22px; font-weight: normal; }
#main.rose-home { float: none; width: auto; max-width: 1120px; margin: 0 auto; padding: 0 32px; font-size: 16px; line-height: 1.75; }
.rose-home p { margin: 0 0 1.2em; }
.rose-home a { text-decoration-thickness: 1px; text-underline-offset: 4px; }
.rose-home .eyebrow { color: var(--rose-accent); font: 600 11px/1.5 system-ui, sans-serif; letter-spacing: .16em; margin-bottom: 16px; }
.home-hero { display: grid; grid-template-columns: 1.45fr 1fr; align-items: center; gap: 44px; padding: 48px 0 40px; }
.rose-home h1 { font: normal clamp(44px, 5vw, 64px)/1.1 Georgia, serif; letter-spacing: -.055em; margin: 0 0 20px; }
.rose-dot { color: var(--rose-accent); }
.rose-home .hero-statement { font: normal clamp(25px, 2.5vw, 32px)/1.3 Georgia, serif; letter-spacing: -.025em; margin-bottom: 16px; }
.hero-statement em { color: var(--rose-accent); }
.hero-intro { color: var(--rose-muted); max-width: 510px; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 26px; margin-top: 22px; }
.rose-home .rose-button { display: inline-flex; align-items: center; gap: 24px; background: var(--rose-accent); color: var(--global-bg-color); text-decoration: none; padding: 13px 22px; border-radius: 7px; font-size: 14px; font-weight: 600; transition: transform .2s, box-shadow .2s; }
.rose-button:hover { transform: translateY(-3px); box-shadow: 0 8px 22px #a53d5825; }
.text-button { font-size: 14px; color: var(--global-text-color); }
.hero-socials { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 20px; }
.hero-socials a { font-size: 12px; color: var(--rose-muted); }
.portrait-frame { position: relative; padding: 15px; border: 1px solid var(--global-border-color); border-radius: 48% 48% 8px 8px; background: var(--rose-soft); transform: rotate(3deg); }
.portrait-frame .author__avatar-toggle { display: block; width: 100%; padding: 0; border: 0; border-radius: 48% 48% 5px 5px; overflow: hidden; background: transparent; cursor: pointer; }
.portrait-frame img { display: block; width: 100%; height: auto; aspect-ratio: 1 / 1.12; object-fit: cover; border-radius: 0; }
.portrait-mark { position: absolute; bottom: -20px; right: -20px; width: 72px; height: 72px; pointer-events: none; transform: rotate(-12deg); }
.portrait-frame .portrait-mark img { display: block; width: 100%; height: 100%; aspect-ratio: 1; object-fit: contain; filter: drop-shadow(0 3px 5px #0003); }
.rose-home .portrait-caption { margin: 30px 0 0; color: var(--rose-muted); font-size: 12px; text-align: center; }
.portrait-caption span { display: block; font-size: 10px; margin-top: 6px; }
.section-nav { position: sticky; top: 70px; z-index: 15; display: flex; gap: 28px; padding: 18px 0; background: var(--global-bg-color); border-top: 1px solid var(--global-border-color); border-bottom: 1px solid var(--global-border-color); overflow-x: auto; }
.section-nav a { color: var(--rose-muted); font-size: 13px; text-decoration: none; white-space: nowrap; }
.section-nav a:hover, .section-nav a[aria-current="location"] { color: var(--rose-accent); }
.section-nav a[aria-current="location"] { box-shadow: 0 2px var(--rose-accent); }
.home-section { padding: 40px 0; border-bottom: 1px solid var(--global-border-color); scroll-margin-top: 0; }
.rose-home h2 { font: normal 32px/1.2 Georgia, serif; letter-spacing: -.035em; margin: 0 0 20px; }
.rose-home h3 { font-size: 17px; margin: 28px 0 20px; }
.section-intro { max-width: 650px; color: var(--rose-muted); }
.research-card { background: var(--rose-surface); border: 1px solid var(--global-border-color); border-radius: 10px; margin-bottom: 12px; padding: 18px 22px; transition: border-color .2s; }
.research-card:hover { border-color: var(--rose-accent); }
.research-card summary { display: flex; justify-content: space-between; gap: 20px; align-items: center; cursor: pointer; list-style: none; }
.research-card summary::-webkit-details-marker { display: none; }
.research-card summary strong { font-size: 16px; font-weight: 600; }
.lab-heading { display: flex; align-items: center; gap: 22px; min-width: 0; }
.lab-heading > span:last-child { min-width: 0; }
.card-subtitle { display: block; font-size: 12px; color: var(--rose-muted); margin-top: 3px; }
.card-toggle { color: var(--rose-accent); font-size: 25px; font-weight: 300; transition: transform .2s; }
.research-card[open] .card-toggle { transform: rotate(45deg); }
.research-card p { margin: 20px 0 12px; color: var(--rose-muted); font-size: 14px; }
.research-card ul { font-size: 14px; padding-left: 20px; margin-bottom: 0; }
.research-card li { margin-bottom: 8px; }
.research-affiliation { font-size: 13px; color: var(--rose-muted); margin-top: 20px !important; }
.home-section > ul { padding-left: 22px; }
.home-section > ul li { margin-bottom: 12px; }
#publications > p:not(.eyebrow) { padding: 20px 24px; border-left: 2px solid var(--rose-accent); background: var(--rose-surface); font-size: 14px; }
.contact-note { position: relative; padding: 42px 0 48px; }
.contact-location { display: block; margin-top: 24px; font-size: 12px; color: var(--rose-muted); }
.page__footer { margin-top: 0; border-top: 1px solid var(--global-border-color); }
@media (max-width: 760px) { #main.rose-home { padding: 0 22px; } .home-hero { grid-template-columns: 1fr; gap: 45px; padding: 30px 0; } .hero-portrait { max-width: 300px; width: 80%; margin: 0 auto; } .hero-copy { max-width: 550px; } .section-nav { gap: 22px; } .home-section { padding: 30px 0; } .rose-home h2 { font-size: 30px; } .research-card { padding: 18px; } .masthead__inner-wrap { padding: 14px 18px; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; } }
/* Institution logos and contextual illustrations. */
.institution-logo { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 140px; width: 140px; height: 52px; vertical-align: middle; }
.institution-logo img { display: block; max-width: 100%; width: auto; height: auto; max-height: 48px; object-fit: contain; }
.institution-logo--seal, .institution-logo--brand-mark { flex-basis: 52px; width: 52px; }
.institution-logo--cornell img, .institution-logo--tiktok img { filter: invert(1); }
.institution-logo--oracle img { max-height: 38px; }
.author__urls .institution-logo { width: 20px; height: 20px; margin-right: 4px; }
.author__urls .institution-logo img { max-height: 20px; }
.interest-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin: 20px 0 26px; }
.interest-card { min-width: 0; padding: 20px; background: linear-gradient(145deg, var(--rose-soft), var(--rose-surface)); border: 1px solid var(--global-border-color); border-radius: 12px; }
.rose-home .interest-card h3 { font: 500 17px/1.4 Georgia, serif; margin: 0 0 10px; }
.rose-home .interest-card p { font-size: 12px; line-height: 1.7; color: var(--rose-muted); margin: 0; }
.education-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.education-stop { position: relative; min-height: 0; padding: 24px; border: 1px solid var(--global-border-color); border-radius: 12px; background: var(--rose-surface); }
.education-stop .institution-logo { margin-bottom: 18px; }
.rose-home .education-stop h3 { font: 21px/1.35 Georgia, serif; margin: 10px 0; }
.rose-home .education-stop p { font-size: 14px; color: var(--rose-muted); margin-bottom: 10px; }
.rose-home .education-stop .location-label { color: var(--rose-accent); font-size: 10px; letter-spacing: .13em; }
.rose-home .education-date { font-size: 12px !important; margin-top: 20px; }
.industry-card { display: grid; grid-template-columns: 105px minmax(0, 1fr); align-items: center; gap: 24px; padding: 18px 22px; background: var(--rose-surface); border: 1px solid var(--global-border-color); border-radius: 12px; margin-bottom: 16px; }
.industry-card .institution-logo { width: 100%; margin: 0; justify-content: center; }
.industry-card .institution-logo--brand-mark img { width: 44px; max-height: 44px; }
.industry-card p { font-size: 14px; color: var(--rose-muted); margin: 0; }
.rose-home .industry-card h3 { margin: 0 0 5px; font-size: 17px; line-height: 1.5; }
.rose-home .industry-card .industry-location { font-size: 12px; margin-bottom: 8px; }
.publication-timeline { position: relative; padding-left: 25px; border-left: 1px solid var(--global-border-color); }
.publication-card { position: relative; padding: 20px 24px; margin-bottom: 16px; background: var(--rose-surface); border: 1px solid var(--global-border-color); border-radius: 12px; }
.publication-card::before { content: ''; position: absolute; left: -32px; top: 43px; width: 11px; height: 11px; border: 3px solid var(--global-bg-color); border-radius: 50%; background: var(--rose-accent); }
.publication-card-meta { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.publication-card-meta time { color: var(--rose-accent); font: 23px Georgia, serif; }
.publication-card-meta .institution-logo { height: 32px; width: 90px; flex-basis: 90px; }
.publication-card-meta .institution-logo--seal { width: 32px; flex-basis: 32px; }
.publication-card-meta .institution-logo img { max-height: 32px; }
.venue-label { color: var(--rose-muted); font-size: 11px; }
.rose-home .publication-card h3 { font: 21px/1.35 Georgia, serif; margin: 20px 0 10px; }
.publication-card h3 a, .teaching-card h3 a { color: var(--global-text-color); text-decoration: none; }
.publication-card h3 a:hover, .teaching-card h3 a:hover { color: var(--rose-accent); }
.rose-home .paper-citation p { color: var(--rose-muted); font-size: 12px; line-height: 1.8; }
.paper-links { display: flex; flex-wrap: wrap; gap: 24px; font-size: 12px; }
.teaching-card { display: grid; grid-template-columns: 130px 1fr; gap: 24px; }
.teaching-date { position: relative; padding: 26px 16px 20px 0; font-size: 12px; color: var(--rose-accent); border-right: 1px solid var(--global-border-color); }
.timeline-dot { position: absolute; width: 9px; height: 9px; right: -5px; top: 32px; background: var(--rose-accent); border-radius: 50%; box-shadow: 0 0 0 5px var(--global-bg-color); }
.teaching-body { background: var(--rose-surface); border: 1px solid var(--global-border-color); border-radius: 12px; padding: 18px 22px; margin-bottom: 14px; min-width: 0; }
.teaching-card-meta { display: flex; align-items: center; gap: 16px; }
.teaching-card-meta .institution-logo { width: 32px; height: 32px; flex-basis: 32px; }
.teaching-card-meta .institution-logo img { max-height: 32px; }
.role-label { color: var(--rose-accent); font-size: 12px; }
.rose-home .teaching-card h3 { font: 21px/1.35 Georgia, serif; margin: 16px 0; }
.rose-home .teaching-card p { font-size: 13px; color: var(--rose-muted); }
@media (max-width: 950px) { .interest-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .education-grid { gap: 14px; } .education-stop { padding: 22px; } }
@media (max-width: 620px) { .interest-grid { gap: 10px; } .interest-card { padding: 15px; } .lab-heading { flex-direction: column; align-items: flex-start; gap: 12px; } .education-grid { grid-template-columns: 1fr; } .education-stop { min-height: auto; } .publication-timeline { padding-left: 17px; } .publication-card { padding: 18px; } .publication-card::before { left: -24px; } .teaching-card { grid-template-columns: 1fr; gap: 0; border-left: 1px solid var(--global-border-color); padding-left: 18px; } .teaching-date { border-right: 0; padding: 10px 0 14px; } .timeline-dot { left: -23px; top: 16px; } .teaching-body { padding: 18px; } }
@media (max-width: 380px) { .interest-grid { grid-template-columns: 1fr; } }
/* Small editorial illustrations sit alongside the content they describe. */
.context-art { display: block; flex: 0 0 110px; width: 110px; height: 100px; line-height: 0; }
.context-art img { display: block; width: 100%; height: 100%; object-fit: contain; border: 0; border-radius: 0; filter: drop-shadow(0 6px 10px #0002); }
.research-card summary { gap: 18px; }
.research-card summary .lab-heading { flex: 1; }
.research-card summary > .context-art { margin-left: auto; }
.research-card .card-toggle { flex-shrink: 0; }
.publication-card > .context-art, .teaching-body > .context-art { float: right; margin: -6px -8px 10px 24px; }
.publication-card::after, .teaching-body::after, .education-stop::after { content: ''; display: block; clear: both; }
.education-stop > .context-art { float: right; width: 110px; height: 100px; margin: -8px -10px 8px 12px; }
.context-art--detail { float: right; width: 170px; height: 150px; margin: 0 0 20px 24px; }
.page__content::after { content: ''; display: block; clear: both; }
@media (max-width: 760px) { .context-art { width: 110px; height: 100px; flex-basis: 110px; } .research-card .lab-heading { gap: 12px; } }
@media (max-width: 620px) { .research-card summary .lab-heading { flex-direction: column; align-items: flex-start; gap: 10px; } .research-card summary > .context-art { width: 85px; height: 85px; flex-basis: 85px; } .publication-card > .context-art, .teaching-body > .context-art { width: 95px; height: 90px; margin-left: 12px; } .education-stop > .context-art { width: 100px; height: 90px; } .context-art--detail { width: 120px; height: 110px; margin-left: 16px; } }
@media (max-width: 620px) { .publication-card h3, .teaching-card h3, .education-stop h3 { clear: both; } .research-card .institution-logo { max-width: 100%; } .education-stop .institution-logo { max-width: calc(100% - 115px); } }

/* Distinguish the teaching leadership role without adding extra vertical space. */
.teaching-card--head .teaching-body { border-color: var(--rose-accent); background: linear-gradient(130deg, var(--rose-soft), var(--rose-surface) 65%); box-shadow: inset 3px 0 var(--rose-accent); }
.teaching-card--head .timeline-dot { width: 11px; height: 11px; right: -6px; box-shadow: 0 0 0 5px var(--rose-soft); }
.role-label--head { display: inline-flex; padding: 5px 12px; border: 1px solid var(--rose-accent); border-radius: 30px; background: var(--rose-accent); color: var(--global-bg-color); font-weight: 700; }
@media (max-width: 620px) { .industry-card { grid-template-columns: 62px minmax(0, 1fr); gap: 15px; padding: 18px; } .industry-card .institution-logo { max-width: 62px; } .rose-home .industry-card h3 { font-size: 15px; } .teaching-card--head .timeline-dot { left: -24px; } .role-label--head { font-size: 11px; padding: 5px 10px; } }
/* Shared compact profile links and consistent pages for papers and courses. */
.hero-socials a { display: inline-flex; align-items: center; gap: 7px; }
.hero-socials i { color: var(--rose-accent); font-size: 14px; }
.education-stop .school-name { white-space: nowrap; font-size: clamp(18px, 2.1vw, 23px); }
.rose-home .portrait-caption { margin-top: 20px; font-size: 10px; }
.rose-home .back-link { display: inline-flex; margin-bottom: 20px; font-size: 12px; color: var(--rose-muted); text-decoration: none; }
.rose-home .back-link:hover { color: var(--rose-accent); }
#main.rose-detail, #main.rose-index { max-width: 1000px; padding-top: 28px; padding-bottom: 30px; }
.detail-article { margin: 0; }
.detail-kicker-row { display: flex; align-items: center; justify-content: space-between; gap: 22px; margin-bottom: 14px; }
.detail-context { display: flex; align-items: center; gap: 16px; min-width: 0; }
.detail-context .institution-logo { height: 38px; width: 100px; flex-basis: 100px; }
.detail-context .institution-logo--seal { width: 38px; flex-basis: 38px; }
.detail-context .institution-logo img { max-height: 38px; }
.rose-home .detail-context .eyebrow { margin: 0 0 8px; font-size: 10px; }
.rose-home .detail-venue { margin: 7px 0 0; font-size: 12px; color: var(--rose-muted); line-height: 1.5; }
.detail-art { flex: 0 0 110px; }
.rose-home.rose-detail h1 { font: normal clamp(28px, 4vw, 42px)/1.15 Georgia, serif; letter-spacing: -.03em; margin: 0 0 14px; max-width: 900px; }
.rose-home .detail-authors { font-size: 13px; color: var(--rose-muted); margin: 0 0 16px; }
.detail-resources { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; font-size: 12px; margin: 12px 0 24px; }
.detail-resources:empty { display: none; }
.detail-resources a { display: inline-flex; align-items: center; gap: 6px; }
.rose-home .detail-resources .rose-button { padding: 9px 16px; font-size: 12px; }
.detail-content { padding: 22px 26px; background: var(--rose-surface); border: 1px solid var(--global-border-color); border-radius: 12px; font-size: 15px; line-height: 1.75; overflow-wrap: anywhere; }
.rose-home .detail-content h2 { font: normal 26px/1.3 Georgia, serif; margin: 0 0 14px; }
.rose-home .detail-content h3 { margin: 20px 0 12px; }
.detail-content > :last-child { margin-bottom: 0; }
.detail-content img { max-width: 100%; }
.detail-citation { margin: 18px 0 0; font-size: 12px; color: var(--rose-muted); }
.detail-citation summary { cursor: pointer; color: var(--rose-accent); }
.rose-home .detail-citation p { margin: 12px 0 0; padding: 16px; background: var(--rose-surface); border-radius: 8px; }
.detail-pagination { display: flex; justify-content: space-between; gap: 24px; margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--global-border-color); font-size: 12px; }
.detail-pagination a { text-decoration: none; }
.detail-pagination a:last-child { margin-left: auto; }
.detail-profiles { padding-top: 8px; }
.rose-home.rose-index h1 { font-size: clamp(34px, 5vw, 48px); margin-bottom: 24px; }
.rose-index .index-content > p { font-size: 14px; }
.page__footer footer { padding-top: 18px; padding-bottom: 18px; font-size: 11px; }
@media (max-width: 620px) { #main.rose-detail, #main.rose-index { padding-top: 20px; } .detail-kicker-row { gap: 12px; } .detail-art { flex-basis: 80px; } .detail-art .context-art { width: 80px; height: 75px; } .detail-context { gap: 10px; } .detail-context .institution-logo--wordmark { width: 65px; flex-basis: 65px; } .detail-context .institution-logo--seal { width: 30px; flex-basis: 30px; } .detail-context .institution-logo img { max-height: 30px; } .detail-content { padding: 18px; font-size: 14px; } .detail-venue { font-size: 11px !important; } .hero-socials { gap: 12px 16px; } }
