:root { --background: rgb(30, 40, 50); --border: rgb(50, 60, 70); --text: rgb(235, 245, 255); --text-2: rgb(165, 175, 185); --vrifox-red: rgb(255, 130, 130); } @media (prefers-color-scheme: light) { :root { --background: rgb(255, 245, 235); --border: rgb(225, 215, 205); --text: rgb(50, 40, 30); --text-2: rgb(90, 80, 70); } } * { box-sizing: border-box; scrollbar-color: var(--vrifox-red) var(--background); scrollbar-width: thin; &::-webkit-scrollbar { background: var(--background); width: 6px; } &::-webkit-scrollbar-thumb { background: var(--vrifox-red); } } html { overflow-x: hidden; overflow-y: scroll; } body { background: var(--background); color: var(--text); display: grid; font-family: system-ui, sans-serif; font-size: 1.2em; line-height: 1.7; margin: 0; } a { color: var(--text); text-decoration: underline; text-decoration-color: var(--vrifox-red); text-underline-offset: 3px; transition: text-decoration-color .2s; &:hover { text-decoration-color: var(--text); } } center { margin: 19.2px 0; text-align: center; } pre { border: 1px solid var(--vrifox-red); border-radius: 4px; overflow: auto; padding: 10px 15px; } p img { border: 2px solid var(--border); border-radius: 4px; display: block; margin: 0 auto; } hr { border: 1px solid var(--border); color: var(--border); margin: 60px 0; } // ------------------------ // - header / nav; footer - // ------------------------ header, footer { align-items: center; display: flex; margin: 0 auto; max-width: 1140px; overflow: auto; white-space: nowrap; width: 100%; a { color: var(--text-2); padding: 17.6px 15px; text-decoration-color: var(--background); text-decoration-thickness: 2px !important; text-underline-offset: 6px; margin: 0 15px; &:hover { text-decoration-color: var(--vrifox-red); } } } header { border-bottom: 1px solid var(--border); h1 { display: flex; font-size: 1em; margin: 0; a { color: var(--vrifox-red); } } nav { display: flex; } aside { margin-left: auto; } } footer { border-top: 1px solid var(--border); color: var(--text-2); a { color: var(--text-2); } span { padding: 17.6px 30px; margin-right: auto; } } // -------- // - main - // -------- main { margin: 20px auto; max-width: 720px; overflow: hidden; padding: 30px; width: 100%; span { font-size: .8em; } } p.date-published { margin-bottom: -30px; font-size: smaller; font-style: italic; } @media (max-width: 576px) { main { margin: 0 auto; } }