/* Lab index — stark black & white */

:root {
    --black: #000000;
    --white: #ffffff;
    --muted: rgba(0, 0, 0, 0.55);
}

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

body {
    margin: 0;
    min-height: 100vh;
    font-family: Lato, system-ui, sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.55;
    color: var(--black);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
}

.lab-page {
    width: 100%;
    max-width: 640px;
    margin: 0 auto;
    padding: clamp(40px, 10vw, 72px) clamp(20px, 5vw, 32px) 80px;
}

.page-hero {
    margin-bottom: clamp(36px, 7vw, 48px);
    padding-bottom: clamp(28px, 5vw, 36px);
    border-bottom: 2px solid var(--black);
}

.page-hero h1 {
    margin: 0 0 12px;
    font-family: "Playfair Display", Georgia, serif;
    font-size: clamp(28px, 6vw, 36px);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
    color: var(--black);
}

.page-hero p {
    margin: 0;
    font-family: Lato, system-ui, sans-serif;
    font-size: 15px;
    color: var(--muted);
    max-width: none;
    white-space: nowrap;
}

@media (max-width: 520px) {
    .page-hero p {
        white-space: normal;
    }
}

.section {
    margin-bottom: clamp(36px, 6vw, 44px);
}

.section:last-of-type {
    margin-bottom: 0;
}

.section-label {
    margin: 0 0 12px;
    font-family: "Playfair Display", Georgia, serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--black);
}

.tool-list {
    list-style: none;
    margin: 0;
    padding: 0;
    background: var(--white);
    border: 2px solid var(--black);
    overflow: hidden;
}

.tool-list li {
    border-bottom: 1px solid var(--black);
}

.tool-list li:last-child {
    border-bottom: none;
}

.tool-link {
    display: flex;
    align-items: baseline;
    gap: 12px;
    padding: 16px 18px;
    text-decoration: none;
    color: var(--black);
    transition: background-color 0.12s ease, color 0.12s ease;
}

.tool-link:hover {
    background: var(--black);
    color: var(--white);
}

.tool-link:focus-visible {
    outline: 2px solid var(--black);
    outline-offset: 2px;
    position: relative;
    z-index: 1;
}

.tool-link:hover:focus-visible {
    outline-color: var(--white);
}

.tool-name {
    font-weight: 400;
    font-size: 16px;
    letter-spacing: 0.01em;
}

.tool-desc {
    font-size: 14px;
    color: var(--muted);
    text-align: right;
    margin-left: auto;
    min-width: 0;
}

.tool-link:hover .tool-desc {
    color: rgba(255, 255, 255, 0.75);
}

.tool-link .arrow {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    opacity: 0.85;
    transition: transform 0.12s ease, opacity 0.12s ease;
}

.tool-link:hover .arrow {
    opacity: 1;
    transform: translateX(3px);
}

@media (max-width: 768px) {
    #virtual-pianos-section {
        display: none !important;
    }
}

@media (max-width: 600px) {
    .tool-link {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .tool-desc {
        text-align: left;
        margin-left: 0;
    }

    .tool-link .arrow {
        display: none;
    }
}
