@import url('https://fonts.cdnfonts.com/css/jetbrains-mono-2');

:root {
    --font-family: "JetBrains Mono", monospace;
    --line-height: 1.20rem;
    --border-thickness: 2px;
    --text-color: #000;
    --text-color-alt: #666;
    --background-color: #fff;
    --background-color-alt: #eee;

    --font-weight-normal: 500;
    --font-weight-medium: 600;
    --font-weight-bold: 800;

    font-family: var(--font-family);
    font-optical-sizing: auto;
    font-weight: var(--font-weight-normal);
    font-style: normal;
    font-variant-numeric: tabular-nums lining-nums;
    font-size: 16px;
}

@media (prefers-color-scheme: dark) {
    :root {
        --text-color: #fff;
        --text-color-alt: #aaa;
        --background-color: #000;
        --background-color-alt: #111;
    }
}

* {
    box-sizing: border-box;
}

*+* {
    margin-top: var(--line-height);
}

html {
    display: flex;
    width: 100%;
    margin: 0;
    padding: 0;
    flex-direction: column;
    align-items: center;
    background: var(--background-color);
    color: var(--text-color);
}

body {
    position: relative;
    width: 100%;
    margin: 0;
    padding: var(--line-height) 2ch;
    max-width: calc(min(80ch, round(down, 100%, 1ch)));
    line-height: var(--line-height);
    overflow-x: hidden;
}

@media screen and (max-width: 480px) {
    :root {
        font-size: 14px;
    }

    body {
        padding: var(--line-height) 1ch;
    }
}

h1,
h2 {
    font-weight: var(--font-weight-bold);
    margin: calc(var(--line-height) * 2) 0 var(--line-height);
    line-height: var(--line-height);
}

h1 {
    font-size: 2rem;
    line-height: calc(2 * var(--line-height));
    margin-bottom: calc(var(--line-height) * 2);
    text-transform: uppercase;
}

h2 {
    font-size: 1rem;
    text-transform: uppercase;
}

a {
    text-decoration-thickness: var(--border-thickness);
}

a:link,
a:visited {
    color: var(--text-color);
}

p {
    margin-bottom: var(--line-height);
    word-break: break-word;
    word-wrap: break-word;
    hyphens: auto;
}

strong {
    font-weight: var(--font-weight-bold);
}

code {
    font-family: var(--font-family);
    font-weight: var(--font-weight-medium);
}

table {
    position: relative;
    top: calc(var(--line-height) / 2);
    width: calc(round(down, 100%, 1ch));
    border-collapse: collapse;
    margin: 0 0 calc(var(--line-height) * 2);
}

th,
td {
    border: var(--border-thickness) solid var(--text-color);
    padding:
        calc((var(--line-height) / 2)) calc(1ch - var(--border-thickness) / 2) calc((var(--line-height) / 2) - (var(--border-thickness)));
    line-height: var(--line-height);
    vertical-align: top;
    text-align: left;
}

table tbody tr:first-child>* {
    padding-top: calc((var(--line-height) / 2) - var(--border-thickness));
}

th {
    font-weight: 700;
}

.width-min {
    width: 0%;
}

.width-auto {
    width: 100%;
}

.header {
    margin-bottom: calc(var(--line-height) * 2);
}

.header h1 {
    margin: 0;
}

.header tr td:last-child {
    text-align: right;
}

ul {
    list-style-type: square;
    padding: 0 0 0 2ch;
    margin: 0 0 var(--line-height);
}

li {
    margin: 0;
    padding: 0;
}

li::marker {
    line-height: 0;
}
