@font-face {
    font-display: swap;
    font-family: Inconsolata;
    font-stretch: 50% 200%;
    font-style: normal;
    font-weight: 100 900;
    src: url("/misc/inconsolata_variable.woff2") format("woff2");
}

html {
    background-color: #11100e;
    min-height: 100vh;
    scrollbar-gutter: stable;
}

body {
    background-color: #080604;
    border: 1px solid #0d2e1c;
    box-sizing: border-box;
    color: #e6dfd3;
    font-family: Inconsolata, monospace;
    font-kerning: normal;
    font-optical-sizing: auto;
    font-size: clamp(1.125rem, 1.1rem + 0.75vw, 1.5rem);
    font-stretch: 100%;
    font-variant-ligatures: common-ligatures contextual;
    font-weight: 450;
    line-height: 1.3;
    margin: 0 auto;
    max-width: 80ch;
    padding: 1.5rem;
    text-wrap: pretty;
    width: 100%;
}

h1,
h2,
h3 {
    color: #f0e8dc;
    font-stretch: 108%;
    font-weight: 560;
    text-transform: capitalize;
}

h2,
h3 {
    background-color: #11100e;
    border-left: 2px solid #ffdab9;
    border-right: 2px solid #ffdab9;
    padding-left: 1ex;
}

img {
    height: auto;
    max-width: 100%;
}

img.float {
    float: right;
    padding: 2ex;
}

img.displayed {
    display: block;
    height: auto;
    margin: 0 auto;
    min-width: 60ch;
}

a {
    color: #e6dfd3;
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 2px;
}

p {
    margin-bottom: 3ex;
}

a.internal {
    text-decoration-color: #ffcc80;
}

a.internal:visited {
    text-decoration-color: #c48a2c;
}

a.internal:hover,
a.internal:focus {
    color: #ffcc80;
    outline: 0;
    text-decoration-color: #ffe0b2;
}

a.internal:focus-visible {
    color: #ffcc80;
    outline: 2px solid #ffcc80;
    outline-offset: 3px;
}

a.external {
    text-decoration-color: #4589ff;
}

a.external:visited {
    text-decoration-color: #0f62fe;
}

a.external:hover,
a.external:focus {
    color: #78a9ff;
    outline: 0;
    text-decoration-color: #78a9ff;
}

a.external:focus-visible {
    color: #78a9ff;
    outline: 2px solid #4589ff;
    outline-offset: 3px;
}

a.external img {
    background: none;
    border: 0;
    display: inline;
    height: 2ex;
    margin: 0 0 0 1ex;
    padding: 0;
    text-decoration: none;
    vertical-align: text-top;
    width: 2ex;
}

a.external:hover img {
    box-shadow: 0 0 1ex #9fd3f5;
}

.navigation {
    align-items: center;
    box-sizing: border-box;
    display: flex;
    flex-wrap: nowrap;
    font-stretch: 104%;
    gap: clamp(5px, 1.5vw, 15px);
    justify-content: center;
    margin: 0 auto;
    max-width: 100%;
    padding: 0.75rem 0;
    width: 100%;
}

.navigation a {
    align-items: center;
    background: rgba(255, 204, 128, 0.04);
    border: 1px solid rgba(255, 204, 128, 0.3);
    border-radius: 3px;
    box-shadow:
        0 2px 4px rgba(0, 0, 0, 0.6),
        inset 0 1px rgba(255, 204, 128, 0.2);
    color: #ffbf40;
    display: flex;
    flex: 1 1 auto;
    font-size: clamp(10px, 3.5vw, 2rem);
    font-weight: 500;
    justify-content: center;
    letter-spacing: 0.5px;
    padding: 0.35rem 0.5rem;
    text-decoration: none;
    transition:
        background-color 0.15s ease,
        border-color 0.15s ease,
        box-shadow 0.15s ease,
        text-shadow 0.15s ease;
    white-space: nowrap;
}

.navigation a:is(:hover, :focus-visible) {
    background-color: rgba(255, 204, 128, 0.12);
    border-color: rgba(255, 204, 128, 0.7);
    box-shadow:
        0 0 12px rgba(255, 204, 128, 0.25),
        inset 0 0 4px rgba(255, 204, 128, 0.2),
        inset 0 1px rgba(255, 204, 128, 0.4);
    outline: 0;
    text-shadow: 0 0 4px rgba(255, 204, 128, 0.6);
}

.navigation a[aria-current="page"] {
    background-color: rgba(255, 153, 0, 0.08);
    border-color: rgba(255, 204, 128, 0.5);
    box-shadow:
        inset 0 2px 4px rgba(0, 0, 0, 0.8),
        0 0 6px rgba(255, 204, 128, 0.15);
    color: #ffb366;
    text-shadow: 0 0 4px rgba(255, 204, 128, 0.4);
}

