:root {
    --background: #0D0D0D;
    --card: #161616;
    --elev: #1E1E1E;
    --hover: #272727;
    --border: #2E2E2E;
    --disabled: #5A5A5A;
    --secondary: #8C8C8C;
    --foreground: #E8E2D9;
    --accent-dim: #7A510A;
    --accent: #FFB41E;

    --header: #E8E2D9;
}

*, *::before, *::after {
    box-sizing: border-box;
    list-style: none;
    font-synthesis: weight style;
    font: inherit;
    text-align: left;
    outline: none;
    border: 0;
    margin: 0;
    padding: 0;
    min-width: 0;
}

input[type="search"]::-webkit-search-cancel-button,
input[type="search"]::-webkit-search-decoration,
input[type="search"]::-webkit-search-results-button,
input[type="search"]::-webkit-search-results-decoration { display: none; }

html {
    width: 100%;
    height: 100%;

    font-family: Aldrich;
    font-size: 0.9rem;
    line-height: 1.7;

    background: var(--background);
    color: var(--foreground);
}

body {
    width: 100%;
    height: 100%;

    display: flex;
    flex-flow: column nowrap;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--header);
    margin: 0.6em 0 0.2em 0;
}

h1 { font-size: 2.25rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

b, strong          { font-weight: bold; }
h1, h2, h3         { font-weight: bold; }
h4, h5, h6         { font-weight: bold; }

i, em              { font-style: italic; }
cite               { font-style: italic; color: inherit; }

code, kbd, samp    { font-family: monospace; font-size: 0.9em; }
pre                { font-family: monospace; white-space: pre-wrap; }

mark               { background: yellow; color: inherit; }
s, del             { text-decoration: line-through; opacity: 0.6; }
ins, u             { text-decoration: underline; }
abbr               { text-decoration: underline dotted; cursor: help; }

sub, sup           { font-size: 0.75em; line-height: 0; position: relative; vertical-align: baseline; }
sub                { bottom: -0.25em; }
sup                { top: -0.5em; }

blockquote         { padding-left: 1rem; border-left: 3px solid currentColor; opacity: 0.8; }
q                  { quotes: """ """ "'" "'"; }
q::before          { content: open-quote; }
q::after           { content: close-quote; }

small              { font-size: 0.75em; }
figcaption         { text-align: center; }

ul {
    list-style: square;
}

li {
    margin-left: 1em;
    list-style: inherit;
}

a { text-decoration: none; color: var(--accent); }

a.never-dim:visited { color: var(--accent); }
a:visited { color: var(--accent-dim); }
a:active, a:hover { text-decoration:underline; }
a:focus-visible {
    outline: none;
    text-decoration:none;

    border-radius: 4px;
    box-shadow: 0 0 2px 2px var(--accent),
                0 0 8px 4px var(--accent);
}

a[href^="https://"]:not([href*="zitrus.gasinfinity.dev"])::after {
    content: ' ↗';
    font-size: 0.8rem;
    opacity: 0.7;
}

a:has(img) { display: inline-block; }
a code { text-decoration:none; color: var(--accent); }

img {
    display: none;

    flex-shrink: 0;
    object-fit: contain;

    border-radius: 10px;
}

img[src] { display: block; }

input {
    width: 100%;
    background: var(--elev);
    color: var(--foreground);

    border: 1px solid var(--border);
    border-radius: 8px;

    padding: 0.6em 0.4em;
}

input[type="file"] { display: none; }
input:focus { box-shadow: 0 2px 4px var(--accent); }
button { color: var(--foreground); }

.file-upload {}

hr {
    border-color: var(--border);
    margin: 1em 0;
}

.hidden { display: none; }
.centered {
    text-align: center;
    margin: 0 auto;
}
.grow { flex-grow: 1; }
.fit { max-width: fit-content; }
.max-50 { max-width: 50%; }
.section-content { padding-left: 1rem; }
.header-override { color: var(--header); }
.spaced { margin: 1rem; }

.hover-feedback {
    border: var(--border-size) solid var(--border);
    transition: border 0.3s;
}

.hover-feedback:hover {
    border: var(--border-size, 2px) solid color-mix(in srgb, var(--border) 85%, white);
    transition: border 0.3s;
}

.card-container {
    --background: #161616;
    --foreground: #8C8C8C;
    --header: #E8E2D9;
    --elevated: #1E1E1E;
    --border: #2E2E2E;

    display: flex;
    flex-flow: column nowrap;

    background: var(--background);
    color: var(--foreground);
    padding: 1.5em;
    border: var(--border-size, 2px) solid var(--border);
    border-radius: var(--border-radius, 12px);

    overflow: hidden;
    margin: 0.1em;
}

.card {
    --background: #161616;
    --foreground: #8C8C8C;
    --header: #E8E2D9;
    --elevated: #1E1E1E;
    --border: #2E2E2E;

    display: inline-flex;
    background: var(--background);
    color: var(--foreground);
    padding: 0.4em;
    border: var(--border-size, 2px) solid var(--border);
    border-radius: var(--border-radius, 12px);

    overflow: hidden;
}

.elevated {
    --background: #1E1E1E;
    --foreground: #8C8C8C;
    --header: #E8E2D9;
    --elevated: #5A5A5A;
    --border: #2E2E2E;
}

.accented {
    --foreground: #E8E2D9;
    --header: #FFFFFF;
    --border: color-mix(in srgb, var(--accent) 40%, black);

    position: relative;
}

.accented::before {
    position: absolute;
    content: '';
    top: 0; left: 0; right: 0;
    height: 2px;

    background: var(--accent);
}

.callout {
    --foreground: #EEEEEE;

    background: color-mix(in srgb, var(--accent, #FFFFFF) 10%, transparent);
    border-left: 4px solid var(--accent, #FFFFFF);
    border-radius: 10px;
    padding: 0.4em 1em;
    margin: 0.5em 0;
}

.callout h1 {
    color: var(--accent);
    font-size: 1.2rem;
}

.callout h1::before {
    content: var(--callout-icon);
    color: var(--accent);
    font-size: 1.2rem;
    margin-right: 0.8em;
}

.callout p {
    color: var(--foreground);
    font-size: 0.9rem;
}

.rows {
    display: flex;
    flex-flow: row wrap;
    gap: 0.8em;
}

.terminal {
    gap: 0;
    margin: 0.8em 0;
}

.terminal h1 {
    font-family: 'Monaspace Neon', monospace;
    font-size: 1rem;
    letter-spacing: -0.02rem;

    background: var(--elev);
    color: var(--disabled);
    border: 2px solid var(--border);
    border-bottom: 0;
    border-radius: 8px 8px 0 0;

    margin: 0;
    padding-left: 0.8em;
}

.terminal pre {
    border-top-left-radius: 0;
    border-top-right-radius: 0;
}

.green {
    --callout-icon: '';
    --accent: #51ea2e;
}

.info {
    --callout-icon: '𝒊';
    --accent: #0E7DF4;
}

.warning {
    --callout-icon: '⚠';
    --accent: #F9BF20;
}

.error {
    --callout-icon: '✘';
    --accent: #ED2828;
}

.empty {
    --callout-icon: '';
    --accent: #FFFFFF;
}

.small-details {
    font-size: 0.7rem;
    padding-left: 1em;
    color: var(--disabled);
}

.pill {
    font-family: 'Monaspace Neon', monospace;
    font-size: var(--pill-size, 0.7rem);
    letter-spacing: 0.12rem;

    background: var(--hover);
    color: var(--secondary);
    border-radius: 10em;

    max-width: fit-content;
    padding: 0.3em 0.5em;
}

a.btn {
    display: inline-block;
    padding: 0.7em 0.8em;
    margin: 0.4em 0.2em;
    text-decoration: none;
    color: var(--foreground);
    outline: 1px solid var(--secondary);
    border-radius: 10px;

    transition: color 0.3s,
                background 0.3s,
                outline 0.3s;
}

a.btn:hover {
    color: var(--accent);
    background: var(--background);
    outline: 1px solid var(--accent);

    transition: color 0.3s,
                background 0.3s,
                outline 0.3s;
}

a.btn-relevant {
    color: var(--background);
    background: var(--accent);
    outline: 0;
}

.relevant {
    color: var(--accent);
    text-shadow: 0px 0px 18px var(--accent);
}

.relevant:visited { color: var(--accent); }

#header-navbar {
    display: flex;
    flex-flow: column nowrap;
    align-items: stretch;
    background: var(--background);
    padding: 0.6em;
}

#header-logo {
    transform: translateY(-0.3em);
    width: 6rem;
    margin-right: 10px;
}

#mobile-header-navbar-hamburger {
    color: var(--accent);
    height: 1.5rem; 
    width: 1.5rem;
}

#mobile-subnav .navbar-item {
    flex-grow: 1;
}

