@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;700&display=swap');

:root {
    --bg: #fdeff2;
    --fg: #1a1a1a;
    --muted: #8a6772;
    --accent: #c2185b;
    --rule: #efd6dd;
}

* { box-sizing: border-box; }

body {
    font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
    background: var(--bg);
    color: var(--fg);
    font-size: 13px;
    line-height: 1.65;
    max-width: 720px;
    margin: 44px auto;
    padding: 0 28px 80px;
}

a {
    color: var(--accent);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

img { mix-blend-mode: normal; }

h1 {
    font-size: 22px;
    margin: 0;
    font-weight: 700;
    letter-spacing: -0.015em;
    line-height: 1.2;
}

h2 { font-size: 16px; margin: 0; }

h3 {
    font-size: 13px;
    margin: 28px 0 10px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
    font-weight: 700;
}

.subtitle {
    color: var(--muted);
    font-size: 13px;
    margin: 4px 0 0;
}

.subtitle a { color: var(--muted); }

.horizontal-line {
    border-top: 1px solid var(--rule);
    margin: 6px 0 22px;
    height: 0;
    border-image: none;
    padding: 0;
}

/* head/intro block with photo */
.description-and-picture {
    display: flex;
    flex-direction: row;
    gap: 28px;
    align-items: center;
    margin-top: 0;
    margin-bottom: 22px;
    --picture-width: 108px;
}

.description-and-picture > div:first-child > p:first-child { margin-top: 0; }
.description-and-picture ul { margin-bottom: 0; }
.description-and-picture ul li:last-child { margin-bottom: 0; }

.description-and-picture > div:first-child { flex: 1; min-width: 0; }

.description-and-picture .my-figure {
    margin: 0;
    flex-basis: var(--picture-width);
    flex-shrink: 0;
}

.description-and-picture .my-figure img {
    width: 100%;
    border-radius: 50%;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.5);
    filter: grayscale(0.4) contrast(1.02);
    display: block;
}

@media (max-width: 500px) {
    .description-and-picture {
        flex-direction: column-reverse;
        gap: 14px;
    }
    .description-and-picture .my-figure {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .description-and-picture .my-figure img {
        width: var(--picture-width);
    }
}

/* lists — mono bullets */
ul {
    list-style: none;
    margin: 0 0 14px;
    padding: 0;
    position: static;
}

li {
    margin: 4px 0;
    padding-left: 18px;
    position: relative;
}

li::before {
    content: "*";
    color: var(--accent);
    position: absolute;
    left: 0;
    font-weight: 700;
}

ol { margin: 0; }

/* nav — section titles that link out to Scholar / GitHub / blog index */
.nav-links {
    margin: 28px 0 0;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--rule);
    /* inherits h3: uppercase, letter-spacing, muted, bold, 13px */
}

.nav-links a {
    color: inherit;
    text-decoration: none;
    transition: color 0.12s ease;
    white-space: nowrap;
}

.nav-links a::after {
    content: "↗";
    font-size: 0.9em;
    margin-left: 2px;
    display: inline-block;
    vertical-align: super;
    line-height: 1;
    font-weight: 400;
}

.nav-links a:hover { color: var(--accent); }

.nav-icon { display: none; }

/* sections */
.section { margin-bottom: 24px; }

details {
    border-bottom: 1px solid var(--rule);
    margin-bottom: 0;
}

summary {
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    padding: 9px 0;
    list-style: none;
    display: flex;
    align-items: baseline;
    gap: 8px;
}

summary::-webkit-details-marker { display: none; }
summary::before {
    content: "[+]";
    color: var(--accent);
    flex-shrink: 0;
}
details[open] summary::before { content: "[-]"; }

summary .count {
    color: var(--muted);
    font-weight: 400;
    margin-left: auto;
    white-space: nowrap;
}

/* hide the inline horizontal rules that the summaries embed —
   the details border-bottom does that job now */
summary .horizontal-line { display: none; }

/* paper / software / blog listings inside details */
details ul { margin: 10px 0 16px; }

details li {
    padding-left: 18px;
    margin: 12px 0;
}

div.authors {
    font-size: 12px;
    color: var(--muted);
    margin-top: 3px;
    line-height: 1.55;
    padding-left: 0;
}

div.authors::before { content: none; }
div.authors a { color: var(--accent); }

/* italics within bullets — keep current italic emphasis */
li i, li em { font-style: italic; color: var(--fg); }

/* contact section */
.heart { font-size: 9px; color: var(--accent); }

/* selection */
::selection { background: var(--accent); color: var(--bg); }
