body {
    background: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-body);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html,
body {
    min-height: 100%;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

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

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

.site-header {
    padding: 2.5rem 0 1.5rem;
}

.header-inner {
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    flex-direction: column;
    gap: 1.25rem;
}

.brand {
    display: inline-block;
    color: var(--color-text);
    text-decoration: none;
}

.brand-mark {
    display: none;
}

.brand-text {
    display: grid;
    line-height: 1.05;
}

.brand-text strong {
    font-family: var(--font-heading);
    font-size: clamp(2.1rem, 6vw, 3rem);
    letter-spacing: -0.02em;
}

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

.main-nav {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.main-nav a {
    color: var(--color-text-muted);
    text-decoration: none;
}

.main-nav a:hover,
.main-nav a[aria-current="page"] {
    color: var(--color-text);
    text-decoration: underline;
    text-decoration-color: var(--color-accent);
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
}

main {
    flex: 1;
}

.hero {
    padding: 1rem 0 2rem;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 18rem;
    gap: 2rem;
    align-items: start;
}

.hero-copy h1 {
    max-width: 44rem;
    font-family: var(--font-heading);
    font-size: clamp(2rem, 5vw, 3rem);
    line-height: 1.12;
}

.hero-text {
    max-width: 48rem;
    margin-top: 1rem;
    color: var(--color-text-muted);
    font-size: 1.125rem;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

.section,
.page {
    padding: 1.5rem 0 2.5rem;
}

.section-heading,
.page-header {
    margin-bottom: 1.5rem;
}

.page-header h1,
.section-heading h2 {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.15;
}

.page-header p,
.section-heading p {
    max-width: 44rem;
    color: var(--color-text-muted);
}

.split-header {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1rem;
}

.content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 20rem;
    gap: 1rem;
    margin-bottom: 1rem;
}

.site-footer {
    border-top: 2px solid var(--color-border);
    padding: 2rem 0;
    color: var(--color-text-muted);
    text-align: center;
}

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

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

.site-footer nav {
    display: none;
}

.site-footer .footer-inner::after {
    content: "Ottawa, ON, Canada";
}

.footer-inner {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    flex-direction: column;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}
