/*
Theme Name: NiagaraBio Terminal
Description: NiagaraBio's interactive terminal home page, with its classic website view and Tickfall Arcade. Includes a standard fallback for WordPress pages and posts.
Version: 1.0.1
Author: NiagaraBio
Requires at least: 5.2
Requires PHP: 7.4
Text Domain: niagarabio-terminal
*/

/* Keep the terminal and game below the WordPress toolbar when signed in. */
body#terminal.admin-bar { --niagarabio-adminbar-height: 32px; }
body#terminal.admin-bar .topbar { top: var(--niagarabio-adminbar-height); }
body#terminal.admin-bar.game-active .output {
    height: calc(100vh - var(--niagarabio-adminbar-height));
    height: calc(100dvh - var(--niagarabio-adminbar-height));
}
body#terminal.admin-bar #wpadminbar { position: fixed; }
@media screen and (max-width: 782px) {
    body#terminal.admin-bar { --niagarabio-adminbar-height: 46px; }
}

/* Existing WordPress pages and posts retain readable conventional layouts. */
.niagarabio-content { margin: 0; background: #171717; color: #e4e4df; font: 16px/1.7 system-ui, sans-serif; }
.niagarabio-content * { box-sizing: border-box; }
.niagarabio-content a { color: #91c7c1; text-underline-offset: .2em; }
.niagarabio-content a:focus-visible { outline: 2px solid #d6b296; outline-offset: 4px; }
.niagarabio-content .site-header, .niagarabio-content main, .niagarabio-content .site-footer {
    width: min(100% - 40px, 900px); margin-inline: auto;
}
.niagarabio-content .site-header { padding-block: 24px; border-bottom: 1px solid #41413e; }
.niagarabio-content .site-brand { color: #e4e4df; font-weight: 700; text-decoration: none; }
.niagarabio-content main { min-height: 60vh; padding-block: 32px; }
.niagarabio-content .niagarabio-post { margin-bottom: 48px; overflow-wrap: anywhere; }
.niagarabio-content h1, .niagarabio-content h2 { line-height: 1.25; }
.niagarabio-content img, .niagarabio-content video { max-width: 100%; height: auto; }
.niagarabio-content iframe { max-width: 100%; }
.niagarabio-content pre { overflow-x: auto; }
.niagarabio-content .nav-links { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; }
.niagarabio-content .site-footer { padding-block: 24px; border-top: 1px solid #41413e; }
.niagarabio-content .screen-reader-text {
    position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.niagarabio-content .skip-link:focus {
    position: fixed; top: 48px; left: 20px; width: auto; height: auto; margin: 0;
    clip: auto; padding: 10px 16px; background: #171717; z-index: 100000;
}
