/* Fonts are self-hosted (SIL OFL, licenses in /fonts). Latin subset only. */
@font-face {
    font-family: "Source Sans 3";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("../fonts/source-sans-3-latin-400-normal.woff2") format("woff2");
}

@font-face {
    font-family: "Source Sans 3";
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url("../fonts/source-sans-3-latin-600-normal.woff2") format("woff2");
}

@font-face {
    font-family: "Source Serif 4";
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url("../fonts/source-serif-4-latin-600-normal.woff2") format("woff2");
}

@font-face {
    font-family: "Source Code Pro";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("../fonts/source-code-pro-latin-400-normal.woff2") format("woff2");
}

:root {
    --ink: #1f2328;
    --muted: #5b6068;
    --border: #dcdcd7;
    --page: #f5f5f3;
    --surface: #ffffff;
    --accent: #2b4c7e;
    --topbar: #1c2430;
    --topbar-ink: #e8eaed;

    --status-up: #2f6b3a;
    --status-warning: #9a5600;
    --status-down: #b42318;

    --radius: 3px;
    --content-width: 1120px;
    --gutter: 16px;

    --font-sans: "Source Sans 3", -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
    --font-serif: "Source Serif 4", Georgia, "Times New Roman", serif;
    --font-mono: "Source Code Pro", ui-monospace, Consolas, "Liberation Mono", monospace;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--page);
    color: var(--ink);
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.5;
}

a {
    color: var(--accent);
}

code,
kbd,
samp,
.mono {
    font-family: var(--font-mono);
    font-size: 0.9375em;
}

/* Top bar */

.topbar {
    background: var(--topbar);
    color: var(--topbar-ink);
}

.topbar-inner {
    max-width: var(--content-width);
    height: 52px;
    margin: 0 auto;
    padding: 0 var(--gutter);
    display: flex;
    align-items: center;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: inherit;
    text-decoration: none;
}

.brand:focus-visible {
    outline: 2px solid var(--topbar-ink);
    outline-offset: 4px;
    border-radius: var(--radius);
}

.brand-mark {
    width: 34px;
    height: 34px;
    flex: none;
}

.wordmark {
    font-family: var(--font-serif);
    font-weight: 600;
    font-size: 21px;
    line-height: 1;
}

/* Page */

.page {
    flex: 1;
    width: 100%;
    max-width: var(--content-width);
    margin: 0 auto;
    padding: 32px var(--gutter);
}

.lede {
    margin: 0;
    font-size: 18px;
}

/* Footer */

.footer {
    border-top: 1px solid var(--border);
    color: var(--muted);
    font-size: 14px;
}

.footer-inner {
    max-width: var(--content-width);
    margin: 0 auto;
    padding: 16px var(--gutter);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 4px 16px;
}
