:root {
    --bg: #fbfaf7;
    --panel: rgba(255, 255, 255, 0.82);
    --text: #171717;
    --muted: #706d66;
    --rule: #d8d2c8;
    --rule-soft: rgba(216, 210, 200, 0.55);
    --shadow: rgba(23, 23, 23, 0.04);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 12px;
}

body {
    margin: 0;
    font-family: var(--font-sans, "Public Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);
    font-weight: 500;
    background: #fff;
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
}

.shell {
    width: min(1180px, calc(100vw - 48px));
    margin: 0 auto;
}

.main-header {
    position: sticky;
    top: 0;
    z-index: 40;
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--rule-soft);
}

.header-shell {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    width: min(1180px, calc(100vw - 48px));
    margin: 0 auto;
    gap: 12px 24px;
    padding: clamp(14px, 2vw, 20px) 0;
}

.logo {
    text-decoration: none;
    font-size: 1.22rem;
    font-weight: 500;
    letter-spacing: -0.01em;
}

.main-nav ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px clamp(14px, 1.8vw, 24px);
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-nav {
    margin-left: auto;
    max-width: min(100%, 720px);
}

.main-nav a {
    display: inline-block;
    position: relative;
    text-decoration: none;
    color: var(--muted);
    font-size: 1.05rem;
    letter-spacing: 0.04em;
    padding-bottom: 2px;
    transition: color 0.2s ease;
}

.main-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1px;
    background: currentColor;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.main-nav a.nav-disabled {
    color: var(--muted);
    opacity: 0.55;
    pointer-events: none;
}

.main-nav a.nav-disabled::after {
    opacity: 0;
}

.main-nav a.is-active,
.main-nav a:hover {
    color: var(--text);
}

.main-nav a.nav-current {
    color: var(--text);
}

.main-nav a.is-active::after,
.main-nav a:hover::after,
.main-nav a.nav-current::after {
    opacity: 1;
}

.page-shell {
    padding: 36px 0 72px;
}

.home-layout {
    display: grid;
    grid-template-columns: minmax(252px, 296px) minmax(0, 1fr);
    gap: clamp(28px, 4.8vw, 68px);
    align-items: start;
}

.identity-sticky {
    position: sticky;
    top: 104px;
}

.profile-image {
    display: block;
    width: min(72%, 210px);
    aspect-ratio: 1 / 1;
    object-fit: cover;
    object-position: center 24%;
    border: 1px solid var(--rule);
    border-radius: 50%;
    box-shadow: 0 22px 40px var(--shadow);
    margin: 16px auto 30px;
}

.identity-kicker {
    font-size: 1.14rem;
    letter-spacing: 0.02em;
    color: var(--muted);
    text-align: center;
    margin: 0 0 18px;
}

.identity-rail h1 {
    margin: 0 0 18px;
    font-size: 4.2rem;
    line-height: 0.95;
    letter-spacing: -0.06em;
    font-weight: 600;
    text-align: center;
}

.identity-bio {
    margin: 0 0 28px;
    font-size: 1.45rem;
    line-height: 1.7;
    max-width: 24ch;
}

.identity-meta {
    display: grid;
    gap: 16px;
    margin: 0 0 26px;
    padding-top: 20px;
    border-top: 1px solid var(--rule);
}

.identity-meta div {
    display: grid;
    gap: 6px;
}

.identity-meta dt {
    font-size: 1.14rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    color: var(--text);
}

.identity-meta dd {
    margin: 0;
    font-size: 1.14rem;
    font-weight: 400;
    line-height: 1.7;
}

.identity-meta a,
.identity-links a,
.contact-item {
    text-decoration: none;
}

.identity-links {
    display: grid;
    gap: 10px;
}

.identity-links a {
    display: inline-block;
    width: max-content;
    font-size: 1.14rem;
    font-weight: 500;
    padding-bottom: 2px;
    border-bottom: 1px solid var(--rule);
    transition: border-color 0.2s ease, color 0.2s ease;
}

.identity-links a:hover,
.contact-item:hover {
    border-color: var(--text);
    color: var(--text);
}

.identity-links .disabled-link {
    color: var(--muted);
    border-bottom-color: transparent;
    pointer-events: none;
}

.document-column {
    display: grid;
    gap: 0;
}

.section-block {
    border-top: 1px solid var(--rule);
    padding: 24px 0;
}

.section-block:first-child {
    border-top: none;
    padding-top: 0;
}

.section-block:last-child {
    padding-bottom: 0;
}

.section-block[id] {
    scroll-margin-top: 92px;
}

.section-label {
    margin: 0 0 18px;
    font-size: 1.14rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    color: var(--text);
}

.section-body {
    display: grid;
    gap: 16px;
}

.statement-block .section-body {
    min-width: 0;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 10%, #000 90%, transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0%, #000 10%, #000 90%, transparent 100%);
}

