@font-face {
    font-family: 'Vollkorn';
    src: url('fonts/Vollkorn-Regular.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
}

:root {
    --my-max-width: 50ch;
    --heading-font-weight: 400;
    --heading-color: inherit;
    /* --heading-color: rgb(240, 142, 128); */
}

body {
    font-family: "Bodoni Moda", serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    /* font-family: "Vollkorn", serif; */
}

html {
    font-size: 120%;
}

body {
    line-height: 1.6;
    font-size: clamp(1rem, 0.95rem + 0.6vw, 1.25rem);
}


body {
    margin: 0;
}

/* Section background colors and spacing START */
section {
    display: grid;
    grid-template-columns: 1fr min(var(--my-max-width), 100%) 1fr;
    padding: 2rem;
}

section> :first-child {
    margin-top: 0;
}

section> :last-child {
    margin-bottom: 0;
}

section>* {
    grid-column: 2;
}

/* Section background colors and spacing END */

h1 {
    line-height: 1.0;
    font-size: clamp(2rem, 1.6rem + 3vw, 3.2rem);
    margin: 1.73rem 0;
    color: var(--heading-color);
    font-weight: var(--heading-font-weight);
}

h1#title {
    text-align: center;
    font-family: "Bodoni Moda", serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
}

h2 {
    line-height: 1.2;
    font-size: clamp(1.6rem, 1.3rem + 2vw, 2.4rem);
    margin: 1.44rem 0;
    color: var(--heading-color);
    font-weight: var(--heading-font-weight);
}

h3 {
    line-height: 1.4;
    font-size: clamp(1.25rem, 1.1rem + 1vw, 1.8rem);
    margin: 1.2rem 0;
    color: var(--heading-color);
    font-weight: var(--heading-font-weight);
}

a {
    color: inherit;
}

iframe {
    max-width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
}

li {
    margin: 1rem 0;
}

/*
.timeline {
    list-style: none;
    margin: 2rem 0;
    padding: 0;
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0.75rem;
    top: 0.5rem;
    bottom: 0.5rem;
    width: 2px;
    background: rgba(0, 0, 0, 0.25);
}

.timeline li {
    position: relative;
    display: grid;
    grid-template-columns: minmax(6ch, auto) 1fr;
    gap: 1.5rem;
    padding: 1.2rem 0 1.2rem 2.5rem;
}

.timeline li::before {
    content: '';
    position: absolute;
    left: 0.4rem;
    top: 50%;
    transform: translateY(-50%);
    width: 0.85rem;
    height: 0.85rem;
    border-radius: 50%;
    background: var(--heading-color);
    box-shadow: 0 0 0 4px #fff;
}

.timeline-time {
    font-weight: 600;
    letter-spacing: 0.02em;
}

.timeline-event {
    font-size: 1rem;
}
*/

/* Section coloring */
main>section:nth-of-type(4n+1) {
    /*background-color: #66ffff;*/
    background-color: #e0ece5;
}

main>section:nth-of-type(4n+3) {
    /*background-color: #ff6666;*/
    background-color: #fdf0e6;
}