/* reset */ html { box-sizing: border-box; } *, *::before, *::after { box-sizing: inherit; } html { -moz-text-size-adjust: none; -webkit-text-size-adjust: none; text-size-adjust: none; } body, h1, h2, h3, h4, h5, h6, p, figure, blockquote, dl, dd { margin: 0; } ul[class], ol[class] { margin: 0; padding: 0; list-style: none; } html { line-height: 1.5; } body { min-height: 100dvh; } h1, h2, h3, h4, h5, h6, button, input, label { line-height: 1.1; } h1, h2, h3, h4 { text-wrap: balance; } img, picture { max-width: 100%; display: block; } input, button, textarea, select { font: inherit; } textarea:not([rows]) { min-height: 10em; /* form-sizing: normal; */ } :target { scroll-margin-block: 5ex; } a[class] { color: currentColor; } /* end reset */ /* global classes */ .flex { display: flex; } .flex-col { flex-direction: column; } /* end global classes */ :root { --font: monospace; --bg: #fff; --bg2: #eee; --primary: #8b5cf6; --text: #111; --link: #04f; } @media (prefers-color-scheme: dark) { :root { --bg: #111; --bg2: #222; --primary: #8b5cf6; --text: #ccc; --link: #0af; --link-visited: #faf; } } a:not([class]) { color: var(--link); } a:not([class]):visited { color: var(--link-visited); } a.primary { color: var(--primary); text-decoration: none; } html { background-color: var(--bg); color: var(--text); font-family: var(--font); font-size: 16px; } body>header { justify-content: space-between; /* border-bottom: solid 1px var(--bg2); */ background-color: var(--bg); box-shadow: 0 -1px 1ex rgba(0, 0, 0, 0.5); } body>header>nav { justify-content: space-between; } body>header a { display: flex; align-items: center; padding: 1ex; transition: color 0.1s ease-out, background-color 0.1s ease-out; } body>header a:hover { background-color: var(--primary); color: var(--bg); }