.statement-text {
    display: inline-block;
    margin: 0;
    max-width: none;
    padding-left: 100%;
    width: max-content;
    font-size: 1.14rem;
    font-weight: 500;
    font-family: var(--font-serif);
    color: var(--text);
    line-height: 1.7;
    letter-spacing: -0.02em;
    white-space: nowrap;
    animation: statement-marquee 34s linear infinite;
}

@keyframes statement-marquee {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-100%);
    }
}

.news-panel-grid {
    --news-scroll-height: 22rem;
    --news-panel-bg: #fdfcfb;
    --news-panel-collapsed-bg: #f6f2eb;

    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.education-list {
    display: grid;
    align-content: start;
    gap: 18px;
    min-width: 0;
    padding: 18px;
    border: 1px solid var(--rule-soft);
    border-radius: 10px;
    background-color: var(--news-panel-bg);
    cursor: pointer;
    transition:
        gap 0.28s ease,
        background-color 0.28s ease;
}

.education-list.is-collapsed {
    gap: 0;
    background-color: var(--news-panel-collapsed-bg);
}

.news-toggle {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    width: max-content;
    padding: 0;
    border: none;
    background: none;
    font-family: inherit;
    font-size: 1.14rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    color: var(--text);
    cursor: pointer;
    transition: color 0.2s ease;
}

.news-toggle:hover {
    color: var(--text);
}

.news-toggle:focus-visible {
    outline: 1px solid var(--muted);
    outline-offset: 4px;
}

.news-toggle-icon {
    display: inline-block;
    transform: rotate(90deg);
    transform-origin: center;
    transition: transform 0.2s ease;
}

.education-list.is-collapsed .news-toggle-icon {
    transform: rotate(0deg);
}

.education-list.is-collapsed .news-scroll-area {
    max-height: 0;
    opacity: 0;
    margin-top: 0;
    padding-right: 0;
    overflow: hidden;
    pointer-events: none;
}

.news-scroll-area {
    height: var(--news-scroll-height);
    max-height: var(--news-scroll-height);
    opacity: 1;
    margin-top: 0;
    cursor: auto;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding-right: 10px;
    scrollbar-gutter: stable;
    touch-action: pan-y;
    scrollbar-width: thin;
    scrollbar-color: var(--rule) transparent;
    transition:
        max-height 0.28s ease,
        opacity 0.22s ease,
        margin-top 0.28s ease,
        padding-right 0.28s ease;
    will-change: max-height, opacity;
}

.news-scroll-area.is-draggable {
    cursor: grab;
}

.news-scroll-area.is-dragging {
    cursor: grabbing;
    user-select: none;
}

@media (prefers-reduced-motion: reduce) {
    .education-list,
    .statement-text,
    .news-toggle-icon,
    .news-scroll-area {
        transition: none;
    }

    .statement-block .section-body {
        -webkit-mask-image: none;
        mask-image: none;
    }

    .statement-text {
        width: auto;
        padding-left: 0;
        white-space: normal;
        animation: none;
    }
}

.entry-list,
.item-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

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

.entry-item {
    padding-bottom: 14px;
    border-bottom: 1px solid var(--rule-soft);
}

.entry-item:last-child {
    padding-bottom: 0;
    border-bottom: none;
}

.entry-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px 20px;
    align-items: baseline;
}

.entry-title {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 400;
    line-height: 1.55;
}

.entry-meta,
.entry-detail,
.item-list .authors,
.item-list .venue {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 1.05rem;
    font-weight: 400;
    line-height: 1.7;
}

.entry-meta {
    margin: 0;
    text-align: right;
    white-space: nowrap;
}

.entry-detail {
    margin-top: 6px;
}

.item-list {
    display: grid;
    gap: 24px;
}

.item-list li {
    padding-bottom: 24px;
    border-bottom: 1px solid var(--rule-soft);
}

.item-list li:last-child {
    padding-bottom: 0;
    border-bottom: none;
}

.item-list h3 {
    margin: 0 0 8px;
    font-size: 1.45rem;
    font-weight: 500;
    line-height: 1.55;
    letter-spacing: -0.02em;
}

.item-list h3 a {
    text-decoration: none;
}

.item-list h3 a:hover {
    text-decoration: underline;
}

.item-list h3 a.disabled-link:hover {
    text-decoration: none;
}

.item-list .authors .author-self {
    color: var(--text);
    font-weight: 500;
}

.item-list .links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 16px;
    margin-top: 14px;
}

.item-list .links a {
    color: var(--text);
    font-size: 1rem;
    text-decoration: none;
    padding-bottom: 2px;
    border-bottom: 1px solid var(--rule);
    transition: border-color 0.2s ease, color 0.2s ease;
}

.item-list .links a:hover {
    border-color: var(--text);
}

.item-list .links a[href="#"],
.item-list .links .disabled-link {
    color: var(--muted);
    border-bottom-color: transparent;
}

.item-list .links .disabled-link {
    pointer-events: none;
}

.home-contact {
    display: none;
}

.contact-section {
    text-align: center;
}

.contact-links {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    gap: clamp(10px, 1.6vw, 20px);
    min-width: 0;
}

