.ham-site-title {
    color: inherit;
    text-decoration: none;
}

.ham-mode-toggle {
    appearance: none;
    width: auto;
    min-width: max-content;
    height: auto;
    padding: 4px 8px;
    border: 0;
    background: transparent;
    color: #fff;
    font-family: "PixelFont", monospace;
    font-size: 0.78rem;
}

#page-ham {
    max-width: 820px;
}

.ham-band {
    margin-bottom: 4px;
    color: var(--theme-accent);
    font-size: 1rem;
    letter-spacing: 0.12em;
}

.ham-profile {
    display: grid;
    grid-template-columns: minmax(220px, 0.75fr) minmax(0, 1.25fr);
    gap: 28px;
    margin-top: 28px;
    padding: 24px;
    border: 2px solid #333;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 4px 4px 0 var(--theme-accent-soft);
    text-align: left;
}

.ham-label,
.ham-location {
    color: #555;
}

.ham-label {
    margin-bottom: 6px;
}

.ham-identity h2 {
    color: #111;
    font-size: clamp(2.8rem, 8vw, 5rem);
    line-height: 0.95;
    overflow-wrap: anywhere;
}

.ham-location {
    margin-top: 14px;
}

.ham-copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.ham-copy p {
    max-width: 60ch;
    margin-bottom: 72px;
    color: #333;
    font-size: 1.08rem;
    line-height: 1.8;
    text-wrap: pretty;
}

.ham-copy .btn-black {
    position: static;
    margin-top: auto;
}

body.glass-mode #page-ham {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 100vh;
    padding: 15vh 7vw 12vh;
}

body.glass-mode #page-ham > h1 {
    position: relative;
    display: inline-block;
    align-self: flex-start;
    color: transparent;
    -webkit-text-fill-color: transparent;
    -webkit-text-stroke: 0;
    mix-blend-mode: normal;
}

body.glass-mode #page-ham > h1::after {
    content: attr(data-outline-text);
    position: absolute;
    inset: 0;
    color: transparent;
    -webkit-text-fill-color: transparent;
    -webkit-text-stroke: 3.5px #fff;
    mix-blend-mode: difference;
    pointer-events: none;
    white-space: nowrap;
}

body.glass-mode .ham-band {
    margin-bottom: 2vh;
    color: #ccff00;
    font-family: "JetBrains Mono", monospace;
    font-weight: 800;
    text-transform: uppercase;
}

body.glass-mode .ham-profile {
    width: min(100%, 1050px);
    margin-top: 7vh;
    padding: clamp(2rem, 5vw, 4.5rem);
    border: 2px solid rgba(255, 255, 255, 0.24);
    border-radius: 16px;
    background: rgb(18, 18, 18);
    box-shadow: none;
    color: #fff;
}

body.glass-mode .ham-label,
body.glass-mode .ham-location,
body.glass-mode .ham-copy p {
    color: rgba(255, 255, 255, 0.76);
    font-family: "JetBrains Mono", monospace;
}

body.glass-mode .ham-label {
    color: #ccff00;
    font-weight: 800;
    text-transform: uppercase;
}

body.glass-mode .ham-identity h2 {
    color: #fff;
    font-family: "Inter", sans-serif;
    font-weight: 900;
    letter-spacing: -0.04em;
}

body.glass-mode .ham-copy p {
    margin-bottom: 2.5rem;
}

body.glass-mode .ham-mode-toggle {
    color: #fff;
    cursor: crosshair;
}

@media (max-width: 800px) {
    #page-ham {
        width: calc(100vw - 32px);
        margin-top: 118px;
        padding: 18px 14px;
    }

    .ham-profile {
        grid-template-columns: 1fr;
        padding: 18px;
    }

    body.glass-mode #page-ham {
        width: 100vw;
        margin: 0;
        padding: 126px 18px 96px;
    }

    body.glass-mode #page-ham > h1 {
        font-size: clamp(2.3rem, 12vw, 4rem);
    }

    body.glass-mode .ham-profile {
        gap: 24px;
        margin-top: 36px;
        padding: 1.4rem;
    }

    body.glass-mode .ham-copy p {
        font-size: 0.95rem;
    }

    .ham-mode-toggle {
        top: 12px !important;
        right: 12px !important;
        font-size: 0.68rem !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ham-profile,
    .btn-black {
        transition: none !important;
    }
}
