/* Orange adaptation of Minimal Light. Keep upstream theme files separate. */
:root {
    --accent: #b45309;
    --accent-hover: #873900;
    --accent-soft: #fff5eb;
    --text: #4c4540;
    --text-strong: #2c2723;
    --muted: #746b63;
    --line: #ecdfd3;
    --global-theme-color: var(--accent);
    --global-hover-color: var(--accent-hover);
    color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 30px; }
body { font-size: 18px; line-height: 1.55; color: var(--text); background: #fff; padding: 0 32px; }
a { color: var(--accent); }
a:hover { color: var(--accent-hover); text-decoration: underline; text-underline-offset: 3px; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; border-radius: 2px; }
strong { color: var(--text-strong); font-weight: 600; }
h1, h2, h3, h4 { color: var(--accent); }
h2 { font-size: 27px; font-weight: 600; line-height: 1.25; margin: 0 0 18px; }
p { margin: 0 0 16px; }

.wrapper { width: 1080px; max-width: 100%; margin: 0 auto; display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 76px; align-items: start; }
header.profile { width: auto; float: none; position: sticky; top: 48px; padding: 0; margin-top: 72px; text-align: center; }
.image.avatar { display: inline-block; margin-bottom: 20px; }
.image.avatar img { display: block; width: 150px; height: 150px; padding: 0; object-fit: cover; border-radius: 50%; border: 5px solid var(--accent-soft); }
.profile h1 { margin: 0 0 14px; font-size: 30px; line-height: 1.2; font-weight: 600; }
.profile .position { color: var(--text-strong); font-size: 18px; line-height: 1.4; margin-bottom: 5px; }
.profile .affiliation { margin-bottom: 5px; }
.profile .location { font-size: 16px; color: var(--muted); margin-bottom: 17px; }
.profile .email { font-family: "Ubuntu Mono", monospace; font-size: 15px; }
.social-links { display: flex; gap: 15px; justify-content: center; margin: 27px 0 24px; }
.social-links a { display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 48px; padding: 5px; font-size: 14px; line-height: 1.3; border-radius: 7px; }
.social-links a:hover { background: var(--accent-soft); text-decoration: none; }
.social-links svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linejoin: round; stroke-linecap: round; }
.section-links { display: flex; justify-content: center; gap: 16px; border-top: 1px solid var(--line); padding-top: 20px; font-size: 16px; }

main { min-width: 0; padding: 72px 0 30px; }
main section { width: auto; float: none; padding: 0; border: 0; margin: 0 0 38px; }
.research-list { padding-left: 21px; margin: 0; }
.research-list li { padding-left: 3px; margin-bottom: 9px; }
.research-list li::marker { color: var(--accent); }
.publication-note { font-size: 16px; color: var(--muted); margin-bottom: 28px; }
.publications { margin-top: 0; }
.publications ol.bibliography { margin: 0; }
.publications ol.bibliography li.pub-row { display: grid; grid-template-columns: 185px minmax(0, 1fr); gap: 24px; align-items: center; margin: 0 0 32px; min-height: 0; }
.paper-figure { display: block; position: relative; padding: 10px; border: 1px solid var(--line); border-radius: 7px; background: #fff; box-shadow: 0 3px 10px rgb(89 52 22 / 7%); }
.paper-figure:hover { border-color: var(--accent); }
.paper-figure img { display: block; width: 100%; height: 124px; object-fit: contain; }
.paper-figure .badge { position: absolute; top: -9px; left: 10px; background: var(--accent); color: #fff; padding: 4px 8px; border-radius: 3px; font-size: 12px; font-weight: 500; box-shadow: none; }
.publications .title { font-size: 19px; line-height: 1.3; margin: 0 0 7px; font-weight: 600; }
.paper-details { min-width: 0; }
.author { font-size: 16px; line-height: 1.45; margin: 0 0 6px; }
.periodical { font-size: 16px; line-height: 1.4; margin: 0 0 9px; }
.links { display: flex; flex-wrap: wrap; gap: 7px; }
.publications ol.bibliography li .links a.btn { display: inline-block; color: var(--accent); border: 1px solid #d4a480; border-radius: 4px; padding: 2px 9px; font-size: 13px; line-height: 1.45; text-decoration: none; }
.publications ol.bibliography li .links a.btn:hover { color: #fff; border-color: var(--accent); background: var(--accent); }
.year { display: flex; align-items: center; gap: 14px; color: var(--muted); font-size: 18px; font-weight: 500; margin: 24px 0 17px; }
.year::after { content: ""; height: 1px; background: var(--line); flex: 1; }
.other-publications { list-style: none; padding: 0; margin: 0; }
.other-publications li { margin: 0 0 23px; }
.other-publications h4 { font-size: 18px; line-height: 1.35; font-weight: 600; margin: 0 0 6px; }
footer.site-footer { float: none; position: static; width: auto; border-top: 1px solid var(--line); margin-top: 34px; padding-top: 18px; text-align: left; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 18px; color: var(--muted); font-size: 14px; }
.site-footer p { margin: 0; }
.skip-link { position: fixed; z-index: 10; top: -100px; left: 12px; padding: 9px 15px; color: #fff; background: var(--accent); }
.skip-link:focus { top: 12px; }

@media (max-width: 960px) {
    body { padding: 0 28px; }
    .wrapper, div.wrapper { width: 100%; margin: 0 auto; grid-template-columns: 210px minmax(0, 1fr); gap: 40px; }
    header.profile { top: 32px; margin-top: 48px; }
    main { padding-top: 48px; }
    .profile h1 { font-size: 28px; }
    .publications ol.bibliography li.pub-row { grid-template-columns: 145px minmax(0, 1fr); gap: 18px; }
    .paper-figure img { height: 110px; }
    .section-links { gap: 10px; }
}

@media (max-width: 760px) {
    body { padding: 0 24px; }
    .wrapper, div.wrapper { display: block; max-width: 650px; }
    header.profile { position: static; margin: 0; padding: 38px 0 30px; }
    .image.avatar { margin-bottom: 14px; }
    .image.avatar img { width: 124px; height: 124px; padding: 0; }
    .social-links { margin: 20px 0; }
    .section-links { max-width: 300px; margin: 0 auto; gap: 26px; padding-top: 17px; }
    main { padding-top: 20px; }
    main section { margin-bottom: 32px; }
    .publications ol.bibliography li.pub-row { grid-template-columns: 160px minmax(0, 1fr); }
}

@media (max-width: 480px) {
    body { padding: 0 22px; font-size: 17px; }
    h2 { font-size: 25px; }
    .publications ol.bibliography li.pub-row { display: block; margin-bottom: 32px; }
    .paper-figure { width: 100%; max-width: 270px; margin: 0 0 17px; }
    .paper-figure img { height: 146px; }
    .publications .title { font-size: 19px; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media print {
    body { padding: 0; color: #222; }
    .wrapper { display: block; }
    header.profile { position: static; margin-top: 0; }
    main { padding-top: 25px; }
    .section-links, .skip-link { display: none; }
    .pub-row, .other-publications li { break-inside: avoid; }
}
