
body {
    background-color: #c0c0c0; 
    color: #000000;
    font-family: "IBM Plex Mono", monospace;
    font-size: 16px;
    margin: auto;
    padding: 8px;
    max-width: 960px;
}

a {
    color: #000080;
    text-decoration: underline;
}

a:hover {
    color: #0000ff;
}

header {
    background: #d4d0c8;
    padding: 4px 6px;
    display: flex;
    background: #000080;
    align-items: center;
    gap: 6px;
    user-select: none;
}

header h1 {
    font-family: "VT323", monospace;    
    font-weight: 400;    
    font-size: 22px;
    color: #F0F0EE;
    margin: 0;
    flex: 1;
    text-shadow: 1px 1px 0 #000044;
    letter-spacing: 1px;
}

header::after {
    content: "─   □   ✕";
    font-size: 10px;
    color: #F0F0EE;
    background: #d4d0c8;
    color: #000;
    border-top: 1px solid #F0F0EE;
    border-left: 1px solid #F0F0EE;
    border-right: 1px solid #404040;
    border-bottom: 1px solid #404040;
    padding: 1px 6px;
    font-family: "IBM Plex Mono", monospace;
    letter-spacing: 3px;
    white-space: nowrap;
    cursor: default;
}

nav {
    background-color: #d4d0c8;
    border-bottom: 1px solid #808080;
    padding: 2px 4px;
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0;
}

nav ul li a {
    display: block;
    color: #000000;
    text-decoration: none;
    font-family: "IBM Plex Mono", monospace;
    font-size: 12px;
    padding: 3px 10px;
    border: 1px solid transparent;
}

nav ul li a:hover {
    background-color: #000080;
    color: #F0F0EE;
    border: 1px dotted #808080;
    text-decoration: none;
}

section {
    display: block;
    padding: 6px;
    background-color: #aaaaaa;
}

article.teaser {
    background-color: #F0F0EE;
    border-top: 2px solid #808080;
    border-left: 2px solid #808080;
    border-right: 2px solid #F0F0EE;
    border-bottom: 2px solid #F0F0EE;
    margin-bottom: 8px;
    display: flex;
    flex-direction: row;
    gap: 0;
}

article.teaser img {
    width: 120px;
    min-width: 120px;
    height: 90px;
    object-fit: cover;
    border-right: 1px solid #808080;
    flex-shrink: 0;
}

article.teaser div {
    padding: 6px 10px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

article.teaser h2 {
    font-family: "VT323", monospace;    
    font-size: 18px;
    font-weight: 400;
    color: #000080;
    margin: 0 0 2px 0;
    text-decoration: underline;
}

article.teaser time {
    font-size: 10px;
    color: #808080;
    font-family: "IBM Plex Mono", monospace;
    display: block;
    margin-bottom: 4px;
}

article.teaser p {
    font-size: 12px;
    color: #000000;
    margin: 0 0 6px 0;
    line-height: 1.5;
}

article.teaser a {
    display: inline-block;
    font-size: 11px;
    font-family: "IBM Plex Mono", monospace;
    color: #000000;
    text-decoration: none;
    background: #d4d0c8;
    border-top: 1px solid #F0F0EE;
    border-left: 1px solid #F0F0EE;
    border-right: 1px solid #404040;
    border-bottom: 1px solid #404040;
    padding: 2px 10px;
    cursor: pointer;
    margin-top: auto;
    align-self: flex-start;
}

article.teaser a:hover {
    background: #000080;
    color: #F0F0EE;
}

article {
    background-color: #F0F0EE;
    border-top: 2px solid #808080;
    border-left: 2px solid #808080;
    border-right: 2px solid #F0F0EE;
    border-bottom: 2px solid #F0F0EE;
    padding: 12px 16px;
    margin: 6px auto;
    max-width: 860px;
}

article h2 {
    font-family: "VT323", monospace;    
    font-weight: 400;
    font-size: 28px;
    color: #000080;
    margin: 0 0 4px 0;
    text-decoration: underline;
    text-underline-offset: 4px;
}

article time {
    display: block;
    font-size: 11px;
    font-family: "IBM Plex Mono", monospace;
    color: #808080;
    margin-bottom: 12px;
    border-bottom: 1px solid #c0c0c0;
    padding-bottom: 6px;
}

section:has(article:not(.teaser)) {
    display: block !important;
}

article p {
    font-size: 16px;
    line-height: 1.7;
    color: #000000;
    margin-bottom: 12px;
}


article img {
    border-top: 2px solid #808080;
    border-left: 2px solid #808080;
    border-right: 2px solid #F0F0EE;
    border-bottom: 2px solid #F0F0EE;
    margin: 12px auto;
    max-width: 100%;
}

footer {
    background: #d4d0c8;
    border-top: 1px solid #808080;
    padding: 3px 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    font-family: "IBM Plex Mono", monospace;
    color: #000;
    gap: 10px;
}

footer p {
    margin: 0;
    padding: 5px 5px;
    border-top: 1px solid #808080;
    border-left: 1px solid #808080;
    border-right: 1px solid #F0F0EE;
    border-bottom: 1px solid #F0F0EE;
}

footer a {
    color: #000080;
}

@media (min-width: 600px) {
    body {
        padding: 16px;
    }

    header h1 {
        font-size: 28px;
    }

    section {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
        padding: 8px;
    }
    
    

    article.teaser {
        flex-direction: column;
        margin-bottom: 0;
    }

    article.teaser img {
        width: 100%;
        min-width: unset;
        height: 120px;
        border-right: none;
        border-bottom: 1px solid #808080;
    }
}

@media (min-width: 900px) {
    section {
        grid-template-columns: repeat(3, 1fr);
    }
}
