/* The hub belongs to quantumbagel as a whole: brand navy and text blue
   (#10183a, #b6d6f6, from the game intro), Figtree, the pixel bagel. */

:root {
    --navy: #10183a;
    --text-1: #e3eefb;
    --text-2: #b6d6f6;
    --text-3: #8ea8cc;
    --hair: rgba(182, 214, 246, 0.2);
    --focus: #e3eefb;
    --skip-bg: #e3eefb;
    --skip-fg: #10183a;
}

body.hub {
    background: var(--navy);
    color: var(--text-2);
    font:
        400 18px/1.55 "Figtree",
        system-ui,
        -apple-system,
        "Segoe UI",
        sans-serif;
}

.wrap {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    max-width: 960px;
    margin: 0 auto;
    padding: 24px 24px 32px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--text-1);
    font-weight: 500;
    font-size: 20px;
    text-decoration: none;
}
.brand img {
    width: 32px;
    height: 32px;
    image-rendering: pixelated;
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 230px;
    gap: 48px;
    align-items: center;
    padding: 64px 0 56px;
}

.hero h1 {
    margin: 0 0 16px;
    max-width: 14ch;
    color: var(--text-1);
    font-weight: 500;
    font-size: 48px;
    line-height: 1.08;
    letter-spacing: -0.015em;
}

.hero p {
    margin: 0;
    max-width: 44ch;
}

.hero .mark {
    width: 230px;
    height: 230px;
    image-rendering: pixelated;
    justify-self: end;
}

.tools h2 {
    margin: 0 0 12px;
    color: var(--text-3);
    font-size: 16px;
    font-weight: 500;
}

.tools ul {
    margin: 0;
    padding: 0;
    list-style: none;
    border-block: 1px solid var(--hair);
}

.tools li + li {
    border-top: 1px solid var(--hair);
}

.tool {
    display: block;
    padding: 24px 0;
    color: inherit;
    text-decoration: none;
}
.tool-name {
    display: block;
    color: var(--text-1);
    font-size: 24px;
    font-weight: 500;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 6px;
    text-decoration-color: rgba(182, 214, 246, 0.4);
    transition: text-decoration-color 0.15s ease;
}
.tool:hover .tool-name {
    text-decoration-color: currentColor;
}
.tool-desc {
    display: block;
    margin-top: 4px;
    max-width: 56ch;
}
.tool-meta {
    display: block;
    margin-top: 8px;
    color: var(--text-3);
    font-size: 15px;
}

footer {
    margin-top: auto;
    padding-top: 48px;
    color: var(--text-3);
    font-size: 15px;
}
footer p {
    margin: 0;
}

@media (max-width: 720px) {
    .wrap {
        padding: 16px 16px 24px;
    }
    .hero {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 40px 0 40px;
    }
    .hero .mark {
        order: -1;
        justify-self: start;
        width: 115px;
        height: 115px;
    }
    .hero h1 {
        font-size: 34px;
    }
    header .brand img {
        display: none;
    }
    .tool {
        padding: 20px 0;
    }
}
