body {
    align-items: center;
    padding: 24px 16px;
}

.card {
    width: 100%;
    max-width: 420px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.logo {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    object-fit: cover;
    background: rgb(var(--gray-100));
}

.card h1 {
    margin: 16px 0 8px;
    line-height: 1;
}

.card .subtitle {
    margin-bottom: 24px;
    line-height: 1.3;
    color: rgb(var(--gray-700));
}

.links {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.link-row {
    position: relative;
    width: 100%;
}

/* adjustments so long labels wrap cleanly and leave room for the share icon */
.link-row .link-btn {
    display: block;
    width: 100%;
    padding: 15px 48px;
    line-height: 1.1;
}

.link-share-btn {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    border-radius: 50%;
    color: rgb(var(--white));
    transition: color 0.2s;
}

.link-row:hover .link-btn {
    background: white;
    color: rgb(var(--base1));
}

.link-row:hover .link-share-btn {
    color: rgb(var(--base1));
}

.share-btn {
    margin-top: 24px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: none;
    color: rgb(var(--gray-700));
}

.share-btn:hover {
    color: rgb(var(--base1));
}

/* adapted from copy-it.js */
.toast {
    position: fixed;
    left: 50%;
    bottom: 2rem;
    transform: translateX(-50%) translateY(10px);
    background: #111827;
    color: white;
    padding: 0.5em 0.9em;
    border-radius: 999px;
    font-family: var(--font-secondary);
    font-size: 22px;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 150ms ease, transform 150ms ease;
    z-index: 9999;
}

.toast.visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}
