@font-face { font-family: "BitBold"; font-style: normal; font-weight: normal; src: local("BitBold"), url("../fonts/BitBold.woff") format("woff"); } :root { --accent: rgb(62, 249, 138); --fancy-font-stack: BitBold, monospace; } body { background-image: url("data:image/svg+xml,"); background-attachment: fixed; font-size: 1.35rem; } nav, h1, h2, h3, h4, h5, h6 { font-family: var(--fancy-font-stack); } h1 { font-size: 3.5rem; z-index: 1; position: relative; margin-top: 0; text-shadow: 0.1em 0 black; } h1 + article { margin-top: -0.9rem; } .logo { opacity: 1; width: 25rem; max-width: 100%; margin-bottom: 3rem; } article { position: relative; border: none; box-shadow: 0 0 20px 10px var(--accent); } @media screen and (min-width: 50rem) { article { padding: 2rem; } } /* I'm using the Simple.css lightweight CSS framework. This allows me to use the main background color from that framework (the CSS variable `--bg` and use it only behind the article. */ article::before { content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: var(--bg); opacity: 0.85; z-index: -1; } h1, h2, h3, h4, h5, h6 { display: flex; align-items: baseline; margin-bottom: 0; } h1:hover .anchor, h2:hover .anchor, h3:hover .anchor, h4:hover .anchor, h5:hover .anchor, h6:hover .anchor { display: block; } .anchor { display: none; font-size: 0.6em; opacity: 0.6; color: var(--text); order: 2; text-decoration: none; margin-left: 0.25em; } p:first-of-type { margin-top: 0; }