/* Frosted surfaces, buttons, header, menu and footer */

.glass {
    background: var(--glass-fill);
    -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
    backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
    border: 1px solid var(--glass-border);
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    --py: 8px;
    padding: calc(var(--py) + var(--optical-shift)) 16px calc(var(--py) - var(--optical-shift));
    border-radius: var(--radius-pill);
    font: 500 14px/1.2 var(--font-body);
    text-decoration: none;
    cursor: pointer;
    border: 0;
    white-space: nowrap;
}
.btn-white { background: #fff; color: var(--ink); }
.btn-white:hover { background: rgba(255, 255, 255, 0.88); }
.btn.glass { color: var(--text); border: 1px solid var(--glass-border); }
.btn.glass:hover { border-color: var(--hl); box-shadow: 0 0 14px -4px var(--hl); }

/* Header */
.site-header {
    position: relative;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    max-width: calc(var(--column) + 40px);
    margin: 0 auto;
    padding: 22px 20px;
}

.site-logo {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 500;
    letter-spacing: -0.02em;
    text-decoration: none;
    white-space: nowrap;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}
.site-logo img { max-height: 36px; width: auto; max-width: 40vw; }

.site-actions { display: flex; flex: none; align-items: center; gap: 8px; }

.search-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 8px 7px 12px;
    border-radius: var(--radius-pill);
    color: var(--text);
    font: 14px var(--font-body);
    cursor: pointer;
}
.search-label { min-width: 70px; text-align: left; opacity: 0.9; }
.search-pill kbd {
    font: 500 10px var(--font-body);
    padding: 3px 6px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.2);
}

.menu-toggle {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border-radius: 50%;
    color: var(--text);
    cursor: pointer;
}

/* Footer */
.site-footer {
    max-width: calc(var(--column) + 40px);
    width: 100%;
    margin: 0 auto;
    padding: 48px 20px 40px;
    text-align: center;
    font-size: 13px;
    color: var(--text-soft);
}
.site-footer-social { display: flex; justify-content: center; gap: 8px; margin-bottom: 14px; }
.social {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
}
.site-footer p { margin: 0; }

@media (max-width: 520px) {
    .site-header { gap: 8px; }
    .site-actions { gap: 6px; }
    .search-label, .search-pill kbd { display: none; }
    .search-pill { padding: 9px; border-radius: 50%; }
    .site-logo { font-size: 20px; }
}
