:root {
    color-scheme: light dark;
    --paper: #ffffff;
    --ink: #202020;
    --muted: #626262;
    --quiet: #707070;
    --copy: #4a4a4a;
    --accent: #202020;
    --emphasis: #175cd3;
    --emphasis-hover: #124aa8;
    --link-rule: #878787;
    --rule: #dedede;
    --soft-rule: #ececec;
    --surface: #f4f4f4;
    --selection: #e0e0e0;
    --recognition-bg: #fff0ee;
    --recognition-ink: #b42318;
    --award-bg: #f6f2e9;
    --award-ink: #715b30;
    --award-border: #e5ddce;
    --serif: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
    --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
    :root {
        --paper: #161616;
        --ink: #f0f0f0;
        --muted: #b8b8b8;
        --quiet: #a0a0a0;
        --copy: #c8c8c8;
        --accent: #f0f0f0;
        --emphasis: #8ab4ff;
        --emphasis-hover: #b4cfff;
        --link-rule: #8b8b8b;
        --rule: #383838;
        --soft-rule: #2d2d2d;
        --surface: #242424;
        --selection: #444444;
        --recognition-bg: #48201e;
        --recognition-ink: #ffb4a9;
        --award-bg: #2a261f;
        --award-ink: #c9b58a;
        --award-border: #4a4131;
    }
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { background: var(--paper); scroll-behavior: smooth; scroll-padding-top: 24px; }
body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--sans);
    font-size: 15px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

::selection { background: var(--selection); color: var(--ink); }
a { color: var(--accent); text-underline-offset: 4px; text-decoration-thickness: 1px; text-decoration-color: var(--link-rule); }
a:hover { color: var(--ink); text-decoration-color: currentColor; }
button { font: inherit; }
a, button { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
.skip-link { position: absolute; top: -100px; left: 24px; z-index: 50; }
.skip-link:focus { top: 12px; padding: 8px 14px; background: var(--paper); }

.nav-wrap, .page, .footer {
    width: min(100%, 1120px);
    margin-inline: auto;
    padding-inline: 24px;
}
.site-header { background: var(--paper); }
.nav-wrap {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 58px;
}
.nav-wrap::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 24px;
    right: 24px;
    border-bottom: 1px solid var(--rule);
}
.brand {
    color: var(--ink);
    font-family: var(--serif);
    font-size: 19px;
    font-weight: 600;
    letter-spacing: -0.35px;
    text-decoration: none;
    white-space: nowrap;
}
.nav-links { display: flex; align-items: center; gap: 24px; }
.nav-links a { color: var(--muted); font-size: 12px; text-decoration: none; }
.nav-links a:hover { color: var(--ink); text-decoration: underline; }
.nav-links a[aria-current="page"] { color: var(--ink); font-weight: 600; }
.menu-button { display: none; }
.page { padding-bottom: 24px; }

.news-highlight { color: var(--ink); font-weight: 600; }
.recognition {
    display: inline-block;
    margin-left: 3px;
    padding: 0 5px;
    border-radius: 2px;
    background: var(--recognition-bg);
    color: var(--recognition-ink);
    font-weight: 750;
}
.award-highlight { color: var(--award-ink); font-weight: 700; text-decoration-color: currentColor; }

.footer { padding-bottom: 24px; }
.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: start;
    gap: 20px;
    padding-top: 18px;
    border-top: 1px solid var(--rule);
    color: var(--quiet);
    font-size: 11px;
}

@media (max-width: 720px) {
    .nav-wrap, .page, .footer { padding-inline: 20px; }
    .nav-wrap { min-height: 54px; }
    .nav-wrap::after { left: 20px; right: 20px; }
    .brand { font-size: 18px; }
}
@media (max-width: 480px) {
    .nav-wrap, .page, .footer { padding-inline: 18px; }
    .nav-wrap::after { left: 18px; right: 18px; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
}
