:root {
    color-scheme: dark;
    --background: #14161a;
    --border: #4a5560;
    --muted: #8fa3ab;
    --text: #cdd3d8;
    --panel-text: #b7c1c8;
    --highlight: #cf9c50;
}

* {
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
}

body {
    margin: 0;
    min-width: 0;
    min-height: 100vh;
    background:
        linear-gradient(rgb(180 170 150 / 4%) 1px, transparent 1px) 0 0 / 100% 28px,
        var(--background);
    color: var(--text);
    font-family: "Segoe UI", Consolas, monospace;
    line-height: 1.5;
}

.shell {
    display: grid;
    grid-template-columns: 250px minmax(0, 1fr);
    gap: 1.5rem;
    width: 100%;
    max-width: 1050px;
    margin: 0 auto;
    padding: 2rem 1.25rem 4rem;
}

.console {
    display: flex;
    align-self: start;
    flex-direction: column;
    gap: 1.5rem;
    padding: 1.5rem 1.25rem;
    border: 1px solid var(--border);
    background: rgb(120 140 150 / 4%);
}

.brand .tag,
.console .label {
    color: var(--muted);
    font-size: 0.7rem;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.brand h1 {
    margin: 0.3rem 0 0;
    color: #e7ebee;
    font-size: 1.6rem;
}

.brand .badge {
    display: inline-block;
    margin-top: 0.6rem;
    padding: 0.2rem 0.5rem;
    border: 1px solid #b8863c;
    color: var(--highlight);
    font-size: 0.65rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.console .label {
    margin-bottom: 0.6rem;
    font-size: 0.68rem;
    letter-spacing: 2px;
}

.console .group-label {
    margin-top: 0.75rem;
}

.console nav a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.4rem;
    border-left: 2px solid transparent;
    color: var(--panel-text);
    font-size: 0.83rem;
    letter-spacing: 0.5px;
    text-decoration: none;
    text-transform: uppercase;
}

.social-icon {
    width: 1rem;
    height: 1rem;
    flex: none;
}

a:hover {
    color: #fff;
}

a:focus-visible {
    outline: 2px solid var(--highlight);
    outline-offset: 3px;
}

.console nav a:hover {
    border-left-color: var(--highlight);
    background: rgb(207 156 80 / 6%);
}

.telemetry {
    margin-top: auto;
    padding-top: 1.5rem;
    color: var(--muted);
    font-size: 0.75rem;
}

.telemetry div:not(.label) {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.35rem 0;
    border-bottom: 1px dashed #2b333a;
}

.telemetry strong {
    color: var(--highlight);
}

main {
    min-width: 0;
}

main .panel {
    position: relative;
    margin-bottom: 1.25rem;
    padding: 1.5rem 1.75rem;
    border: 1px solid var(--border);
    background: rgb(30 34 38 / 60%);
}

main .panel::before {
    position: absolute;
    top: -0.7em;
    left: 1rem;
    padding: 0 0.5rem;
    background: var(--background);
    color: var(--muted);
    content: attr(data-id);
    font-size: 0.68rem;
    letter-spacing: 2px;
}

main .panel h2 {
    margin: 0 0 0.75rem;
    color: var(--highlight);
    font-size: 0.95rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

main .panel p {
    max-width: 60ch;
    margin: 0;
    color: var(--panel-text);
}

.linklist {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
    margin: 1rem 0 0;
    padding: 0;
    list-style: none;
}

.linklist a {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.55rem 0.8rem;
    border: 1px solid #2b333a;
    color: var(--text);
    font-size: 0.85rem;
    text-decoration: none;
}

.linklist a::after {
    color: var(--highlight);
    content: "->";
}

.linklist a:hover {
    border-color: var(--highlight);
    background: rgb(207 156 80 / 6%);
}

.linklist span {
    color: var(--muted);
    font-size: 0.75rem;
}

footer {
    grid-column: 1 / -1;
    margin-top: 0.5rem;
    color: var(--border);
    font-size: 0.72rem;
    letter-spacing: 1px;
    text-align: right;
}

@media (max-width: 720px) {
    .shell {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 550px) {
    .shell {
        padding-inline: 0.75rem;
    }

    .linklist {
        grid-template-columns: minmax(0, 1fr);
    }
}