.navigation a[aria-current="page"]:is(:hover, :focus-visible) {
    background-color: rgba(255, 153, 0, 0.12);
    box-shadow:
        inset 0 2px 4px rgba(0, 0, 0, 0.8),
        0 0 10px rgba(255, 204, 128, 0.25);
}

.navigation a:active {
    background-color: rgba(255, 153, 0, 0.2);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.9);
    text-shadow: 0 0 2px rgba(255, 204, 128, 0.8);
}

footer {
    align-items: center;
    border-bottom: 1px solid #0d2e1c;
    border-top: 1px solid #0d2e1c;
    display: flex;
    font-size: 0.8rem;
    justify-content: center;
    letter-spacing: 0.05em;
    margin-top: 5rem;
    padding: 2rem 1rem;
    text-align: center;
    text-decoration: none;
}

footer,
footer a.external {
    color: #4f93b8;
}

table {
    background-color: #0d0606;
    border: 2px solid #4a1515;
    border-collapse: collapse;
    color: #f0e8dc;
    font-size: clamp(0.85rem, 0.75rem + 0.6vw, 1.2rem);
    font-weight: 480;
    line-height: 1.32;
    margin: 2rem 0;
    table-layout: fixed;
    width: 100%;
}

caption {
    background-color: #3b0f0f;
    border: 2px solid #ffd98a;
    border-bottom: 0;
    color: #ffd98a;
    font-weight: 650;
    letter-spacing: 0.06em;
    padding: 0.55rem;
    text-align: left;
}

th {
    background-color: #260a0a;
    color: #ffdf99;
    font-stretch: 106%;
    font-weight: 620;
    position: sticky;
    top: 0;
    z-index: 10;
}

thead th,
tbody td,
tfoot td {
    border: 1px solid #3b0f0f;
    line-height: 1.2;
    padding: 0.3rem 0.4rem;
    text-overflow: ellipsis;
    white-space: normal;
}

tbody td {
    color: #f5f2e9;
    word-break: break-word;
}

tbody tr:nth-child(even) {
    background-color: #0a0404;
}

tbody tr:hover {
    background-color: #3b0f0f;
    color: #ffdf99;
}

tbody td:hover {
    background-color: #4a1515;
    color: #ffe9b8;
}

tfoot td {
    background-color: #260a0a;
    color: #ffdf99;
    font-weight: 600;
}

ul {
    display: flex;
    flex-direction: column;
    gap: 2ex;
    list-style-type: square;
}

ul li::marker {
    color: #6fbf73;
}

ul.internal,
ul.external {
    gap: 2ex;
    list-style-type: none;
    padding-left: 0;
}

.utility-bar {
    align-items: center;
    border-block: 1px solid #0d2e1c;
    box-sizing: border-box;
    display: flex;
    justify-content: space-between;
    margin: 1rem auto 0;
    max-width: 80ch;
    min-height: 2.75rem;
    padding: 0 1rem;
    text-decoration: none;
    width: 100%;
}

.utility-bar a {
    color: #ffcc80;
    text-decoration: none;
}

.breadcrumb-nav {
    flex: 1;
    min-width: 0;
}

.breadcrumbs {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    font-size: 0.9rem;
    line-height: 1rem;
    list-style: none;
    margin: 0;
    padding: 0.75rem 0;
}

.breadcrumbs li {
    align-items: center;
    display: flex;
}

.breadcrumbs li + li::before {
    align-items: center;
    color: #6fbf73;
    content: "¦";
    display: inline-flex;
    margin: 0 0.5rem;
}

.breadcrumbs a {
    color: #ffcc80;
    text-decoration: underline;
}

figcaption {
    font-size: clamp(0.75rem, 0.6rem + 1vw, 1.1rem);
    line-height: 1.2;
    margin-top: 0.5rem;
    overflow: hidden;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.twocol {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2ex;
}

.twocol > * {
    margin: 0;
}

.gallery {
    display: grid;
    gap: 2ex;
    grid-auto-flow: dense;
    grid-template-columns: repeat(auto-fit, minmax(min(20ch, calc(50% - 1ex)), 1fr));
    justify-content: center;
}

.gallery > figure {
    align-items: center;
    aspect-ratio: 1;
    background: #080604;
    border: 1px solid #0d2e1c;
    box-sizing: border-box;
    display: grid;
    grid-template-rows: 1fr auto;
    margin: 0;
    min-width: 0;
    padding: 1.5ex;
}

.gallery img {
    height: 100%;
    min-height: 0;
    object-fit: contain;
    width: 100%;
}

.breadcrumbs [aria-current="page"] {
    color: #e6dfd3;
    font-weight: 550;
}

@media print {
    html {
        background-color: transparent;
    }

    img {
        break-inside: avoid;
        display: block;
    }

    body {
        background-color: #fff;
        border: 0;
        color: #000;
        height: auto;
        margin: 0;
        max-width: 100%;
        min-height: 0;
        padding: 0;
    }

    .navigation,
    .utility-bar,
    footer {
        display: none;
    }
}
