@media screen { :root { color-scheme: normal; --body-background: white; --body-color: black; --header-color: black; --pre-background: #ddd; --pre-color: #212529; --link-color: black; --nav-active-background: #ccc; --nav-active-color: #777; --nav-color: #777; } } @media screen and (prefers-color-scheme: dark) { :root { color-scheme: dark; --body-background: #222; --body-color: #9e9e9e; --header-color: #9e9e9e; --pre-background: #333; --pre-color: #fff; --link-color: #87ab63; --nav-active-background: #87ab63; --nav-active-color: #222; --nav-color: #9e9e9e; } } * { font-family: monospace; line-height: 1.25; } *, ::after, ::before { box-sizing: border-box; } body { margin: 0 auto; max-width: 800px; background: var(--body-background); color: var(--body-color); } a { color: var(--link-color); text-decoration: none; } a:hover { text-decoration: underline; } header { margin: 10px; } header h1 { color: var(--header-color); font-size: 2em; font-weight: bold; margin-bottom: 0; } header p { color: #777; margin-top: 0; } nav { margin-top: 2em; padding: 0px 1em; vertical-align: bottom; } nav a { color: var(--nav-color); text-decoration: none; padding: 2px 0.75em; font-size: 110%; } nav a.active { color: var(--nav-active-color); background: var(--nav-active-background); } nav a.right { float: right; } main { padding: 1em; } main { padding: 2em; text-align: center; } main ul h2 { margin: .3em 0; } main ul { display: grid; grid-template-columns: auto; grid-gap: 1em; text-align: center; list-style: none; padding: 0; } .avatar { margin-left: auto; margin-right: auto; border-radius: 100%; } @media (min-width: 600px) { main ul { grid-template-columns: repeat(3, minmax(0, 1fr)); } } footer { margin-top: 0; text-align: center; font-size: 1em; color: #ccc; }