@font-face { font-family: "Source Serif 4"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/source-serif-4-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Source Serif 4"; font-style: italic; font-weight: 400; font-display: swap; src: url("/fonts/source-serif-4-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Source Serif 4"; font-style: normal; font-weight: 600; font-display: swap; src: url("/fonts/source-serif-4-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/source-sans-3-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-style: normal; font-weight: 600; font-display: swap; src: url("/fonts/source-sans-3-latin-600-normal.woff2") format("woff2"); }
:root {
  --paper: #fbfaf8; --ink: #232120; --muted: #6a6560; --rule: #dcd7d0; --accent: #78232d;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "Source Sans 3", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--serif); font-size: 17px; line-height: 1.65; -webkit-text-size-adjust: 100%; }
a { color: var(--accent); text-underline-offset: 2px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.wrap { max-width: 47rem; margin: 0 auto; padding: 2.2rem 1.3rem 3rem; }
header.top { display: flex; gap: 1.5rem; align-items: flex-start; border-bottom: 1px solid var(--ink); padding-bottom: .8rem; margin-bottom: 2rem; }
header.top h1 { font-size: 2.1rem; font-weight: 600; margin: 0; line-height: 1.15; }
header.top .role { margin: .2rem 0 .9rem; color: var(--muted); font-style: italic; }
.bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: .4rem 1rem; font-family: var(--sans); font-size: .95rem; }
nav.main { display: flex; flex-wrap: wrap; gap: .2rem 1.2rem; }
nav.main a { color: var(--ink); text-decoration: none; padding-bottom: 1px; border-bottom: 2px solid transparent; }
nav.main a:hover { border-bottom-color: var(--rule); }
nav.main a[aria-current="page"] { border-bottom-color: var(--accent); color: var(--accent); font-weight: 600; }
.lang button { font: inherit; background: none; border: 0; padding: 0 .15rem; cursor: pointer; color: var(--muted); }
.lang button[aria-pressed="true"] { color: var(--accent); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.lang span { color: var(--rule); }
.view h2 { font-size: 1.55rem; font-weight: 600; margin: 0 0 1.1rem; line-height: 1.25; }
.view h3 { font-size: 1.12rem; font-weight: 600; margin: 2.2rem 0 .7rem; color: var(--accent); }
p { margin: 0 0 1rem; text-align: justify; hyphens: auto; -webkit-hyphens: auto; }
.entry .ttl, .entry .by, .entry .jr, .interests, .role { text-align: left; hyphens: manual; }
html { -webkit-hyphenate-limit-before: 3; }
.muted { color: var(--muted); }
.portrait { width: 8.5rem; height: 10.6rem; object-fit: cover; object-position: 50% 30%; border: 1px solid var(--rule); flex: none; }
.id { flex: 1; min-width: 0; }
.intro-old img { float: left; width: 11.5rem; height: auto; margin: .2rem 1.4rem .6rem 0; border: 1px solid var(--rule); }
.interests { font-family: var(--sans); font-size: .95rem; color: var(--muted); }
.news { list-style: none; margin: 0; padding: 0; }
.news li { margin-bottom: .6rem; }
.news time { font-family: var(--sans); font-size: .92rem; color: var(--muted); margin-right: .6rem; }
.entry { display: grid; grid-template-columns: 3.6rem minmax(0,1fr); gap: 0 1rem; padding: .7rem 0; }
.entry .yr { font-family: var(--sans); font-size: .92rem; color: var(--muted); padding-top: .15rem; }
.entry .ttl { margin: 0; font-weight: 600; line-height: 1.4; }
.entry .by, .entry .jr { margin: 0; font-size: .97rem; }
.entry .meta { margin: .2rem 0 0; font-family: var(--sans); font-size: .88rem; color: var(--muted); }
.entry .meta a { margin-left: .8rem; }
.entry .meta .tag { margin-left: 0; }
details { margin-top: .3rem; }
details summary { cursor: pointer; font-family: var(--sans); font-size: .88rem; color: var(--accent); width: fit-content; }
details p { font-size: .95rem; margin-top: .4rem; }
.tablewrap { overflow-x: auto; margin: 0 0 1rem; }
table { border-collapse: collapse; width: 100%; font-size: .95rem; }
th, td { text-align: left; padding: .3rem .8rem .3rem 0; vertical-align: top; border-bottom: 1px solid var(--rule); }
th { font-family: var(--sans); font-size: .85rem; font-weight: 600; color: var(--muted); border-bottom: 1px solid var(--ink); }
td.num, th.num { text-align: right; padding-right: 1rem; font-variant-numeric: tabular-nums; }
tfoot td { font-weight: 600; border-top: 1px solid var(--ink); border-bottom: 0; }
.course { padding: .5rem 0 .7rem; }
.course h4 { margin: 0; font-size: 1rem; }
.course .sub { font-family: var(--sans); font-size: .85rem; color: var(--muted); margin: 0 0 .3rem; }
.course p:last-child { font-size: .97rem; margin-bottom: 0; }
.kv { display: grid; grid-template-columns: 8rem minmax(0,1fr); gap: .25rem 1rem; margin: 0 0 1rem; font-size: .97rem; }
.kv dt { font-family: var(--sans); font-size: .92rem; color: var(--muted); }
.kv dd { margin: 0; }
footer.pg { margin-top: 3rem; padding-top: .8rem; border-top: 1px solid var(--rule); font-family: var(--sans); font-size: .85rem; color: var(--muted); }
footer.pg a { color: var(--muted); }
@media (max-width: 520px) {
  header.top { flex-direction: column; gap: 1rem; }
  .portrait { width: 7rem; height: 8.75rem; }
  .entry { grid-template-columns: 1fr; }
  .kv { grid-template-columns: 1fr; gap: 0; } .kv dd { margin-bottom: .5rem; }
  header.top h1 { font-size: 1.7rem; }
}
@media print { .view { display: block !important; } }
.lang a { color: var(--muted); text-decoration: none; padding: 0 .15rem; }
.lang a[aria-current="true"] { color: var(--accent); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
header.top .h1 { font-size: 2.1rem; font-weight: 600; margin: 0; line-height: 1.15; text-align: left; }
@media (max-width: 520px) { header.top .h1 { font-size: 1.7rem; } }
