:root {
    --night: #12201c;
    --brass: #e8a33d;
    --birch: #f3efe6;
    --moss: #6fa88f;
}

* {
    box-sizing: border-box;
}

html, body {
    height: 100%;
}

body {
    margin: 0;
    min-height: 100svh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--night);
    color: var(--birch);
    font-family: 'IBM Plex Mono', monospace;
}

.card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 8vh 6vw;
}

.badge {
    position: relative;
    width: clamp(96px, 14vw, 160px);
    height: clamp(96px, 14vw, 160px);
    border-radius: 50%;
    border: 1.5px solid var(--brass);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18%;
    margin-bottom: 2.25rem;
    transition: transform 0.25s ease;
}

.badge:hover {
    transform: scale(1.03);
}

/* soft lantern glow behind the badge, like light behind glass */
.badge__halo {
    position: absolute;
    inset: -35%;
    z-index: 0;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(232, 163, 61, 0.35), transparent 70%);
    filter: blur(6px);
    animation: flicker 6s ease-in-out infinite;
}

@keyframes flicker {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

.badge__mark {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    background-color: var(--brass);
    -webkit-mask-image: url("wapiti.png");
    mask-image: url("wapiti.png");
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
}

.wordmark {
    font-family: 'Fraunces', serif;
    font-weight: 500;
    font-size: clamp(2.25rem, 6vw, 3.5rem);
    letter-spacing: -0.01em;
    margin: 0;
    line-height: 1;
    color: var(--birch);
}

.wordmark::first-letter {
    color: var(--brass);
}

.divider {
    width: 32px;
    height: 2px;
    background: var(--brass);
    margin: 1.25rem 0;
}

.tag {
    margin: 0;
    font-size: 0.8rem;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--moss);
}

@media (prefers-reduced-motion: reduce) {
    .badge, .badge__halo {
        transition: none;
        animation: none;
    }
}
