@font-face {
    font-family: "Libertinus Serif";
    src: url("../fonts/LibertinusSerif-Regular.woff2");
    font-weight: 400;
}

@font-face {
    font-family: "Libertinus Serif";
    src: url("../fonts/LibertinusSerif-Italic.woff2");
    font-style: italic;
    font-weight: 400;
}

@font-face {
    font-family: "Libertinus Serif";
    src: url("../fonts/LibertinusSerif-Bold.woff2");
    font-weight: 700;
}

@font-face {
    font-family: "Libertinus Sans";
    src: url("../fonts/LibertinusSans-Regular.woff2");
    font-weight: 400;
}

@font-face {
    font-family: "Libertinus Sans";
    src: url("../fonts/LibertinusSans-Bold.woff2");
    font-weight: 700;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

header {
    background-color: #e1e1e1;
    margin-bottom: 1rem;
    padding: 1rem 0;
}

body {
    margin: 50px auto;
    text-align: justify;

    font-size: 18px;
    line-height: 1.6;

    color: #222;
    background-color: #ffffff;
}

h1 {
    margin-bottom: 0.2em;
}

h2 {
    margin-top: 2em;
}

p {
    margin-bottom: 1em;
}

body {
    font-family: "Libertinus Serif", serif;
}

h1, h2, h3 {
    font-family: "Libertinus Sans", sans-serif;
}


nav {
    margin-top: 1em;
    margin-bottom: 1em;
    text-align: right;
}

nav a {
    margin-left: 1.5em;
    color: #9a2424;
    text-decoration: none;
}

nav a:hover {
    text-decoration: underline;
}

.profile {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.portrait {
    width: 180px;
    height: auto;
}

.publication {
    margin-bottom: 1.2em;
}

.pub-number {
    font-weight: bold;
}

.subpublication {
    margin-left: 2em;
    margin-top: -1em;
}

footer {
    text-align:right;
    margin-top: 2em;
    background-color: #e1e1e1;
    padding: 1rem 0;
}

footer p{
    margin-top: 1em;
    margin-bottom: 1em;
}