:root {
    color-scheme: light;
    font-family: Georgia, "Times New Roman", serif;
    color: #20252b;
    background: #fff;
    line-height: 1.7;
}

* {
    box-sizing: border-box;
}

body {
    max-width: 52rem;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

a {
    color: #244766;
    text-underline-offset: 0.2em;
    overflow-wrap: anywhere;
}

a:hover {
    text-decoration-thickness: 2px;
}

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

.site-header,
footer,
.document-header,
h1,
h2,
.home {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.site-header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.5rem 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #d4d9de;
    font-size: 0.875rem;
}

.site-header > a {
    font-weight: 600;
}

.document-header {
    margin: 3rem 0;
}

h1,
h2 {
    line-height: 1.3;
    overflow-wrap: break-word;
}

h1 {
    margin: 0 0 0.75rem;
    font-size: clamp(2rem, 6vw, 2.75rem);
    font-weight: 600;
    letter-spacing: -0.025em;
}

.subtitle {
    margin: 0;
    font-size: 1.125rem;
}

.date {
    margin-top: 0.75rem;
    color: #515b66;
    font-size: 0.9rem;
}

section {
    margin: 2rem 0;
}

h2 {
    margin: 0 0 0.75rem;
    font-size: 1.2rem;
    font-weight: 600;
}

p {
    margin: 0 0 1rem;
}

footer {
    margin-top: 3rem;
    padding-top: 1.25rem;
    border-top: 1px solid #d4d9de;
    font-size: 0.875rem;
}

nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.5rem;
}

.home {
    margin: 4rem 0;
}

.home nav {
    margin-top: 2rem;
}

@media (max-width: 30rem) {
    body {
        padding: 1.25rem;
    }

    .document-header {
        margin: 2rem 0;
    }
}

@media print {
    body {
        max-width: none;
        padding: 0;
        color: #000;
    }

    .site-header,
    footer {
        display: none;
    }

    .document-header {
        margin-top: 0;
    }

    h1,
    h2 {
        break-after: avoid;
    }

    p {
        orphans: 3;
        widows: 3;
    }

    a {
        color: inherit;
    }
}
