*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: #000;
    font-family: 'Courier New', monospace;
    color: #e0e0e0;
    line-height: 1.6;
    padding: 2rem;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
}

a {
    color: inherit;
}

.val,
.nav-link {
    color: #888;
    font-size: 0.88rem;
    text-decoration: none;
    transition: color 0.2s;
}

.val:hover,
.nav-link:hover {
    color: #fff;
}

.nav-link {
    display: inline-block;
    margin-bottom: 2rem;
}

/* header */
.site-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-top: 1rem;
}

.scroll {
    overflow-x: auto;
    margin-bottom: 0.75rem;
    scrollbar-width: none;
}

.scroll::-webkit-scrollbar {
    display: none;
}

.banner {
    display: inline-block;
    text-align: left;
    color: #fff;
    white-space: pre;
    font-size: 0.6rem;
    line-height: 1.2;
}

.profile-image {
    max-width: 300px;
    border: 1px solid #333;
    margin: 2rem auto;
    display: block;
}

/* contact */
section {
    margin-bottom: 5rem;
}

.block {
    background: #0a0a0a;
    border: 1px solid #222;
    padding: 0.5rem;
    max-width: 250px;
    margin: 0 auto;
}

.entry {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 1.5rem;
    padding: 0.65rem 0;
}

/* footer */
.footer {
    margin-top: 4rem;
    padding-top: 1.5rem;
    border-top: 1px solid #0e0e0e;
    text-align: center;
    font-size: 0.66rem;
    color: #1e1e1e;
    letter-spacing: 2px;
    transition: color 0.3s;
}

.footer:hover {
    color: #333;
}

.footer p + p {
    margin-top: 0.35rem;
}

/* PGP page */
.pgp-wrapper {
    background: #0a0a0a;
    border: 1px solid #222;
    padding: 2rem;
    margin: 0 auto 2rem auto;
    width: fit-content;
    max-width: 100%;
}

.fingerprint-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px dashed #222;
}

.fingerprint-label {
    font-size: 0.68rem;
    color: #555;
    letter-spacing: 3px;
    text-transform: uppercase;
    display: block;
    margin-bottom: 0.5rem;
}

.fingerprint-value {
    font-size: 0.9rem;
    color: #e0e0e0;
    word-break: break-all;
    letter-spacing: 1px;
    cursor: pointer;
    display: inline-block;
    padding: 0.5rem 0.75rem;
    border: 1px solid #333;
    background: #111;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.fingerprint-value:hover,
.fingerprint-value:focus-visible {
    background: #1e1e1e;
    border-color: #555;
    outline: none;
}

.fingerprint-value:focus-visible {
    outline: 2px solid #888;
    outline-offset: 2px;
}

.download-btn {
    display: table;
    margin: 0 auto 2rem auto;
    padding: 0.5rem 1rem;
    border: 1px solid #333;
    color: #888;
    text-decoration: none;
    font-size: 0.75rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: all 0.2s;
}

.download-btn:hover {
    color: #fff;
    border-color: #666;
    background: #111;
}

.key-block {
    font-size: 0.75rem;
    color: #666;
    overflow-x: auto;
    scrollbar-width: thin;
    scrollbar-color: #333 #0a0a0a;
}

.key-block::-webkit-scrollbar {
    height: 6px;
}

.key-block::-webkit-scrollbar-thumb {
    background-color: #333;
}

.clipboard-alert {
    position: fixed;
    top: 1.5rem;
    left: 50%;
    transform: translateX(-50%) translateY(-200%);
    background: #0b1a0c;
    border: 1px solid #1c4d20;
    color: #6dbf74;
    padding: 0.55rem 1.1rem 0.55rem 0.9rem;
    font-size: 0.72rem;
    letter-spacing: 2px;
    opacity: 0;
    pointer-events: none;
    z-index: 1000;
    white-space: nowrap;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
}

.clipboard-alert.show {
    animation: alert-slide 1.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes alert-slide {
    0%   { transform: translateX(-50%) translateY(-200%); opacity: 0; }
    12%  { transform: translateX(-50%) translateY(0);     opacity: 1; }
    78%  { transform: translateX(-50%) translateY(0);     opacity: 1; }
    100% { transform: translateX(-50%) translateY(-200%); opacity: 0; }
}

@media (max-width: 600px) {
    body {
        padding: 1rem;
    }

    .pgp-wrapper {
        padding: 1rem;
    }

    .fingerprint-value {
        font-size: 0.75rem;
    }

    .key-block {
        font-size: 0.6rem;
    }

    .banner {
        font-size: 0.35rem;
    }

    .entry {
        flex-direction: column;
        gap: 0.2rem;
    }
}

@media (max-width: 400px) {
    .banner {
        font-size: 0.28rem;
    }
}
