:root {
    --system-font: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
}

html {
    height: 100%;
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    display: flex;
    flex-flow: column;
    justify-content: center;
    align-items: center;
    position: relative;
    margin: 0;
    padding: 0;
    height: auto;
    min-height: 100%;
    line-height: 1.2;
    font-family: var(--system-font);
    font-size: 1rem;
    color: #000;
}

body::before {
    display: block;
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: -1;
    background: url(./images/bg.png) 50% 0 repeat;
    opacity: .035;
    content: "";
}

body::after {
    display: block;
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: -1;
    background:
        radial-gradient(circle at top center, transparent, #ffffffaa),
        radial-gradient(circle at top left, transparent, #ffffff55),
        radial-gradient(circle at bottom right, #ffffff77, transparent);

    content: "";
}

body > main {
    padding: 32px;
}

.bar {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto 1fr;
    grid-gap: 0 48px;
    border: 1px solid rgba(0, 0, 0, .0125);
    border-radius: 16px;
    box-shadow: 2px 2px 4px rgba(0, 0, 0, .05), 0 0 24px rgba(0, 0, 0, .05);
    padding: 48px;
    max-width: 480px;
    background: #fff;
    background-clip: padding-box;
    transition: padding .25s;
}

.bar-logo {
    display: block;
    grid-row: 1 / -1;
    grid-column: 1;
    width: 112px;
    height: 112px;
    background: url(./images/logo.svg) 100% 0 no-repeat;
    background-size: contain;
    transition: margin-left .25s;
}

.bar-title {
    display: block;
    grid-row: 1;
    grid-column: 2;
    font-size: 1.75rem;
    font-weight: bold;
    color: rgba(0, 0, 0, .35);
}

.bar-title::after {
    display: block;
    margin: 24px 0 48px;
    width: 56px;
    height: 1px;
    background: rgba(0, 0, 0, .25);
    content: "";
}

.bar-text {
    display: block;
    grid-row: 2;
    grid-column: 2;
    margin-bottom: 12px;
    line-height: 1.625;
    color: rgba(0, 0, 0, .75);
}

.bar-text-selected {
    display: inline-block;
    border: 1px solid rgba(0, 0, 0, .1);
    border-radius: 32px;
    padding: 0 8px;
    background: #00000005;
    color: #000;
}

.coopyright {
    display: block;
    margin: 24px 0 0 48px;
    font-size: .9rem;
    color: rgba(0, 0, 0, .5);
    transition: margin-left .25s;
}

.coopyright a {
    color: inherit;
    text-decoration: none;
    transition: color .25s;
}

.coopyright a:hover {
    color: #000;
}

@media (max-width: 520px) {
    body::before {
        background-size: 120%;
    }

    .bar {
        display: block;
        padding: 32px;
    }

    .bar-logo {
        margin-left: -10px;
        width: clamp(72px, 20vw, 112px);
        height: clamp(72px, 20vw, 112px);
    }

    .bar-title {
        margin-top: 24px;
        font-size: clamp(1.25rem, 6vw, 1.75rem);
    }

    .bar-text {
        margin-top: 24px;
        font-size: clamp(.75rem, 4vw, 1rem);
    }

    .coopyright {
        margin-left: 32px;
        font-size: clamp(.75rem, 4vw, .9rem);
    }
}
