:root{--bg:#fff;--fg:#1c1c1c;--muted:#666;--line:#e4e4e4;--accent:#8a1538;--ph:#fff4c2}
@media(prefers-color-scheme:dark){:root{--bg:#141414;--fg:#e8e8e8;--muted:#9a9a9a;--line:#2d2d2d;--accent:#e08aa5;--ph:#4a4220}}
*{box-sizing:border-box}
body{margin:0;background:var(--bg);color:var(--fg);font:17px/1.65 system-ui,-apple-system,"Segoe UI",sans-serif}
a{color:var(--accent)}
.wrap{width:calc(100% - 2.5rem);max-width:48rem;margin:0 auto}
header{padding:1.1rem 0}
header .wrap{border-bottom:1px solid var(--line);padding-bottom:1.1rem}
.site{display:inline-block;white-space:nowrap;font-weight:400;text-decoration:none;color:var(--fg);line-height:1.2}

.site b{font-weight:800;color:var(--accent)}
nav a{text-decoration:none;color:var(--muted)}
nav a:hover,nav a[aria-current]{color:var(--accent)}
main{padding:2.5rem 0 3rem}
h1{font-size:1.9rem;line-height:1.2;margin:0 0 1rem}
h2{font-size:1.2rem;margin:2.2rem 0 .6rem}
h3{font-size:1rem;margin:1.4rem 0 .2rem}
.lead{font-size:1.15rem;color:var(--muted)}
.muted{color:var(--muted)}
.ph{background:var(--ph);padding:0 .25em;border-radius:3px}
ul.plain{list-style:none;padding:0}
ul.plain li{margin:.5rem 0}
.date{color:var(--muted);font-variant-numeric:tabular-nums;margin-right:.6rem}
.pub{margin:0 0 1.1rem}
.pub .t{font-weight:600}
.pub .a,.pub .j{color:var(--muted);font-size:.95rem}
.person{display:flex;gap:1.25rem;margin:1.5rem 0}
.avatar{flex:none;width:190px;height:190px;border-radius:50%;background:var(--line);display:grid;place-items:center;color:var(--muted);font-size:.75rem;overflow:hidden;position:relative}
.avatar img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:50% 21%}
footer .wrap{border-top:1px solid var(--line);padding-top:1.5rem}
footer{padding:0 0 1.5rem;color:var(--muted);font-size:.9rem}
@media(max-width:520px){.person{flex-direction:column}}

main p,main li{text-align:justify;hyphens:auto;-webkit-hyphens:auto}
.pub .a,.pub .j,.pub .t{text-align:left}
header nav{display:flex;justify-content:space-between;width:100%;margin-top:.7rem;white-space:nowrap}

.oneline{white-space:nowrap;font-size:min(1.9rem,calc(min(100vw - 2.5rem,56rem)/41))}
@media(max-width:700px){.oneline{white-space:normal;font-size:1.6rem}}
.fig{margin:.4rem 0 1rem;width:38%}
.fig.right{float:right;margin-left:1.5rem}
.fig.left{float:left;margin-right:1.5rem}
.fig img{background:#fff;display:block;width:100%;height:auto;border-radius:4px}
.fig figcaption{color:var(--muted);font-size:.85rem;margin-top:.4rem;text-align:left}
main h2{clear:both}
@media(max-width:700px){.fig{float:none!important;width:100%;margin:1rem 0}}
main .wrap::after{content:"";display:block;clear:both}
