:root {
    --page-bg: #f7f7f7;
    --surface: #ffffff;
    --text: #1f2328;
    --muted: #6b7280;
    --line: #e5e7eb;
    --tile-bg: #f1f3f5;
}

html,
body {
    min-height: 100%;
    margin: 0;
    background: var(--page-bg) !important;
    color: var(--text) !important;
}

* {
    box-sizing: border-box;
}

body {
    background: var(--page-bg) !important;
    color: var(--text) !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    text-rendering: geometricPrecision;
}

a {
    color: inherit !important;
    text-decoration: none !important;
}

.bio-page {
    display: flex;
    flex-direction: column;
    width: min(100%, 975px);
    min-height: 100vh;
    margin: 0 auto;
    background: var(--surface) !important;
    color: var(--text) !important;
    box-shadow: 0 0 0 1px rgba(31, 35, 40, .04);
}

.bio-header {
    position: sticky;
    top: 0;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 62px;
    padding: 0 20px;
    background: rgba(255, 255, 255, .94) !important;
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(14px);
}

.bio-header h1 {
    margin: 0;
    color: var(--text) !important;
    font-size: 16px;
    line-height: 1;
    font-weight: 800;
    letter-spacing: .12em;
}

.bio-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    width: 100%;
    padding: 14px;
}

.bio-card {
    min-width: 0;
    margin: 0;
    overflow: hidden;
    background: var(--tile-bg) !important;
    border-radius: 6px;
}

.bio-card a {
    display: block;
    width: 100%;
    outline-offset: -3px;
}

.bio-card img,
.bio-missing {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
}

.bio-card img {
    object-fit: cover;
    transition: filter .18s ease, transform .18s ease;
}

.bio-card h2 {
    margin: 9px 10px 11px;
    color: var(--text) !important;
    font-size: 18px;
    line-height: 1.18;
    font-weight: 800;
}

.bio-card a:hover img {
    filter: brightness(.94);
    transform: scale(1.015);
}

.bio-missing {
    background: linear-gradient(135deg, #f3f4f6, #e5e7eb);
}

.bio-empty {
    margin: 54px 20px;
    color: var(--muted) !important;
    font-size: 15px;
    text-align: center;
}

.bio-footer {
    display: flex;
    justify-content: center;
    margin-top: auto;
    padding: 110px 20px 46px;
    border-top: 1px solid var(--line);
    background: var(--surface) !important;
}

.bio-logo {
    display: block;
    width: auto;
    max-width: 168px;
    max-height: 76px;
    object-fit: contain;
}

.bio-logo-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.bio-logo-link:focus-visible {
    outline: 2px solid #1f2328;
    outline-offset: 6px;
}

.bio-brand {
    color: var(--text) !important;
    font-size: 14px;
    font-weight: 800;
}

@media (max-width: 700px) {
    .bio-page {
        width: 100%;
        box-shadow: none;
    }

    .bio-header {
        min-height: 54px;
    }

    .bio-header h1 {
        font-size: 14px;
    }

    .bio-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        padding: 8px;
    }

    .bio-card {
        border-radius: 2px;
    }

    .bio-card h2 {
        margin: 8px 8px 10px;
        font-size: 18px;
    }
}
