/* style.css: one stylesheet for the whole site. Values from de_ai/references/layout.md 1.2. */
:root { --bg:#fdfdfc; --fg:#1b1b1b; --muted:#5a5a5a; --link:#1f4e8c; --visited:#6b3d8f; --rule:#dddddd; color-scheme: light dark; }
@media (prefers-color-scheme: dark) {
  :root { --bg:#17191c; --fg:#e4e4e2; --muted:#a3a3a0; --link:#8ab4e8; --visited:#c3a6e0; --rule:#33363a; }
}
html { -webkit-text-size-adjust:100%; }
body {
  background:var(--bg); color:var(--fg); margin:0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial,
               "PingFang TC", "Noto Sans TC", "Microsoft JhengHei", sans-serif;
  font-size:1.0625rem; line-height:1.6;
}
header.site, main, footer { max-width:42rem; margin:0 auto; padding-left:1rem; padding-right:1rem; }
header.site { padding-top:1.25rem; padding-bottom:0.75rem; border-bottom:1px solid var(--rule); }
header.site .name { font-weight:600; color:var(--fg); text-decoration:none; }
header.site .name:hover { text-decoration:underline; }
nav { margin-top:0.35rem; display:flex; flex-wrap:wrap; gap:0.25rem 1.1rem; }
nav a { display:inline-block; padding:0.2rem 0; min-height:24px; }
nav a[aria-current="page"] { color:var(--fg); font-weight:600; text-decoration:none; }
main { padding-top:1.5rem; padding-bottom:3rem; }
footer { padding-top:1rem; padding-bottom:2rem; border-top:1px solid var(--rule); color:var(--muted); font-size:0.95rem; }
h1, h2, h3 { line-height:1.25; font-weight:600; }
h1 { font-size:1.75rem; margin:0 0 1rem; }
h2 { font-size:1.3rem; margin:2.5rem 0 0.75rem; }
h3 { font-size:1.1rem; margin:1.75rem 0 0.5rem; }
p { margin:0 0 1em; }
a { color:var(--link); text-decoration:underline; text-underline-offset:0.15em; text-decoration-thickness:1px; }
a:visited { color:var(--visited); }
a:hover { text-decoration-thickness:2px; }
a:focus-visible { outline:2px solid var(--link); outline-offset:2px; }
.skip { position:absolute; left:-999px; top:0; }
.skip:focus { left:1rem; top:0.5rem; background:var(--bg); padding:0.25rem 0.5rem; }
ol.pubs, ul.pubs, ul.cv { padding-left:1.5rem; }
ol.pubs li, ul.pubs li, ul.cv li { margin-bottom:0.75em; overflow-wrap:anywhere; }
.posters { display:grid; grid-template-columns:repeat(auto-fill, minmax(11rem, 1fr)); gap:1.25rem; margin:1rem 0 0.5rem; }
figure.poster { margin:0; }
figure.poster img { display:block; border:1px solid var(--rule); }
figure.poster figcaption { font-size:0.95rem; color:var(--muted); margin-top:0.4rem; line-height:1.4; }
img { max-width:100%; height:auto; }
ul.langs { padding-left:1.25rem; }
ul.langs li { margin-bottom:0.75em; }