#always-shown-navbar {
    display: flex;
    flex-direction: row;
    align-items: center;
    align-self: stretch;
}

#desktop-header-navbar {
    display: flex;
    flex-flow: row nowrap;

    align-items: center;
    justify-content: start;
    flex-grow: 1;

    gap: 1rem;
    padding: 1em;
}

#mobile-header-navbar {
    display: none;
    flex-flow: row nowrap;

    align-items: center;
    justify-content: space-between;
    flex-grow: 1;

    padding: 1em;
}

#mobile-subnav {
    flex-direction: column;
    flex-grow: 1;

    gap: 1rem;
    margin-bottom: 1em;
}

#mobile-header-subnav { display: none; }
#mobile-header-subnav-toggle { display: none; }

@media only screen and (max-width: 680px) {
    #desktop-header-navbar { display: none; }
    #mobile-header-navbar { display: flex; }
    #mobile-header-subnav { display: block; }

    #mobile-header-subnav-toggle + #mobile-subnav { display:none; }
    #mobile-header-subnav-toggle:checked + #mobile-subnav { display:flex; }
}

#content {
    flex-grow: 1;
    padding: 0.3em 1em 2em 1em;
}

#base-footer {
    border-top: 1px solid var(--border);
    padding: 1em;
    gap: 0px;
}

a.footer-lang {
    display: inline-block;
    padding-right: 0.4em;
}

a.footer-lang + a.footer-lang {
    padding-left: 0.4em;
    border-left: 1px solid var(--border);
}
