:root {
    color-scheme: dark;
    --bg: #07070a;
    --surface: rgba(255, 255, 255, 0.08);
    --surface-strong: rgba(255, 255, 255, 0.14);
    --surface-soft: rgba(255, 255, 255, 0.045);
    --text: #fafafa;
    --muted: rgba(250, 250, 250, 0.72);
    --subtle: rgba(250, 250, 250, 0.54);
    --border: rgba(255, 255, 255, 0.14);
    --border-strong: rgba(255, 255, 255, 0.32);
    --accent: #fff1f4;
    --accent-text: #09070a;
    --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
    font-family:
        Inter,
        ui-sans-serif,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    background: var(--bg);
}

body {
    min-height: 100vh;
    margin: 0;
    color: var(--text);
    background:
        radial-gradient(
            circle at top left,
            rgba(255, 56, 104, 0.28),
            transparent 32rem
        ),
        radial-gradient(
            circle at bottom right,
            rgba(45, 140, 255, 0.22),
            transparent 30rem
        ),
        linear-gradient(135deg, #050507 0%, #111118 48%, #050507 100%);
    font-size: 16px;
    line-height: 1.5;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

body::before {
    position: fixed;
    inset: 0;
    pointer-events: none;
    content: "";
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.7), transparent 75%);
}

main {
    position: relative;
    width: min(100% - 32px, 700px);
    margin: 0 auto;
    padding: 56px 0;
}

.profile {
    display: grid;
    gap: 16px;
    justify-items: center;
    text-align: center;
}

.avatar-wrap {
    position: relative;
    display: grid;
    place-items: center;
}

.avatar-wrap::before {
    position: absolute;
    inset: -8px;
    z-index: -1;
    content: "";
    border-radius: 999px;
    background: conic-gradient(
        from 130deg,
        rgba(255, 255, 255, 0.18),
        rgba(255, 56, 104, 0.32),
        rgba(45, 140, 255, 0.24),
        rgba(255, 255, 255, 0.18)
    );
    filter: blur(0.2px);
}

.avatar {
    display: block;
    width: 104px;
    height: 104px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    background: var(--surface);
    box-shadow: var(--shadow);
    object-fit: cover;
}

.kicker {
    margin: 0;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    padding: 6px 12px;
    color: var(--text);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

h1 {
    margin: 0;
    font-size: clamp(1.85rem, 6vw, 2.75rem);
    line-height: 1.05;
    letter-spacing: -0.055em;
}

.intro {
    max-width: 38rem;
    margin: 0;
    color: var(--muted);
    font-size: clamp(1rem, 2.6vw, 1.08rem);
}

.path {
    margin: 0;
    color: rgba(250, 250, 250, 0.86);
    font-size: 0.94rem;
    font-weight: 750;
}

.links {
    display: grid;
    gap: 14px;
    margin: 32px 0 0;
    padding: 0;
    list-style: none;
}

.link-card {
    position: relative;
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) auto;
    gap: 16px;
    align-items: center;
    min-height: 74px;
    padding: 12px 16px 12px 12px;
    overflow: hidden;
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 20px;
    background: linear-gradient(135deg, var(--surface), var(--surface-soft));
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.22);
    text-decoration: none;
    transition:
        transform 160ms ease,
        border-color 160ms ease,
        background-color 160ms ease,
        box-shadow 160ms ease;
}

.link-card::after {
    position: absolute;
    inset: 0;
    pointer-events: none;
    content: "";
    background: linear-gradient(
        110deg,
        transparent,
        rgba(255, 255, 255, 0.08),
        transparent
    );
    opacity: 0;
    transform: translateX(-40%);
    transition:
        opacity 160ms ease,
        transform 240ms ease;
}

.link-card:hover,
.link-card:focus-visible {
    transform: translateY(-2px);
    border-color: var(--border-strong);
    background-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 18px 56px rgba(0, 0, 0, 0.32);
}

.link-card:hover::after,
.link-card:focus-visible::after {
    opacity: 1;
    transform: translateX(40%);
}

.link-card:focus-visible {
    outline: 3px solid rgba(255, 255, 255, 0.92);
    outline-offset: 3px;
}

.link-card.is-primary {
    border-color: rgba(255, 255, 255, 0.28);
    background:
        linear-gradient(
            135deg,
            rgba(255, 241, 244, 0.18),
            rgba(255, 255, 255, 0.055)
        ),
        linear-gradient(135deg, var(--surface), var(--surface-soft));
}

.link-card:hover .link-action,
.link-card:focus-visible .link-action {
    border-color: rgba(255, 255, 255, 0.44);
    background: rgba(255, 255, 255, 0.14);
}

.link-card:hover .link-icon,
.link-card:focus-visible .link-icon {
    transform: scale(1.04);
    border-color: rgba(255, 255, 255, 0.24);
}

.icon-sprite {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
}

.link-icon {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    color: var(--text);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 14px;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.13),
        rgba(255, 255, 255, 0.045)
    );
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
    transition:
        transform 160ms ease,
        border-color 160ms ease;
}

.tabler-icon {
    width: 27px;
    height: 27px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.link-copy,
.link-title,
.link-description {
    display: block;
}

.link-title {
    font-weight: 750;
}

.link-description {
    color: var(--muted);
    font-size: 0.92rem;
}

.link-action {
    min-width: 82px;
    padding: 7px 10px;
    color: var(--text);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    font-size: 0.78rem;
    font-weight: 800;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
}

.link-action.is-shop,
.link-action.is-featured {
    color: var(--accent-text);
    border-color: rgba(255, 255, 255, 0.94);
    background: var(--accent);
}

.link-card:hover .link-action.is-shop,
.link-card:focus-visible .link-action.is-shop,
.link-card:hover .link-action.is-featured,
.link-card:focus-visible .link-action.is-featured {
    color: var(--accent-text);
    border-color: #fff;
    background: #fff;
}

.footer {
    margin-top: 28px;
    color: var(--subtle);
    font-size: 0.88rem;
    text-align: center;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media (max-width: 520px) {
    main {
        width: min(100% - 24px, 700px);
        padding: 36px 0;
    }

    .link-card {
        grid-template-columns: 44px minmax(0, 1fr) auto;
        gap: 12px;
        min-height: 70px;
        padding: 12px;
    }

    .link-icon {
        width: 44px;
        height: 44px;
        border-radius: 12px;
    }

    .tabler-icon {
        width: 25px;
        height: 25px;
    }

    .link-action {
        min-width: 68px;
        padding: 7px 8px;
        font-size: 0.72rem;
    }
}

@media (max-width: 380px) {
    .link-card {
        grid-template-columns: 44px minmax(0, 1fr);
    }

    .link-action {
        grid-column: 2;
        justify-self: start;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}