.contact-links a {
    flex: 0 1 auto;
    white-space: nowrap;
    font-size: clamp(0.95rem, 1.08vw, 1.14rem);
    font-weight: 500;
    text-decoration: none;
    padding-bottom: 2px;
    border-bottom: 1px solid var(--rule);
    transition: border-color 0.2s ease, color 0.2s ease;
}

.contact-links a:hover {
    border-color: var(--text);
}

.contact-links .disabled-link {
    color: var(--muted);
    border-bottom-color: transparent;
    pointer-events: none;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 24px;
}

.contact-item {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    padding: 14px 0;
    border-bottom: 1px solid var(--rule-soft);
    font-size: 1.05rem;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.contact-item span {
    color: var(--muted);
}

.contact-item strong {
    font-size: 1.1rem;
    font-weight: 500;
}

.contact-item.is-disabled {
    color: var(--muted);
    cursor: default;
}

.contact-item.is-disabled:hover {
    border-color: var(--rule-soft);
    color: var(--muted);
}

.main-footer {
    padding: 0 0 32px;
}

.copyright {
    margin: 0;
    padding-top: 18px;
    border-top: 1px solid var(--rule-soft);
    color: var(--muted);
    font-size: 0.95rem;
    text-align: center;
}

@media (max-width: 960px) {
    .home-layout {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .identity-sticky {
        display: grid;
        grid-template-areas:
            "profile name"
            "profile kicker"
            "meta meta"
            "links links";
        grid-template-columns: clamp(76px, 14vw, 112px) minmax(0, 1fr);
        gap: 8px 18px;
        justify-content: start;
        align-items: center;
        position: static;
    }

    .profile-image {
        grid-area: profile;
        width: 100%;
        box-shadow: 0 12px 24px var(--shadow);
        margin: 0;
    }

    .identity-rail h1 {
        grid-area: name;
        align-self: end;
        margin: 0 0 2px;
        text-align: left;
    }

    .identity-kicker {
        grid-area: kicker;
        align-self: start;
        margin: 0;
        text-align: left;
    }

    .identity-rail {
        margin-bottom: 0;
    }

    .identity-meta {
        grid-area: meta;
        justify-self: stretch;
        margin-top: 18px;
        margin-bottom: 12px;
    }

    .identity-links {
        grid-area: links;
        justify-self: stretch;
    }

    .document-column {
        gap: 0;
    }
}

@media (max-width: 860px) {
    .header-shell {
        align-items: flex-start;
    }

    .main-nav {
        margin-left: 0;
        width: 100%;
        max-width: none;
    }

    .main-nav ul {
        justify-content: flex-start;
        gap: 10px 16px;
    }
}

@media (max-width: 960px) {
    .shell {
        width: min(100vw - 32px, 1180px);
    }

    .header-shell {
        width: min(100vw - 32px, 1180px);
    }

    .page-shell {
        padding: 32px 0 56px;
    }

    .identity-rail h1 {
        font-size: 2.6rem;
    }

    .identity-meta {
        gap: 12px;
    }

    .identity-meta div {
        grid-template-columns: minmax(104px, auto) minmax(0, 1fr);
        gap: 0 14px;
        align-items: start;
    }

    .identity-meta dt,
    .identity-meta dd {
        font-size: 1.08rem;
        line-height: 1.5;
    }

    .identity-meta dt {
        white-space: nowrap;
    }

    .identity-meta dd {
        min-width: 0;
        white-space: normal;
        overflow-wrap: anywhere;
    }

    .identity-meta .meta-block-stacked {
        display: none;
    }

    .identity-links {
        display: none;
    }

    .statement-text {
        font-size: 1.14rem;
    }

    .statement-block {
        display: grid;
        grid-template-columns: minmax(104px, auto) minmax(0, 1fr);
        gap: 0 14px;
        align-items: start;
        padding-top: 0;
    }

    .statement-block .section-label {
        margin: 0;
        white-space: nowrap;
        font-size: 1.08rem;
        line-height: 1.5;
    }

    .statement-block .section-body {
        gap: 0;
    }

    .statement-block .statement-text {
        line-height: 1.5;
    }

    .entry-head {
        grid-template-columns: 1fr;
        gap: 2px;
    }

    .entry-meta {
        text-align: left;
        white-space: normal;
    }

    .entry-item--news-event {
        display: grid;
        gap: 2px;
    }

    .entry-item--news-event .entry-head {
        display: contents;
    }

    .entry-item--news-event .entry-title {
        order: 1;
    }

    .entry-item--news-event .entry-detail {
        order: 2;
        margin-top: 0;
    }

    .entry-item--news-event .entry-meta {
        order: 3;
        margin-top: 0;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .contact-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .home-contact {
        display: block;
    }
}

@media (max-width: 720px) {
    .news-panel-grid {
        --news-scroll-height: 18rem;

        grid-template-columns: 1fr;
    }

    .contact-links {
        justify-content: center;
    }

    .contact-links a {
        font-size: clamp(0.95rem, 1.08vw, 1.14rem);
        line-height: 1.35;
    }
}
