@import url("https://fonts.googleapis.com/css2?family=Fragment+Mono:ital@0;1&family=Syne:wght@500;700;800&family=Work+Sans:wght@400;500&display=swap");

:root {
    --bg: #f4f1ea;
    --ink: #111111;
    --ascii: #1f3a2e;
    --link: #0b66c3;
    --panel: rgba(244, 241, 234, 0.44);
    --panel-border: rgba(31, 58, 46, 0.3);
}

* {
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    height: 100%;
}

body {
    margin: 0;
    position: relative;
    background: radial-gradient(circle at 84% 8%, #fff8ee 0%, var(--bg) 45%, #ece7de 100%);
    color: var(--ink);
    font-family: "Work Sans", "Avenir Next", "Segoe UI", sans-serif;
    font-weight: 400;
    overflow: hidden;
}

#ascii-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    margin: 0;
    z-index: 0;
    pointer-events: none;
    user-select: none;
    white-space: pre;
    font-family: "Fragment Mono", Menlo, Monaco, monospace;
    font-size: 12px;
    line-height: 10px;
    letter-spacing: 0.4px;
    color: var(--ascii);
    opacity: 0.5;
}

.layout {
    position: relative;
    z-index: 1;
    height: 100%;
    display: grid;
    place-items: center;
    padding: 26px;
}

.profile-card {
    width: min(940px, 100%);
    max-height: calc(100vh - 52px);
    overflow: hidden;
    padding: 24px 26px 22px;
    background: var(--panel);
    border: 1px solid var(--panel-border);
    border-radius: 22px;
    box-shadow: 0 12px 28px rgba(28, 22, 14, 0.08);
    backdrop-filter: blur(2px);
    position: relative;
    display: grid;
    justify-items: center;
    align-content: center;
    gap: 18px;
}

.profile-card::before {
    content: "";
    position: absolute;
    inset: 8px;
    border: 1px solid rgba(17, 17, 17, 0.06);
    border-radius: 16px;
    pointer-events: none;
}

h1 {
    margin: 0;
    font-family: "Syne", "Trebuchet MS", sans-serif;
    font-size: clamp(38px, 6.2vw, 62px);
    line-height: 1.04;
    letter-spacing: 0;
    text-align: center;
}

.profile-card p {
    margin: 0;
    max-width: 62ch;
    text-align: center;
    font-size: clamp(16px, 1.25vw, 19px);
    line-height: 1.32;
    font-weight: 400;
}

a {
    color: var(--link);
    text-decoration: none;
    transition: color 140ms ease;
}

a:hover {
    color: #084f9b;
}

.actions {
    margin-top: 18px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.action {
    font-family: "Fragment Mono", Menlo, Monaco, monospace;
    font-size: 13px;
    letter-spacing: 0.03em;
    border: 1px solid rgba(11, 102, 195, 0.34);
    border-radius: 999px;
    padding: 10px 16px;
    color: #0c4a8e;
    background: rgba(255, 255, 255, 0.55);
    text-decoration: none;
}

.action:hover {
    text-decoration: none;
    transform: translateY(-1px);
}

.action.primary {
    border-color: #0b66c3;
    color: #ffffff;
    background: linear-gradient(135deg, #0b66c3 0%, #2f7fcc 100%);
}

.action.ghost {
    color: #3c3a35;
    border-color: rgba(60, 58, 53, 0.3);
}

@media (max-width: 740px) {
    #ascii-bg {
        font-size: 10px;
        line-height: 9px;
    }

    .layout {
        align-items: center;
        padding: 16px;
    }

    .profile-card {
        border-radius: 22px;
        padding: 24px 20px 22px;
        max-height: calc(100vh - 32px);
    }

    .profile-card::before {
        inset: 8px;
        border-radius: 16px;
    }

    .actions {
        gap: 10px;
    }
}
