body { display: flex; flex-direction: column; }
main { flex: 1; }

.container {
    width: min(100% - clamp(2rem, 8vw, 7rem), 76rem);
    margin-inline: auto;
}

.site-header { background: var(--panel); border-bottom: 1px solid var(--line); }

.header-inner, .footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
}

.header-inner { min-height: 5.25rem; padding-block: .8rem; }

.brand {
    display: inline-flex;
    align-items: center;
    gap: .75rem;
    text-decoration: none;
}

.brand img { width: 2.6rem; height: auto; }
.brand-name { font-size: 1.3rem; line-height: 1; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.brand-name span { display: block; margin-top: .33rem; color: var(--light-blue); font-size: .735rem; letter-spacing: .12em; }

.site-nav ul, .site-footer ul {
    display: flex;
    flex-wrap: wrap;
    gap: .35rem 1.4rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-nav a, .site-footer a {
    display: inline-flex;
    align-items: center;
    min-height: 2.75rem;
    color: var(--muted);
    font-size: .94rem;
    font-weight: 600;
    text-decoration: none;
}

.site-nav a:hover, .site-footer a:hover, a[aria-current="page"] {
    color: var(--light-blue);
    text-decoration: underline;
    text-underline-offset: .35em;
}

.menu-toggle {
    min-height: 2.75rem;
    padding: .35rem .7rem;
    color: var(--text);
    background: var(--background);
    border: 1px solid var(--line);
    border-radius: .4rem;
    cursor: pointer;
}

.site-footer {
    background: #070b13;
    border-top: 1px solid var(--line);
}

.footer-inner { min-height: 5.25rem; padding-block: .7rem; flex-wrap: wrap; }
.footer-inner p { margin: 0; font-size: .9rem; }

@media (max-width: 46rem) {
    .header-inner { flex-wrap: wrap; gap: .4rem .8rem; }
    .site-nav { flex-basis: 100%; }
    .site-nav ul, .site-footer ul { gap: .15rem 1rem; }
}

@media (max-width: 23rem) {
    .brand { gap: .45rem; }
    .brand img { width: 2.1rem; }
    .brand-name { font-size: 1.1rem; }
    .brand-name span { font-size: .65rem; }
}
