@font-face {
    /* https://www.1001fonts.com/ds-fette-gotisch-font.html */
    font-family: 'Hansa Gotisch';
    src: url('fonts/hansagotisch.regular.ttf');
}

@page {
    margin: 0 1cm;
}

nav {
    display: none;
}

html, body {
    background: none;
}

main {
    padding: 0 0.25cm;
}

/* header layout */
header div {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}

header div.title {
    justify-content: space-around;
}

header div.title h1 {
    margin: 0 auto;
    padding: 30px 0 5px;
    font-family: 'Hansa Gotisch', serif;
    font-size: 72pt;
    line-height: 0.7;
}

header div.title aside {
    max-width: 150px;
    align-self: center;
    hyphens: auto;
    text-align: justify;
}

header div.meta {
    padding: 15px 15px 5px;
    border-top: 2px solid black;
    border-bottom: 4px double black;
    font-size: 14pt;
}

header div.meta time, header div.title h1 {
    order: 2;
}

header div.meta *:last-of-type, header div.title *:last-of-type {
    order: 3;
}

/* footer layout */
footer {
    padding: 2px 1px;
    margin-top: 1em;
    border-top: 4px double black;
    font-size: 10pt;
    clear: both;
    display: flex;
    justify-content: space-evenly;
    column-gap: 1ch;
    text-align: center;
}

footer p {
    margin: 0;
}

footer p a {
    text-decoration: none;
    color: black;
}

/* print tweaks */
a, abbr {
    text-decoration: none;
    color: black;
}

/* articles */
main {
    display: grid;
    grid-template-rows: auto;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    grid-template-areas:
        "fifth first first adspace"
        "fifth first first seventh"
        "fourth fourth second second"
        "sixth sixth sixth sixth"
        "third third third third";
    grid-gap: 0.5cm;
}

article {
    clear: both;
    hyphens: auto;
    text-align: justify;
    padding: 5px 0;
}

article figure {
    width: 100%;
    margin: 3px 0 3px 0;
}

article figure img {
    width: 100%;
}

article figcaption {
    font-size: 9pt;
}

article figcaption span {
    float: right;
    font-style: italic;
}

article h2 {
    font-family: 'Didot', 'Georgia', 'Garamond', 'Adobe Garamond', serif;
    margin-bottom: 0;
    margin-top: 0;
    padding: 3px 0;
    font-size: 16pt;
}

article p {
    margin: 0;
    font-size: 12pt;
    line-height: 1.1;
}

article p a {
    text-decoration: none;
    color: black;
}

article:not(:last-child) p:not(:first-child) {
    text-indent: 3ch;
}

article:not(:last-child) p:last-child a:last-child {
    float: right;
    text-indent: 0;
    font-weight: bold;
}

/* grid positions */
article:first-child {
    grid-area: first;
    display: flex;
    flex-direction: column;
}

article:first-child h2 {
    order: 2;
}

article:first-child figure {
    order: 1;
}

article:first-child section {
    columns: 2;
    order: 3;
}

article:first-child img {
    max-height: 5.5cm;
    object-fit: cover;
}

article:nth-child(2) {
    grid-area: second;
}

article:nth-child(2) section {
    columns: 2;
}

article:nth-child(3) {
    grid-area: third;
}

article:nth-child(3) section {
    columns: 4;
}

article:nth-child(3) img {
    max-height: 7.5cm;
    object-fit: cover;
}

article:nth-child(4) {
    grid-area: fourth;
}

article:nth-child(4) section {
    columns: 2;
}

article:nth-child(5) {
    grid-area: fifth;
}

article:nth-child(6) {
    grid-area: sixth;
}

article:nth-child(6) section {
    columns: 4;
}

article:nth-child(7) {
    grid-area: seventh;
    margin-top: 1.2cm;
}

article:last-child {
    grid-area: adspace;
}

article:last-child {
    outline: 4px solid black;
    margin: 0.4cm auto;
    max-height: 4cm;
}

article:last-child br {
    display: none;
}

article:last-child p a {
    content: "";
}

article:last-child p a:after {
    content: '\A< ' attr(href) ' >';
    white-space: pre-wrap;
}

article:last-child *, article:last-child p {
    font-family: monospace;
    text-align: center;
    font-size: 8pt;
}

article:last-child section {
    padding: 12px 6px 12px 6px;
    max-width: 90%;
    margin: auto auto;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    gap: 20px;
}

