:root {
    --bg: #000000;
    --card-bg: #333333;
    --fg: #ffffff;
    --muted: #c8cccf;
    --accent: #00ff00;
    --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans TC", Arial, sans-serif;
}

* {
    box-sizing: border-box;
}

html, body {
    height: 100%;
}

body {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 1.5em;
    background: var(--bg);
    color: var(--fg);
    font-family: var(--font);
    font-weight: 300;
    line-height: 1.6;
}

.card {
    width: 100%;
    max-width: 27em;
    padding: 3.5em 2.5em 2.5em;
    background: var(--card-bg);
    border-radius: 4px;
    text-align: center;
    animation: enter 0.6s ease both;
}

@media (prefers-reduced-motion: reduce) {
    .card {
        animation: none;
    }
}

@keyframes enter {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.avatar {
    display: block;
    width: 8em;
    height: 8em;
    margin: 0 auto 1.5em;
    border-radius: 100%;
    box-shadow: 0 0 0 0.2em var(--fg);
}

h1 {
    margin: 0 0 0.5em;
    font-size: 1.5em;
    font-weight: 300;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

.subtitle {
    margin: 0;
    color: var(--muted);
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

hr {
    margin: 2em 0;
    border: none;
    border-top: solid 1px var(--muted);
    opacity: 0.35;
}

.links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5em;
    margin: 0;
    padding: 0;
    list-style: none;
}

.links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3.25em;
    height: 3.25em;
    border: solid 1px var(--muted);
    border-radius: 100%;
    color: var(--fg);
    text-decoration: none;
    transition: border-color 0.2s ease, color 0.2s ease;
}

.links a svg {
    width: 1.4em;
    height: 1.4em;
}

.links a:hover,
.links a:focus-visible {
    border-color: var(--accent);
    color: var(--accent);
}

.links a:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.site-footer {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 1em;
    margin: 0;
    color: var(--muted);
    font-size: 0.8em;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    text-align: center;
}

.site-footer a {
    color: inherit;
}

.site-footer a:hover,
.site-footer a:focus-visible {
    color: var(--accent);
}

body.fade-out .card,
body.fade-out .site-footer {
    opacity: 0;
    transition: opacity 0.4s ease;
}

@media screen and (max-width: 480px) {
    .card {
        padding: 3em 1.5em 2em;
    }
}
