:root {
    color-scheme: light dark;
    --ink: #212121;
    --muted: #a8afb8;
    --page: #fbfcfe;
    --line: #e7ebf2;
    --surface: #ffffff;
    --surface-strong: #f8faff;
    --icon-surface: #f4f6fa;
    --focus: rgba(14, 92, 247, 0.24);
}

@media (prefers-color-scheme: dark) {
    :root {
        --ink: #eef1f6;
        --muted: #aab2bd;
        --page: #17191d;
        --line: #343a44;
        --surface: #20242b;
        --surface-strong: #2a3039;
        --icon-surface: #303742;
        --focus: rgba(91, 149, 255, 0.45);
    }

    .link-icon {
        color: #ffffff;
    }

    .link-icon svg {
        fill: currentColor;
    }

    .link-icon img {
        filter: invert(1) brightness(2);
    }
}

body {
    min-height: 100vh;
    background: var(--page);
    color: var(--ink);
}

body::after {
    display: none;
}

a,
a:visited {
    color: inherit;
}

.main {
    width: min(100% - 32px, 480px);
    min-height: 100vh;
    display: grid;
    align-content: center;
    gap: 18px;
    margin: 0 auto;
    padding: 40px 0;
}

.profile {
    text-align: center;
}

#portrait {
    width: 112px;
    height: 112px;
    border-radius: 24px;
    object-fit: cover;
}

.mono {
    font-family: monospace;
    font-weight: 400;
}

.link-table {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--surface);
}

.link-row {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr) 14px;
    align-items: center;
    gap: 12px;
    min-height: 52px;
    padding: 11px 14px;
    border-bottom: 1px solid var(--line);
    background: var(--surface);
    text-decoration: none;
    transition: background-color 0.2s ease;
}

.link-row:last-child {
    border-bottom: 0;
}

.link-row:hover,
.link-row:focus-visible {
    background: var(--surface-strong);
}

.link-row:focus-visible {
    outline: 3px solid var(--focus);
    outline-offset: -3px;
}

.link-icon {
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    border-radius: 9px;
    background: var(--icon-surface);
    color: var(--ink);
    font-size: 15px;
}

.link-icon img {
    width: 15px;
    height: 15px;
    display: block;
}

.link-icon img.imdb-wordmark {
    width: 20px;
}

.link-copy {
    min-width: 0;
}

.link-title {
    display: block;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.25;
}

.link-handle {
    display: block;
    margin-top: 2px;
    color: var(--muted);
    font-size: 10px;
    font-weight: 400;
    line-height: 1.3;
    overflow-wrap: anywhere;
}

.link-arrow {
    color: var(--muted);
    font-size: 11px;
}

@media (max-width: 540px) {
    .main {
        width: min(100% - 24px, 480px);
        align-content: start;
        padding-top: 30px;
    }
}
