@font-face {
    font-family: "Work Sans";
    src: url("/static/fonts/WorkSans-Regular.ttf") format("ttf");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Work Sans";
    src: url("/static/fonts/WorkSans-SemiBold.ttf") format("ttf");
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

/* Base */
html {
    font-size: 100%;
}

body {
    margin: 0;
    padding: 2rem 1rem;
    font-family: "Work Sans", -apple-system, BlinkMacSystemFont,
                 "Segoe UI", Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: #111;
    background: #fff;
}

/* Layout */
main {
    max-width: 42rem;
    margin: 0 auto;
    padding-top: 3rem;
}

/* Typography */
h1, h2, h3 {
    font-weight: 600;
    line-height: 1.25;
    margin-bottom: 1rem;
}

h1 {
    margin-top: 0;
}

p {
    margin: 1.25rem 0;
}

time {
    color: #555;
    font-size: 0.9rem;
}

/* Links */
a {
    color: inherit;
    text-decoration: underline;
}

a:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 3px;
}

/* Header / navigation */
header {
    margin-bottom: 3rem;
    font-size: 0.95rem;
}

header nav a {
    text-decoration: none;
}

header nav a:hover,
header nav a:focus-visible {
    text-decoration: underline;
}

/* Articles */
article {
    margin-bottom: 4rem;
}

article:last-child {
    margin-bottom: 0;
}

/* Footer */
footer {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid #eee;
    font-size: 0.9rem;
    color: #555;
}

/* Code */
pre {
    background: #f7f7f7;
    padding: 1rem;
    overflow-x: auto;
    border-radius: 4px;
    line-height: 1.45;
}

code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas,
                 "Liberation Mono", monospace;
    font-size: 0.9rem;
}

p code {
    background: #f0f0f0;
    padding: 0.1rem 0.25rem;
    border-radius: 3px;
}

/* Utilities */
.skip-link {
    position: absolute;
    left: -999px;
    top: 0;
    padding: 0.5rem 0.75rem;
    background: #fff;
    border: 1px solid #ddd;
    z-index: 1000;
}

.skip-link:focus {
    left: 1rem;
    top: 1rem;
}

/* Mobile */
@media (max-width: 600px) {
    body {
        padding: 1rem;
    }

    main {
        padding-top: 2rem;
    }

    article {
        margin-bottom: 3rem;
    }

    pre {
        margin-left: -1rem;
        margin-right: -1rem;
        border-radius: 0;
    }
}