:root {
    color-scheme: dark;
    --night: #06152d;
    --text: #dce4f3;
}

* {
    box-sizing: border-box;
}

html {
    min-width: 320px;
    min-height: 100%;
    background: var(--night);
}

body {
    min-width: 320px;
    min-height: 100vh;
    margin: 0;
    background: var(--night);
    color: var(--text);
    font-family:
        Inter,
        ui-sans-serif,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

.site-shell {
    display: flex;
    min-height: 100vh;
    min-height: 100svh;
    flex-direction: column;
}

.landing {
    display: grid;
    flex: 1;
    place-items: center;
    padding: clamp(24px, 6vw, 72px) 24px;
}

.identity {
    display: flex;
    width: min(100%, 660px);
    flex-direction: column;
    align-items: center;
    gap: clamp(12px, 2.2vw, 24px);
    transform: translateY(-1.5vh);
}

.brand-art {
    display: block;
    width: min(100%, 620px);
    height: auto;
    object-fit: contain;
}

.tagline {
    max-width: 100%;
    margin: 0;
    color: #c9d4e8;
    font-size: clamp(12px, 1.65vw, 15px);
    font-weight: 400;
    line-height: 1.6;
    letter-spacing: 0.075em;
    text-align: center;
    text-wrap: balance;
}

@media (max-width: 480px) {
    .landing {
        padding-inline: 16px;
    }

    .identity {
        gap: 10px;
        transform: translateY(-1vh);
    }

    .tagline {
        max-width: 290px;
        font-size: 12px;
        letter-spacing: 0.035em;
    }
}

.site-footer {
    width: min(1440px, calc(100% - 48px));
    margin: 0 auto clamp(24px, 4vh, 44px);
    color: #8290aa;
}

.footer-rule {
    width: 100%;
    height: 1px;
    margin-bottom: 14px;
    background: rgb(150 170 205 / 28%);
}

.footer-content {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 20px;
    font-size: 11px;
    line-height: 1.6;
    letter-spacing: 0.025em;
}

.footer-email {
    color: #aab9d3;
    text-decoration: none;
    text-underline-offset: 3px;
}

.footer-email:hover {
    color: #e0e8f7;
    text-decoration: underline;
}

.footer-email:focus-visible {
    border-radius: 2px;
    outline: 2px solid #9bbcff;
    outline-offset: 4px;
}

.footer-copyright {
    color: #8290aa;
    text-align: right;
}

@media (max-width: 560px) {
    .site-footer {
        width: calc(100% - 32px);
        margin-bottom: 20px;
    }

    .footer-content {
        align-items: flex-start;
        flex-direction: column;
        gap: 5px;
        font-size: 10px;
    }

    .footer-copyright {
        text-align: left;
    }
}

/* Minimal, unboxed navigation control */
.menu-toggle {
    position: fixed;
    z-index: 20;
    top: clamp(20px, 3.2vw, 36px);
    left: clamp(20px, 3.2vw, 40px);
    display: flex;
    width: 34px;
    min-height: 30px;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 6px;
    padding: 3px 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #c9d4e8;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 27px;
    height: 1px;
    background: currentColor;
    transition:
        width 160ms ease,
        background-color 160ms ease;
}

.menu-toggle span:nth-child(2) {
    width: 20px;
}

.menu-toggle:hover span,
.menu-toggle[aria-expanded="true"] span {
    width: 27px;
    background: #f0f4fc;
}

.menu-toggle:focus-visible {
    outline: 2px solid #9bbcff;
    outline-offset: 7px;
}

.site-navigation[hidden] {
    display: none !important;
}

.site-navigation {
    position: fixed;
    z-index: 19;
    top: clamp(62px, 7vw, 82px);
    left: clamp(20px, 3.2vw, 40px);
    display: grid;
    width: min(300px, calc(100vw - 40px));
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 24px 26px 26px;
    border: 1px solid rgb(150 170 205 / 20%);
    background: #081a35;
    box-shadow: 0 18px 48px rgb(0 0 0 / 22%);
}

.nav-group h2 {
    margin: 0 0 14px;
    color: #8290aa;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.14em;
    line-height: 1.5;
    text-transform: uppercase;
}

.nav-group a {
    display: inline-block;
    color: #dce4f3;
    font-size: 13px;
    line-height: 1.7;
    text-decoration: none;
    text-underline-offset: 4px;
}

.nav-group a:hover,
.nav-group a[aria-current="page"] {
    color: #ffffff;
    text-decoration: underline;
}

.nav-group a:focus-visible,
.wordmark-link:focus-visible {
    border-radius: 2px;
    outline: 2px solid #9bbcff;
    outline-offset: 4px;
}

/* Interior stub pages */
.content-page {
    width: min(760px, calc(100% - 48px));
    flex: 1;
    margin: 0 auto;
    padding: clamp(104px, 14vh, 150px) 0 80px;
}

.wordmark-link {
    display: inline-block;
    margin-bottom: clamp(64px, 10vh, 104px);
    color: #c9d4e8;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.32em;
    text-decoration: none;
}

.page-copy {
    max-width: 640px;
}

.page-copy h1 {
    margin: 0 0 30px;
    color: #e0e8f7;
    font-size: clamp(26px, 4vw, 38px);
    font-weight: 400;
    letter-spacing: 0.015em;
    line-height: 1.2;
}

.page-copy p {
    margin: 0 0 20px;
    color: #aab9d3;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.9;
}

@media (max-width: 560px) {
    .content-page {
        width: calc(100% - 40px);
        padding-top: 100px;
        padding-bottom: 56px;
    }

    .wordmark-link {
        margin-bottom: 58px;
    }

    .site-navigation {
        gap: 20px;
        padding: 20px;
    }

    .page-copy p {
        font-size: 14px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .menu-toggle span {
        transition: none;
    }
}
