.shell,
.container {
    width: min(100% - 2rem, var(--shell-width));
    margin-inline: auto;
}

.narrow-shell {
    width: min(100% - 2rem, var(--narrow-width));
}

.section {
    padding-block: var(--section-space);
}

.section + .section {
    border-top: 1px solid color-mix(in srgb, var(--color-border) 60%, transparent);
}

.grid {
    display: grid;
    gap: var(--space-md);
}

.split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 0.9fr);
    gap: clamp(1.75rem, 4vw, 3.5rem);
    align-items: center;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    border-bottom: 1px solid var(--color-border);
    background: color-mix(in srgb, var(--color-surface) 94%, transparent);
    backdrop-filter: blur(16px);
}

.header-shell {
    display: grid;
    grid-template-columns: minmax(150px, 1fr) auto minmax(150px, 1fr);
    min-height: 70px;
    align-items: center;
    gap: var(--space-md);
}

.header-brand {
    display: inline-flex;
    align-items: center;
    justify-self: start;
    color: var(--color-heading);
    font-weight: 800;
    text-decoration: none;
}

.header-logo {
    width: auto;
    max-width: var(--header-logo-max-width);
    max-height: var(--header-logo-max-height);
    object-fit: contain;
}

.header-brand__text,
.brand-text {
    display: grid;
    line-height: 1.1;
}

.header-brand__name {
    max-width: 18ch;
}

.brand-text small {
    color: var(--color-muted);
    font-size: 0.78rem;
    font-weight: 600;
}

.site-nav ul,
.footer-nav ul,
.footer-contact ul {
    display: flex;
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-nav ul {
    align-items: center;
    gap: var(--space-2xs);
}

.header-nav {
    justify-self: center;
}

.site-nav a {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: 0.55rem 0.78rem;
    border-radius: var(--radius-sm);
    color: var(--color-muted);
    font-weight: 700;
    text-decoration: none;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
    color: var(--color-heading);
    background: var(--color-tint);
}

.header-actions {
    display: inline-flex;
    align-items: center;
    justify-self: end;
    gap: var(--space-xs);
}

.header-cta {
    min-height: 42px;
    padding: 0.62rem 0.9rem;
    white-space: nowrap;
}

.nav-toggle {
    display: none;
}

.site-footer {
    padding-block: var(--section-space-sm) var(--space-lg);
    color: var(--color-footer-text);
    background: var(--color-footer);
}

.site-footer .shell {
    width: min(100% - 2rem, 1240px);
}

.footer-grid {
    display: grid;
    grid-template-columns:
        minmax(220px, 1.35fr)
        minmax(96px, 0.62fr)
        minmax(96px, 0.62fr)
        minmax(120px, 0.72fr)
        minmax(220px, 1.15fr);
    column-gap: clamp(2rem, 4vw, 4rem);
    row-gap: var(--space-xl);
}

.footer-summary p,
.footer-bottom p {
    color: var(--color-footer-muted);
}

.footer-summary p {
    max-width: 36rem;
}

.footer-brand {
    display: flex;
    align-items: flex-start;
}

.footer-logo {
    width: auto;
    max-width: var(--footer-logo-max-width);
    max-height: var(--footer-logo-max-height);
    object-fit: contain;
}

.footer-nav ul,
.footer-contact ul {
    flex-direction: column;
    gap: 0.5rem;
}

.site-footer h2 {
    margin-block-end: 0.75rem;
    color: var(--color-footer-text);
    font-size: 1rem;
}

.site-footer a {
    color: var(--color-footer-muted);
    text-decoration: none;
}

.site-footer a:hover {
    color: var(--color-footer-text);
}

.footer-bottom {
    margin-top: var(--space-xl);
    padding-top: var(--space-md);
    border-top: 1px solid color-mix(in srgb, var(--color-footer-text) 18%, transparent);
}

.footer-bottom p {
    margin: 0;
    font-size: 0.92rem;
}

.footer-bottom a {
    color: var(--color-footer-text);
    font-weight: 800;
}
