:root {
    --bg: #0a0a0a;
    --fg: #e6e6e6;
    --accent-r: #ff3355;
    --accent-g: #33ff88;
    --accent-b: #3388ff;
    --muted: #888;
    --link: #e6e6e6;
    --link-hover: #ff3355;
    --mono: ui-monospace, "SF Mono", "Cascadia Code", "Fira Code", Menlo, Consolas, monospace;
}

*, *::before, *::after {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    background: var(--bg);
    color: var(--fg);
    font-family: var(--mono);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: var(--link);
    text-decoration: none;
    transition: color 0.1s ease;
}

a:hover {
    color: var(--link-hover);
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    margin: 1.5rem 0 1rem;
    line-height: 1.3;
}

h1 {
    font-size: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.3em;
}

h2 {
    font-size: 1.2rem;
    color: var(--muted);
}

p {
    margin: 0 0 1rem;
}

ul, ol {
    padding-left: 1.2rem;
    margin: 0 0 1rem;
}

li {
    margin-bottom: 0.3rem;
}

pre {
    font-family: var(--mono);
    color: var(--muted);
    white-space: pre;
    overflow-x: auto;
    margin: 1.5rem 0;
    font-size: 0.85rem;
    line-height: 1.2;
}

code {
    font-family: var(--mono);
    color: var(--accent-g);
    background: rgba(255, 255, 255, 0.05);
    padding: 0.1em 0.3em;
    border-radius: 2px;
}

hr {
    border: none;
    border-top: 1px solid var(--muted);
    opacity: 0.3;
    margin: 2rem 0;
}

::selection {
    background: var(--accent-r);
    color: var(--bg);
}

/* Shown until the WebAssembly runtime boots and Blazor replaces #app. */
.boot {
    color: var(--muted);
    padding: 2rem;
    font-size: 0.9rem;
}

#blazor-error-ui {
    background: var(--accent-r);
    color: var(--bg);
    padding: 0.6rem 1.2rem;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    display: none;
    font-size: 0.9rem;
}

#blazor-error-ui a.reload {
    color: var(--bg);
    text-decoration: underline;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    float: right;
}
