:root {
    color-scheme: dark;
    --ink: #16151B;
    --panel: #211F27;
    --ivory: #F6F2EA;
    --muted: #A7A299;
    --cobalt: #2F4BDA;
    --link: #8C9DFF;
    --border: #312E38;
    --page-gutter: clamp(1rem, 3vw, 2.5rem);
}

* {
    box-sizing: border-box;
}

body {
    display: flex;
    flex-direction: column;
    min-block-size: 100vh;
    min-block-size: 100dvh;
    margin: 0;
    background: var(--ink);
    color: var(--ivory);
    font: 1.0625rem / 1.6 system-ui, sans-serif;
}

a {
    color: var(--link);
    text-underline-offset: 0.18em;
}

a:focus-visible {
    outline: 2px solid var(--link);
    outline-offset: 4px;
}

.app-header,
.app-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem 1.5rem;
    padding-inline: var(--page-gutter);
    background: var(--panel);
}

.app-header {
    padding-block: 0.875rem;
    border-block-end: 1px solid var(--border);
}

.app-heading {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.125rem 1.25rem;
}

.company-link {
    font-size: 1rem;
    font-weight: 700;
}

h1 {
    margin: 0;
    font: 700 clamp(1.25rem, 1rem + 1vw, 1.5rem) / 1.15
        "Avenir Next", Avenir, system-ui, sans-serif;
    letter-spacing: -0.025em;
}

.dashboard-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-block-size: 2.75rem;
    padding: 0.5rem 0.875rem;
    border-radius: 0.625rem;
    background: var(--cobalt);
    color: #fff;
    font-size: 0.9375rem;
    font-weight: 650;
    text-decoration: none;
}

.dashboard-link:hover {
    text-decoration: underline;
}

.app-content {
    display: flex;
    flex: 1 0 auto;
    min-block-size: 24rem;
}

.app-content iframe {
    display: block;
    flex: 1 1 0;
    min-inline-size: 0;
    border: 0;
    background: var(--ink);
}

.app-footer {
    padding-block: 0.625rem;
    border-block-start: 1px solid var(--border);
    color: var(--muted);
    font-size: 0.875rem;
}

.app-footer p {
    margin: 0;
}

@media (max-width: 36rem) {
    .app-heading {
        flex-direction: column;
    }
}
