.container {
    width: min(calc(100% - 48px), 1280px);
    margin-inline: auto;
}

.section {
    padding-block: clamp(96px, 12vw, 180px);
}

.site-header {
    position: fixed;
    z-index: 100;
    top: 20px;
    left: 50%;
    width: min(calc(100% - 16px), 1132px);
    transform: translateX(-50%);
}

.site-header__inner {
    display: grid;
    grid-template-columns: auto auto minmax(0, 1fr);
    align-items: center;
    column-gap: 32px;
    min-height: 64px;
    padding: 9px 15px;
    border: 1px solid transparent;
    border-radius: 22px;
    background: transparent;
    box-shadow: none;
    -webkit-backdrop-filter: blur(0) saturate(100%);
    backdrop-filter: blur(0) saturate(100%);
    transition: border-color 260ms ease, background 260ms ease,
        box-shadow 260ms ease, backdrop-filter 260ms ease;
}

.site-header .logo {
    justify-self: start;
}

.site-header .header-controls {
    justify-self: end;
}

.site-header:is(.is-scrolled, :hover, :focus-within) .site-header__inner {
    border-color: rgb(255 255 255 / 18%);
    background: rgb(5 5 5 / 42%);
    box-shadow: 0 16px 50px rgb(0 0 0 / 28%), inset 0 1px 0 rgb(255 255 255 / 7%);
    -webkit-backdrop-filter: blur(16px) saturate(125%);
    backdrop-filter: blur(16px) saturate(125%);
}

[data-theme="light"] .site-header:is(.is-scrolled, :hover, :focus-within) .site-header__inner {
    border-color: rgb(0 0 0 / 12%);
    background: rgb(255 255 255 / 46%);
    box-shadow: 0 16px 50px rgb(0 0 0 / 14%), inset 0 1px 0 rgb(255 255 255 / 70%);
}

.site-footer {
    padding-block: 28px;
    border-top: 1px solid var(--border);
    background: color-mix(in srgb, var(--background) 92%, transparent);
}

.footer-minimal {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--muted-foreground);
    font-family: var(--font-sans);
    font-size: 0.8rem;
    letter-spacing: 0;
}

.footer-copy {
    margin: 0;
}

.footer-links { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px 18px; }
.footer-links a { transition: color 180ms ease; }
.footer-links a:hover { color: var(--foreground); }

@media (max-width: 720px) {
    .container {
        width: min(calc(100% - 32px), 1280px);
    }

    .site-header {
        top: 10px;
        width: calc(100% - 16px);
    }

    .site-header__inner {
        border-radius: 18px;
        column-gap: 16px;
    }

    .footer-minimal {
        align-items: flex-start;
        flex-direction: column;
        gap: 16px;
    }

    .footer-links { justify-content: flex-start; }
}

@media (max-width: 600px) {
    .site-header__inner {
        grid-template-columns: auto auto;
        justify-content: space-between;
        gap: 8px;
        padding: 8px 11px;
    }

    .header-nav {
        grid-column: 1 / -1;
        grid-row: 2;
        justify-content: flex-start;
    }
}
