:root {
    color-scheme: light;
    font-family: Calibri, Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
    font-size: 16px;
    line-height: 1.6;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    color: #111;
    background: #fff;
}
* { box-sizing: border-box; }
body { margin: 0; }
main {
    max-width: 52rem;
    margin: 0 auto;
    padding: 2rem;
    overflow-wrap: anywhere;
}
h1, h2, h3 { line-height: 1.25; }
h1 { margin: 0 0 .75rem; font-size: 2rem; color: #2f5496; }
h2 { margin: 2rem 0 1rem; font-size: 1.5rem; color: #2f5496; }
h3 { margin: 1.25rem 0 .4rem; font-size: 1.125rem; }
p { margin: 0 0 .6rem; }
a { color: #0563c1; text-underline-offset: .15em; }
a:visited { color: #954f72; }
.resume-header p { margin-bottom: .25rem; }
.resume-language-switcher { margin-top: 1rem; }
.resume-language-switcher button {
    padding: .25rem 0;
    border: 0;
    background: none;
    color: #0563c1;
    font: inherit;
    cursor: pointer;
}
.resume-language-switcher button.active { font-weight: 700; text-decoration: underline; }
.resume-entry { margin-top: 1.5rem; }
.resume-meta { margin-bottom: .25rem; font-weight: 600; }
.resume-entry-header { margin-bottom: .6rem; }
ul { margin: .4rem 0 .75rem; padding-left: 1.4rem; }
li { margin-bottom: .25rem; }
.skip-link {
    position: absolute;
    top: .5rem;
    left: .75rem;
    z-index: 1;
    padding: .5rem .75rem;
    background: #fff;
    transform: translateY(-200%);
}
.skip-link:focus { transform: none; }
a:focus-visible, button:focus-visible, main:focus-visible {
    outline: 3px solid #2f5496;
    outline-offset: 3px;
}
main:focus-visible { outline-offset: -3px; }
@media (max-width: 40rem) {
    main { padding: 1.25rem 1rem; }
}
@page { size: A4; margin: 12.7mm; }
@media print {
    :root { font-size: 11pt; line-height: 1.4; }
    main { max-width: none; margin: 0; padding: 0; }
    .skip-link, .resume-language-switcher { display: none !important; }
    main:focus-visible { outline: none; }
    h2 { margin-top: 1.4rem; }
    h1, h2, h3, .resume-entry-header { break-after: avoid; }
    .resume-entry-header { break-inside: avoid; }
    p, li { orphans: 2; widows: 2; }
    a, a:visited { color: #0563c1; }
}
