@font-face {
    font-family: Inconsolata;
    src: url("inconsolata-latin.woff2") format("woff2");
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
}

:root {
    color-scheme: dark;
    --background: #12141d;
    --text: #fff;
    --accent: #f2a900;
    --divider: #373945;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    background: var(--background);
    color: var(--text);
    font: 400 17px/24px Inconsolata, monospace;
}

.site {
    width: min(750px, 100% - 24px);
    margin-inline: auto;
    padding-bottom: 38px;
}

.site-header, .home > section, .document, .site-footer, .notice {
    padding-inline: 12px;
}

.site-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 30px;
    margin-block: 16px 20px;
}

a { color: inherit; text-underline-offset: .12em; }
a:hover { color: var(--accent); }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.site-nav, .site-guides { font: 400 17px/24px Inconsolata, monospace; }
.site :is(.site-nav, .breadcrumbs, .site-guides) a { font: inherit; color: inherit; }
.site :is(.site-nav, .breadcrumbs, .site-guides) a:hover { color: var(--accent); }
.site-nav a { text-decoration: none; }
.site-nav a:hover, .site-nav a:focus-visible { text-decoration: underline; }
.site :is(.breadcrumbs, .site-guides) a { text-decoration: underline; }

.breadcrumbs, .site-guides {
    width: min(750px, 100%);
    margin-inline: auto;
    padding-inline: 12px;
}
.breadcrumbs { margin-bottom: 14px; color: #b4b5bd; font: 400 16px/24px Inconsolata, monospace; }
.breadcrumbs ol, .site-guides ul {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 2px 8px;
    padding: 0;
    margin: 0;
    list-style: none;
}
.breadcrumbs li { min-width: 0; overflow-wrap: anywhere; }
.breadcrumb-divider { margin-right: 8px; }
.breadcrumbs [aria-current="page"] { color: var(--text); }
.site-guides { margin-block: 24px 0; color: var(--text); }
.site-guides h2 {
    margin: 0;
    padding-top: 12px;
    border-top: 1px solid var(--divider);
    color: var(--accent);
    font: 400 24px/30px Inconsolata, monospace;
    letter-spacing: normal;
}
.site-guides ul { margin-top: 7px; gap: 4px 20px; }
.site-header { color: var(--text); }
.site:has(.archive-page) > header.site-header {
    display: block;
    width: min(750px, 100%);
    margin-inline: auto;
}
.site:has(.archive-page) :is(.breadcrumbs, .site-guides) { width: min(750px, 100% - 24px); }
.archive-page [aria-label="Main navigation"] { display: none; }

p, h1, h2, h3, h4, h5, h6 { margin: 0; }
h1, h2, h3, h4, h5, h6 { font-weight: 400; }
h1 { font-size: 40px; line-height: 44px; }
h2 { font-size: 24px; line-height: 30px; }

.home .brand {
    color: var(--accent);
    font-size: 24px;
    line-height: 30px;
    margin-bottom: 20px;
}

.home h1 { margin-bottom: 15px; }
.home .intro { padding-block: 15px; border-block: 3px solid var(--accent); margin-block: 20px; }
.home .topic + .topic { margin-top: 30px; }
.home .topic h2 { color: var(--accent); line-height: 28px; margin-bottom: 7.5px; }

.site-footer {
    font-size: 16px;
    margin-top: 20px;
    padding-top: 24px;
    border-top: 3px solid var(--accent);
}

.document { padding-top: 4px; }
.document-header { margin-bottom: 20px; }
.document-header h1 { color: var(--accent); }
.document-body :is(h2, h3, h4, h5, h6) { color: var(--accent); margin-block: 24px 8px; }
.document-body :is(h3, h4, h5, h6) { font-size: 21px; line-height: 27px; }
.document-body p, .document-body :is(ul, ol, blockquote, pre, table) { margin-block: 0 16px; }
.document-body :is(ul, ol) { padding-inline-start: 24px; }
.document-body blockquote { border-left: 3px solid var(--accent); padding-left: 12px; }
.document-body :is(p, li, a, td, th), .site-footer { overflow-wrap: anywhere; }
.document-body img { max-width: 100%; height: auto; }
.document-body pre { background: #1b1d27; padding: 12px; overflow: auto; }
.document-body code { font-family: inherit; }
.document-body hr { border: 0; border-top: 2px solid var(--accent); margin-block: 24px; }
.document-body table { width: 100%; border-collapse: collapse; }
.document-body :is(td, th) { border: 1px solid var(--divider); padding: 6px; text-align: left; }

.notice { padding-top: 28px; }
.notice h1 { color: var(--accent); margin-bottom: 16px; }

.news-intro, .news-teaser {
    padding: 0 12px 16px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--divider);
}
.news-intro h1, .news-teaser h2 { color: var(--accent); margin-bottom: 10px; }
.news-intro p + p { margin-top: 12px; }
.news-date { margin-block: 0 12px; color: #b4b5bd; font-size: 16px; }
.news-article .news-date { margin-block: 8px 0; }
.news-teaser {
    display: flex;
    align-items: flex-start;
    gap: 18px;
}
.news-teaser-text { min-width: 0; overflow-wrap: anywhere; }
.news-teaser .news-date { margin-bottom: 4px; }
.news-teaser h2 { line-height: 1.12; }
.news-teaser-image { flex: 0 0 min(32%, 216px); display: block; }
.news-teaser-image img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 3/2;
    object-fit: cover;
    border-radius: 4px;
}
.news-cover { margin: 0 0 24px; }
.news-cover img { display: block; width: 100%; height: auto; border-radius: 4px; }
.news-empty, .news-all { padding-inline: 12px; margin-bottom: 16px; }
.news-feed:has(.news-teaser) .news-empty { display: none; }
.author-profile { display: flex; align-items: flex-start; gap: 20px; }
.author-profile img, .author-link img { border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.author-role { color: var(--accent); }
.author-card {
    width: min(725px, calc(100% - 24px));
    margin: 28px auto 0;
    padding-block: 16px;
    border-top: 2px solid #f2a900;
    color: #fff;
    font: 400 17px/24px Inconsolata, monospace;
}
.author-card p { margin: 0; }
.author-card .author-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
    color: #f2a900;
    font: inherit;
    text-decoration: underline;
}

.news-article .author-card { width: 100%; }
.article-related {
    margin-top: 12px;
    padding-block: 16px;
    border-top: 1px solid var(--divider);
}
.article-related h2 { color: var(--accent); }
.article-related ul { margin-block: 10px 0; padding-inline-start: 22px; }
.article-related li + li { margin-top: 8px; }
.article-related a, .article-neighbors strong { overflow-wrap: anywhere; }
.article-neighbors {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 8px;
}
.article-neighbors:not(:has(a)) { display: none; }
.article-neighbors a {
    display: block;
    border: 1px solid var(--divider);
    border-radius: 4px;
    padding: 12px;
    text-decoration: none;
}
.article-neighbors a:hover { border-color: var(--accent); }
.article-neighbors span { display: block; color: var(--accent); margin-bottom: 4px; }
.article-next { grid-column: 2; }

.contact-page .document-header p { margin-top: 8px; }
.contact-fields { display: grid; gap: 17px; padding-top: 20px; border-top: 1px solid var(--divider); }
.contact-person { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.contact-fields label { display: grid; gap: 5px; min-width: 0; }
.contact-fields .contact-recipient:has(option:only-child) { display: none; }
.contact-fields :is(input:not([type="file"]), select, textarea) {
    box-sizing: border-box;
    width: 100%;
    min-height: 42px;
    padding: 8px 12px;
    border: 1px solid var(--divider);
    border-radius: 4px;
    background: #1b1d27;
    color: var(--text);
    font: inherit;
}
.contact-fields textarea { resize: vertical; }
.contact-fields input[type="file"] { width: 100%; font: inherit; }
.contact-fields :is(input, select, textarea, button):focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}
.contact-verification { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px 16px; }
.contact-verification img { display: block; max-width: 100%; height: auto; border-radius: 4px; }
.contact-verification label { flex: 1 1 155px; max-width: 230px; }
.contact-submit {
    justify-self: start;
    min-height: 42px;
    padding: 8px 18px;
    border: 1px solid var(--accent);
    border-radius: 4px;
    background: var(--accent);
    color: var(--background);
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}
.contact-submit:hover { background: transparent; color: var(--accent); }

@media (max-width: 600px) {
    .site-nav { gap: 6px 18px; margin-bottom: 18px; }
    .site-nav a { padding-block: 3px; }
    h1 { font-size: 32px; line-height: 36px; }
    .home .topic + .topic { margin-top: 24px; }
    .author-profile { flex-direction: column; }
    .news-teaser { flex-direction: column; gap: 12px; }
    .news-teaser-image { flex: none; width: 100%; max-width: 420px; }
}

@media (max-width: 460px) {
    .article-neighbors { grid-template-columns: 1fr; }
    .article-next { grid-column: 1; }
    .contact-person { grid-template-columns: 1fr; gap: 17px; }
}
