/* Systems page. */

:root {
    --hl-cyan: #00ffff;
    --hl-orange: #ff9100;
    --hl-surface: rgba(255, 255, 255, 0.1);
    --hl-surface-soft: rgba(255, 255, 255, 0.05);
    --hl-line: rgba(255, 255, 255, 0.15);
    --hl-muted: rgba(255, 255, 255, 0.6);
    --hl-mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
}

/* Shared width with .social-links / .other-stuff on the home page */

.hl-heading,
.hl-edge-wrap,
.hl-global,
.hl-nodes,
.hl-back {
    width: 90%;
    max-width: 920px;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
}

h2.hl-heading {
    text-align: left;
    margin: 2.2rem auto 1rem auto;
    background: linear-gradient(to left, var(--hl-cyan), var(--hl-orange));
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}

/* The path in */

.hl-edge {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 18px 14px;
    background-color: var(--hl-surface);
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.hl-hop {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 14px;
    background-color: var(--hl-surface-soft);
    border: 1px solid var(--hl-line);
    border-radius: 10px;
}

.hl-hop-text {
    display: flex;
    flex-direction: column;
    line-height: 1.25;
}

.hl-hop-name {
    font-weight: 600;
    font-size: 15px;
}

.hl-hop-note {
    font-family: var(--hl-mono);
    font-size: 12px;
    color: var(--hl-muted);
}

.hl-arrow {
    color: var(--hl-orange);
    font-size: 22px;
    line-height: 1;
}

/* Notes that apply to every node  */

.hl-global {
    margin-top: 14px;
    padding: 16px 20px;
    border: 1px dashed var(--hl-line);
    border-radius: 10px;
}

.hl-global h3 {
    margin: 0 0 8px 0;
    font-size: 13px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--hl-cyan);
    font-weight: 600;
}

.hl-global ul {
    margin: 0;
    padding-left: 18px;
    font-family: "Poppins", sans-serif;
    font-size: 15px;
    color: rgba(255, 255, 255, 0.85);
}

.hl-global li+li {
    margin-top: 4px;
}

/* Node cards: 
   Columns, not grid. A grid row is as tall as its tallest card, which left a
   dead gap under the short ones. Columns let each card sit right under the
   one above it. i asked claude for that idk what it means but thanks claude. nvm i get it now i re-read it its 4AM*/

.hl-nodes {
    column-count: 2;
    column-gap: 20px;
}

.hl-node {
    break-inside: avoid;
    -webkit-column-break-inside: avoid;
    margin: 0 0 20px 0;
    background-color: var(--hl-surface);
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    padding: 22px;
    transition: transform 0.3s ease-in-out;
}

.hl-node:hover {
    transform: translateY(-3px);
}

.hl-node-head {
    border-bottom: 1px solid var(--hl-line);
    padding-bottom: 12px;
}

.hl-node-name {
    margin: 0;
    font-family: var(--hl-mono);
    font-size: 19px;
    font-weight: 700;
    background: linear-gradient(to right, var(--hl-cyan), var(--hl-orange));
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}

.hl-node-role {
    margin: 4px 0 0 0;
    font-family: "Poppins", sans-serif;
    font-size: 14px;
    color: var(--hl-muted);
}

.hl-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    list-style: none;
    margin: 14px 0 0 0;
    padding: 0;
}

.hl-chip {
    font-size: 13px;
    font-weight: 500;
    padding: 3px 10px;
    border: 1px solid var(--hl-line);
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.8);
}

.hl-specs {
    list-style: none;
    margin: 14px 0 0 0;
    padding: 0;
    font-family: var(--hl-mono);
    font-size: 15px;
    color: var(--hl-muted);
}

.hl-specs li {
    padding: 2px 0;
}

.hl-specs li::before {
    content: "- ";
    color: var(--hl-orange);
}

.hl-group-label {
    margin: 20px 0 10px 0;
    font-size: 12px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--hl-cyan);
}

.hl-services {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 8px;
}

.hl-service {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 10px;
    background-color: var(--hl-surface-soft);
    text-decoration: none;
    color: white;
    transition: background-color 0.3s, transform 0.3s;
}

a.hl-service:hover,
a.hl-service:focus-visible {
    background-color: rgba(255, 255, 255, 0.14);
    transform: translateY(-2px);
}

.hl-service-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
    min-width: 0;
}

.hl-service-name {
    font-size: 14px;
    font-weight: 500;
    overflow-wrap: anywhere;
}

.hl-service-sub {
    font-family: var(--hl-mono);
    font-size: 11px;
    color: var(--hl-muted);
}

.hl-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 26px;
    width: 26px;
    height: 26px;
}

.hl-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.hl-icon-fallback {
    background-color: rgba(255, 255, 255, 0.12);
    border-radius: 6px;
    font-size: 13px;
    font-weight: 700;
    color: var(--hl-cyan);
}

/* Virtual machines nested inside a node */

.hl-guest {
    margin-top: 10px;
    padding: 14px;
    border: 1px solid var(--hl-line);
    border-left: 2px solid var(--hl-cyan);
    border-radius: 0 10px 10px 0;
    background-color: rgba(255, 255, 255, 0.03);
}

.hl-guest+.hl-guest {
    margin-top: 12px;
}

.hl-guest-head {
    display: flex;
    align-items: center;
    gap: 10px;
}

.hl-guest-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.hl-guest-name {
    font-family: var(--hl-mono);
    font-size: 15px;
    font-weight: 700;
}

.hl-guest-sub {
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--hl-muted);
}

/* Tighter labels inside a VM so the nesting reads as nesting */
.hl-guest .hl-group-label {
    margin: 14px 0 8px 0;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.55);
}

/* Media flow and per-node notes */

.hl-flow {
    margin: 16px 0 0 0;
    padding: 10px 12px;
    border-left: 2px solid var(--hl-orange);
    background-color: var(--hl-surface-soft);
    border-radius: 0 10px 10px 0;
    font-family: var(--hl-mono);
    font-size: 13px;
    color: rgba(255, 255, 255, 0.85);
    overflow-wrap: anywhere;
}

.hl-notes {
    margin: 16px 0 0 0;
    padding-left: 18px;
    font-family: "Poppins", sans-serif;
    font-size: 13px;
    color: var(--hl-muted);
}

.hl-notes li+li {
    margin-top: 4px;
}

/* Small screens */

@media (max-width: 760px) {
    .hl-nodes {
        column-count: 1;
    }
}

@media (max-width: 700px) {
    .hl-arrow {
        transform: rotate(90deg);
    }

    .hl-edge {
        flex-direction: column;
    }

    .hl-hop {
        width: 100%;
        box-sizing: border-box;
    }

    .hl-node {
        padding: 18px;
    }
}

main > .about-me {
    margin-bottom: 0;
}

h2.hl-heading:first-of-type {
    margin-top: 1.4rem;
}

.homelab-link {
    color: rgb(255, 255, 255);
    font-size: 17px;
    text-decoration: none;
}

/* Icons in node headers and platform chips*/

.hl-node-head {
    display: flex;
    align-items: center;
    gap: 12px;
}

.hl-node-head .hl-icon {
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
}

.hl-node-head-text {
    min-width: 0;
}

.hl-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.hl-chip .hl-icon {
    flex: 0 0 15px;
    width: 15px;
    height: 15px;
}

/* Keep everything pinned under the navbar instead of drifting to
   the middle now that the page is shorter. */
body,
main {
    justify-content: flex-start;
}

/* Padding for spacing between navbar and the main content */

main {
    justify-content: flex-start;
    padding: 20px;
}