@import url('fonts.css');

body {
    background-color: white;
    /* font-family: 'IBMPlexSans'; */
    font-family: 'Alegreya Sans';
    font-weight: normal;
}

i {
    font-style: italic;
}

b {
    font-weight: bold;
}

.serif {
    font-family: 'Alegreya';
}

.thin {
    font-weight: 100;
}

.lang-sc {
    font-family: 'ZhuZiGuDianS';
}

.lang-jp {
    font-family: 'Noto Serif JP';
}

.body-container {
    max-width: 800px;
    min-height: 100vh;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    flex-direction: column;
}

.content {
    flex: 1;
}

.avatar {
    width: 20vw;
    max-width: 200px;
    min-width: 80px;
    aspect-ratio: 1 / 1;
    border-radius: 10%;
    border: 2px solid #ede7f6;
    object-fit: cover;
    display: block;
    margin: 0 auto;
    float: right;
    margin-left: 0.8rem;
    margin-right: 0.8rem;
    margin-bottom: 1rem;
}

.name-line {
    font-family: 'Alegreya';
    margin-top: 0.8rem;
    margin-bottom: 0.8rem;
}

.email-line {
    white-space: nowrap;
}

@media only screen and (max-width: 700px) {
    body {
        font-size: 1em;
    }
    .avatar {
        margin-top: 4rem;
    }
    .name-line {
        font-size: 2em;
    }
    .name {
        display: block;
    }
    .info {
        display: flex;
        flex-direction: column;
        gap: 0.25rem;
    }
}

@media only screen and (min-width: 700px) {
    body {
        font-size: 1.1em;
    }
    .avatar {
        margin-top: 5rem;
    }
    .name-line {
        font-size: 2.5em;
    }
    .name {
        display: inline;
    }
    .info {
        flex-direction: row;
        gap: 0;
    }
    .info span:not(:last-child)::after {
        content: "・";
    }
}

#footnote {
    font-size: 0.8em;
    color: #777;
    text-align: center;
    padding: 1rem;
    border-top: 1px solid #e0e0e0;
    font-variant-numeric: oldstyle-nums;
}

a:link {
    color: #5e35b1;
}

a:visited {
    color: #5e35b1;
}

button {
    font-family: inherit;
    font-weight: inherit;
}

.publication-list {
    list-style: none;
    padding-left: 0;
}

.publication-item {
    margin-bottom: 1.5rem;
}

.publication-title {
    margin: 0.3em 0;
}

.publication-title .pub-link {
    position: relative;
    text-decoration: none;
    font-size: 0.9em;
}

/* Tooltip styling. */
.publication-title .pub-link::after {
    content: attr(data-tooltip); /* use the data-tooltip attribute */
    position: absolute;
    bottom: 120%;               /* above the icon */
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: #fff;
    padding: 2px 6px;
    font-size: 0.75em;
    white-space: nowrap;
    border-radius: 3px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
    z-index: 10;
}

/* Show tooltip on hover. */
.publication-title .pub-link:hover::after {
    opacity: 1;
}

.fallback {
    display: none;
}

@supports not (font-variation-settings: normal) {
    .fallback { display: inline; }
}

.abstract-button {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.abstract-text {
    display: none;
    margin-left: 1em;
}

.abstract-text.open {
    display: block;
}

.inline-diagram {
    display: inline-block;
    width: 45%;
    height: auto;
    float: right;
    margin: 0 0 0 0.1em;
    vertical-align: middle;
}


@media only screen and (max-width: 700px) {
    .inline-diagram {
        float: none;
        display: block;
        width: 100%;
        margin-top: 0.5em;
    }
}

.section {
    margin-top: 2em;
}
